Skip to content

Feature: editable report lines with chip editor and inspector help - #63

Merged
theUpsider merged 1 commit into
mainfrom
dev
Sep 25, 2026
Merged

theUpsider merged 1 commit into
mainfrom
dev

Conversation

@theUpsider

Copy link
Copy Markdown
Contributor

Summary

Follow-up to the workshop result cards: how a report line is drawn is no longer a fixed key list in the card but a property of the output node, and the inspector gets a visual editor and help for it.

  • Report lines map (roles, KEY=role, …) on the output node decides whether a KEY: value line is the headline chip, a quotation, body text, a callout box, or hidden. The default covers the bundled prompts' keys; a saved statusKey still names the headline. Keys may use any letter, so a German prompt's BEGRÜNDUNG: works.
  • Chip editor in the inspector for report lines and the tone map: one group per role or colour, keys as removable chips, a field that adds a key on Enter. The property keeps its KEY=value text form, so hand-typed and chip-edited maps are the same thing.
  • Help dialogs: a "?" beside the node title and beside Display, Shown to, Report lines and Tone map opens a short explanation of what to enter and what the model must print.
  • Water-cycle criterion cards hide the CRITERION line that repeats their own label.

Verification

  • Backend jest 569, frontend vitest 229, yarn typecheck, yarn lint:check, yarn lint:specs green.
  • Chip editor, help dialogs and adding a German key checked by hand in the browser against the debug stack.

🤖 Generated with Claude Code

… help

The role a report line plays (headline chip, quotation, body, callout, hidden)
was a fixed English key list in the card. It is now the output node's "Report
lines" map, `KEY=role, …`, with the bundled prompts' keys as the default and
the pre-roles headline key still honoured. Keys may use any letter, so a German
prompt's BEGRÜNDUNG works, and the water-cycle criterion cards hide the line
that repeats their own label.

The inspector edits such maps — report lines and the tone map — as chips
grouped by role or colour, with a field that adds a key on Enter, and shows a
"?" beside the node title and beside a control that opens a short explanation.
Node definitions carry the help text.

SPEC-0007 FR-004, SPEC-0005 FR-006.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@theUpsider
theUpsider merged commit c4b57c0 into main Sep 25, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant