Skip to content

refactor(R1d): chart payload builders and map-layer conversion as tested modules - #389

Closed
himanshudube97 wants to merge 4 commits into
refactor/r1b-chart-validation-defaultsfrom
refactor/r1d-chart-payloads
Closed

himanshudube97 wants to merge 4 commits into
refactor/r1b-chart-validation-defaultsfrom
refactor/r1d-chart-payloads

Conversation

@himanshudube97

Copy link
Copy Markdown
Member

Stacked on R1b. No behavior change — request bodies identical (E2E payload snapshots unchanged).

  • logic/payload.ts: buildChartDataPayload(config, drill, builder), buildCreateChartPayload, buildEditChartPayload, resolveTableDimensions, TableDrillDownState — replacing the ~120-line memos and save literals in both builder pages.
  • logic/map-layers.ts: toSimplifiedMapFields / toMapLayers.
  • logic/builder-kind.ts: ChartBuilderKind.
  • Create/edit differences are explicit, tested ("… differs between builders") and marked // BUILDER-DRIFT:; // PINNED-BUGS: only for rows in PINNED-BUGS.md.
  • Accepted deviation: create's save no longer throws on a theoretical layers: [null] (never produced).
  • FEATURES.md "Functions & logic" entries re-pointed to the new modules (Jest-covered).

Validation: full E2E suite on the R1 tip — 1237 passed, 3 flaky (passed on retry), 1 failure that passed 8/8 re-run alone (machine-load timeout). Payload snapshots unchanged. Jest + refactor gate green. Each task reviewed + whole-branch review.

🤖 Generated with Claude Code

himanshudube97 and others added 4 commits October 4, 2026 15:13
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Create/edit differences (empty metrics array, table_columns) are explicit and tested.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…artBuilderKind home, marker vocabulary, docs

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 11:43am 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: 7295dc03-8c3a-45cf-b3db-e8f4c1515539

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/r1d-chart-payloads branch October 4, 2026 16:17

This branch was successfully deployed

1 active deployment
Preview — a0a81340 Deployed Oct 4, 2026 by vercel[bot]
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