Skip to content

ref(nuqs): finish moving partly-migrated files onto nuqs - #129573

Merged
JoshuaKGoldberg merged 5 commits into
masterfrom
joshgoldberg/de-1779-nuqs-partly-nuqs
Nov 3, 2026
Merged

JoshuaKGoldberg merged 5 commits into
masterfrom
joshgoldberg/de-1779-nuqs-partly-nuqs

Conversation

@JoshuaKGoldberg

@JoshuaKGoldberg JoshuaKGoldberg commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Files that already read some URL query params through nuqs now read the rest, and update same-page params, through nuqs too, so each page has one source of truth for its query state.

This is +103/-2 for tests, so it's kind of +223/-230.

Closes DE-1779.

Read the remaining URL query params and update same-page queries through
nuqs in files that already used it for some params.

Refs DE-1779
@linear-code

linear-code Bot commented Nov 2, 2026

Copy link
Copy Markdown

DE-1779

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 2, 2026
Parse params that feed location-keyed logic from the router location so they
can't lag it, and move the mobile builds writes onto nuqs.

Refs DE-1779
@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 feb021a. Configure here.

@JoshuaKGoldberg
JoshuaKGoldberg marked this pull request as ready for review November 3, 2026 14:06
@JoshuaKGoldberg
JoshuaKGoldberg requested review from a team as code owners November 3, 2026 14:06

@natemoo-re natemoo-re left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent cleanup, nuqs ftw!

Comment on lines +9 to +11
export const parseAsPreprodBuildsDisplay = parseAsStringEnum(
Object.values(PreprodBuildsDisplay)
).withDefault(PreprodBuildsDisplay.SIZE);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌 beautiful

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great stuff

type Error = (typeof ERROR_TYPES)[keyof typeof ERROR_TYPES] | null;

const allProjectsQueryParsers = {
_allp: parseAsString,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know you're just porting this over, but it'd be great to have a comment explaining how we landed on this _allp pattern.

…9-nuqs-partly-nuqs

# Conflicts:
#	static/app/views/explore/releases/list/mobileBuilds.tsx
@JoshuaKGoldberg
JoshuaKGoldberg enabled auto-merge (squash) November 3, 2026 16:53
@JoshuaKGoldberg
JoshuaKGoldberg merged commit dae4aac into master Nov 3, 2026
84 checks passed
@JoshuaKGoldberg
JoshuaKGoldberg deleted the joshgoldberg/de-1779-nuqs-partly-nuqs branch November 3, 2026 16:56

This branch was successfully deployed

1 active deployment
Preview — f204e7a8 Deployed Nov 3, 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