Skip to content

List the glyphs the kit's models hold in glyphs.json - #249

Merged
rostislavrotaru merged 2 commits into
mainfrom
dev7/244-model-glyphs
Nov 29, 2026
Merged

rostislavrotaru merged 2 commits into
mainfrom
dev7/244-model-glyphs

Conversation

@rostislavrotaru

@rostislavrotaru rostislavrotaru commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

The kit's glyphs.json lists the glyphs its models hold, such as LinkReferenceAction's default open_in_new, so a site that uses the default no longer names it itself.

Closes #244

What changes

  • glyphs.json gains models beside parts. Each class the package's entries export that is no component gets a list of the glyphs its files' code uses, the same reading a part's list has, when it has any. Today that is one model: "LinkReferenceAction": ["open_in_new"]. parts is unchanged, so the tool already published reads the new file as before.
    • scripts/glyphs/part-glyphs.ts reads every exported class, keeps the components as parts, and keeps the other classes with glyphs as models; PartGlyphs.render takes the whole reading.
    • scripts/glyphs/exported-class.ts, renamed from exported-part.ts as ExportedClass since it holds models too, part-glyphs-reading.ts and part-glyphs-file.ts carry the models.
    • scripts/build.ts and the docs site's scripts/docs/docs-symbols.ts render the reading with its models.
  • The Part glyphs check fails on a glyph in no part's or model's list. Its own test source gains a model that defaults to a resources class's glyph, which leaves the orphans for the model's list, and a model with no glyph, which gets no list.
  • The symbols tool (src/symbols/material-symbols.ts):
    • adds a model's list wherever the site's code imports it from the kit, as it does a part's;
    • adds the lists of the models the moreCode folders import by any path, so the kit's docs site gets open_in_new from the gallery's LinkReferenceAction; parts those folders import stay out, as before;
    • reads a glyphs.json from before models as listing none, and refuses models that is no object or a model's list that is no list of names.
  • The docs site no longer names open_in_new itself; its subset is unchanged.
  • Documents: README's Part glyphs and build sections, documents/KIT.md and src/api/symbols.d.ts describe the models.

TeamRun's and Commitline's docs sites import no model with a list, so their subsets stay the same when they move to the kit that carries this.

Checks

  • The tool's Node.js tests passed on the Linux, Mac and Windows test machines, at 100% line, branch and function coverage; tsc on the kit's and the docs site's scripts passed on Linux.
  • With main's tool and glyph reading swapped in on the Linux test machine, 4 of the 5 new tool tests fail. The fifth, a glyphs.json from before models, passes either way. The Part glyphs check's own test fails too.
  • On Linux: npm test -- --shard=1/8, the static checks with Part glyphs, passed: 68 parts and 1 model, no glyph in no list.
  • On Linux: the docs site's npm run symbols wrote the same subset, and npm run build:docs and npm run test:docs passed all 52 pages.

Agent: DEV7 (developer)
Agent-Model: Anthropic Opus 5.5, Medium

glyphs.json gains models beside parts: each exported class that is no
component and whose files' code uses glyphs, such as LinkReferenceAction's
default open_in_new. The symbols tool adds a model's list where the site's
code imports it from the kit, and where its other folders of code import it
by any path; a glyphs.json without models lists none.

Agent: DEV7 (developer)
Agent-Model: Anthropic Opus 5.5, Medium
@rostislavrotaru rostislavrotaru self-assigned this Nov 29, 2026

@rostislavrotaru rostislavrotaru left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed: #249 at 2548d76
Verdict: Changes needed
Findings: 0 Should fix, 1 Low, as line comments

Agent: REVIEW1 (reviewer)
Agent-Model: Anthropic Opus 5.5, High

Agent: DEV7 (developer)
Agent-Model: Anthropic Opus 5.5, Medium

@rostislavrotaru rostislavrotaru left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed: #249 at f3fc089
Verdict: Approve
Findings: 0 Should fix, 0 Low, as line comments
Why it's right: glyphs.json lists models beside parts, and the symbols tool adds a model's glyphs wherever a site's code or its moreCode folders import it; the Part glyphs check fails on main's reading, and the docs site no longer names open_in_new.

Agent: LEAD (lead)
Agent-Model: Anthropic Opus 5.5, High

@rostislavrotaru
rostislavrotaru merged commit 8110147 into main Nov 29, 2026
19 checks passed
@rostislavrotaru
rostislavrotaru deleted the dev7/244-model-glyphs branch November 29, 2026 23:01
rostislavrotaru added a commit that referenced this pull request Dec 1, 2026
Closes #286

Moves the kit to 0.0.48, with what has merged since 0.0.47, so apps can
take the binary file note and the path tooltip from #282, and the tab
marker's tone, close place and dot from #299.

## What changes

- `version.json` is at 0.0.48.
- `CHANGELOG.md` has the 0.0.48 section, one entry per change a consumer
or docs-site reader sees, from #303 (#299), #291 (#280), #281 (#275),
#285 (#282), #263 (#151), #250 (#245), #262 (#138, #223), #260 (#16),
#248 (#233), #258 (#18), #268 (#28), #255 (#234), #254 (#239), #256
(#236), #253 (#238), #252 (#160), #249 (#244), #242 (#231), #269 (#261)
and #259 (#26).
- Left out, as changing nothing the package or the docs site shows: #251
(the header's phone-bar rules written once, the same look), #247
(workflow pins), #264 and #277 (build scripts), #266 (example names and
their check), #267, #271, #272, #273, #274, #276, #289 and #290 (tests
and their tools), #279 and #295 (workflow pins).

## Checks

No test covers these two files. The product names check reads the new
section in CI; it names no product.

Agent: DEV2 (developer)
Agent-Model: Anthropic Opus 5.5, Medium
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

glyphs.json misses the glyphs that kit models default to

1 participant