Skip to content

docs(help): the calendar preview on the availability settings pages - #341

Open
michaelmyers wants to merge 2 commits into
mainfrom
docs/availability-calendar-preview
Open

michaelmyers wants to merge 2 commits into
mainfrom
docs/availability-calendar-preview

Conversation

@michaelmyers

Copy link
Copy Markdown
Contributor

A help page for the calendar preview at the bottom of Bookings & Availability, Holidays & Time Off and Availability Classes (XappMedia/stentor-api#6962, merged to develop 2026-12-02).

  • New help/availability/calendar-preview.md (Booking and Availability section): where it is, how to read it, every closed-day reason as Studio labels it, "Showing unsaved changes", and that it comes from the Availability API's engine.
  • docs/partners/availability-api.md: one sentence that holidays, every day of a time-off range and days not offered are left out of /windows (the engine fix in the same PR), linking the new page.

No flag: the preview is an inline addition to existing settings pages. Merge once stentor-api#6962 is on prod Studio.

Checks: yarn build (onBrokenLinks: throw) passes.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@michaelmyers michaelmyers added the owner:session The opener owns this PR's review and CI-fix loop; GUPPI stays out while it is live label Dec 2, 2026
@claude

claude Bot commented Dec 2, 2026

Copy link
Copy Markdown

Review: calendar preview help page

Overall this is a clear, well-structured docs PR. I found no blocking issues.

Checked

  • The new help/availability/calendar-preview.md has valid front matter, and the sidebar entry in sidebars-help.js matches the file's doc id.
  • All three internal links resolve: /help/availability/holidays-and-time-off, /help/availability/availability-check-in and /docs/partners/availability-api. The existing doc() convention is followed.
  • help/features.md is generated, and this PR correctly doesn't touch it. The PR description says there is no flag, so no feature-directory entry is needed.
  • No code, scripts or dependencies change, so there are no performance or security concerns. There is no test suite for docs. The PR reports yarn build passing with onBrokenLinks: throw, and CI's PR build will confirm that.

Suggestions (non-blocking)

  1. Release gating. The PR says to merge once stentor-api#6962 is on prod Studio. A merge to main deploys immediately, so consider marking the PR as a draft, or adding a do-not-merge label, until then. Otherwise the page goes live describing a feature customers don't have yet.
  2. Unverified UI labels. The page names "Settings → Availability Classes" and "Settings → Bookings & Availability", and quotes the closed-day labels (for example "Past today's cutoff" and "No arrival windows"). Nothing else in help/ documents the Availability Classes page, so please confirm those strings against the shipped UI.
  3. Time-off wording. The table says "A day or a range of days you blocked as time off". The API doc says "every day of a time-off range", so the two are consistent. A short link to the time-off section of Holidays & Time Off would help readers who want to set it up.
  4. Cross-linking. Consider a one-line link to the new page from holidays-and-time-off.md and availability-check-in.md, so people on those pages find the preview. The new page links to them, but not the other way round.
  5. Style nit. The "Why you can trust it" heading is a little promotional. "How the preview is calculated" would be more neutral and easier to find.
  6. Wording. In the API doc sentence "So are days the business has closed: ...", the "every day of a time-off range" item could simply read "time-off days".

Nice touch showing the "Showing unsaved changes" behavior with a concrete example.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@claude

claude Bot commented Dec 2, 2026

Copy link
Copy Markdown

Review

Small, focused docs PR: one new help page, a sidebar entry and one sentence in the Availability API doc. It follows the repo conventions. The page has front matter, the sidebar uses the doc() helper, and links are root-relative, so onBrokenLinks: throw will catch mistakes. I only read the diff and the repo. I did not run the build myself, and I could not check the claims against stentor-api#6962.

Things to check

  1. "Availability Classes" has no page in this repo. help/availability/ holds only availability-check-in, holidays-and-time-off and the new page, and nothing else in help/ or sidebars-help.js mentions Availability Classes. Readers get no link and no explanation of what that Studio page is. Either link or describe it, or confirm the name matches the Studio menu label exactly.
  2. "Bookings & Availability" is also not linked. It is the first place the preview appears. The Related list covers Holidays & Time Off and Availability Check-In but not that page. If the page doesn't exist yet, that is fine.
  3. Merge timing. The description says to merge once stentor-api#6962 is on prod Studio. A merge to main deploys immediately (see CLAUDE.md), so please hold the merge until then. Otherwise the live docs describe a feature customers can't see. A draft status would make that explicit.
  4. help/features.md. It is generated from the dev-workspace feature directory and lists only features with a published page here. If the calendar preview is a directory entry, regenerate features.md after this merges. Don't edit it by hand.

Content nits

  • The "closed day" table is a long list of labels. Please confirm it matches Studio's strings exactly, including Past today's cutoff, No arrival windows and Needs more notice. Also check whether the precedence is worth stating. A day can be both a holiday and fully booked, and the page doesn't say which reason wins.
  • "Studio's calendar preview shows a business the same days and windows this endpoint returns" in availability-api.md is a strong guarantee. The preview also shows Past, Fully booked and similar closed days that /windows omits. "Same days and windows" is accurate for the open ones, but I'd soften it to something like "uses the same engine as this endpoint".
  • "a moment later" (the debounce) and "next four weeks" are fine. Both will go stale if the horizon or debounce changes, so keep them in mind for future updates.
  • The sentence about the booking form keeping customers off holidays and time off is separate from the preview. It reads as a claim about other behavior, so please verify it.

Performance, security, tests
No concerns. There is no code, no new dependencies and no assets. The only check is the build, which the description says passes. Please confirm CI is green on the PR.

Overall this is a good, readable page. I'd fix item 1 and gate the merge on item 3.

🤖 Generated with Claude Code

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

owner:session The opener owns this PR's review and CI-fix loop; GUPPI stays out while it is live

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant