fix(preflight): preview the file name with the day Which day will write - #1724
Conversation
The one-page form's File name row rendered {{DATE}} with today's clock
even when the choice's Which day setting, or the date picked in the
form's own date field, aimed the run at another day. Picking August 27
showed Daily/2026-09-01 and then wrote Daily/2026-08-27.
Resolve the run clocks the same way ChoiceExecutor.applyDateOrigin does
(setting, executor clocks, form seed) and hand them to the preview
formatter.
Co-authored-by: Christian Bager Bach Houmann <christian@bagerbach.com>
Which day setting and the pick-a-day command, the Log a meeting macro form (autocomplete, peek, insert selection), and image drop/paste naming. Referenced from the GitHub release body via SHA-pinned raw URLs; the folder can be pruned from HEAD once the release is out (see docs/README). Co-authored-by: Christian Bager Bach Houmann <christian@bagerbach.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe one-page filename preview now resolves date-origin settings before formatting. ChangesDate-aware filename preview
Format syntax documentation
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This PR makes the file-name preview use the selected run day and includes documentation assets and a typo fix; no actionable merge-blocking risk remains after normal checks and review. Sequence Diagram(s)sequenceDiagram
participant OnePagePreflight
participant previewRunClocks
participant planDateOrigin
participant FileNameDisplayFormatter
OnePagePreflight->>previewRunClocks: choice, executor clocks, and form values
previewRunClocks->>planDateOrigin: date origin, variables, form values, and seed
planDateOrigin-->>previewRunClocks: planned run clocks
previewRunClocks-->>OnePagePreflight: preview run clocks
OnePagePreflight->>FileNameDisplayFormatter: setRunClocks
OnePagePreflight->>FileNameDisplayFormatter: format filename preview
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Title checkExplanation The title accurately identifies the preflight file-name preview change and the date selected by the Which day setting. Although the wording is grammatically awkward, it is specific and related to the main change.
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Deploying quickadd with
|
| Latest commit: |
3409686
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d3ba011c.quickadd.pages.dev |
| Branch Preview URL: | https://cursor-release-2-24-0-notes.quickadd.pages.dev |
Co-authored-by: Christian Bager Bach Houmann <christian@bagerbach.com>
Summary
Three things for the 2.24.0 release:
{{DATE}}with today's clock even when the choice's Which day setting, or the date picked in the form's own date field, aimed the run at another day. Picking August 27 showedDaily/2026-09-01and then wroteDaily/2026-08-27. The preview now resolves the run clocks the same wayChoiceExecutor.applyDateOrigindoes (setting → executor clocks → form seed) and hands them to the preview formatter.docs/public/img/release-2.24.0/, per the convention indocs/README.md(referenced from the release body via SHA-pinned raw URLs; the folder can be pruned from HEAD afterwards).FormatSyntax.mdhad its first sentence duplicated.Changes
FileNameDisplayFormatter.setRunClocks()– a seam for the preview to receive the run's calendar origin.runOnePagePreflight.ts–previewRunClocks()mirrorsapplyDateOrigin(relative presets,askseeded from__qa.dateOrigin, executor-inherited clocks) and feeds the formatter before computing the preview.runOnePagePreflight.filenamePreview.test.ts(relative day, typed day, empty field falls back to today, executor-inherited day). Three of them fail without the fix.docs/public/img/release-2.24.0/– 8 assets (2.3 MB).docs/src/content/docs/docs/FormatSyntax.md– one duplicated line removed.Testing / validation
pnpm run build-with-lintpasses;pnpm run test: 421 files, 5200 tests passing.File name: Daily/2026-08-27in the form (wasDaily/2026-09-01), and the created note isDaily/2026-08-27.md.Checklist
— it becomes the squash-merge commit and drives the released version.
Summary by CodeRabbit
Bug Fixes
Documentation
Tests