Skip to content

Fix Open dropdown to show brand icons instead of generic sparkle#1368

Open
IEvangelist wants to merge 2 commits into
mainfrom
ievangelist-dapine-open-feature-brand-icons
Open

Fix Open dropdown to show brand icons instead of generic sparkle#1368
IEvangelist wants to merge 2 commits into
mainfrom
ievangelist-dapine-open-feature-brand-icons

Conversation

@IEvangelist

@IEvangelist IEvangelist commented Jul 16, 2026

Copy link
Copy Markdown
Member

Problem

Every item in the page Open dropdown ("Open in GitHub Copilot", "Open in Claude", "Open in ChatGPT") rendered the same generic "AI" sparkle glyph instead of each service's brand icon.

Root cause

The starlight-page-actions plugin (v0.6.2) renders a real brand icon for each built-in action, but hardcodes the generic AIIcon sparkle for every custom action. Our config defined ChatGPT, Claude, and GitHub Copilot as custom actions, so all three fell back to the sparkle.

Before

image

Fix

  • astro.config.mjs — Replace the custom block with the plugin's built-in chatgpt / claude / githubCopilot actions. The built-in hrefs and labels are identical to what we had, so behavior is unchanged, and ChatGPT and Claude now show their real brand marks.
  • components/starlight/PageTitle.astro — The plugin's built-in "GitHub Copilot" glyph is the Copilot mascot rather than the GitHub logo. Override it with the site's existing GitHub octocat (Starlight's github icon path) via a masked-icon rule scoped to [data-action-icon='githubCopilot'], matching the GitHub logo used elsewhere on the site.

After

image

Validation

  • node --check astro.config.mjs passes.
  • GitHub octocat data-URI verified as well-formed SVG.
  • No tests assert on the dropdown labels/config.
  • pnpm build intentionally not run locally — please verify the rendered dropdown on CI/preview.

The starlight-page-actions plugin renders a real brand icon for each
built-in action but forces the generic 'AI' sparkle glyph on every
custom action. Because the ChatGPT, Claude, and GitHub Copilot entries
were configured as custom actions, all three showed the same sparkle.

Switch to the plugin's built-in chatgpt/claude/githubCopilot actions
(the hrefs and labels are identical) so ChatGPT and Claude get their
brand marks, then restyle the built-in GitHub Copilot glyph to the
site's GitHub octocat logo via a masked icon override in PageTitle.astro.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4379a930-b6fb-4a65-8c6f-57a63b780087
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #1368. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #1368 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

@IEvangelist
IEvangelist marked this pull request as ready for review July 17, 2026 02:38
Copilot AI review requested due to automatic review settings July 17, 2026 02:38
@IEvangelist
IEvangelist enabled auto-merge (squash) July 17, 2026 02:38

Copilot AI 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.

Pull request overview

This PR updates the Starlight “Open” dropdown actions so each entry renders the correct service brand icon (ChatGPT/Claude) and restyles the built-in GitHub Copilot icon to use the site’s GitHub octocat mark for consistency.

Changes:

  • Switch starlight-page-actions configuration from custom actions to the plugin’s built-in chatgpt / claude / githubCopilot actions (restoring proper brand icons).
  • Add a scoped CSS override to replace the built-in GitHub Copilot icon artwork with an octocat mask in the dropdown.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/frontend/src/components/starlight/PageTitle.astro Adds a CSS override to hide the plugin’s GitHub Copilot icon content and mask the icon box with the octocat SVG.
src/frontend/astro.config.mjs Enables built-in starlight-page-actions entries for ChatGPT/Claude/GitHub Copilot instead of custom actions, allowing brand icons to render.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/frontend/src/components/starlight/PageTitle.astro Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

2 participants