Skip to content

Open configuration dialog when username/profile is missing on Start - #91

Merged
mchl7852 merged 1 commit into
mainfrom
fix/start-checks-open-configuration-dialog
Aug 10, 2026
Merged

Open configuration dialog when username/profile is missing on Start#91
mchl7852 merged 1 commit into
mainfrom
fix/start-checks-open-configuration-dialog

Conversation

@alpha5611331

Copy link
Copy Markdown
Member

Summary

  • ControlPanel's pre-start checks already toasted an error when full name or profile data was missing, but never opened the Configuration dialog for the user to fix it - that dialog's open state lived only inside TitlebarMenu.
  • Added useConfigurationDialog context, provided by MainFrame (wraps every route), and moved the ConfigurationDialog mount there so it can be opened from anywhere in the tree.
  • TitlebarMenu's menu item now opens the dialog through the shared context instead of owning its own local state.
  • ControlPanel's fullName and hasProfileData checks now call openConfigurationDialog as their onFail, alongside the existing toast.error(...).

Fixes #90

Test plan

  • pnpm exec tsc -p tsconfig.app.json --noEmit - clean
  • pnpm exec eslint src/renderer - clean
  • pnpm exec prettier --write on touched files, diffed to confirm only intended changes
  • Manual check: clear full name/profile, click Start, confirm toast + dialog both appear; confirm menu "Configuration" item still opens the dialog normally

…profile

The dialog was owned solely by TitlebarMenu's local state, so ControlPanel's
existing pre-start validation could only toast an error, not surface a way
to fix it. Lift the dialog into a context provided by MainFrame so both
places can open it.

Fixes #90

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@mchl7852 mchl7852 self-assigned this Aug 10, 2026
@mchl7852
mchl7852 self-requested a review August 10, 2026 15:44

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

LGTM

@mchl7852
mchl7852 merged commit 3606eef into main Aug 10, 2026
1 check passed
@mchl7852
mchl7852 deleted the fix/start-checks-open-configuration-dialog branch August 10, 2026 15:45

@chmm195 chmm195 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me.

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

LGTM

@mchl7852
mchl7852 requested a review from kevinkamto August 10, 2026 20:44
@kevinkamto

Copy link
Copy Markdown
Collaborator

Nice work 🎉

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.

Start button does not open configuration dialog when username or profile is missing

5 participants