Skip to content

feat: add google platform alias#237

Merged
priscilawebdev merged 1 commit into
masterfrom
priscila/feat/add-google-platform-alias
May 18, 2026
Merged

feat: add google platform alias#237
priscilawebdev merged 1 commit into
masterfrom
priscila/feat/add-google-platform-alias

Conversation

@priscilawebdev
Copy link
Copy Markdown
Member

The svg/google.svg and svg_80x80/google.svg files have shipped since 2020 but no entry in PLATFORM_TO_ICON exposes them. As a result, <PlatformIcon platform="google" /> returns the default icon instead of the Google "G".

Adding the one-line alias so callers can render the existing asset.

Why this matters

Sentry's ContextIcon is being migrated from the legacy sentry-logos set to platformicons. The legacy mapping had a dedicated Google logo for device.brand: 'google' (Pixel etc.); without this alias, the migration has to fall back to the Android icon, which is misleading — the icon represents the device brand, not the OS.

Verification

  • svg/google.svg and svg_80x80/google.svg exist on master.
  • icons.generated.ts already imports both.
  • yarn generate is a no-op after this change (the imports were already there).
  • yarn build passes.

The svg/google.svg and svg_80x80/google.svg files have shipped since 2020 but no entry in PLATFORM_TO_ICON exposes them. Add the missing alias so callers can render the icon by passing platform="google".

Sentry's ContextIcon currently has to fall back to the android icon for the google device brand because of this gap.
@priscilawebdev priscilawebdev marked this pull request as ready for review May 18, 2026 06:57
@priscilawebdev priscilawebdev requested a review from Jesse-Box May 18, 2026 06:57
@priscilawebdev priscilawebdev merged commit 73add4d into master May 18, 2026
12 checks passed
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