Part of #1507 and master #1505
Parent
Dependencies
Summary
Perform the loading-to-runtime handoff without copying registry or row state.
Current Limitation / Root Cause
A MainWindow-owned rows model would duplicate identity, selection, actions, and completion state.
Affected Files
| Path |
Change |
Phantom.Workspaces/App.axaml.cs |
Implement the bounded production change owned by this issue. |
Phantom.Workspaces/ViewModels/MainWindowViewModel.cs |
Implement the bounded production change owned by this issue. |
| Focused test file |
Add only the tests listed below. |
Design / Fix
This slice implements the following exact contract:
public sealed class MainWindowViewModel
{
public required AuthorizationRequestRowsViewModel AuthorizationRows { get; init; }
}
Switch the existing rows to Runtime, create the popup shell over it, show MainWindow, restore focus, then close loading.
Use required-init properties and named object initializers. The commit must build and its focused tests must pass without relying on a second implementation slice landing in the same commit.
Security and Privacy Invariants
- Release/use authorization occurs before material access or provider interaction whenever this slice can reach either boundary.
- No token, secret value, OAuth state, verifier, authorization URL, signed URL, device code, callback, account name, unsafe identifier, or credential-bearing result enters UI-safe state, logs, notifications, entities, or persistence.
- Typed results remain caller-owned and disposable; provider/cache artifacts remain executor-owned.
- Errors are typed and sanitized; no broad catch or success-shaped fallback is introduced.
Exclusions
- No batch API, compatibility bridge, legacy-data migration, silent interactive renewal, or unrelated provider work.
- No production types beyond the bounded files/classes named here.
- No UI work unless this issue is explicitly a UI slice.
Commit Plan
Commit 1 — [access-host-handoff] - Hand exact authorization rows instance to MainWindow
Production scope: Phantom.Workspaces/App.axaml.cs, Phantom.Workspaces/ViewModels/MainWindowViewModel.cs.
Tests: MainWindowIntegrationTests methods listed below.
Acceptance: one small coherent commit; no opportunistic adjacent migration.
Expected Tests
| Test Name |
Class |
What It Verifies |
ApplicationStartup_Success_MainWindowReceivesExactLoadingRowsInstance |
MainWindowIntegrationTests |
Verifies the named contract and leaves adjacent slices independently testable. |
ApplicationStartup_RequestChangesDuringHandoff_PreservesRowAndCompletion |
MainWindowIntegrationTests |
Verifies the named contract and leaves adjacent slices independently testable. |
ApplicationStartup_Handoff_PreservesFocusSelectionAndScrollState |
MainWindowIntegrationTests |
Verifies the named contract and leaves adjacent slices independently testable. |
Part of #1507 and master #1505
Parent
Dependencies
Summary
Perform the loading-to-runtime handoff without copying registry or row state.
Current Limitation / Root Cause
A MainWindow-owned rows model would duplicate identity, selection, actions, and completion state.
Affected Files
Phantom.Workspaces/App.axaml.csPhantom.Workspaces/ViewModels/MainWindowViewModel.csDesign / Fix
This slice implements the following exact contract:
Switch the existing rows to Runtime, create the popup shell over it, show MainWindow, restore focus, then close loading.
Use required-init properties and named object initializers. The commit must build and its focused tests must pass without relying on a second implementation slice landing in the same commit.
Security and Privacy Invariants
Exclusions
Commit Plan
Commit 1 — [access-host-handoff] - Hand exact authorization rows instance to MainWindow
Production scope:
Phantom.Workspaces/App.axaml.cs,Phantom.Workspaces/ViewModels/MainWindowViewModel.cs.Tests:
MainWindowIntegrationTestsmethods listed below.Acceptance: one small coherent commit; no opportunistic adjacent migration.
Expected Tests
ApplicationStartup_Success_MainWindowReceivesExactLoadingRowsInstanceMainWindowIntegrationTestsApplicationStartup_RequestChangesDuringHandoff_PreservesRowAndCompletionMainWindowIntegrationTestsApplicationStartup_Handoff_PreservesFocusSelectionAndScrollStateMainWindowIntegrationTests