Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
20fb61c to
5ee7172
Compare
|
Lab's No review has run on this pull request yet; this is its first new head since it opened. |
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the draft component:CommentPin record, and four fixes can land now.
- FR13 still lists
spec:AST-017FR29 and FR29a as its source with status "settled" (docs/specs/components/CommentPin/CommentPin.spec.md:158), but those clauses only govern how a deprecation is marked and state no re-export, so give FR13 a source that states it (such as FR2, Lab is outside the compatibility promise) and a pending status until an owner approves it. - FR13's verification row still says a Lab export "without the deprecation metadata" fails (
CommentPin.spec.md:317), but the Lab exports carry no@deprecatedtag andindex.test.tschecks only identity and the props type, so drop that clause. CommentUser(packages/core/src/CommentPin/index.ts:17and the package root) is outside this pull request's scope (CommentPin, Comments): sinceCommentPinPropsnames it and it cannot split, addCommentUserto the ScopeComponents:line so the owner decision covers it.data-unread(packages/core/src/CommentPin/CommentPin.tsx:525) is new Core public surface underarchitecture:public-component-apiDEC-2: name the reflectedunreadstate, and why themes need it, in a current record, or stop reflecting it.
The record's requirements, FR13 and the Stable rows included, need an engineering owner's approval before they govern a stable Core API while OQ1–OQ3 stay open. An engineering owner records that decision by commenting /approve-spec with the full head SHA; the author may do so if they are an engineering owner. Separately and non-blocking: both blocks put aria-label on a div with no role, and the showcase loads third-party avatar and photo URLs that product teams would copy.
Claims and files checked
Review mode: full; reason: author-not-engowner
Claims
- CommentPin moves to Core with the same props, defaults, behavior and theming target: verified (the component diff changes only imports, the person type's location and comment wording).
- The source, tests and docs move to Core's CommentPin folder under Core's lint and comment rules: verified for the move (comment record references removed, the Lab provenance-baseline entry dropped); lint not re-run.
CommentUsermoves with it, exported from the CommentPin entry point and the package root, and Lab's Comments family takes it from Core: verified (Core CommentPin index, Core index, Comments types).- Lab's
CommentPinandCommentPinPropsare plain re-exports with no deprecation marker, and the record schedules no removal: verified for the code and FR13; the FR13 verification row still names deprecation metadata (finding). - A test checks that the Lab component and props type are the Core ones: verified (Lab index test; the type case runs under Lab's type check).
- The stories move to Core, the blocks to the CLI's component blocks, the registry keeps the Lab route as an alias, the probe theme covers the new target, and the sandbox routes name the two block pages: verified.
- FR13 says the Lab exports re-export Core's, and verification and paths now point at Core: partly false (FR13's source column and its verification row still describe the deprecation version).
- FR29 and FR29a govern a later deprecation only if an owner decides one: verified.
- The new Core exports add no prop, default, behavior or theming change: verified.
CommentUsermoves now because CommentPin's props name it and Core cannot import Lab: verified.- The move follows the InfoTip graduation's shape (Core folder, changesets, Lab re-export, registry alias): verified, except that InfoTip's Lab export is deprecated.
- The plain re-export matches the DiffViewer and SelectableCardGroup moves: verified against those two open pull requests.
- Joining the size cascade is the component's own opt-in (OQ2): verified (size-cascade INV2).
- Writing rubric R1 to R7 for the record edit: verified.
- The moved tooltip test carries main's pointer-move change: verified.
- Renders are pixel-identical, and tests, type checks, lint and pre-review checks pass: unverified (no toolchain could be installed for this review).
- The CLI changeset:
astryx templatelists both CommentPin blocks among Core's component blocks: verified (block docs in the CLI's component blocks, in its doc format). - The Core changeset's description of the pin (lead participant, up to three circles and the total, unread dot, three sizes, controlled or uncontrolled selection): verified (component source).
Files
.changeset/commentpin-core-blocks.md: clear.changeset/promote-commentpin-to-core.md: clearapps/sandbox/scripts/next-export-routes.json: clearapps/storybook/rtl-audit/verified-not-applicable.json: clearapps/storybook/stories/CommentPin.stories.tsx: cleardocs/specs/components/CommentPin/CommentPin.spec.md: FR13 source and verification row; draft record needs owner approvalinternal/eslint-plugin-astryx/no-comment-provenance.baseline.json: clearinternal/shadcn-registry/routes.lock.json: clearpackages/cli/assets/templates/blocks/components/CommentPin/CommentPinInMargin.doc.mjs: clearpackages/cli/assets/templates/blocks/components/CommentPin/CommentPinInMargin.tsx: labelled role-less div (non-blocking)packages/cli/assets/templates/blocks/components/CommentPin/CommentPinShowcase.doc.mjs: clearpackages/cli/assets/templates/blocks/components/CommentPin/CommentPinShowcase.tsx: third-party images, raw layout, custom CSS and a labelled role-less div (non-blocking)packages/cli/test/swizzle-proof/samples.mjs: clearpackages/core/package.json: clearpackages/core/src/CommentPin/CommentPin.doc.mjs: clearpackages/core/src/CommentPin/CommentPin.test.tsx: clearpackages/core/src/CommentPin/CommentPin.tsx:data-unreadpackages/core/src/CommentPin/index.ts:CommentUserscopepackages/core/src/__tests__/hostDataAttributes.test.tsx: clearpackages/core/src/index.ts: clearpackages/lab/src/CommentPin/index.test.ts: clearpackages/lab/src/CommentPin/index.ts: clearpackages/lab/src/Comments/types.ts: clearpackages/themes/probe/src/probeTheme.ts: clear
|
All four fixes are in a new commit on this branch:
The fixes are a second commit, not an amend, so the pull requests stacked on this branch keep their heads. Their diffs are unchanged, since none of them touches the record. |
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the draft component:CommentPin record, and three fixes are needed.
The decision covers the record's requirements (FR13, FR14 and the Stable column included), whether CommentPin graduates while OQ1–OQ3 stay open, and whether isSelected/onSelectedChange fits beside ToggleButton's isPressed/onPressedChange for this aria-pressed toggle. An engineering owner records it by commenting /approve-spec <full head SHA> on this pull request; the author may do so if they are an engineering owner.
- Miss:
CommentPinShowcasebecomes a newastryx templateblock that grades 57/100 on the template rubric, under the 75 a new template needs (five raw HTML tags, 42 custom style properties, absolutei.pravatar.ccandimages.unsplash.comimage URLs, 182 lines and a@stylexjs/styleximport). - Miss:
CommentPinInMarginbecomes a newastryx templateblock that grades 74/100, one point under that floor (two raw<div>s, 13 custom style properties, a@stylexjs/styleximport and no synonyms in its description), so usingGridfor the document row and adding synonyms would clear it. - Miss: the Testing section's "main's one change to a file it touches" is inaccurate, because main also changed the sandbox route list, the registry route lock and the comment-provenance baseline that this pull request edits, so please name them too.
Non-blocking: both blocks put aria-label on a div with no role, and the CommentPin.tsx header still runs 21 lines.
Claims and files checked
Review mode: full; reason: recipe-changed (many rules)
Claims (title: "feat(core): CommentPin moves to Core")
- The title says CommentPin moves to Core: verified (new Core folder, entry point and root export).
- CommentPin moves unchanged, with the same props, defaults, behavior and theming target: verified (the whole component diff changes only imports, where the person type is declared, comments and one equivalent type spelling; the same test file passes; six frames are identical).
- Source, tests and docs move into Core's CommentPin folder, under Core's strict lint and comment rules: verified (strict eslint on the moved files reports nothing; the Lab provenance-baseline entry is removed).
CommentUsermoves with it, is exported from the CommentPin entry point and the package root, and Lab's Comments family takes it from Core: verified (Core entry and barrel;Comments/types.tsimports and re-exports it).- Lab's
CommentPinandCommentPinPropsare plain re-exports with no deprecation marker and no scheduled removal, and a test checks the component and its props type: verified (the Lab index test's identity case passes here, and its type case compiles under Lab's typecheck). - The story moves to Core: verified (the title is now Core/CommentPin).
- The blocks move to the CLI's component blocks: verified (
astryx template --listshows both at the head and neither at the base). - The registry keeps the Lab route as an alias: verified (route lock and doc alias).
- The probe theme covers the new target: verified (the probe check reports current).
- The sandbox route list names both block pages: verified (the route-manifest test passes).
- FR13 rests on the compatibility record's private-package clause and waits for approval; FR14 names the reflected states and why; verification and paths point at Core: verified in the record.
- The compatibility record makes the promotion additive, and its deprecation clauses govern only a later deprecation: verified.
- A reflected data attribute is public surface that a record names, as FR14 does: verified, though FR14 is still draft.
- New Core exports
CommentPin,CommentPinPropsandCommentUser: verified (the API generator lists only added Core rows). - No prop, default, behavior or theming change, and Lab imports keep working: verified (same props and defaults; target class and states unchanged; no published theme styles the target).
CommentUsermoves now because CommentPin's props name it and Core cannot import Lab: verified.- The move follows the InfoTip graduation's shape (Core folder, changesets, Lab re-export, registry alias): verified; InfoTip's Lab export is also deprecated.
- The plain re-export matches the DiffViewer and SelectableCardGroup moves: verified against those two pull requests' Lab entries.
- Joining the size cascade is the component's own opt-in: verified (the size-cascade record's explicit-participation invariant).
- Writing rubric R1–R7 for the record: reported.
- The renders are pixel-identical: reported, and reproduced locally for six frames.
- Tests, type checks, lint and pre-review checks pass: reported. Reproduced locally: the focused tests (238), the probe, route and swizzle-sample tests, strict lint on the moved files, Lab's typecheck, the knowledge check and the changeset check. Core's typecheck, the full node project and the pre-review checklist were not run.
- This head changes only the record: verified.
- Main's one change to a file this pull request touches is the tooltip test's pointer-move line: false (main also changed three generated files this pull request edits).
- Public text carries no internal context: verified.
- CLI changeset:
astryx templatelists both CommentPin blocks among Core's component blocks: verified (run here). - Core changeset's description of the pin (lead participant, up to three circles and the total, accent unread dot, three sizes, kept or host-controlled selection): verified against the focused tests for each case.
Files
.changeset/commentpin-core-blocks.md: clear.changeset/promote-commentpin-to-core.md: clearapps/sandbox/scripts/next-export-routes.json: clearapps/storybook/rtl-audit/verified-not-applicable.json: clearapps/storybook/stories/CommentPin.stories.tsx: cleardocs/specs/components/CommentPin/CommentPin.spec.md: draft record needs an engineering owner's decisioninternal/eslint-plugin-astryx/no-comment-provenance.baseline.json: clearinternal/shadcn-registry/routes.lock.json: clearpackages/cli/assets/templates/blocks/components/CommentPin/CommentPinInMargin.doc.mjs: description lacks synonyms (part of the 74 grade)packages/cli/assets/templates/blocks/components/CommentPin/CommentPinInMargin.tsx: new template graded 74, under 75packages/cli/assets/templates/blocks/components/CommentPin/CommentPinShowcase.doc.mjs: description lacks synonyms (part of the 57 grade)packages/cli/assets/templates/blocks/components/CommentPin/CommentPinShowcase.tsx: new template graded 57, under 75packages/cli/test/swizzle-proof/samples.mjs: clearpackages/core/package.json: clearpackages/core/src/CommentPin/CommentPin.doc.mjs: clearpackages/core/src/CommentPin/CommentPin.test.tsx: clearpackages/core/src/CommentPin/CommentPin.tsx: 21-line file header (non-blocking)packages/core/src/CommentPin/index.ts: clearpackages/core/src/__tests__/hostDataAttributes.test.tsx: clearpackages/core/src/index.ts: clearpackages/lab/src/CommentPin/index.test.ts: clearpackages/lab/src/CommentPin/index.ts: clearpackages/lab/src/Comments/types.ts: clearpackages/themes/probe/src/probeTheme.ts: clear
c4542db to
d45a025
Compare
CommentPin and `CommentUser`, the person record its participants share with the Comments family, move from Lab to Core, imported from `@astryxdesign/core/CommentPin` or the package root. The component keeps its props, defaults, and behavior. The Lab exports re-export the Core ones, with no deprecation marker: no owner decision deprecates them yet. Lab's Comments family takes `CommentUser` from Core. The Storybook stories move to Core/CommentPin, the blocks move to the CLI's component blocks, and the ShadCN registry keeps the Lab route as an alias. The probe theme covers the new target, and the sandbox route list names the two new block pages. The `component:CommentPin` record stays a draft for an engineering owner's approval.
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.
43dc229 to
d0165a7
Compare
|
Rebased onto Repeated on this head: 332 tests passed (Core and Lab CommentPin, Lab Comments, |
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the draft component:CommentPin record, and two template fixes are needed.
The decision covers the record's requirements (FR13, FR14 with the new data-unread reflection, and the Stable column included), whether CommentPin graduates while OQ1–OQ3 stay open, and whether isSelected/onSelectedChange fits beside ToggleButton's isPressed/onPressedChange for this aria-pressed toggle. An engineering owner records it by commenting /approve-spec <full head SHA> on this pull request; the author may do so if they are an engineering owner.
CommentPinShowcasebecomes a newastryx templateblock that grades 57/100 on the template rubric, under the 75 a new template needs (five raw HTML tags, 42 custom style properties, absolutei.pravatar.ccandimages.unsplash.comimage URLs, 182 lines and a@stylexjs/styleximport).CommentPinInMarginbecomes a newastryx templateblock that grades 74/100, one point under that floor (two raw<div>s, 13 custom style properties, a@stylexjs/styleximport and no synonyms in its description), so usingGridfor the document row and adding synonyms would clear it.
Non-blocking: both blocks put aria-label on a div with no role, and the CommentPin.tsx header still runs 21 lines. The rendering is unchanged: seven state, size and placement frames are pixel-identical between Lab and Core, reproduced locally.
Claims and files checked
Review mode: full; reason: author-not-engowner
Claims (title: "feat(core): CommentPin moves to Core")
- The title says CommentPin moves to Core: verified (new Core folder, entry point and root export).
- The pull request is stacked on the API-pass pull request, whose branch is its base: verified.
- Lab is private, so products cannot install the pin from it: verified (Lab's package manifest is private).
- The API-pass pull request settled the pin's API and nothing is left to change before graduating: reported (a statement about another pull request; the record that would settle the API is still draft).
- CommentPin moves unchanged, with the same props, defaults, behavior and theming target: verified (the component diff changes only imports, where the person type is declared, comments and one equivalent type spelling; the target name is unchanged; the same tests pass; seven frames are identical).
- Source, tests and docs move into Core's CommentPin folder under Core's strict lint and comment rules: verified (strict lint on the moved files reports nothing; the Lab comment-provenance baseline entry is removed).
CommentUsermoves with it, is exported from the CommentPin entry point and the package root, and Lab's Comments family takes it from Core so the two keep one shape: verified (Core entry and barrel; Comments types import and re-export it; no other declaration remains).- Lab's
CommentPinandCommentPinPropsare plain re-exports with no deprecation marker and no scheduled removal, and a test checks the component and its props type: verified (the identity case passes here, and the type case compiles under Lab's typecheck). - The stories move to Core: verified (the story title and Storybook ids are now Core's).
- The two blocks move to the CLI's component blocks: verified (the template list shows both at the head and neither at the base).
- The ShadCN registry keeps the Lab route as an alias: verified (route lock and doc alias).
- The probe theme covers the new target: verified (the probe check passes here).
- The sandbox route list names both new block pages: verified (the route-manifest test passes here).
- FR13 rests on the compatibility record's private-package clause and waits for approval; FR14 names the reflected states, grouped and unread included, and why; verification and paths point at Core: verified in the record.
- The compatibility record makes the promotion additive, and its deprecation clauses govern only a later deprecation: verified.
- A reflected data attribute is public surface that a record names, as FR14 does: verified, though FR14 is still draft.
- New Core exports are
CommentPin,CommentPinPropsandCommentUserfrom the CommentPin entry point and the root: verified (the API generator lists only added Core rows). - Lab imports keep working with no deprecation marker, and there is no prop, default, behavior or theming change: verified.
- The only caller decision is the import path: verified.
- The move follows the InfoTip graduation's shape (Core folder, changesets, Lab re-export, registry alias): verified; InfoTip's Lab export is deprecated, unlike this one.
CommentUsermoves now because CommentPin's props name it and a Core type cannot import Lab: verified.- The renders are pixel-identical between Lab and Core: reported, and reproduced locally for seven frames.
- Writing rubric R1–R7 for the record: reported.
- Joining the size cascade is the component's own opt-in: verified (the size-cascade record's explicit-participation invariant).
- The plain re-export matches the DiffViewer and SelectableCardGroup moves: verified against those two open pull requests' Lab entries.
- The scope checklist items, including no internal context in public text: verified (no internal context found in the added lines, commits, title or description).
- The branch was rebased onto main with no change to either commit's own diff: verified (identical patch IDs overall and per commit).
- Tests, type checks, lint and pre-review checks pass on this head: reported. Reproduced locally: the focused tests (332), the probe, route and swizzle-sample tests, strict lint on both CommentPin folders, Core's typecheck, Lab's source typecheck, the knowledge check and the changeset check. Lab's docs typecheck, the full node project and the pre-review checklist were not run.
- CLI changeset:
astryx templatelists both CommentPin blocks among Core's component blocks: verified (run here). - Core changeset's description of the pin (lead participant, up to three circles and the total, accent unread dot, three element sizes, kept or host-controlled selection, host-owned anchors): verified against the focused tests and the size styles for each case.
Files
.changeset/commentpin-core-blocks.md: clear.changeset/promote-commentpin-to-core.md: clearapps/sandbox/scripts/next-export-routes.json: clearapps/storybook/rtl-audit/verified-not-applicable.json: clearapps/storybook/stories/CommentPin.stories.tsx: cleardocs/specs/components/CommentPin/CommentPin.spec.md: draft record needs an engineering owner's decisioninternal/eslint-plugin-astryx/no-comment-provenance.baseline.json: clearinternal/shadcn-registry/routes.lock.json: clearpackages/cli/assets/templates/blocks/components/CommentPin/CommentPinInMargin.doc.mjs: description lacks synonyms (part of the 74 grade)packages/cli/assets/templates/blocks/components/CommentPin/CommentPinInMargin.tsx: new template graded 74, under 75packages/cli/assets/templates/blocks/components/CommentPin/CommentPinShowcase.doc.mjs: description lacks synonyms (part of the 57 grade)packages/cli/assets/templates/blocks/components/CommentPin/CommentPinShowcase.tsx: new template graded 57, under 75packages/cli/test/swizzle-proof/samples.mjs: clearpackages/core/package.json: clearpackages/core/src/CommentPin/CommentPin.doc.mjs: clearpackages/core/src/CommentPin/CommentPin.test.tsx: clearpackages/core/src/CommentPin/CommentPin.tsx: 21-line file header (non-blocking)packages/core/src/CommentPin/index.ts: clearpackages/core/src/__tests__/hostDataAttributes.test.tsx: clearpackages/core/src/index.ts: clearpackages/lab/src/CommentPin/index.test.ts: clearpackages/lab/src/CommentPin/index.ts: clearpackages/lab/src/Comments/types.ts: clearpackages/themes/probe/src/probeTheme.ts: clear
… and template assets As CLI component blocks, CommentPinShowcase and CommentPinInMargin are graded by the template rubric. The showcase used raw HTML, about forty custom style properties, and third-party image URLs; the margin block used raw divs and a StyleX stylesheet. The showcase now shows two pins over an image in a Card: AspectRatio sizes the image from /template-assets, and each pin takes the documented bottom-start placement from one small helper. The margin block puts the pin in a Stack row beside the passage it annotates, with no custom styles. Both descriptions name the pattern's other names. CommentPin's file header is shorter.
|
Both template fixes are in one new commit on this branch:
Graded against the template rubric 1.4's counting rules, the showcase scores 90 (its one deduction is the five declarations the placement needs) and the margin block scores 100. The description has real-Chromium captures: each pin's bottom-start corner lands on its anchor, the selection behaves as described, and the margin pin keeps its focus ring inside the card. The two optional notes are handled too: the On this head: 332 tests pass (Core and Lab CommentPin, Lab Comments, The commit sits on top of the old head, so #13736–#13739 keep their heads and approvals. |
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the draft component:CommentPin record, and one description fix is needed.
The decision covers the record's requirements (FR13, FR14 with the new data-unread reflection, and the Stable column), whether CommentPin graduates while OQ1–OQ3 stay open, and whether isSelected/onSelectedChange fits beside ToggleButton's isPressed/onPressedChange for this aria-pressed toggle. An engineering owner records it by commenting /approve-spec <full head SHA> on this pull request; the author may do so if they are an engineering owner.
- The description's Evidence section says "The margin pin keeps its focus ring and tooltip inside the card.", but the margin block's tooltip runs about 80 px past the card edge (reproduced locally, and visible in your own focus capture), so say that only the focus ring stays inside.
Both blocks now clear the template bar, and their placement (in both text directions), selection and keyboard behavior, like the pin's unchanged rendering, match the description, reproduced locally.
Claims and files checked
Review mode: full; reason: author-not-engowner
Claims
- Title: CommentPin moves to Core: verified (new Core folder, entry point and root export).
- The pull request is stacked on the API-pass pull request, whose branch is its base: verified.
- Lab is private, so products cannot install the pin from it: verified (Lab's package manifest is private).
- The API-pass pull request settled the pin's API and nothing is left to change before graduating: reported (a statement about another pull request; the record that would settle the API is still draft).
- CommentPin moves unchanged, with the same props, defaults, behavior and theming target, under Core's strict lint and comment rules: verified (the component diff changes only imports, where the person type is declared, comments and one equivalent type spelling; the target name is unchanged; the focused tests pass; two story frames are identical; strict lint is clean).
CommentUsermoves with it, is exported from the CommentPin entry point and the package root, and Lab's Comments family takes it from Core: verified (Core entry and barrel; Comments types import and re-export it; no other declaration remains).- Lab's
CommentPinandCommentPinPropsare plain re-exports with no deprecation marker and no scheduled removal, and a test checks the component and its props type: verified (the identity case passes here and the type case compiles under Lab's typecheck). - The stories move to Core: verified (the story title and Storybook ids are now Core's).
- The two blocks move to the CLI's component blocks: verified (the template list shows both at the head and neither at the base).
- The ShadCN registry keeps the Lab route as an alias: verified (route lock and doc alias).
- The probe theme covers the new target: verified (the probe check passes here).
- The sandbox route list names both new block pages: verified (the route-manifest test passes here).
- As CLI blocks, both meet the template rubric: verified (both clear the 75 floor).
- The showcase shows two pins over a template-asset image in a Card, AspectRatio sizes the image, and one helper gives each pin the documented bottom-start placement: verified (code, the doc's placement rule, and the pins measured here).
- The margin block puts the pin in a Stack row beside its passage with no custom styles: verified.
- The showcase scores 90, its only deduction the five placement declarations, and the margin block scores 100: verified against the repository's own rubric doc (version 1.4); this review's rubric version counts the image and the missing client directive, giving 85 and 98.
- Each pin's bottom-start corner lands on its anchor at 34%/38% and 68%/70% of the image: verified (measured here, and mirrored in right-to-left).
- Selecting one pin clears the other, and pressing the selected pin clears the selection: verified (probed here).
- The margin pin keeps its focus ring and tooltip inside the card: false for the tooltip, which runs about 80 px past the card edge (finding).
- The record's re-export requirement rests on the compatibility record's private-package clause and waits for approval; the reflected-states requirement names grouped and unread and why; verification and paths point at Core; the record needs approval: verified in the record.
- The compatibility record makes the promotion additive, and its deprecation clauses govern only a later deprecation: verified.
- A reflected data attribute is public surface that a record names, as the new requirement does: verified, though that requirement is still draft.
- Admission of a public Core surface belongs to the component-admission record: verified (the record cites it).
- New Core exports are
CommentPin,CommentPinPropsandCommentUserfrom the CommentPin entry point and the root: verified (the API generator lists only added Core rows). - Lab imports keep working with no deprecation marker, and there is no prop, default, behavior or theming change: verified.
- The only caller decision is the import path: verified.
- The move follows the InfoTip graduation's shape (Core folder, changesets, Lab re-export, registry alias): verified; InfoTip's Lab exports are deprecated, unlike these.
CommentUsermoves now because CommentPin's props name it and a Core type cannot import Lab: verified.- The plain re-export matches the DiffViewer and SelectableCardGroup moves: reported (those moves are in other pull requests).
- Joining the size cascade is the component's own opt-in: verified (the size-cascade record's explicit-participation invariant).
- The renders are pixel-identical between Lab and Core: reported, and reproduced locally for the state matrix and placement stories.
- Writing rubric R1–R7 for the record: reported.
- The scope checklist items, including no internal context in public text: verified (no internal context found in the added lines, commits, title or description).
- The branch was rebased onto main with no change to either earlier commit's own diff: verified (identical patch IDs per commit).
- This head adds one commit with the two blocks and the shorter file header: verified.
- Tests, type checks, lint and pre-review checks pass: reported. Reproduced locally: the focused tests (332), the CLI template tests (332), the probe, route and swizzle-sample tests, a type check of both blocks, Lab's typecheck, strict lint, and the knowledge and changeset checks. The full node project and the pre-review checklist were not run.
- CLI changeset:
astryx templatelists both CommentPin blocks among Core's component blocks: verified (run here). - Core changeset's description of the pin (lead participant, up to three circles and the total, accent unread dot, three element sizes, kept or host-controlled selection, host-owned anchors): verified against the focused tests for each case.
Files
.changeset/commentpin-core-blocks.md: clear.changeset/promote-commentpin-to-core.md: clearapps/sandbox/scripts/next-export-routes.json: clearapps/storybook/rtl-audit/verified-not-applicable.json: clearapps/storybook/stories/CommentPin.stories.tsx: cleardocs/specs/components/CommentPin/CommentPin.spec.md: draft record needs an engineering owner's decisioninternal/eslint-plugin-astryx/no-comment-provenance.baseline.json: clearinternal/shadcn-registry/routes.lock.json: clearpackages/cli/assets/templates/blocks/components/CommentPin/CommentPinInMargin.doc.mjs: clearpackages/cli/assets/templates/blocks/components/CommentPin/CommentPinInMargin.tsx: clear (the description misstates where its tooltip sits)packages/cli/assets/templates/blocks/components/CommentPin/CommentPinShowcase.doc.mjs: clearpackages/cli/assets/templates/blocks/components/CommentPin/CommentPinShowcase.tsx: clearpackages/cli/test/swizzle-proof/samples.mjs: clearpackages/core/package.json: clearpackages/core/src/CommentPin/CommentPin.doc.mjs: clearpackages/core/src/CommentPin/CommentPin.test.tsx: clearpackages/core/src/CommentPin/CommentPin.tsx: clearpackages/core/src/CommentPin/index.ts: clearpackages/core/src/__tests__/hostDataAttributes.test.tsx: clearpackages/core/src/index.ts: clearpackages/lab/blocks/CommentPinInMargin.doc.mjs: clear (deleted)packages/lab/blocks/CommentPinInMargin.tsx: clear (deleted)packages/lab/blocks/CommentPinShowcase.doc.mjs: clear (deleted)packages/lab/blocks/CommentPinShowcase.tsx: clear (deleted)packages/lab/src/CommentPin/index.test.ts: clearpackages/lab/src/CommentPin/index.ts: clearpackages/lab/src/Comments/types.ts: clearpackages/themes/probe/src/probeTheme.ts: clear
Stacked on #13702 (CommentPin's API pass). Review that first; this PR's base is its branch.
User need
Product teams that anchor comment threads over content need CommentPin from
@astryxdesign/core, the published package. Lab is private, so a product cannot install it from Lab. #13702 settled the pin's API (uncontrolled selection, Comments' person type, element sizes, no resolved or dimmed state) and cleared the two rubric blockers. Nothing is left to change before it graduates, so it moves now.Problem and solution fit
packages/core/src/CommentPin/, and Core's strict lint and comment rules apply.CommentUsermoves with it. The person record CommentPin's participants share with the Comments family now lives in Core, exported from@astryxdesign/core/CommentPinand the package root. Lab's Comments family takes it from Core, so the two keep one shape.CommentPinandCommentPinPropsfrom@astryxdesign/labare the Core ones, so a Lab import keeps working and renders the Core component. They carry no@deprecatedmarker, and the record schedules no removal, because no owner decision deprecates these two symbols yet. A test checks that the component and its props type are the Core ones.Core/CommentPin. The two blocks move to the CLI's component blocks. The ShadCN registry keeps the Lab route as an alias. The probe theme covers the new target. The sandbox route list names the two new block pages. As CLI component blocks, both meet the template rubric (version 1.4). The showcase shows two pins over a/template-assetsimage in a Card: AspectRatio sizes the image, and one small helper gives each pin the documented bottom-start placement. The margin block puts the pin in a Stack row beside the passage it annotates, with no custom styles. Graded against the rubric's counting rules, the showcase scores 90, its only deduction being the five style declarations the placement needs, and the margin block scores 100.Current specification
component:CommentPin(draft record, amended here): new FR13 says the Lab exports re-export Core's, on the basis ofspec:AST-017FR2, and waits for an owner's approval. New FR14 names the states thecomment-pintarget reflects,groupedandunreadincluded, and why themes need them. Verification and paths now point at Core. The record needs the spec owner's/approve-spec.spec:AST-017FR2: a private package such as Lab is outside the published compatibility promise, and a promotion from it is additive.spec:AST-017FR29 and FR29a: they govern a later deprecation of the Lab re-exports, if an owner decides one.architecture:public-component-apiDEC-2: a reflected data attribute is public surface that a record names, as FR14 does.spec:AST-002: admission of a public Core surface.Public delta and caller burden
CommentPin,CommentPinProps, andCommentUserfrom@astryxdesign/core/CommentPinand@astryxdesign/core.@astryxdesign/lab'sCommentPinandCommentPinPropsstill work: they are the Core ones, with no deprecation marker.The only caller decision is the import path.
Design and alternatives
This follows the InfoTip graduation (#9238): a Core folder, Core changesets, a Lab re-export, and a registry alias.
CommentUsergoes to Core here rather than when Comments moves, because CommentPin's public props name it and a Core type cannot import from Lab.Evidence
The Core component renders pixel-identically to the Lab one. The before images come from a Storybook build of #13702 (
Lab/CommentPin), the after images from this branch (Core/CommentPin). Each pair was compared with pixelmatch at threshold 0:The two blocks
Real Chromium, rendered from this head's block files with Core's build and the docs'
/template-assets. Each pin's bottom-start corner lands on its anchor (34%/38% and 68%/70% of the image). Selecting one pin clears the other, and pressing the selected pin clears the selection. The margin pin keeps its focus ring and tooltip inside the card.Writing rubric results
component:CommentPin, againstdocs/contributing/spec-writing.md:Scope
Components: CommentPin, CommentUser (the person type
CommentPinProps.participantsnames, which moves with the pin), Comments (type import only)Open owner calls, left out of the code and listed in the record:
sizejoin the component size cascade? The size-cascade record makes joining the component's own opt-in, so the pin keeps a standaloneElementSize.agentparticipant draw a square avatar, as it does in Comments?Also open, for an owner: whether to deprecate the Lab re-exports of
CommentPinandCommentPinProps, and when to remove them. Until an owner decides, they stay plain re-exports, with no@deprecatedmarker and no removal in the record, as in the DiffViewer and SelectableCardGroup moves.Testing
vitest runon CommentPin's tests, the Lab index test, andhostDataAttributes: pass. The node project: 30,276 tests pass; its first run's two failures, the probe theme check and the sandbox route list, pass with this branch's updates to both.tscfor Core, Core docs, Lab, and Lab docs: pass.ASTRYX_STRICT_LINT=1 eslinton the moved files: 0 errors.pnpm review:pre --base <#13702 branch>: 0 findings.pnpm check:knowledge: clean.pnpm check:changesets: valid.Real Chromium (Playwright) on static Storybook builds of both branches, scoped to
#storybook-root.Rebased onto
mainat 2608fe4, with no change to either commit's own diff (the same patch IDs as before the rebase). Repeated on this head:vitest run packages/core/src/CommentPin packages/lab/src/CommentPin packages/lab/src/CommentsandhostDataAttributes: 332 passed.tscfor Core and Lab: pass.ASTRYX_STRICT_LINT=1 eslinton both CommentPin folders: clean.pnpm review:pre: 0 findings.pnpm check:knowledge: clean.pnpm check:changesets: valid. The node project: 30,737 passed, none failed.This head adds one commit with the two blocks and the shorter file header. On it: 332 tests pass (Core and Lab CommentPin, Lab Comments,
hostDataAttributes), and 470 CLI template and component tests pass.tscfor Core and Lab: pass. Strict ESLint and Prettier on the changed files: clean.pnpm review:pre: 0 findings.pnpm check:knowledge: clean. The node project: 30,737 passed, none failed.Earlier runs, before the rebase, were on
mainat aee3fa9 and d63c249.