Skip to content

refactor(analytics): remove unused components - #427

Merged
imshashank merged 1 commit into
Noveum:mainfrom
be-student:fix/411-remove-unused-analytics
Sep 6, 2026
Merged

imshashank merged 1 commit into
Noveum:mainfrom
be-student:fix/411-remove-unused-analytics

Conversation

@be-student

@be-student be-student commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

Removes the five unused analytics components identified in #411, along with their now-unreachable private dependencies and obsolete data loaders. Live analytics lenses, shared cards, and the sprint chart remain unchanged.

Why

Closes #411

These legacy components are no longer imported by the application and add 844 lines of maintenance surface.

How you know it works

  • bun run typecheck
  • Analytics tests: 152 passed, 0 failed
  • bun run verify: lint, source checks, workspace typechecks, core (1,039), realtime (45), and MCP (206) tests passed; the full web test process later received SIGTRAP at line-plot.test.tsx, which passes in the focused analytics run
  • Residual import search found no live consumers of the removed symbols

Checklist

  • bun run verify is green, all four checks
  • Tests added or updated, and they fail without the change
  • No comments added to code, and no em-dash characters anywhere
  • No any, no non-null assertions
  • Docs updated if behaviour, configuration or setup changed

Anything reviewers should know

No documentation changed because this removes unreachable implementation code without changing behaviour, configuration, or setup.

Greptile Summary

Removes unreachable legacy analytics components, their private chart dependency, and obsolete data-loading helpers while preserving the active lens-based analytics interface.

  • Deletes five unused analytics sections and their supporting UI modules.
  • Deletes the private legacy bar chart and burndown implementations.
  • Removes now-unused analytics loader functions, types, and imports from data.ts.

Confidence Score: 5/5

The PR appears safe to merge because the removed modules and exports have no remaining consumers.

The change is limited to unreachable analytics code and obsolete private helpers, with no identified broken imports, runtime routes, public contracts, or repository-rule violations.

Important Files Changed

Filename Overview
apps/web/src/features/analytics/data.ts Removes obsolete loader functions and associated imports without affecting the data APIs used by active analytics lenses.
apps/web/src/features/analytics/cycle-panel.tsx Deletes an unreachable legacy sprint analytics panel whose module has no remaining consumers.
apps/web/src/features/charts/bar-chart.tsx Deletes a private legacy chart component with no remaining imports; the active bar-plot implementation remains separate.

Reviews (1): Last reviewed commit: "refactor(analytics): remove unused compo..." | Re-trigger Greptile

@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

Thanks for your first pull request to Orbit.

Two things that will save you a review round: bun run verify runs the
same four checks CI does, and the repo has no comments in code by policy,
so bun run check-comments will flag any you added out of habit.

A maintainer will review this shortly. Ask anything on the thread.

@coderabbitai

coderabbitai Bot commented Sep 6, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 32 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

This review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: 44f3c6fe-896d-497e-9b14-c804475989b0

📥 Commits

Reviewing files that changed from the base of the PR and between c24fb47 and db56974.

📒 Files selected for processing (10)
  • apps/web/src/features/analytics/breakdown-section.tsx
  • apps/web/src/features/analytics/burndown-chart.tsx
  • apps/web/src/features/analytics/cycle-panel.tsx
  • apps/web/src/features/analytics/cycle-section.tsx
  • apps/web/src/features/analytics/data.ts
  • apps/web/src/features/analytics/distribution-section.tsx
  • apps/web/src/features/analytics/labels.ts
  • apps/web/src/features/analytics/measure-toggle.tsx
  • apps/web/src/features/analytics/scope-section.tsx
  • apps/web/src/features/charts/bar-chart.tsx

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

@github-actions github-actions Bot added needs tests Touches source without touching a test area: web The Next.js app and its UI labels Sep 6, 2026

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

Checked every removed module for importers on main outside the deleted set and found none, which matches the green typecheck and the 152 analytics tests. Going further than the five files in #411 and taking the private helpers and the four dead loaders in data.ts with them was the right call. Merging.

@imshashank
imshashank merged commit 656f985 into Noveum:main Sep 6, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: web The Next.js app and its UI needs tests Touches source without touching a test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Delete the analytics components nothing renders any more

2 participants