fix(preflight): give the one-page date field the whole row - #1726
Conversation
The date field sat in the Setting row's control column next to its label, so the text box was too narrow for its own placeholder, the calendar was squeezed against the right edge, and the parsed preview ended up right-aligned under the calendar with the left half of the row empty. Stack the row instead: label on top, full-width input, the parsed date directly under it, then the calendar at the same width as the standalone VDATE prompt. 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 (4)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe date field now stacks its input, preview, and picker vertically. The preview renders before the picker. CSS rules enforce full-width controls, and tests verify the DOM order. ChangesDate field layout
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The change makes the one-page date field full width and places its parsed preview beneath the input without changing date handling or stored data. No actionable merge-blocking risk remains beyond normal checks and review. Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 3 files. (1 skipped: 1 unsupported.) ✨ Finishing Touches📝 Generate docstrings
🧪 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: |
27e8932
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://af21a350.quickadd.pages.dev |
| Branch Preview URL: | https://cursor-one-page-date-field-l.quickadd.pages.dev |
Summary
The date field on the one-page form (used by Which day → Ask each time, the
(pick a day)commands, and{{VDATE}}fields on the form) rendered inside the Setting row's control column, beside its label. That left the text box too narrow for its own placeholder (Enter a date (e.g., 'today', 'nextcut off), squeezed the calendar against the right edge, and pushed the parsed preview to the bottom-right under the calendar while the left half of the row sat empty.The row now stacks: label on top, full-width input, the parsed date directly under the input, then the calendar at the same width the standalone VDATE prompt already uses.
Changes
src/preflight/OnePageInputModal.ts: thedatecase addsqa-onepage-date-settingto itssettingEland creates the preview element right after the input (before the picker) so the parsed date reads next to what you typed.src/styles.css:.qa-onepage-date-settingstacks the Setting row (flex-direction: column), gives info/control full width, stretches the text input, and left-aligns the preview.OnePageInputModal.test.tsgains a DOM-order regression test (row class present; input → preview → picker). TheSettingstub inOnePageInputModal.audit-preflight-suggesters.test.tsnow exposessettingEl, as the real Obsidian API does.Testing / validation
pnpm run build-with-lintpasses;pnpm run test: 421 files, 5201 tests passing (the new test fails without the fix).last friday; placeholder fully visible, preview2026-09-04sits under the input, calendar highlights the day, File name row updates. Screenshots above are from that run.Checklist
To show artifacts inline, enable in settings.
Summary by CodeRabbit