Publish Design Studio and embedded Workplace maximization release
This commit is contained in:
63
release/HMI_DESIGN_STUDIO.md
Normal file
63
release/HMI_DESIGN_STUDIO.md
Normal file
@@ -0,0 +1,63 @@
|
||||
# Embedded Workplace maximization and Design Studio – 2026-11-24
|
||||
|
||||
## Workplace correction (supersedes the earlier automatic viewport overlay)
|
||||
|
||||
The widget stays in its original GridStack/iframe area. No automatic browser overlay/fullscreen.
|
||||
A Java 11 helper, `WorkplaceLauncher`, runs the original JNLP main with its original arguments and
|
||||
maximizes ONLY `com.itac.mes.suite.presentation.MesSuiteFrame` inside CheerpJ's virtual desktop.
|
||||
It sets MAXIMIZED_BOTH plus explicit bounds for virtual window managers, observes viewport changes,
|
||||
and leaves login dialogs and other windows alone. It operates in the SAME application JVM as main,
|
||||
not in the separate preparatory Library Mode context. It contains no vendor classes or credentials.
|
||||
The existing manual fullscreen buttons remain optional. Window diagnostics remain OFF by default.
|
||||
The current MES JNLP/JAR source and browser identity fix are unchanged; no archive fallback.
|
||||
Linux and Windows build entry points now build the launcher helper with `javac --release 11`.
|
||||
|
||||
## Design Studio
|
||||
|
||||
Open **Design-Studio** in the designer sidebar. Choose a base: iOS/iTAC, Neon, Dark or Light.
|
||||
Create a named profile with a technical ID and edit the supported color tokens with color pickers.
|
||||
This version is a base-layout/color-token editor, not a free-form page/layout or arbitrary CSS editor.
|
||||
The existing **ios.css bearbeiten** editor remains available independently for full legacy CSS editing.
|
||||
Original built-in designs are immutable starting points. Custom profiles appear in the header design
|
||||
selector and settings after publication; select one and use **Speichern** to persist your preference.
|
||||
Color tokens also propagate to teleported dialogs. Base-layout effects remain those of the selected base.
|
||||
|
||||
- **Neue Revision einchecken** saves an immutable snapshot, revision number, author, timestamp and note.
|
||||
- **Veröffentlichen** makes a saved revision available to users; unsaved edits cannot be published.
|
||||
- Select an older revision and publish it to roll back. Previous snapshots are retained.
|
||||
- **Download JSON** exports the current editor contents (including uncommitted edits) as
|
||||
`widgetworkbench.design`, format version 1. No credentials or user sessions are exported.
|
||||
- **Upload JSON** validates a <=32 KB file and imports it as a NEW unsaved profile. It never silently
|
||||
overwrites an existing database design. Choose a fresh ID and check in explicitly.
|
||||
- Editing/check-in/history requires designer/admin; publication requires publisher/admin.
|
||||
All writes require existing CSRF validation. Operators only receive published profiles.
|
||||
- Concurrent changes are checked with expectedRevision / expectedPublishedId; reload on conflict.
|
||||
|
||||
## Persistence
|
||||
|
||||
Uses existing `CUST.HMI_APP_PREF` / `cust.HMI_APP_PREF` through `dsCustNJTA`:
|
||||
`DESIGN_HEAD` stores the latest revision and published pointer; `DESIGN_REVISION` stores immutable
|
||||
snapshots; `DESIGN_EVENT` appends publication/rollback events. No table/column migrations or drops.
|
||||
Check-in and publication are serializable transactions. Failed transactions roll back their records.
|
||||
Only supported six-digit color values are accepted; executable CSS, URLs and unknown tokens are rejected.
|
||||
A custom user preference is stored as `theme=custom:<design-id>`, falling back to iOS if unavailable.
|
||||
|
||||
## Verification
|
||||
|
||||
- Real Chromium/CheerpJ 5.0/Java 11 test fixture: a 200x120 JFrame with the vendor main-frame class name
|
||||
becomes 640x480 at (0,0) inside a 640x480 CheerpJ display. `MAXIMIZE_PASS`, screenshot inspected.
|
||||
This is a UI fixture, not a new authenticated Workplace/MES test.
|
||||
- Chromium component test: check-in, publication, download filename, upload as new unsaved design,
|
||||
and JNLP staying inside its parent rather than entering a viewport overlay. HTTP API mocked here.
|
||||
- Backend resource tests use H2 Oracle AND MSSQLServer compatibility modes: real JDBC persistence,
|
||||
immutable history, draft invisibility, publication, rollback, stale-write rejection, 401/403 and CSRF.
|
||||
Seven Java tests pass in total. These modes are NOT real Oracle/SQL Server integration certification.
|
||||
- Portable design schema roundtrip/rejection tests; existing CheerpJ and theme suites; Vue typecheck,
|
||||
Vite and Maven build. Business logic/MES bookings and Windows deployment are not live-tested.
|
||||
|
||||
Deploy the rebuilt WAR and hard-reload the browser. Verify check-in/publication with your configured
|
||||
GlassFish datasource and a separate operator account before production rollout.
|
||||
|
||||
Additional compiled-app browser test passed: a published custom Neon-based profile is loaded into
|
||||
both the selector and shell, its background override is rendered, custom:<id> is saved through
|
||||
preferences, and Design-Studio opens from the actual sidebar. Backend responses mocked for this test.
|
||||
Reference in New Issue
Block a user