Skip to content

refactor: remove unused insights chart components - #625

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
BharadwajKanneveti:refactor/remove-dead-insights-charts
Aug 3, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
BharadwajKanneveti:refactor/remove-dead-insights-charts

Conversation

@BharadwajKanneveti

Copy link
Copy Markdown
Contributor

Summary

Removes two unused chart components from the Insights dashboard along with the helpers and constants that were exclusively used by them.

Changes

  • Removed the unused PlatformChart component.
  • Removed the unused CompetitorChart component.
  • Removed orphaned helpers:
    • BarList
    • PieTooltip
    • CompetitorTooltip
  • Removed orphaned constants:
    • PLATFORM_COLORS
    • DEFAULT_PLATFORM_DATA
    • BRAND_COLORS

This reduces dead code while preserving all active chart components, including TrendChart, VisibilityRateTrendChart, CompetitorLeaderboard, ShareOfVoicePlatformChart, and ShareOfVoiceTrendChart.

Related issue

Closes #589

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

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

Pure deletion, exactly the scope from the issue — the live charts (ShareOfVoicePlatformChart, TrendChart) are untouched and CI confirms no dangling references. Thanks!

@gkhngyk
gkhngyk merged commit 1478758 into ansvisor:main Aug 3, 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.

Insights: remove dead PlatformChart and CompetitorChart components (~180 lines)

2 participants