feat: replace the Gantt chart with the work plan #88

Merged
abiwab merged 60 commits from feat/work-plan-view into main 2026-11-05 09:49:02 +01:00
Owner

Summary

Replaces the Gantt chart with the work plan ("Plan de travail") for 1.4.0. The engine computes the data, the views only show it.

  • Scheduler: runSheet() groups a plan into days, passages (visits to the kitchen) and threads, with margins per passage; findServeTimes() and earliestServe() search serving times. The plan and the run sheet carry the mise en place mode they were made in (recipes[].miseEnPlace).
  • Kitchen: new PASSIVE_OVERLAP_SAME_COOKWARE info warning.
  • Renderer: work plan in text, Markdown, HTML and print HTML (runSheetTo*, passageKit, sectionProgram); recipe views no longer show a schedule; the Gantt chart is deprecated (removed in 2.0).
    • The program only points to the recipe: one line per section with its steps (steps 1 to 3, plus the source file for an import), no summary of actions, temperatures or timers.
    • What to take out follows the mise en place mode of the sheet. By section, each section carries its own things to take out right before its steps (cookware once, at the first section that uses it); per session, one block at the top of the visit with the quantities summed; upfront, everything raw at the first visit. A preparation is always listed at the visit of the first step that uses it.
  • CLI: gram plan works without a serving time; --serve, --find, --meal-times, --with-sheet; .ics export with one event per passage.
  • Language server / VS Code: gram/runSheetUpdated and a Work Plan panel; gram.showGantt and gram/ganttUpdated deprecated.
  • Docs / playground: work plan view and serving-time suggestions, ~24 pages en + fr, 1.4.0 release notes (date to adjust at publication).
  • Deprecations registered: renderer-gantt, i18n-gantt-keys, lsp-gantt-notification, vscode-show-gantt. Nothing deprecated for the program and kit fields: 1.4.0 is not out, so they changed in place.

Not in this PR

  • Release steps (version-packages, release).
  • Visual check of the playground, the VS Code panel and the PDF output in a real browser/editor (the HTML view was checked headless in Chrome for the three modes).

Test plan

  • bun test (1759 tests)
  • bun run typecheck, bun run lint
  • bun run conformance (goldens only gain miseEnPlace)
  • bun run deprecations:check, bun run check-changesets
  • docs build (link validation, bundle budget 900 KB)
  • Open the playground and the VS Code Work Plan panel
  • Print a plan to PDF

Work in progress: more changes are coming on this branch, do not merge yet.

## Summary Replaces the Gantt chart with the **work plan** ("Plan de travail") for 1.4.0. The engine computes the data, the views only show it. - **Scheduler**: `runSheet()` groups a plan into days, passages (visits to the kitchen) and threads, with margins per passage; `findServeTimes()` and `earliestServe()` search serving times. The plan and the run sheet carry the mise en place mode they were made in (`recipes[].miseEnPlace`). - **Kitchen**: new `PASSIVE_OVERLAP_SAME_COOKWARE` info warning. - **Renderer**: work plan in text, Markdown, HTML and print HTML (`runSheetTo*`, `passageKit`, `sectionProgram`); recipe views no longer show a schedule; the Gantt chart is deprecated (removed in 2.0). - The program only points to the recipe: one line per section with its steps (`steps 1 to 3`, plus the source file for an import), no summary of actions, temperatures or timers. - What to take out follows the mise en place mode of the sheet. By section, each section carries its own things to take out right before its steps (cookware once, at the first section that uses it); per session, one block at the top of the visit with the quantities summed; upfront, everything raw at the first visit. A preparation is always listed at the visit of the first step that uses it. - **CLI**: `gram plan` works without a serving time; `--serve`, `--find`, `--meal-times`, `--with-sheet`; `.ics` export with one event per passage. - **Language server / VS Code**: `gram/runSheetUpdated` and a Work Plan panel; `gram.showGantt` and `gram/ganttUpdated` deprecated. - **Docs / playground**: work plan view and serving-time suggestions, ~24 pages en + fr, 1.4.0 release notes (date to adjust at publication). - **Deprecations** registered: `renderer-gantt`, `i18n-gantt-keys`, `lsp-gantt-notification`, `vscode-show-gantt`. Nothing deprecated for the program and kit fields: 1.4.0 is not out, so they changed in place. ## Not in this PR - Release steps (`version-packages`, `release`). - Visual check of the playground, the VS Code panel and the PDF output in a real browser/editor (the HTML view was checked headless in Chrome for the three modes). ## Test plan - [x] `bun test` (1759 tests) - [x] `bun run typecheck`, `bun run lint` - [x] `bun run conformance` (goldens only gain `miseEnPlace`) - [x] `bun run deprecations:check`, `bun run check-changesets` - [x] docs build (link validation, bundle budget 900 KB) - [ ] Open the playground and the VS Code Work Plan panel - [ ] Print a plan to PDF Work in progress: more changes are coming on this branch, do not merge yet.
docs: recommend [Action] prefixes for work plan step and thread naming
Some checks failed
CI / Build, Test & Publish (pull_request) Failing after 2m32s
0c08d43f38
fix(docs): prevent drawer header text overlapping reset button on mobile
All checks were successful
CI / Build, Test & Publish (pull_request) Successful in 3m20s
4e49cc1190
refactor(renderer): move the print styles into real css files
All checks were successful
CI / Build, Test & Publish (pull_request) Successful in 3m45s
ae5f63fa14
style(renderer): match the print work plan to the screen design
All checks were successful
CI / Build, Test & Publish (pull_request) Successful in 3m34s
d2614e8143
abiwab merged commit c653893ab0 into main 2026-11-05 09:49:02 +01:00
Sign in to join this conversation.
No description provided.