Repository navigation
Kit: add tones, quiet and flag, for domain meaning that isn't a change - #222
Open
agorischek wants to merge 3 commits into
Open
agorischek wants to merge 3 commits into
agorischek wants to merge 3 commits into
Conversation
A tone says how much an item asks for attention apart from its change: quiet mutes a lesser item's text, flag sets a domain flag's text semibold in the full foreground. Neither uses a change hue, a dash or opacity. Text and DataTable rows take a tone; toneAttributes sets data-projections-tone on anything else. A table cell carries each version's tone, so its reserved width holds. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
A flagged removed row's text stayed in the full foreground, over the removed item's muted color. A flag is now weight only, so change marking wins. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the opt-in renderer tone support.
No open issues 🎉
What changed in this PR
Adds opt-in tones to the renderer kit so renderers can express domain meaning separately from revision changes: quiet mutes text, while flag adds semibold emphasis.
Changes:
- Introduces
Tone,tones, andtoneAttributes, with neutral CSS styling. - Adds tone support to
TextandDataTable, preserving each version’s tone in table width reservations. - Adds focused tests and documents the tone API and usage.
| File | Description |
|---|---|
packages/renderers/kit/test/tone.test.mjs |
Tests attributes, components, per-version tones, and neutral CSS. |
packages/renderers/kit/styles/text.css |
Styles quiet and flagged text, including quiet SVG text. |
packages/renderers/kit/src/tone.ts |
Defines tone types, values, and the attribute helper. |
packages/renderers/kit/src/react/layout-components.tsx |
Extends Text with quiet and flag tones. |
packages/renderers/kit/src/react/data-table.tsx |
Adds a per-item tone callback. |
packages/renderers/kit/src/react/data-table-row.tsx |
Applies tones to displayed and width-reserving cell versions. |
packages/renderers/kit/src/index.ts |
Exports the tone API. |
docs/reference/renderer-kit.md |
Updates API references for tones and component props. |
docs/guides/renderer-kit-components.md |
Explains tone semantics and component usage. |
Review effort: Balanced
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:
b5a02155d44fbb33607ecca114923e68d9093f48↑ Kit tests cover the attribute, Text, per-version table cells, and that tone CSS uses only neutral tokens.
↑ Static preview of Text and a diff DataTable checked in light and dark (below).
↓ No harness scenario uses a tone yet.
Superego feedback items 19 and 24: one kit
tonedesign.Toneisdefault | quiet | flag.quietmutes a lesser item's text (a tool that only reads, a cost known in part).flagis a neutral accent for a domain flag that isn't a change: semibold, in the color the text already has (so a removed row's muted text stays muted).Texttakestone="quiet" | "flag"(beside the existingmutedandsubtle).DataTabletakestone={item => …}from the version a row shows.toneAttributes(tone)setsdata-projections-toneon any other HTML element or SVG text. Chips get it when they land (item 15).