Skip to content

refactor: collapse leftover trial, timezone, and booking helpers - #4795

Merged
tyler-dane merged 1 commit into
mainfrom
cursor/code-simplification-7a9c
Oct 24, 2026
Merged

tyler-dane merged 1 commit into
mainfrom
cursor/code-simplification-7a9c

Conversation

@cursor

@cursor cursor Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #

What and why

Nightly simplification of merges after #4762. Booking public pages and host-alert emails share one destination-conference helper, hint celebration keys have one builder, awaiting_checkout banner copy uses the shared trial label and length, recoverable booking ops alias the in-flight status set, and the connection report reuses the sync stale window. Dead holdSource, the unused signup-trial terms helper, the timezone-banner alias, and unused celebration-storage exports are gone. Hide-tips acceptance docs now match palette mute. No product behavior change.

Verify

Selected local checks passed: test:core, test:web, test:backend:fast, test:scripts:fast, type-check, lint, knip, test:a11y.

test:e2e ran 295 passed, 2 failed under parallel load in untouched specs, then both passed on isolated retry:

  • e2e/calendars/calendar-experience.spec.ts (a read-only event can be hidden...) 3.4s
  • e2e/navigation/week-grid-event-alignment.spec.ts (stays aligned after life view then week with blog utm params) 18.4s

The diff does not touch hide-event or week-grid alignment. Sandbox Playwright flake, not a local blocker; CI decides.

Open in Web View Automation 

Note

Low Risk
Mostly deduplication and export cleanup; booking conference resolution is centralized but unchanged in logic, with tests noted in the PR description.

Overview
Consolidates duplicated helpers after recent merges: booking public pages and host-alert emails now share resolveBookingDestinationConference; recoverable operation statuses alias the in-flight set; host-email enqueue uses isBookingHostEmailKind.

Calendar-web trial/checkout copy pulls from shared constants (TRIAL_START_PRIMARY_LABEL, BILLING_PLAN.TRIAL_LENGTH_DAYS); dead code is removed (checkoutPanelActions.holdSource, signupTrialStepTermsLine, timezone-banner alias, unused celebration-storage exports). Timezone mismatch checks call shouldShowTimezoneMismatch directly; hint celebration keys build through hintShortcutCelebrationKeyForPart.

Ops/docs: the connection report’s stale-importing window matches sync’s CONNECTION_STATE_REFRESH_STALE_AFTER_MS; onboarding docs describe muting tips via the command palette.

Reviewed by Cursor Bugbot for commit 5fe5c4d. Bugbot is set up for automated code reviews on this repo. Configure here.

Share destination conference resolution, celebration keys, and
awaiting-checkout trial copy. Drop dead checkout holdSource and the
timezone banner alias.

Co-authored-by: tyler <tyler@switchback.tech>
@tyler-dane
tyler-dane marked this pull request as ready for review October 24, 2026 01:22
@tyler-dane tyler-dane added the agent-automerge Agent-loop finished; merge-guard may squash-merge label Oct 24, 2026
@tyler-dane
tyler-dane enabled auto-merge October 24, 2026 01:22
@github-actions

Copy link
Copy Markdown
Contributor

Boot bundle: 527.5 KB gzip (+0.0 KB vs main)

@tyler-dane
tyler-dane added this pull request to the merge queue Oct 24, 2026
Merged via the queue into main with commit 2fdde0d Oct 24, 2026
38 checks passed
@tyler-dane
tyler-dane deleted the cursor/code-simplification-7a9c branch October 24, 2026 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-automerge Agent-loop finished; merge-guard may squash-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants