Files
solvecraft/apps
Daniel 9387a1b93c Web app: restore and recover a large design without freezing the page, with progress and Cancel (#12578)
* Web app: test that a staged restore counts only once its file is in

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Web app: restore and recover a large design in stages, with progress and Cancel

Restore and Open saved version in "Restore unsaved design?" and Recover in "Recover unsaved work?" opened their design with open_path, which reads and evaluates it on the page's only thread before returning. They now open through open_path_answered, a few features a frame, and what follows the open (the design gets back its file and name and is marked unsaved, the kept copy or the recovery goes) waits for the answer that it is in. Neither window comes back while the open runs.

SolveApp::open_path is now pub(crate), with a line saying it blocks; the one test outside the crate that used it opens with open_path_async and waits for the load.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 17:14:07 +00:00
..