Skip to content

Docs: change emphasis and the checks, a recipe for renderers - #217

Open
agorischek wants to merge 3 commits into
mainfrom
docs/emphasis-recipe
Open

agorischek wants to merge 3 commits into
mainfrom
docs/emphasis-recipe

Conversation

@agorischek

@agorischek agorischek commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: a2410e9b0598e4118838adfd23db89d48ce5d1a0

Dimension Assessment Rationale
Change confidence 8/10 ↑ Each rule traced to the code: the three checks (testing comparison/status.ts, endpoints.ts), stepEmphasis and presentedEmphasis (kit emphasis.ts), the stage's default highlighting (0 at both endpoints), and StatusTab's always-present room.
↑ It matches what three built-in renderers and the downstream user's renderers do.
↓ Docs only; the example isn't compiled.

Item 9 of a downstream user's (Superego) feedback, as decided for v0.3.1. They found by trial and error how emphasis has to work to pass neutral-endpoints, status-text and stable-layout together. A new page, Change emphasis and the checks, gives the rule (one emphasis per item, which everything that shows its change follows), what each check reads, a four-step recipe and an example. It's linked from the kit guide's emphasis(row) entry, Develop a renderer and the docs index. The recipe:

  1. Take the emphasis from props.emphasis.
  2. Without animated mode, use presentedEmphasis(row, props.highlighting) outside the diff.
  3. Show status only above 0.01, in room reserved for every item. Mount StatusTab in every pill, never only in changed ones.
  4. Let emphasis change paint, never boxes.

Survey of the built-in renderers. Three of the ten repeat the downstream renderer's logic, diff ? props.emphasis(row) : presentedEmphasis(row, props.highlighting): api, agentic-workflows and runtime-policy, the ones with side by side but no animated mode. The other seven use props.emphasis alone. The repeated logic is one expression, and its cause is in the checks rather than the renderers:

  • status-text presents a side-by-side-only renderer's two panes as progress 0 and 1 with highlighting on.
  • It doesn't tell the renderer that it holds a pane, as hosts do, so props.emphasis (which already treats a held pane as presented) gives a removal no emphasis at progress 0.
  • Passing pane in that branch would let every renderer use props.emphasis alone.

So this PR doesn't propose a useItemEmphasis hook. That's reported to the coordinator, together with the check fix as the alternative; neither is built here.

agorischek and others added 2 commits November 30, 2026 20:37
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…rer guides

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The guide overstates endpoint behavior and omits accessible change-status descriptions and layout requirements needed to prevent misplaced or overlapping status tabs.

3 open issues
What changed in this PR

This documentation-only PR explains how renderer authors can coordinate change emphasis to satisfy endpoint neutrality, status-text, and stable-layout checks. It does not change renderer or check behavior.

Changes:

  • Adds a four-step recipe and React example covering emphasis, status visibility, and stable geometry.
  • Explains the nonanimated comparison fallback and links the guide from existing renderer documentation.
File Description
docs/​README.md Adds the change-emphasis guide to the documentation index.
docs/​guides/​renderer-kit.md Links the emphasis(row) documentation to the recipe.
docs/​guides/​develop-a-renderer.md Connects the three renderer checks to the new guide.
docs/​guides/​change-emphasis.md Introduces the recipe, example, and targeted check command.

Review effort: Balanced

Comment thread docs/guides/change-emphasis.md Resolved
Comment thread docs/guides/change-emphasis.md Resolved
Comment thread docs/guides/change-emphasis.md Resolved
…the pill's accessible name and layout

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

2 participants