Skip to content

ref(explore): validate aggregateField URL param with nuqs and zod - #129507

Merged
JoshuaKGoldberg merged 1 commit into
masterfrom
joshgoldberg/de-1766-explore-aggregate-field-param
Nov 2, 2026
Merged

JoshuaKGoldberg merged 1 commit into
masterfrom
joshgoldberg/de-1766-explore-aggregate-field-param

Conversation

@JoshuaKGoldberg

@JoshuaKGoldberg JoshuaKGoldberg commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Explore's aggregateField URL param now parses each entry with nuqs's built-in parseAsJson and a zod schema that reuses the visualize schema, instead of hand-written type checks.

Adds 118 - 12 = 106 of tests, so it's more like +33/-43. 🔪

Closes DE-1768.

@linear-code

linear-code Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

DE-1768

DE-1766

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 2, 2026
@JoshuaKGoldberg

Copy link
Copy Markdown
Member Author

@cursor review

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 682b9db. Configure here.

@JoshuaKGoldberg
JoshuaKGoldberg marked this pull request as ready for review November 2, 2026 19:00
@JoshuaKGoldberg
JoshuaKGoldberg requested a review from a team as a code owner November 2, 2026 19:00
@JoshuaKGoldberg
JoshuaKGoldberg requested a review from a team November 2, 2026 19:14
Base automatically changed from joshgoldberg/de-1766-explore-visualize-param to master November 2, 2026 20:48
Reads each aggregateField entry through parseAsJson with a zod schema that reuses the visualize schema, instead of JSON.parse and hand-written guards.
@JoshuaKGoldberg
JoshuaKGoldberg force-pushed the joshgoldberg/de-1766-explore-aggregate-field-param branch from 682b9db to 2ad9276 Compare November 2, 2026 20:48
@JoshuaKGoldberg
JoshuaKGoldberg enabled stacked auto-merge (squash) November 2, 2026 20:50
@JoshuaKGoldberg
JoshuaKGoldberg merged commit f537398 into master Nov 2, 2026
80 checks passed
@JoshuaKGoldberg
JoshuaKGoldberg deleted the joshgoldberg/de-1766-explore-aggregate-field-param branch November 2, 2026 20:53

This branch was successfully deployed

1 active deployment
Preview — 2ad92760 Deployed Nov 2, 2026 by vercel[bot]
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