Skip to content

GUI: Add change username setting#5620

Merged
Jon-edge merged 1 commit intodevelopfrom
jon/change-username
Jun 25, 2025
Merged

GUI: Add change username setting#5620
Jon-edge merged 1 commit intodevelopfrom
jon/change-username

Conversation

@Jon-edge
Copy link
Copy Markdown
Contributor

@Jon-edge Jon-edge commented Jun 6, 2025

image image

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)

@Jon-edge Jon-edge changed the title Add change username setting GUI: Add change username setting Jun 6, 2025
@Jon-edge Jon-edge force-pushed the jon/change-username branch from 33d4ee3 to 658146c Compare June 6, 2025 06:15
Comment thread src/actions/AccountActions.tsx Outdated
}

export function validatePassword(opts: ValidatePasswordOptions = {}): ThunkAction<Promise<boolean>> {
export function validatePassword(opts: ValidatePasswordOptions = {}): ThunkAction<Promise<string | undefined>> {
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.

Note for next time: This change would have made sense as its own commit.

Comment on lines +21 to +28
const handleComplete = useHandler((result?: { username?: string | undefined }) => {
if (result?.username == null) return

account.changeUsername({ username: result.username, password }).catch(error => console.error(error))
logActivity(`Username changed to: ${result.username}`)

navigation.goBack()
})
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.

This logic should be in login-ui, similar to how change-pin or change-password work. Those basically just use login-ui directly with nothing more than a SceneWraper container around it.

@Jon-edge Jon-edge force-pushed the jon/change-username branch 2 times, most recently from ff0694e to bcd8d4b Compare June 25, 2025 17:35
@Jon-edge Jon-edge force-pushed the jon/change-username branch from bcd8d4b to 3630abb Compare June 25, 2025 17:38
@Jon-edge Jon-edge merged commit 1860e61 into develop Jun 25, 2025
1 of 2 checks passed
@Jon-edge Jon-edge deleted the jon/change-username branch June 25, 2025 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants