feat(studio): restore project selection and loading flow
Restore the project launcher, creation wizard and loading shield with UI2 components. Coordinate real opening phases, a one-second minimum, pending session cleanup and per-project window geometry while retaining the Play slice. Keep global presentation controls in the project window, make the launcher frame resize with its window and prevent root run from chaining the foundation demo after the product exits. Update desktop/installed probes and documentation. Register the existing native bundle after capacity qualification, without changing native binaries or bypassing the execution guard. Validated with unit, desktop, native Play, headless, save, MCP and installed connector gates. Human-tested and accepted under WRK-0018.
This commit is contained in:
@@ -16,14 +16,22 @@ From the Studio repository:
|
||||
```
|
||||
|
||||
The standalone shell contains identity, presentation selectors and an empty central
|
||||
area. The application mounts its chooser/Play view in that shell. The **separate
|
||||
area. The product uses a separate project launcher, creation wizard and loading
|
||||
shield, then mounts Play in its project shell. The **separate
|
||||
development gallery** demonstrates components, validation, progress, both fonts and
|
||||
configurable text scale. Gallery actions operate on sample text only.
|
||||
|
||||
The product project chooser contains identity, the project list and project
|
||||
commands only. It inherits presentation settings; language, theme, typeface and
|
||||
scale selectors remain in the project window. From the repository root, an
|
||||
unqualified `run` starts the product and skips the foundation demo. Launch the
|
||||
foundation with the explicit module command above (or from that module directory).
|
||||
|
||||
```sh
|
||||
./gradlew :prometeu-studio-ui-javafx-2:test
|
||||
./gradlew :prometeu-studio-ui-javafx-2:desktopTest
|
||||
./gradlew :prometeu-studio-ui-javafx-2:installDist
|
||||
./gradlew :prometeu-app:studioProjectsDesktopTest
|
||||
```
|
||||
|
||||
`desktopTest` requires a desktop session and opens temporary windows. It exercises actual JavaFX behavior and writes PNG captures with environment metadata under `build/desktop-captures`. Normal unit tests do not require a display. Clipboard testing replaces clipboard content with a test string. Preference tests use an isolated disposable node rather than application preferences.
|
||||
@@ -53,7 +61,7 @@ Semantic theme colors are in `styles/dark.css` and `styles/light.css`. Component
|
||||
|
||||
`UserSettingsStore` uses the Java Preferences node `p/studio/ui/javafx2` for theme, language, bundled typeface and text scale (75–200%). Startup uses dark, Departure Mono and 100%; a supported system locale chooses pt-BR, otherwise English. Invalid individual values fall back independently with diagnostics.
|
||||
|
||||
Load preferences and font/bundle resources before composing views. `SettingsPersistence` debounces writes on its worker, flushes the last choice asynchronously on close, and shuts the worker down. It never writes from the FX thread. No project state or previous frontend preferences are migrated.
|
||||
Load preferences and font/bundle resources before composing views. `SettingsPersistence` debounces writes on its worker, flushes the last choice asynchronously on close, and shuts the worker down. It never writes from the FX thread. Project-window geometry is restored per project through `WindowStateStore`, with IO off the FX thread. Previous frontend presentation preferences are not migrated.
|
||||
|
||||
All interface messages live in UTF-8 `messages_en.properties` and `messages_pt_BR.properties`. Missing translations diagnose and fall back to English; an absent English key displays `[key]`. Bundle parity is checked by unit tests. Dynamic feedback retains its key/arguments and is reformatted on locale changes; user-authored text retains its value.
|
||||
|
||||
@@ -72,4 +80,13 @@ Unit tests verify preference codecs/storage, asynchronous final persistence, loc
|
||||
|
||||
The initial desktop target is macOS. Snapshot PNGs are logical scene captures; metadata records actual output scale, but these captures do not themselves prove physical-pixel sharpness at every scale. Windows/Linux, a screen-reader walkthrough and native multi-step IME input remain environment-specific manual qualification. Preserving JavaFX semantics is not a claim that those checks were completed.
|
||||
|
||||
No project navigation, editor host, ACP, domain workspace, asset authoring, build/run/debug or shipping feature is implemented here.
|
||||
The launcher supports known-project selection, manifest addition, opening,
|
||||
forgetting and a five-step new-project wizard through neutral API ports. Loading
|
||||
uses observable real steps and a one-second minimum counted in parallel; pending
|
||||
sessions and late results remain owned until presentation or cleanup. A failed
|
||||
cleanup blocks a replacement opening and offers an explicit cleanup retry.
|
||||
`closeAsync()` completes after coordinated session and presentation teardown;
|
||||
callers must await it off the FX thread before shutting down their worker pool.
|
||||
|
||||
No editor host, ACP, domain workspace, asset authoring, debug or shipping view is
|
||||
mounted in this product. Native Play remains behind the execution API.
|
||||
|
||||
Reference in New Issue
Block a user