Repository navigation
docs(icons): the icons guide says "built-in meaning" and "theme icons" - #13421
josephfarina wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
463e246 to
6b6a66d
Compare
There was a problem hiding this comment.
Changes requested: the word swap is close, but two lines now misdescribe how icons resolve, and two description claims do not hold on main.
packages/cli/assets/docs/icons.doc.mjs:23says built-in meanings "are resolved through the global theme icons", but names resolve through the active theme'sicons, thenregisterIcons()overrides, then the built-in drawings (and:88says theme icons are scoped to the active theme); name that order here and at:194, which says a namespaced key "resolves through the same theme icons".- The description says the component docs already say "built-in meaning" and "theme icons", but on
mainIcon and useIcon still say "semantic icon name" (that change is in #12959, still open), so say this guide follows #12959 and land it after. - The description says each line is a literal swap, but the last clause at
:194is reworded, so drop that sentence or describe the reword.
The search keywords work as described: searches for the old words still return the guide in the top two, and the docs-topics snapshot matches its generator.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Changeset: the guide calls Core's icon names "built-in meanings" and a theme's drawings "theme icons" — verified (
icons.doc.mjs:14,:23,:88). - Changeset: the old words stay as search keywords and still find the guide — verified (
icons.doc.mjs:12; the guide ranks first for "semantic icon names" and third for "icon registry"). - Description: the guide on
mainsaid "semantic icon names" and "icon registry" — verified. - Description: the component docs now use the new words — false on
main(packages/core/src/Icon/Icon.doc.mjs:76,packages/core/src/Icon/useIcon.doc.mjs:24). - Description: each line is a literal swap — false (
icons.doc.mjs:194). - Description: the new keywords keep the old words findable, and nothing else changes — verified (the keyword array, six strings, the file header and the snapshot digest are the whole change).
- Description: the five-query search table,
mainagainst this change — verified, identical top five. - Description: "semantic name" and "built-in meanings" gain the guide; the other checked queries are unchanged — verified for those, and for "icon registry" and "theme icons".
- Description: build answers are unchanged for the labeled requests — not checked.
- Description: no search sample changes, only the docs-topics digest, and the "icon set" sample is unchanged — verified (the search snapshot tests pass).
- Description: the listed test suites and the changeset check pass — verified (the docs-topics snapshot test and 27 of 27 in the four named files; one test that lists files through git cannot run without a repository, on
maintoo). .changeset/icon-guide-built-in-meanings.md— clear.packages/cli/assets/docs/icons.doc.mjs— findings at:23and:194.packages/cli/test/__golden__/no-icon-set/docs-topics.json— clear (matches its generator).
6b6a66d to
6d8b86b
Compare
There was a problem hiding this comment.
Changes requested: the earlier findings are fixed, and one line still contradicts what the description and changeset say about it.
packages/cli/assets/docs/icons.doc.mjs:194still says adding a shared name would make "every downstream icon registry grow a key", but only each theme'sIconRegistry-typed icons map has to grow (registerIcons()takes a partial map), so the description's claim that this phrase names theregisterIcons()set and the changeset's "theme icons (was icon registry)" do not hold there; end the line with "the theme icons of every downstream theme grow a key" and update the docs-topics digest, or say in the description and changeset that this line keeps "icon registry".
The rename and keywords otherwise work as described: the five-query search table reproduces exactly, and the docs-topics snapshot matches its generator.
Claims and files checked
Review mode: full; reason: rebase
- Changeset: the guide calls Core's icon names "built-in meanings" (was "semantic icon names") — verified (
icons.doc.mjs:4,:14,:23,:68,:88,:194). - Changeset: the guide calls a theme's drawings "theme icons" (was "icon registry") — true for the topic line (
:14), false at:194. - Changeset: the old words stay as search keywords and still find the guide — verified (
:12; first for "semantic icon names", third for "icon registry"). - Description: the author approved the vocabulary as its owner — context only; no record governs a guide's wording, so nothing depends on it.
- Description: the guide on
mainsays "semantic icon names" and "icon registry" while Icon's and useIcon's prop and parameter text say "built-in meaning" and "theme icons" — verified (Icon'siconprop doc, useIcon'snameparameter doc). - Description: old-word searches still find the guide because of the keywords — verified.
- Description: each changed line is a literal swap of the listed words — verified.
- Description: "registry" stays only where it names the process-wide
registerIcons()set — verified for "the global icon registry" and "the same registry"; false for "every downstream icon registry", which names each theme's icons map. - Description: the new keywords keep the old words findable, and nothing else changes — verified.
- Description: the five-query search table,
mainagainst this change — verified, identical top five. - Description: "semantic name" and "built-in meanings" gain the guide, and the other icon queries are unchanged — verified for those and for "icon registry", "theme icons" and "icon set".
- Description: build answers are unchanged for the labeled build requests — not checked against that set, which is not in the repository; the build test suite passes.
- Description: no search golden changes, only the docs-topics digest, and the "icon set" sample is unchanged — verified (the search golden tests pass).
- Description: the listed test suites and the changeset check pass — verified, except one test that lists files through git and cannot run without a repository (it fails the same way on
main). - Description: documentation only, no runtime, API, visual or policy change, no internal context — verified.
.changeset/icon-guide-built-in-meanings.md— finding (its "theme icons" claim, with:194).packages/cli/assets/docs/icons.doc.mjs— finding at:194.packages/cli/test/__golden__/no-icon-set/docs-topics.json— clear (matches its generator).
…s icons [skip ci]
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet, because the pull request is a draft and its commits carry [skip ci].
The earlier finding is fixed: the Component and Library Icons line now says "every downstream theme's icons", so the guide uses one word for theme icon maps, as the description and changeset say. The description's search results reproduce exactly, and the docs-topics snapshot matches its generator.
Claims and files checked
Review mode: incremental; reason: none
- Changed rules (0): none.
- Changeset: the guide calls Core's icon names "built-in meanings" (was "semantic icon names"): verified (
icons.doc.mjs:4,:14,:23,:68,:88,:194). - Changeset: the guide calls the drawings a theme gives those names its theme icons (was "icon registry"): verified (
:14"the active theme's icons",:194"every downstream theme's icons"). - Changeset: the old words stay as search keywords, so searches for "semantic icon names" and "icon registry" still find the guide: verified (
:12; the guide ranks first and third). - Description: on
mainthe guide says "semantic icon names" and "icon registry" while Icon's and useIcon's docs say "built-in meaning" and "theme icons": verified (Icon'siconprop doc, useIcon'snameparameter doc). - Description: the author approved the vocabulary as its owner: context only; no record governs a guide's wording, so nothing rests on it.
- Description: each listed phrase becomes its new word: verified, line by line.
- Description: "registry" stays where it names the process-wide lookup ("the global icon registry", "the same registry"): verified (
:23,:194). - Description: the four new keywords keep the old words findable, and nothing else changes: verified.
- Description: the five-query search table,
mainagainst this change: verified, identical top five. - Description: "semantic name" and "built-in meanings" also gain the guide, and the other icon and button queries are unchanged: verified (ten more queries identical).
- Description:
astryx buildanswers are unchanged for the labeled build requests: that request set is not in the repository; the build test suite passes. - Description: no search golden changes, only the docs-topics digest, because the guide now declares keywords, and the "icon set" sample stays as on
main: verified (the digest hashes structure with prose blanked; the search goldens pass). - Description: documentation only, with no runtime, API, visual or policy change and no internal context: verified.
- Description: the listed test suites and Changeset coverage pass: verified, except one isolation test that lists files through git and cannot run outside a repository; it fails the same way on the base.
.changeset/icon-guide-built-in-meanings.md: clear.packages/cli/assets/docs/icons.doc.mjs: clear.packages/cli/test/__golden__/no-icon-set/docs-topics.json: clear (matches its generator).
- meta#13421 docs(icons): the icons guide says "built-in meaning" and "theme icons" Author: @josephfarina
|
Landed in #13508. |
preflight: pass 9476d85 (CI checks 19 of 19; review recommends approval)
Approval
Approved vocabulary rename: the icon words ("built-in meaning" for Core's icon names, "theme icons" for the drawings a theme gives them) were approved by @josephfarina as the docs and CLI vocabulary owner; this PR is a planned rename: rename words only, with the old words kept as keywords.
Reader impact
astryx docs iconscalls Core's icon names "semantic icon names" and the drawings a theme gives them its "icon registry", while Icon's and useIcon's prop and parameter text now say "built-in meaning" and "theme icons". Now the guide uses the same words. A search with the old words still finds the guide, because they stay as keywords.Correction
packages/cli/assets/docs/icons.doc.mjs: "semantic icon names" / "semantic name" / "semantic names" / "semantic list" become "built-in meanings" / "built-in meaning" / "built-in meanings" / "built-in list"; "the active theme's icon registry" becomes "the active theme's icons", and "every downstream icon registry" (each theme's icon set, typedIconRegistry) becomes "every downstream theme's icons". Where "registry" names the process-wideregisterIcons()lookup ("the global icon registry", "the same registry"), it stays: that is not the theme icons.Evidence
In-repo
astryx search, main vs this change, top 5:"semantic name" and "built-in meanings" also gain the guide; the other icon and button queries checked are unchanged.
astryx buildagainst the labeled build requests: no answer changes. No search sample (golden) changes; the docs-topics digest changes because the guide now declares search keywords; the word swap itself rewrites no golden. Without new words beyond the rename, the "icon set" sample stays as on main.Scope
Docs: the icons guide.
Testing
experimental-isolation55 of 55 (--updatechanges onlydocs-topics.json);core-doc-quality,golden-reads,docs-graph,docs-topic-refs27 of 27.