Repository navigation
feat(plans): remove the Preview schedule dialog now that the preview is inline - #1179
Conversation
…st goes The preview dialog test is the only place that covers the logical-ordinal plot (no bridging of missing dates, retained step nodes) and the schedulePlotFrame width rule. The inline panel still renders the plot, so move those cases to their own file ahead of deleting the dialog test. Part of #1153 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
plan-date-interaction.ts stays for the deferred editable path (#1057), and the dialog test is the only coverage of rollback on cancel, endpoint redistribution, collision and outside-release rejection, and capture failure. Port those cases to the panel test before the dialog test is deleted. Making the rollback a no-op now fails four tests. Part of #1153 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The inline panel is now the only preview in Create and Edit, so the dialog gesture, keyboard and date-field sections of the spec are dead weight. The gestures they covered are ported to plan-editor-panel.test.ts. The dense and overlap block still opens the dialog and is replaced in the next commit. Part of #1153 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The dense and overlap block drove the dialog. Replace it with the same guarantees on the inline panel: 100 points at a 4896px plot, only the preview scroll region scrolls horizontally (page, modal and form do not), and on phones a touch pan over the plot scrolls it without changing any point. Part of #1153 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Its cases now live elsewhere: intent building in plan-schedule-intent .test.ts, the non-interactive plot in plan-schedule-plot.test.ts and the date gestures in plan-editor-panel.test.ts. Also port the click and arrow selection case and the release-time midnight recheck, so plan-date-interaction.ts keeps 100% line coverage without the dialog test (stmts 96.87 -> 96.25, branches 85.43 -> 85.43; the plot keeps 100% lines, one branch of updateSchedulePlot's tick guard is no longer taken). Part of #1153 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The inline preview in the Create and Edit modal replaces the dialog, so the footer button, its handler, the dialog module and its CSS go. The e2e spec now asserts the button and dialog are absent. The dormant editable-dates path stays for #1057. Closes #1153 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The deleted dialog test was the only check of the leading zero segment the plot emits when points start at step 1 (the inline preview always does), and of Escape not reaching the parent modal during a drag. Part of #1153 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge gate at
|
Summary
Closes #1153 (PR3 of 3). After #1177 and #1178 the plan modal shows a live, read-only schedule preview inline, in both Create and Edit. This PR removes the separate Preview schedule button and dialog, which the inline preview now replaces.
afdb78detest(plans): keeps the dialog test's non-interactiverenderSchedulePlotcases and theschedulePlotFramewidth check inplan-schedule-plot.test.tsbefore that test file goes.a054b41atest(plans): ports the date-gesture cases only the dialog test exercised intoplan-editor-panel.test.ts:Mutation probe: making
binding.restore(...)a no-op fails 4 of them.a76e221f,c3b9f1d6test(e2e): drop the dialog walkthrough and replace the dense/overlap block with 100-point checks that scroll inside the inline preview.938f98aatest(plans): deletesplan-schedule-preview.test.ts.a2f702befeat(plans): removes the button (index.html), its handler and the now-unusedreadPlanScheduleInputimport (plans.ts),plan-schedule-preview.ts, itsplans.test.tscase and the dialog-only CSS. New e2etoHaveCount(0)assertions for the button and dialog failed at all 6 viewports before the deletion.Kept on purpose (deferred to #1057, as stated on #1153): the panel's dormant editable path (
editableDates),plan-date-interaction.ts,lib/plan-editor-draft.ts,lib/plan-draft-dates.tsand the plot's interactive branches.Coverage of the shared modules
plan-date-interaction.tsplan-schedule-plot.tsThe plot's one dropped branch is the
if (tick)guard inupdateSchedulePlot, which only the dialog's drag path reached.Bundle
app.jsgoes from 501 KiB to 495 KiB, so webpack's 500 KiB asset warning is gone. The combined entrypoint warning (767 KiB) remains, as before.Size
Counted as added + deleted from
git diff --numstat origin/main...HEAD, tests and e2e included: +138/-704 in 6 commits, each under 400.Verification
Evidence is posted as PR comments.
🤖 Generated with Claude Code
Summary by CodeRabbit