Skip to content

Fix account settings button opening general tab instead of account - #2930

Merged
wojtekn merged 1 commit into
trunkfrom
fix-show-user-settings-account-tab
Mar 27, 2026
Merged

Fix account settings button opening general tab instead of account#2930
wojtekn merged 1 commit into
trunkfrom
fix-show-user-settings-account-tab

Conversation

@wojtekn

@wojtekn wojtekn commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

Related issues

  • N/A

How AI was used in this PR

I used AI to fix the issue.

Proposed Changes

I propose to pass 'account' explicitly to showUserSettings() in the top bar's authenticated user button. It seems as regression introduced at some point.

Testing Instructions

  1. Log in to Studio with a WordPress.com account
  2. Click the "Howdy, {name}" / Gravatar button in the top bar
  3. Verify the Settings modal opens on the Account tab (previously opened on General)
  4. Click the cog (⚙) button — verify it still opens on the General tab

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
The Howdy/avatar button was calling showUserSettings() with no arguments,
causing TabPanel to default to the first tab ('general') after the tabs
were renamed. Pass 'account' explicitly to open the correct tab.
@wojtekn wojtekn self-assigned this Mar 27, 2026
@wojtekn
wojtekn requested a review from a team March 27, 2026 09:36
@wpmobilebot

Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing 2f6c271 vs trunk

app-size

Metric trunk 2f6c271 Diff Change
App Size (Mac) 1268.05 MB 1268.05 MB +0.00 MB ⚪ 0.0%

site-editor

Metric trunk 2f6c271 Diff Change
load 1865 ms 1660 ms 205 ms 🟢 -11.0%

site-startup

Metric trunk 2f6c271 Diff Change
siteCreation 8184 ms 8173 ms 11 ms ⚪ 0.0%
siteStartup 4837 ms 4836 ms 1 ms ⚪ 0.0%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff)

@bcotrim bcotrim 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.

LGTM 👍

Screen.Recording.2026-03-27.at.10.01.23.mov

@katinthehatsite katinthehatsite 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.

These changes also look good to me 👍

@wojtekn
wojtekn merged commit c376ef3 into trunk Mar 27, 2026
11 checks passed
@wojtekn
wojtekn deleted the fix-show-user-settings-account-tab branch March 27, 2026 11:07
fredrikekelund pushed a commit that referenced this pull request Apr 2, 2026
#2930)

The Howdy/avatar button was calling showUserSettings() with no arguments,
causing TabPanel to default to the first tab ('general') after the tabs
were renamed. Pass 'account' explicitly to open the correct tab.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants