Split mac UI state saving
This commit is contained in:
@@ -61,6 +61,12 @@ agent or engineer to remove them without reconstructing context from chat.
|
|||||||
- 2026-06-13: `PLT-006` was narrowed again. macOS cursor visibility now routes
|
- 2026-06-13: `PLT-006` was narrowed again. macOS cursor visibility now routes
|
||||||
through the Apple service boundary instead of the catch-all legacy adapter;
|
through the Apple service boundary instead of the catch-all legacy adapter;
|
||||||
the Apple path still owns the OS-specific cursor toggle.
|
the Apple path still owns the OS-specific cursor toggle.
|
||||||
|
- 2026-06-13: `PLT-007` was narrowed again. macOS UI-state saving now routes
|
||||||
|
through the Apple service boundary instead of the catch-all legacy adapter;
|
||||||
|
the Apple path still owns the OS-specific UI-state save call.
|
||||||
|
- 2026-06-13: `PLT-007` was narrowed again. macOS UI-state saving now routes
|
||||||
|
through `src/platform_apple/apple_platform_services.*` instead of the
|
||||||
|
catch-all legacy adapter; the Apple path still owns the OS-specific save call.
|
||||||
- 2026-06-13: `DEBT-0036` was narrowed again. `NodeStrokePreview::draw_stroke_immediate()`
|
- 2026-06-13: `DEBT-0036` was narrowed again. `NodeStrokePreview::draw_stroke_immediate()`
|
||||||
now routes final composite execution and preview copy-back through a retained
|
now routes final composite execution and preview copy-back through a retained
|
||||||
local wrapper, leaving the call site with only sequence wiring.
|
local wrapper, leaving the call site with only sequence wiring.
|
||||||
|
|||||||
@@ -1362,6 +1362,40 @@ Completed Task Log:
|
|||||||
| --- | --- | ---: | --- | --- |
|
| --- | --- | ---: | --- | --- |
|
||||||
| 2026-06-13 | PLT-006 | +1 platform alignment and package parity | `ctest --preset desktop-fast --build-config Debug -R pp_platform_api_tests --output-on-failure`; `cmake --build --preset windows-msvc-default --config Debug --target pp_platform_api_tests` | `fc4f5e40` |
|
| 2026-06-13 | PLT-006 | +1 platform alignment and package parity | `ctest --preset desktop-fast --build-config Debug -R pp_platform_api_tests --output-on-failure`; `cmake --build --preset windows-msvc-default --config Debug --target pp_platform_api_tests` | `fc4f5e40` |
|
||||||
|
|
||||||
|
### PLT-007 - Split Mac UI State Saving From Legacy Platform Adapter
|
||||||
|
|
||||||
|
Status: Done
|
||||||
|
Score: +1 platform alignment and package parity
|
||||||
|
Debt: `DEBT-0017`, `DEBT-0052`
|
||||||
|
Scope: `src/platform_legacy/legacy_platform_services.cpp`,
|
||||||
|
`src/platform_apple/apple_platform_services.*`
|
||||||
|
|
||||||
|
Goal:
|
||||||
|
|
||||||
|
Move macOS UI-state saving out of the catch-all legacy platform adapter into
|
||||||
|
the Apple platform service boundary. Preserve current macOS UI-state saving
|
||||||
|
behavior and keep non-macOS behavior unchanged.
|
||||||
|
|
||||||
|
Done Checks:
|
||||||
|
|
||||||
|
- `src/platform_legacy/legacy_platform_services.cpp` no longer owns the macOS
|
||||||
|
UI-state save branch.
|
||||||
|
- macOS UI-state saving still dispatches through the Apple service path.
|
||||||
|
- The debt log records the reduced macOS platform tail.
|
||||||
|
|
||||||
|
Validation:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
ctest --preset desktop-fast --build-config Debug -R pp_platform_api_tests --output-on-failure
|
||||||
|
cmake --build --preset windows-msvc-default --config Debug --target pp_platform_api_tests
|
||||||
|
```
|
||||||
|
|
||||||
|
Completed Task Log:
|
||||||
|
|
||||||
|
| Date | Task | Score | Validation | Commit |
|
||||||
|
| --- | --- | ---: | --- | --- |
|
||||||
|
| 2026-06-13 | PLT-007 | +1 platform alignment and package parity | `ctest --preset desktop-fast --build-config Debug -R pp_platform_api_tests --output-on-failure`; `cmake --build --preset windows-msvc-default --config Debug --target pp_platform_api_tests` | `pending` |
|
||||||
|
|
||||||
### STR-010 - Extract Remaining Draw Merge Composite Orchestration
|
### STR-010 - Extract Remaining Draw Merge Composite Orchestration
|
||||||
|
|
||||||
Status: Done
|
Status: Done
|
||||||
|
|||||||
@@ -169,4 +169,11 @@ void AppleDocumentPlatformServices::set_cursor_visible(bool visible) const
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AppleDocumentPlatformServices::save_ui_state() const
|
||||||
|
{
|
||||||
|
#if defined(__OSX__)
|
||||||
|
[App::I->osx_app save_ui_state];
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ public:
|
|||||||
void display_file(std::string_view path) const;
|
void display_file(std::string_view path) const;
|
||||||
void share_file(std::string_view path) const;
|
void share_file(std::string_view path) const;
|
||||||
void set_cursor_visible(bool visible) const;
|
void set_cursor_visible(bool visible) const;
|
||||||
|
void save_ui_state() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
PlatformFamily family_;
|
PlatformFamily family_;
|
||||||
|
|||||||
@@ -451,9 +451,7 @@ public:
|
|||||||
{
|
{
|
||||||
if (!pp::platform::platform_saves_native_ui_state(pp::platform::current_platform_family()))
|
if (!pp::platform::platform_saves_native_ui_state(pp::platform::current_platform_family()))
|
||||||
return;
|
return;
|
||||||
#ifdef __OSX__
|
active_apple_document_platform_services().save_ui_state();
|
||||||
[App::I->osx_app save_ui_state];
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]] bool enables_live_asset_reloading() override
|
[[nodiscard]] bool enables_live_asset_reloading() override
|
||||||
|
|||||||
Reference in New Issue
Block a user