fix: include 17 missing icons in the SVG sprite and correct the validation logic#482
Open
rstaib wants to merge 1 commit into
Open
fix: include 17 missing icons in the SVG sprite and correct the validation logic#482rstaib wants to merge 1 commit into
rstaib wants to merge 1 commit into
Conversation
Author
|
@microsoft-github-policy-service agree |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
17 icons whose SVG file is named after a secondary alias were silently dropped from the generated SVG sprite.
The sprite generator located each icon's file via its primary alias (
mapping.jsonaliases[0]). For these 17 icons, the file on disk is named after a different alias. For example, the file issymbol-variable.svg, but the codepoint's primary alias isvariable, and novariable.svgexists. As a result,fs.existsSyncfailed and the entire codepoint (every one of its aliases) was excluded from the sprite.The same primary-vs-filename mismatch meant
metadata.jsonwas keyed by names that don't match any SVG file, while the preview looks metadata up by filename.check-metadata.jsreported 100% coverage throughout, because it only validated the primary alias, so it never caught the gap.Fixes #480
Affected icons (file name ← previous primary/metadata key)
circlecircle-outlinedesktop-downloadcloneellipsismoregithublogo-githubgo-to-filesymbol-referencelockgist-privatereplymail-replyrepo-forkedgist-forksign-inlog-insign-outlog-outstar-emptystarsymbol-arrayarraysymbol-eventzapsymbol-namespacesymbol-modulesymbol-variablevariablesyncrepo-syncwarningalert