Skip to content

Let user open Settings menu in offline mode - #582

Merged
wojtekn merged 2 commits into
trunkfrom
update/topbar-login-windoow-in-offline-mode
Oct 4, 2024
Merged

Let user open Settings menu in offline mode#582
wojtekn merged 2 commits into
trunkfrom
update/topbar-login-windoow-in-offline-mode

Conversation

@wojtekn

@wojtekn wojtekn commented Oct 3, 2024

Copy link
Copy Markdown
Contributor

Related to https://github.com/Automattic/dotcom-forge/issues/9298

Proposed Changes

Now, when the Settings menu allows selecting language, I propose letting users open it using the 'Log in' link in the top bar, making it consistent with behavior for a logged-in state.

Testing Instructions

  1. Log in using the 'Log in' button in the top bar
  2. Confirm that the top bar link changes state to 'Howdy [...]'
  3. Turn off wifi to put Studio into offline mode
  4. Confirm that log out action works
  5. Confirm that the 'Log in' link opens the settings which allows changing language

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
@wojtekn
wojtekn requested a review from a team October 3, 2024 13:40
@wojtekn wojtekn self-assigned this Oct 3, 2024
@matt-west

Copy link
Copy Markdown
Contributor

Tested on macOS and works as expected. 👍

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

The functionality worked as expected for me on macOS.

Nice work!

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

It works great! I tested it by clicking on the login and I see how the settings modal open.

If the app is offline, I see the login button inside the modal is disabled.

Thanks for fixing the tests.

S1GxBu.mp4
Screenshot 2024-10-04 at 10 01 22
@wojtekn
wojtekn merged commit bfcae35 into trunk Oct 4, 2024
@wojtekn
wojtekn deleted the update/topbar-login-windoow-in-offline-mode branch October 4, 2024 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants