Skip to content
This repository was archived by the owner on Oct 14, 2026. It is now read-only.

refactor(R2a): chart-type switch as pure functions - #394

Closed
himanshudube97 wants to merge 1 commit into
refactor/r1f-dashboard-grid-filtersfrom
refactor/r2a-type-switch
Closed

himanshudube97 wants to merge 1 commit into
refactor/r1f-dashboard-grid-filtersfrom
refactor/r2a-type-switch

Conversation

@himanshudube97

Copy link
Copy Markdown
Member

Stacked on #391. No behavior change.

  • components/charts/logic/type-switch.ts: applyChartTypeChange (the data panel's rules) and legacyEditPageTypeSwitch (the edit page's second pass). The edit page still runs both passes in today's order (incl. the pinned 422/legend/styling-reset bugs); create runs one; create-from-map path untouched.
  • 84 characterization cases generated from verbatim copies of the original code paths (0 mismatches; 5,600 whole-object comparisons during implementation).

Validation: chart builder area E2E (26 chart spec files: builders, edit, detail, type-switch matrices (84 transitions), permutations, metrics matrices, save persistence, gaps) + cross-navigation — 899/899 passed, no flakes. Jest + refactor gate green. Every task reviewed (risky ones on the strongest model).

🤖 Generated with Claude Code

…84 cases

applyChartTypeChange = ChartDataConfigurationV3's switch; legacyEditPageTypeSwitch = the
edit page's second pass. Expected values generated from the pre-refactor code.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
webapp-v2 Ready Ready Preview Oct 4, 2026 1:25pm UTC

@coderabbitai

coderabbitai Bot commented Oct 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5d259b78-7451-481c-a6f9-574c9ee5b545

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@himanshudube97

Copy link
Copy Markdown
Member Author

Closing: refactor stays local and will land as one combined branch.

@himanshudube97
himanshudube97 deleted the refactor/r2a-type-switch branch October 4, 2026 16:17

This branch was successfully deployed

1 active deployment
Preview — 9b7606bb Deployed Oct 4, 2026 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant