Skip to content

refactor(git-id-switcher): design tokens round two — body tokens + pad→size rename#463

Merged
nullvariant merged 2 commits into
mainfrom
refactor/design-tokens-round-two
Apr 10, 2026
Merged

refactor(git-id-switcher): design tokens round two — body tokens + pad→size rename#463
nullvariant merged 2 commits into
mainfrom
refactor/design-tokens-round-two

Conversation

@nullvariant

Copy link
Copy Markdown
Owner

Summary

  • Add six new design tokens to :root--gis-width-readable, --gis-line-height-doc, --gis-border-emphasis, --gis-pad-code, --gis-spinner-size, --gis-spinner-border
  • Rename --gis-pad-btn/body/body-lg--gis-size-btn/body/body-lg to reflect mixed padding/margin usage
  • Replace all remaining magic numbers in document/loading/error templates with token references
  • Extend tokenSpec value contracts and add SSOT literal check for --gis-border-emphasis

Test plan

  • TypeScript compiles without errors (npx tsc --noEmit)
  • ESLint passes with --max-warnings=0
  • All tests pass (npm run test:coverage)
  • Statement coverage remains at 100%
  • No residual --gis-pad- references (except new --gis-pad-code)
  • No remaining magic px values in consumer templates

… --gis-pad-* to --gis-size-*

Add six new design tokens to :root (--gis-width-readable, --gis-line-height-doc,
--gis-border-emphasis, --gis-pad-code, --gis-spinner-size, --gis-spinner-border)
and rename --gis-pad-btn/body/body-lg to --gis-size-btn/body/body-lg to reflect
their mixed padding/margin usage. Replace all remaining magic numbers in
document/loading/error templates with token references. Extend tokenSpec value
contracts and add SSOT literal check for --gis-border-emphasis.

Signed-off-by: Null;Variant <null@nullvariant.com>

🖥️ IDE: [VS Code](https://code.visualstudio.com/)
🔌 Extension: [Claude Code](https://claude.ai/download)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Model-Raw: claude-opus-4-6
@github-actions

github-actions Bot commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA a704985.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

@nullvariant-mimi

nullvariant-mimi Bot commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

🐰 Mimi's Validation Report ✅

All checks are looking good! Great job! 🎉

⏳ Some checks are still running. I will keep watching!


バリデーターを通してくださいね

This report was carefully prepared by nullvariant-mimi[bot]

@nullvariant-slow

nullvariant-slow Bot commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

🦥 Slow's Code Review 😩

...yawn... Do I really have to review this?

⚠️ TOO LONG... I can barely keep my eyes open reading these:

File Lines

| extensions/git-id-switcher/src/test/htmlTemplates.test.ts | 1683 |
| extensions/git-id-switcher/src/ui/documentationInternal.ts | 505 |

Split it up... reading long files is exhausting.


働きたくないでござる

This review was reluctantly filed by nullvariant-slow[bot]

@nullvariant-ciel

nullvariant-ciel Bot commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

🕊️ Ciel's Mediation 🌤️

*~~ floating down from the clouds ~~ The zoo seems a bit noisy today...*

4 zoo members have reviewed this PR.

Zoo Member Status
🦥 Slow Commented
🐰 Mimi Commented
👧 Luna Commented
🐗 Blaze Commented

⚖️ The zoo has mixed opinions. Some are concerned, some are fine with it. Please review each comment carefully and make the final call.


まあまあ、ほどほどに。

This mediation was peacefully delivered by nullvariant-ciel[bot]

@codecov

codecov Bot commented Apr 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

nullvariant-justice[bot]
nullvariant-justice Bot previously approved these changes Apr 10, 2026

@nullvariant-justice nullvariant-justice Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚖️ Justice grants passage. CI checks passed — this code meets the garden's standards.

Signed-off-by: Null;Variant <null@nullvariant.com>

🖥️ IDE: [VS Code](https://code.visualstudio.com/)
🔌 Extension: [Claude Code](https://claude.ai/download)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Model-Raw: claude-opus-4-6
@nullvariant-luna

Copy link
Copy Markdown
Contributor

👧 Luna's Exploration Report 📦

No new dependencies added. Just version bumps! Nothing to explore here... 😴


Botに418返そうよ!

This report was curiously compiled by nullvariant-luna[bot]

@nullvariant-blaze

Copy link
Copy Markdown
Contributor

🐗 Blaze's Release Review 🔥

🔥🔥🔥 VERSION BUMP DETECTED! THIS IS IT! 🔥🔥🔥

🔥 MINOR VERSION BUMP in extensions/git-id-switcher/package.json

0.18.00.19.0

🔥 New features incoming! Make sure:

  • Tests pass for the new features?
  • Documentation updated?

よっしゃ!デプロイしまくるぞ!

This review was ENTHUSIASTICALLY filed by nullvariant-blaze[bot]

@sonarqubecloud

Copy link
Copy Markdown

@nullvariant-justice nullvariant-justice Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚖️ Justice grants passage. CI checks passed — this code meets the garden's standards.

@nullvariant nullvariant merged commit 433b06c into main Apr 10, 2026
40 of 43 checks passed
@nullvariant nullvariant deleted the refactor/design-tokens-round-two branch April 10, 2026 07:42
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.

1 participant