Centralize legacy document session bridge

This commit is contained in:
2026-06-04 13:30:22 +02:00
parent d980b81bd7
commit 4528edfb2c
10 changed files with 437 additions and 64 deletions

View File

@@ -733,6 +733,12 @@ behind the renderer boundary.
unsaved-project discard prompts, project open, layer refresh, title updates,
and history clearing while those live effects remain tracked under
`DEBT-0039`.
`App::request_close`, `App::save_document`, and
`App::continue_document_workflow_after_optional_save` now route through
app-core document-session executors and `src/legacy_document_session_services.*`,
preserving close prompts, save dialogs, save-version routing, existing-project
save execution, and dirty-workflow save-before-continue prompts while retained
legacy UI/canvas behavior remains tracked under `DEBT-0040`.
Implementation tasks:
@@ -1272,6 +1278,15 @@ Results:
- Focused document-open CTest coverage passed for
`pp_app_core_document_route_tests`, `pp_app_core_document_session_tests`, and
the `pano_cli_plan_open_route_*` smoke tests after the live bridge split.
- `PanoPainter`, `pp_app_core_document_session_tests`, and `pano_cli` built
after close request, document save, and dirty-workflow continuation execution
moved behind document-session services. A clean rebuild was required once
because MSVC reported the known Debug PDB `LNK1103` corruption, after which
the build passed.
- Focused document-session CTest coverage passed for
`pp_app_core_document_session_tests`, `pano_cli_simulate_app_session_*`, and
`pano_cli_plan_document_file/version_*` smoke tests after the live bridge
split.
- `pp_app_core_document_recording_tests` passed, covering recording start/stop,
clear, platform recorded-file cleanup, frame-count reset, export progress
totals, and oversized progress-total clamping.