Skip to content

Pop out manual station add/edit into standalone window#74

Merged
TheJoeFin merged 3 commits into
devfrom
copilot/pop-out-manual-station-window
Apr 1, 2026
Merged

Pop out manual station add/edit into standalone window#74
TheJoeFin merged 3 commits into
devfrom
copilot/pop-out-manual-station-window

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 31, 2026

Closing the tray flyout clears any in-progress station form fields because the navigation stack is destroyed with it. Both "add manually" and "edit station" flows now open a dedicated ManualStationWindow that lives outside the flyout lifecycle.

New: Controls/ManualStationWindow

  • WindowEx-based, 400×380, non-maximizable/minimizable with MicaBackdrop and dynamic TitleBar title ("Add" vs "Edit")
  • Reuses AddStationViewModel and PlayerViewModel.Shared — no ViewModel changes needed
  • Tracked via existing WindowHelper.Track() to prevent premature GC; auto-focuses the name field on activation
  • Closes on save (after successful ViewModel.Save()) or cancel

Updated callers

Location Before After
PlayingPage → Edit context menu _shellViewModel?.NavigateToAddStationPage(station) Opens ManualStationWindow pre-loaded with station
SearchStation → "Or add station manually" _shellViewModel?.NavigateToAddStationPage() Opens blank ManualStationWindow

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • ndavsblobprodwus219.blob.core.windows.net
    • Triggering command: /usr/bin/dotnet dotnet restore --no-dependencies /tmp/codeql-scratch-09a801a7dd23cb56/dbs/csharp/working/7308510B18BD5F018EBF4978576AFCBB/missingpackages_workingdir --packages /tmp/codeql-scratch-09a801a7dd23cb56/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /tmp/codeql-scratch-09a801a7dd23cb56/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)
  • s8nvsblobprodwus2158.blob.core.windows.net
    • Triggering command: /usr/bin/dotnet dotnet build Trdo/Trdo.csproj --configuration Debug /p:EnableWindowsTargeting=true (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI self-assigned this Mar 31, 2026
Agent-Logs-Url: https://github.com/TheJoeFin/Trdo/sessions/069d6b25-7e88-4cf0-85ed-b1ea8971abf7

Co-authored-by: TheJoeFin <7809853+TheJoeFin@users.noreply.github.com>
Copilot AI changed the title [WIP] Pop out manual station into its own small window Pop out manual station add/edit into standalone window Mar 31, 2026
Copilot AI requested a review from TheJoeFin March 31, 2026 23:38
Added WindowPlacementService to capture pointer position and position windows (ManualStationWindow, TutorialWindow) near the anchor. Updated event handlers to use the service before opening flyouts or windows. Increased ManualStationWindow height to 500 and reformatted XAML bindings for readability. Added necessary using directives for the new service.
@TheJoeFin TheJoeFin marked this pull request as ready for review April 1, 2026 00:32
@TheJoeFin TheJoeFin merged commit b6d7cc5 into dev Apr 1, 2026
1 check passed
@TheJoeFin TheJoeFin deleted the copilot/pop-out-manual-station-window branch April 1, 2026 00:34
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.

Pop out manual station into it's own small window because flyout closing clears fields

2 participants