refactor: make kitchen own the schedule mode (audit B8) #61

Merged
abiwab merged 6 commits from refactor/audit-b8 into main 2026-09-30 17:54:39 +02:00
Owner

Audit B8. ScheduleMode lived in renderer though cli, language-server and the playground depend on it, its default was defined five times and 'pick the timeline, read total/idle' was repeated.

  • kitchen: new ScheduleMode, SCHEDULE_MODES, DEFAULT_SCHEDULE_MODE, isScheduleMode, scheduleFor; CompilationResult.schedules is now Record<ScheduleMode, Schedule> (same shape)
  • renderer: ScheduleMode still exported from the same path (re-export); html/markdown/print read total+idle through one scheduleTimes helper, keeping the current fallback on the deprecated metrics
  • cli, analyzer, language-server, playground: default and validation come from kitchen; cli's own scheduleOf and the 'perSection' literals are gone
  • docs: Vue props import the type (forced docs build passes)

No behaviour change: same HTML/Markdown snapshots, ci, conformance 98/98. Deliberately not touched: the inconsistent fallback for data without schedules (audit B5), still to decide. Kitchen changeset extended (new public exports).

Audit B8. `ScheduleMode` lived in renderer though cli, language-server and the playground depend on it, its default was defined five times and 'pick the timeline, read total/idle' was repeated. - kitchen: new `ScheduleMode`, `SCHEDULE_MODES`, `DEFAULT_SCHEDULE_MODE`, `isScheduleMode`, `scheduleFor`; `CompilationResult.schedules` is now `Record<ScheduleMode, Schedule>` (same shape) - renderer: `ScheduleMode` still exported from the same path (re-export); html/markdown/print read total+idle through one `scheduleTimes` helper, keeping the current fallback on the deprecated metrics - cli, analyzer, language-server, playground: default and validation come from kitchen; cli's own `scheduleOf` and the 'perSection' literals are gone - docs: Vue props import the type (forced docs build passes) No behaviour change: same HTML/Markdown snapshots, ci, conformance 98/98. Deliberately not touched: the inconsistent fallback for data without `schedules` (audit B5), still to decide. Kitchen changeset extended (new public exports).
abiwab merged commit 3c8e8899d5 into main 2026-09-30 17:54:39 +02:00
abiwab deleted branch refactor/audit-b8 2026-09-30 17:54:39 +02:00
Sign in to join this conversation.
No description provided.