Repository navigation
fix(ui): honor plan notice period in purchase date defaults - #877
Conversation
|
Warning Review limit reached
This review includes 4 billable files and costs up to $1.00.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 17 minutes for your next included review. View limit details
Comment |
|
Independent non-author verification is clean in two passes at exact SHA The verifier independently ran 211 affected Jest tests before and after restoring its scratch mutations, typecheck, changed-source ESLint and an isolated archived-head production build. Its own desktop and phone Chromium scenarios passed in UTC, Los Angeles and Berlin, with screenshots inspected and no captured console/network errors. Browser APIs were mocked. Its own captured suggested date 2026-10-20 and earlier selected date 2026-10-16 were replayed through the actual routed GET/POST handler and native PostgreSQL schema 119 fixture. Durable root dates and plan clock matched; authentication/accounts were fixtures. Test database inventory was empty before and after. No notification, provider or purchase execution occurred. Behavioral controls: exact parent source failed the date assertion (expected 2026-10-19, received 2026-10-16); removing the invalid-notice submit guard caused six API-call assertion failures. Restored source matched the author and 211 tests passed. Timing checks called the real veto helper and separately reproduced notification admission arithmetic at fixed later ticks; they did not call an actual notification tick or prove production cadence. Source trace: displayed notice → escaped button metadata/callback at plans.ts:1168 and :1243 → validated modal default/warning/submit guard at :2247–2297; backend date parse at handler_plans.go:638, notification admission at notifications.go:67–70 and veto cutoff at plan_step_attach.go:99 and :345–346. Retained source review also completed two clean passes on this exact tree. Root retains final normal merge; CI runs are watched individually. CodeRabbit's automatic comment is a review-limit notice, not a completed clean review. The exact-revision independent-review alternative is used; no paid review was requested and the quota message is not counted as a review pass. Any actionable finding from a later review still blocks merge. |
|
Current-main compatibility check for the existing date fix:
These are local fixture compatibility results. They do not satisfy the latest AGENTS real-scenario or exact |
|
Owner gate assessment: the owner's explicit standing decision uses independent Current main |
|
Post-merge verification:
The date-default fix is complete. The broader graph editor remains tracked with #631; #880 is the separate no-write preview leaf, while atomic graph scheduling is still being developed. This fix does not close that broader work. |
Add Purchases prefilled tomorrow even when the plan required several days of notice, leaving the first empty purchase inside its veto window. The default now uses the displayed plan's configured notice period and UTC calendar day + N + 2, where N is that notice period. Earlier dates remain selectable with a warning, and missing or invalid notice metadata disables submission.
Verified exact head
cc73905e1ff8bf99260ac32c18ba982079ddc002on merged creator base5134af444026276c6cdbf7a135ca00e54d656ef0:Two retained exact-tree reviews and two fresh independent cold verification passes are clean at this head, tree
b6d5dd8357570b2a874e3d17f14a58038d53e61c. The cold verifier reproduced the tests, browser scenarios, native handler/store checks and negative controls itself. This satisfies the project's exact-revision independent-review alternative to CodeRabbit; any later review finding still blocks merge.Refs #631. This PR does not close or implement the separately requested graph editor.