fix(views): what the throwaway view revealed (views phase 6) #105

Merged
abiwab merged 2 commits from fix/views-p6-findings into feat/views-architecture 2026-11-05 23:20:08 +01:00
Owner

Phase 6 of the views plan: a throwaway ingredients view (html only, honors comments) added by following the renderer's "Adding a view" checklist to the letter, on a scratch branch never merged. The contract test, the LSP, the VS Code panel and the playground took it with no edit. What still forced an edit elsewhere is fixed here.

  • Surface tests read the views from the registry instead of listing them: renderer registry, LSP views protocol, playground tabs (which now also checks every output is named in en and fr).
  • Every view offers html (the editor's panel and the playground show it): a rule in CONTRIBUTING.md and a test.
  • gram export and gram print take their setting flags from the honors of the registry's views (EXPORT_VIEW_SETTINGS), not a hand-written list.
  • A view with none of the formats a command writes gets a clear message instead of "Expected one of: .". An html-only view stays on screen only, by design, rather than exporting a bare fragment.
  • Help texts of export, print and --comments no longer name the recipe and the work plan.
  • The checklist gains a step: docs en/fr and a changeset for a new view.

Replaying the throwaway view on top: build, typecheck and 2183 tests pass, with no edit outside the checklist. Without it: build, typecheck, test (2160), lint, conformance green. No changeset: nothing changes for users beyond three help sentences.

Phase 6 of the views plan: a throwaway `ingredients` view (html only, honors `comments`) added by following the renderer's "Adding a view" checklist to the letter, on a scratch branch never merged. The contract test, the LSP, the VS Code panel and the playground took it with no edit. What still forced an edit elsewhere is fixed here. - Surface tests read the views from the registry instead of listing them: renderer registry, LSP views protocol, playground tabs (which now also checks every output is named in en and fr). - Every view offers `html` (the editor's panel and the playground show it): a rule in `CONTRIBUTING.md` and a test. - `gram export` and `gram print` take their setting flags from the `honors` of the registry's views (`EXPORT_VIEW_SETTINGS`), not a hand-written list. - A view with none of the formats a command writes gets a clear message instead of "Expected one of: .". An html-only view stays on screen only, by design, rather than exporting a bare fragment. - Help texts of `export`, `print` and `--comments` no longer name the recipe and the work plan. - The checklist gains a step: docs en/fr and a changeset for a new view. Replaying the throwaway view on top: build, typecheck and 2183 tests pass, with no edit outside the checklist. Without it: build, typecheck, test (2160), lint, conformance green. No changeset: nothing changes for users beyond three help sentences.
abiwab merged commit 95cc2b9a0b into feat/views-architecture 2026-11-05 23:20:08 +01:00
Sign in to join this conversation.
No description provided.