Repository navigation
feat(tooling): add generated icon role inventory and checks - #7223
rubyycheung wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Thanks for putting up this early tooling draft and for calling out its limits so clearly. The generated inventory approach — deriving rows from owner declarations instead of maintaining a central list, keeping true slots visibly stateless, and labelling the glyph probes as probes rather than component proof — reads consistently on static review, and this change adds no public Icon API and enrolls no product component.
Approval needs a maintainer decision first: please have a maintainer provide or identify the governing spec that authorizes the Core/Icon Role Inventory review location and ownership (including Generated and Synthetic Policy) and the check:icon-conformance gate inside check:repo. As the description already notes, that location is still a proposal and the corrected contract and owner-authority decisions remain dependencies, so this review is pausing for that spec direction rather than asking you to remove or split the work for missing authority alone.
Once maintainers settle that direction, the remaining path is the evidence already listed as pending: real owner rows after rebase, the current Node and full CI lanes, and browser review of the actual surface alongside component stories.
[Automated review]
Maintainer impact
Ready for early visual/tooling review; incomplete and not landable. Owners need one generated place to compare every icon role/state under a selected theme. Otherwise new roles can be omitted from review, declarations and rendering can diverge, and compiled themes can silently lose role/state policy.
Implementation base: #7219 /
a0b54a8a606c62f4765cb4a1f6f0d0f39b9bc58f, stacked on #7214. Exact local draft commit: 108e814.Intended invariant
Component owners keep source mapping, named size and finite-state declaration together. True source-only slots remain stateless/nonparticipating. Shared resolution determines final size, appearance and weight without new public Icon role/state props. No product component is enrolled by this draft.
OQ2 is unresolved:
Core/Icon Role Inventoryin Storybook plus repository conformance beside knowledge checks is the concrete proposed location, not approved/current review or ownership authority. Corrected-contract #6891, owner-authority #7116 and exact-head owner approval remain dependencies. Current Icon and icon-resolution records are guardrails, not approval of this proposed finite-role inventory.Change
GeneratedandSynthetic Policyshow no-condition, each finite state and distinct all-active cases; true slots have one stateless row. Rows show source mode/provenance, owner default and resolved named size/pixel dimension, precedence/effective state, selected theme, appearance and weight. Synthetic policy preserves toolbar Light/Dark even with base tokens selected.checkfallback. They exercise shared rendering and policy, not a component's actual fallback, placement, interaction or approved pixels.check:icon-conformancenext tocheck:knowledgeincheck:repo: undeclared roles/states, incomplete/duplicate precedence, true-slot promotion, pixel default metadata, undeclared theme references, appearance-only state policy, mechanically visible SVG/Icon/shared-renderer/map bypasses, and actual generated-roster wiring into the JSX review entry point. Dynamic-flow proof is not claimed; unrelated legacy owners are not audited or migrated.Evidence
Scope
Testing
Local evidence uses Node 22.14.0, not the required Node 24/full-CI lane.
--max-warnings 0) pass. JavaScript files ignored by repository ESLint are not claimed linted.Core/Icon Role Inventory→GeneratedandSynthetic Policy.check:repoconstituent including knowledge and icon conformance. No bypass; working tree clean after commit. Existing i18n fallback/unreachable-category/static-reference notes remain unchanged.Baseline failures, warnings and pending gates
This is not an all-green full-workspace/visual/CI receipt.
a0b54a…base (18 outside package roots; 5 too deep, with 1 overlap). The two new inventory entries satisfy the required package/two-segment shape. No test relaxation or unrelated story migration was made.No push or land was performed.
Exact-head current-baseline review receipt
Route schema v1; authority (actual origin/main merge-base)
bbeffca1a6f031eec14c4041fc6be17fa597b6ab; reviewed head108e8142253b75b2b66d423710bc860f83a8ae07. The implementation parent remainsa0b54a8a606c62f4765cb4a1f6f0d0f39b9bc58f; it is not substituted for route authority.Requested semantic triggers:
compatibility,component-slots,testing,theming,visual. 109 exact current claim matches across 10 records. Thevisualtrigger has no matches and therefore grants no visual authority. Each match below retains record/path, claim id/text, trigger and exact reason; ordinals preserve route order. This receipt contributes only the listed current claims and does not approve OQ2, AST-054 proposal authority or component visuals.Complete current-claim routing receipt
architecture:component-test-sufficiency
Source:
docs/architecture/component-test-sufficiency.md· SHA-256 record digest:2312a6256ab09360e04167e14f562aa6cebc34fbd7e6eba7c68cdf773679de66architecture:component-theming-surface
Source:
docs/architecture/component-theming-surface.md· SHA-256 record digest:78928cd4356402a212c2c8d4d76a9a67bd0831e873e7e7cd0dbe777e12ec8597architecture:icon-resolution-and-component-slots
Source:
docs/architecture/icon-resolution-and-component-slots.md· SHA-256 record digest:fb4160089d30a46465c988c357f0aa3cc02cfda92b47bc51b950151da595b81carchitecture:theme-application
Source:
docs/architecture/theme-application.md· SHA-256 record digest:77631b8bd5cf5aa74f6ea402a403d5e49dcd3f454cd418c61b0aabbdcf0cc3e2<html>.architecture:theme-authoring-contract
Source:
docs/architecture/theme-authoring-contract.md· SHA-256 record digest:09b609519bc2acb4a22a0f0cbcf43da7e8ba6e67c7327f5381797bfe2e29710bdefineThemevalidates only what it constructs.define*helpers construct theme values.architecture:theme-compilation
Source:
docs/architecture/theme-compilation.md· SHA-256 record digest:623dcf810adda23681bcff3c2cfd39a25d2bce8e8301ddb7436d11372ad57b2fspec:AST-012
Source:
docs/specs/AST-012/spec.md· SHA-256 record digest:f06af20e9991a664c47c81e62d38965ac15ce9cf08e77b2db1c9c5c268e373cespec:AST-017
Source:
docs/specs/AST-017/spec.md· SHA-256 record digest:1cc3879298f7a9db0dec9ab7af88aadd9bc2c922a5628bdc3e3d5f13ddadb32bspec:AST-030
Source:
docs/specs/AST-030/spec.md· SHA-256 record digest:1fc6ffc51f3d19e7877d6d88157d717dcf157ffc64e77b58781f94605cf12925spec:AST-056
Source:
docs/specs/AST-056-search-prop-shape/spec.md· SHA-256 record digest:d308f4bde211ce082c0eccd1fdc2c4d85a3a40fecb78db893a8d1dc7fb579b1fspec:AST-017FR28–FR31: the replacement ships first, old usage stays equivalent through the overlap, each old prop gets aDEP-*id and a distinctCLN-*id, and removal happens only in a minor whose frozen manifest carries both. While both exist, a component given both MUST resolve to the new prop and MUST fire a development warning.