Repository navigation
fix(ui): build the build-tool snippets from the code primitives - #1327
Merged
Merged
Conversation
The snippets card drew its own padded box, copy button, fade and status line, and each snippet was a hand-written pre element with coloured tokens. Each snippet is now an MdCopyableCode, which is an MdCodeBlock with a copy action, and the card keeps only the tabs and the loading state. The repository and artifact snippets build their text in one place per build tool. The skeleton widths become width classes. The style gate baselines and allowlists lose the entries this removes, and the two end-to-end specs that read the old markup follow it. Signed-off-by: TheMeinerLP <github@themeinerlp.dev>
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.
Description
The snippets card showed the build-tool snippets in a box the card drew itself: its own padding, a copy button that faded in on hover, a status line and a loading skeleton with inline widths. Every snippet was a hand-written pre element with coloured tokens, and the repository snippet repeated four near identical copies of it.
Each snippet is now the shared copyable code block, so the card only chooses the tab and shows the loading state. The copy button is always visible instead of fading in, and the copy status line comes with the block. The snippet text is the same byte for byte for all four build tools, but it is no longer syntax coloured.
Part of
migrate-content-to-componentstasks 5.4, 5.8 and 5.9 (the snippet part; the otherfont-monousers stay for follow-ups). The card already had no<style>block and uses the shared scrollbar utility.Type of change
fix- bug fixHow was this tested?
npx vitest run src/components src/anchors src/style-gate: all pass (the snippet tests ran red first)npm run eslintclean,npm run typecheckcleanci:e2elabelChecklist
CLAUDE.md(English, imperative, one offeat,fix,docs,refactor,test,build,ci,chore,perf)./gradlew buildpasses locally