Skip to content

feat: add leading icons to project-page hero buttons - #213

Merged
2wenty2wo merged 3 commits into
mainfrom
feat/detail-button-icons
Dec 4, 2026
Merged

2wenty2wo merged 3 commits into
mainfrom
feat/detail-button-icons

Conversation

@2wenty2wo

@2wenty2wo 2wenty2wo commented Dec 4, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds leading Phosphor Fill icons to the project-page action buttons in src/lib/components/DetailHero.svelte, removes the redundant trailing <ExternalIcon /> arrows from those buttons, and shortens View on GitHub to GitHub so the mobile button row stays on one line (3 files, zero new packages, zero duplicate SVGs).

  1. GitHub (blue): reuses existing src/lib/GithubLogo.svelte (Phosphor github-logo-fill.svg) with concise GitHub label.
  2. Download buttons (orange, both mod.downloads loop and Download latest release): added src/lib/DownloadIcon.svelte with inline Phosphor download-simple-fill.svg (blob f51ec797f8d3428b31a3e6c5dbc6c70a21af1593), noted in THIRD_PARTY_NOTICES.md.
  3. Website (grey) and Get it on {host} (blue, website-only entries): reuses existing src/lib/Globe.svelte (Phosphor globe-fill.svg) instead of adding a duplicate copy.
  4. Leading icons inherit currentColor and align cleanly in the flex button layout (width: 1.15em; height: 1.15em; margin-right: 0; vertical-align: 0;).
  5. Removed trailing <ExternalIcon /> + &nbsp;, the unused ExternalIcon import, and the now-unused .ext-keep rule in DetailHero.svelte only (ExternalIcon elsewhere on the site untouched).

Verification

  • npm test (24 scripts) + npm run build + postbuild (seo.test.js --require-build & release-timeline.test.js --require-build): all passed. (Note: package.json has no check script.)
  • Headless Chromium (1440x900 & 390x844) on fresh production preview across /game/mp-doom/, /app/console-mpc/, and /app/dfos/:
    • Every hero action button renders its leading <svg> in matching currentColor, with zero trailing ExternalIcons and zero horizontal overflow.
    • At 390px, GitHub fits on one line (lineCount: 1) and matches Website height exactly (33.7px on both console-mpc and mp-doom).
    • Uncommitted WebP screenshots saved to artifacts/button-icons/.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T11:18:45.832776Z 2376c1a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codecov

codecov Bot commented Dec 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@2wenty2wo
2wenty2wo merged commit 2a51eac into main Dec 4, 2026
2 checks passed
@2wenty2wo
2wenty2wo deleted the feat/detail-button-icons branch December 4, 2026 12:07
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