Skip to content

swap the astro default favicon for a brand-matched shield#20

Merged
AnkanMisra merged 1 commit intomainfrom
feat/shield-favicon
May 3, 2026
Merged

swap the astro default favicon for a brand-matched shield#20
AnkanMisra merged 1 commit intomainfrom
feat/shield-favicon

Conversation

@AnkanMisra
Copy link
Copy Markdown
Owner

@AnkanMisra AnkanMisra commented May 3, 2026

Summary

  • Replace the Astro starter's favicon.svg (a dark "A" glyph) with a heater-shield silhouette using the project palette (#1a1a1a ink / #f4ede2 paper via prefers-color-scheme, #c4ff5b lime check accent matching --accent in global.css).
  • Wire an explicit <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> into web/src/layouts/Layout.astro so browsers don't depend on auto-discovery.
  • Delete web/public/favicon.ico (the Astro-default raster) so legacy .ico-preferring clients don't reintroduce the unrelated logo as a fallback.

Tab now shows a shield + lime check on hover, regardless of whether the tab strip renders dark or light.

Test plan

  • bun run typecheck:web — 0 errors / warnings / hints
  • bun run build:web — clean
  • grep favicon web/dist/index.html confirms the rendered HTML now carries <link rel="icon" type="image/svg+xml" href="/favicon.svg">
  • Cloudflare Pages preview deploy renders the new icon on the tab strip after merge

View in Codesmith
Need help on this PR? Tag @codesmith with what you need.

  • Let Codesmith autofix CI failures and bot reviews

…b matches the brand: live deploy was rendering the astro logo (the dark-A glyph) on every browser tab because the default web/public/favicon.svg ships with the astro project starter and the layout never linked the file explicitly so browsers fell back to whatever favicon.ico happened to exist (also the astro default), which means every tab + bookmark + history entry showed the unrelated astro mark instead of a shield icon for an app called chainshield; replaced web/public/favicon.svg with a heater-shield silhouette built around the project palette (paper #f4ede2 fill on dark tab themes, ink #1a1a1a on light themes via prefers-color-scheme media query embedded in the svg style block, lime #c4ff5b accent for the inner check stroke matching --accent in global.css), proportions tuned to read at 16px (single bold check stroke, no fine internal detail that would smudge in a tab list); added an explicit <link rel="icon" type="image/svg+xml" href="/favicon.svg"> to web/src/layouts/Layout.astro so modern browsers pick up the SVG directly without depending on the auto-discovery fallback chain; deleted web/public/favicon.ico because keeping the legacy astro-shipped raster around as a fallback for very old browsers would just reintroduce the wrong logo on the few clients that prefer .ico over the typed link, and the explicit svg link covers every browser shipped this decade
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 3, 2026

Warning

Rate limit exceeded

@AnkanMisra has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 32 minutes and 39 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 6a01cfcb-a693-4167-9a9d-c35802849cf1

📥 Commits

Reviewing files that changed from the base of the PR and between f0346db and 26cf678.

⛔ Files ignored due to path filters (2)
  • web/public/favicon.ico is excluded by !**/*.ico
  • web/public/favicon.svg is excluded by !**/*.svg
📒 Files selected for processing (1)
  • web/src/layouts/Layout.astro
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/shield-favicon

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 32 minutes and 39 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying chainshield with  Cloudflare Pages  Cloudflare Pages

Latest commit: 26cf678
Status: ✅  Deploy successful!
Preview URL: https://4f730f2a.chainshield.pages.dev
Branch Preview URL: https://feat-shield-favicon.chainshield.pages.dev

View logs

@AnkanMisra AnkanMisra merged commit 24466cd into main May 3, 2026
3 checks passed
@AnkanMisra AnkanMisra deleted the feat/shield-favicon branch May 3, 2026 12:38
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