Skip to content

Open the first form once the menu has loaded - #4

Merged
jeff377 merged 1 commit into
mainfrom
claude/open-first-form
Oct 3, 2026
Merged

jeff377 merged 1 commit into
mainfrom
claude/open-first-form

Conversation

@jeff377

@jeff377 jeff377 commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

After sign-in, the shell is meant to open the first form of the menu. On the browser and iOS heads it opened nothing.

FormsView.OnLoaded read the menu once, but FormsViewModel fetches it from the server after sign-in, so on those heads it was still empty when the view loaded, and the one-time flag stopped any later attempt. The view model now exposes the load as MenuLoaded; the view awaits it and opens the first form, unless the user has opened a form in the meantime.

The same change as polhem-dev/polhem#49, whose apps/Polhem.Northwind had the same two files. Verified there on the browser head and the iOS simulator; here the desktop and browser heads build with no warnings, and CI builds the rest.

The shell opened the first form from OnLoaded, but the menu is fetched from the server after sign-in and was still empty there on the browser and iOS heads, so nothing opened. The view model now exposes the load as MenuLoaded, and the view opens the first form when it completes, unless the user has opened one already.
@jeff377
jeff377 merged commit 1d2e80e into main Oct 3, 2026
2 checks passed
@jeff377
jeff377 deleted the claude/open-first-form branch October 3, 2026 07:21
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.

1 participant