Repository navigation
Docs: change emphasis and the checks, a recipe for renderers - #217
Open
agorischek wants to merge 3 commits into
Open
agorischek wants to merge 3 commits into
agorischek wants to merge 3 commits into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…rer guides Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 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
…the pill's accessible name and layout Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
a2410e9b0598e4118838adfd23db89d48ce5d1a0comparison/status.ts,endpoints.ts),stepEmphasisandpresentedEmphasis(kitemphasis.ts), the stage's default highlighting (0 at both endpoints), andStatusTab'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-textandstable-layouttogether. 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'semphasis(row)entry, Develop a renderer and the docs index. The recipe:props.emphasis.presentedEmphasis(row, props.highlighting)outside the diff.StatusTabin every pill, never only in changed ones.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-workflowsandruntime-policy, the ones with side by side but no animated mode. The other seven useprops.emphasisalone. The repeated logic is one expression, and its cause is in the checks rather than the renderers:status-textpresents a side-by-side-only renderer's two panes as progress 0 and 1 with highlighting on.props.emphasis(which already treats a held pane as presented) gives a removal no emphasis at progress 0.panein that branch would let every renderer useprops.emphasisalone.So this PR doesn't propose a
useItemEmphasishook. That's reported to the coordinator, together with the check fix as the alternative; neither is built here.