Skip to content

feat: rewrite account details to new form system#107264

Merged
natemoo-re merged 94 commits intomasterfrom
tkdodo/feat/de-790-rewrite-account-details-to-new-form-system
Feb 17, 2026
Merged

feat: rewrite account details to new form system#107264
natemoo-re merged 94 commits intomasterfrom
tkdodo/feat/de-790-rewrite-account-details-to-new-form-system

Conversation

@TkDodo
Copy link
Collaborator

@TkDodo TkDodo commented Jan 29, 2026

No description provided.

@TkDodo TkDodo marked this pull request as ready for review February 17, 2026 17:34
@TkDodo TkDodo requested review from a team as code owners February 17, 2026 17:34
Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@natemoo-re natemoo-re enabled auto-merge (squash) February 17, 2026 18:44
@natemoo-re natemoo-re merged commit 068d1c8 into master Feb 17, 2026
60 checks passed
@natemoo-re natemoo-re deleted the tkdodo/feat/de-790-rewrite-account-details-to-new-form-system branch February 17, 2026 18:51
natemoo-re added a commit that referenced this pull request Feb 17, 2026
Follow-up to #107264.

The previous `JSONForm` system managed automatic scrolling based on the
URL hash.
In #107264, we tried to replicate that but overcomplicated things with a
`useEffect` call.
In this PR, we introduce a ref callback on the `label` element,
automatically handle hash scrolling, and call `label.control.focus()` to
focus on the form field's input.
// endpoint returns a partial `User` without `options` and other fields.
setApiQueryData<User>(queryClient, USER_ENDPOINT_QUERY_KEY, previousData => {
if (!previousData) {
return userData as User;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we’d want to return undefined here to bail out of updates.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

also if the USER_ENDPOINT return partial data, we have to change the type of fetchMutation<User> to <fetchMutation<Partial<User>>

mchen-sentry pushed a commit that referenced this pull request Feb 24, 2026
Co-authored-by: Nate Moore <nate.moore@sentry.io>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
mchen-sentry pushed a commit that referenced this pull request Feb 24, 2026
Follow-up to #107264.

The previous `JSONForm` system managed automatic scrolling based on the
URL hash.
In #107264, we tried to replicate that but overcomplicated things with a
`useEffect` call.
In this PR, we introduce a ref callback on the `label` element,
automatically handle hash scrolling, and call `label.control.focus()` to
focus on the form field's input.
@github-actions github-actions bot locked and limited conversation to collaborators Mar 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants