Skip to content

fix(explore): Use unique ids for visuals#116204

Merged
nsdeschenes merged 1 commit into
masterfrom
nd/EXP-960/fix-explore-use-unique-ids-in-visuals
May 26, 2026
Merged

fix(explore): Use unique ids for visuals#116204
nsdeschenes merged 1 commit into
masterfrom
nd/EXP-960/fix-explore-use-unique-ids-in-visuals

Conversation

@nsdeschenes
Copy link
Copy Markdown
Contributor

This PR moves to using unique ids in ToolbarVisualize, when rending in the DnD context. This PR also migrates handling of deletions to the built in deleteColumnAtIndex function.

Closes EXP-960

… after deletion

When deleting a visualization from the middle of the list, index-based
React keys caused component reuse mismatches. The ArithmeticBuilder's
internal useState kept the deleted item's expression while the chart
rendered the correct data, producing a visible desync.

Use DragNDropContext's deleteColumnAtIndex (which properly maintains
stable uniqueId refs) and key components by uniqueId instead of index.

Closes EXP-960
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 26, 2026

EXP-960

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 26, 2026
@github-actions
Copy link
Copy Markdown
Contributor

📊 Type Coverage Diff

✅ No new type safety issues introduced. Coverage: 93.56%

@nsdeschenes nsdeschenes marked this pull request as ready for review May 26, 2026 17:54
@nsdeschenes nsdeschenes requested a review from a team as a code owner May 26, 2026 17:54
@nsdeschenes nsdeschenes merged commit 9363a27 into master May 26, 2026
72 checks passed
@nsdeschenes nsdeschenes deleted the nd/EXP-960/fix-explore-use-unique-ids-in-visuals branch May 26, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants