You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 43dc229
Browse filesBrowse the repository at this point in the historyBrowse files
docs(CommentPin): the record names the reflected states and FR13's basis
FR13 rests on spec:AST-017 FR2, which puts a private package such as Lab
outside the published compatibility promise. Like the other draft rows,
it waits for an owner's approval, and its verification row no longer
mentions deprecation metadata. FR14 names the states the comment-pin
target reflects: size, selected, and disabled, which every target
reflects, plus grouped and unread. Themes need those two because such pins
take the wider layout that holds the count or the dot.
Copy file name to clipboardExpand all lines: docs/specs/components/CommentPin/CommentPin.spec.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,7 @@ Consumer migration instructions belong in consumer docs and release notes.
102
102
descendants interactive.
103
103
- Showing the total represented thread count when that total is greater than
104
104
one, then an accent `StatusDot` whenever the unread count is above zero.
105
-
- The stable `comment-pin` theming target and state reflection.
105
+
- The stable `comment-pin` theming target and its reflected states (FR14).
106
106
107
107
**Does not own / non-goals**
108
108
@@ -155,7 +155,8 @@ intentional decision. A `current` contract contains no unresolved rows.
155
155
| FR10 | When `unreadCount` resolves above zero, the marker MUST show an accent `StatusDot` after the thread total, or after the participant on a single marker, and MUST NOT show the unread number; the dot MUST keep a visible forced-colors treatment and MUST remain decorative. | product direction | product direction; rendered visual review pending |
156
156
| FR11 |`size` MUST set the root height and minimum width to `--size-element-sm`, `--size-element-md`, or `--size-element-lg` and draw 22, 24, or 28px participant circles, and the reflected size MUST match. Padding MUST be equal on every side and equal to the inset that centers one participant circle in that height; a grouped marker MUST sit its first AvatarGroup ring inside the start padding, so participant circles keep that inset from the start edge. The trailing total or unread dot MUST add `--spacing-1` of end padding, so neither crowds the edge. | product visual direction | product direction; rendered visual review pending |
157
157
| FR12 | Activation by click, Enter, or Space on an enabled pin MUST run the caller's `onClick`, then call `onSelectedChange` once with the opposite of the current selection; without `isSelected`, the pin MUST also take that selection. A disabled pin MUST do neither. | product direction | candidate implementation |
158
-
| FR13 | The `@astryxdesign/lab``CommentPin` and `CommentPinProps` exports re-export the Core ones, so a Lab import renders the Core component and takes the Core props. |`spec:AST-017` FR29, FR29a | settled |
158
+
| FR13 | The `@astryxdesign/lab``CommentPin` and `CommentPinProps` exports re-export the Core ones, so a Lab import renders the Core component and takes the Core props. |`spec:AST-017` FR2 | pending owner approval |
159
+
| FR14 | The `comment-pin` target MUST reflect `size`, `selected`, and `disabled`, which `architecture:component-theming-surface` INV6 has every target reflect, plus `grouped` while the pin stands for more than one thread and `unread` while `unreadCount` resolves above zero. Themes need `grouped` and `unread` because those pins take the wider layout that holds the count or the dot; the dot itself stays `component:StatusDot`'s target. |`architecture:public-component-api` DEC-2 | pending owner approval |
159
160
160
161
### Allowed variation
161
162
@@ -312,9 +313,9 @@ durable constraints and their verification target.
| FR1–FR4, FR10, FR11, PR1, AR1, AR3 |`CommentPin.test.tsx` plus the Storybook size matrix | single, grouped within three, grouped overflow, unread single and grouped, invalid unread, duplicate identities, empty participants, each size | extra anatomy, more than three circles, a numeric overflow, an unread number or a missing unread dot, ordinal identity, lost count, a size whose circles or reflected value disagree, or interactive/avatar semantics fail focused assertions |`audit:CommentPin/behavior`|
314
315
| FR5, FR8, FR9, FR12, AR2, AR5, AR7 | focused tests plus Storybook state matrix, placement example, and docsite showcase | selected, selected+focused, uncontrolled and controlled selection, a focused selected pin deselected by activation, forced colors, disabled, LTR/RTL silhouette and placement | missing state reflection, a selection that ignores `isSelected` or does not flip without it, a pin that unmounts or loses focus on deselection, merged selection/focus cues, or centered/non-mirroring placement fails semantic/source assertions or rendered review |`audit:CommentPin/states`|
315
-
| FR6| focused passthrough, ref, stable-target, and state-reflection tests | custom DOM/style inputs and every state | dropped inputs/ref or overwritten component-owned semantics fail focused assertions |`audit:CommentPin/api-theming`|
316
+
| FR6, FR14| focused passthrough, ref, stable-target, and state-reflection tests | custom DOM/style inputs and every state | dropped inputs/ref or overwritten component-owned semantics fail focused assertions |`audit:CommentPin/api-theming`|
| FR13 | Lab `index.test.ts` identity and props-type cases | Lab imports | A Lab export that is not the Core export, or one without the deprecation metadata, fails.|`audit:CommentPin/api-theming`|
318
+
| FR13 | Lab `index.test.ts` identity and props-type cases | Lab imports | A Lab export that is not the Core export fails. |`audit:CommentPin/api-theming`|
318
319
| Documentation and surface | component docs, block metadata, root export, Storybook, and knowledge check | public examples and component discovery | missing or stale discoverability, syntax, boundaries, or relationships fail repository checks |`audit:CommentPin/docs`|
0 commit comments