Skip to content

fix: centralize platform display labels - #553

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
MFA-G:fix/platform-label-map
Jul 29, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
MFA-G:fix/platform-label-map

Conversation

@MFA-G

@MFA-G MFA-G commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • remove the duplicated platform label map from the tracking action
  • use the canonical PLATFORM_LABELS map for Insights breakdown narratives
  • standardize the conflicting labels as Google AI Overview, Microsoft Copilot, and Google Gemini

Closes #552

Validation

  • yarn typecheck
  • yarn eslint src/config/platform-labels.ts src/lib/actions/tracking.ts
  • yarn prettier --check src/config/platform-labels.ts src/lib/actions/tracking.ts
  • yarn test src/lib/actions/tracking.test.ts (3 tests passed)
  • git diff --check

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Welcome to Ansvisor, and thank you for your first PR! A maintainer will be by soon to review.

In the meantime, two things that make review faster:

  • A short description of why the change matters, not just what it does — most of our PRs link a Fixes #... to the issue that explains the why.
  • A quick local test note if there's anything worth eyeballing in the browser.

If you'd like to keep an eye on where Ansvisor goes next, a ⭐ on the repo helps others discover it (and Watch sends you a ping when related issues land). Either way — looking forward to your next one.

@gkhngyk gkhngyk 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.

Clean fix — verified all 16 slugs from the removed map exist in the canonical one, and color/icon lookups are slug-keyed so nothing breaks. Thanks!

@gkhngyk
gkhngyk merged commit 5a55c69 into ansvisor:main Jul 29, 2026
4 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.

Duplicate platform label map in tracking.ts has drifted from config/platform-labels.ts

2 participants