ZDDC/browse/css
ZDDC 2c877bd5b7 feat(browse): schema completion in the front-matter editor (keys + enum values)
Vendor CodeMirror's show-hint add-on and wire deterministic, schema-driven
completion into the markdown front-matter pane — NO heuristics, no AI; every
candidate comes from the converter's own field list.

- Vendor codemirror-show-hint.min.{js,css} (CM 5.65.x add-on); concat in
  browse/build.sh after the core CM bundle so it extends window.CodeMirror.
- Server: add a structured `values` enum to convert.FrontMatterField (doctype →
  report/letter/specification, numbering → true/false), exposed via the existing
  /.api/frontmatter JSON. Tracks the template set; keeps the server as the
  single source of truth instead of parsing the hint prose.
- Client: frontMatterHints() completes recognised KEYS at line start (excluding
  the filename-driven identity keys and keys already present) and enum VALUES
  after `key:`. Picking an enum key auto-opens its value list. Triggered on
  Ctrl-Space and automatically as you type (completeSingle:false — always a
  menu, never an auto-guess). Themed dropdown for dark mode.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-08 09:09:37 -05:00
..
base.css refactor(browse): drop status-bar footer, route messages to toasts 2026-05-21 12:19:40 -05:00
history.css feat(browse): markdown version-history viewer with diff + restore 2026-05-28 12:49:00 -05:00
preview-yaml.css fix(browse,server): sync .zddc lint keys, viewable schema pill, accurate virtual-source text 2026-06-07 11:00:02 -05:00
tree.css feat(browse): schema completion in the front-matter editor (keys + enum values) 2026-06-08 09:09:37 -05:00