Publish Design Studio and embedded Workplace maximization release
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
Built UTC: 2026-11-24T06:41:01.891198+00:00
|
||||
Source commit: 4891fc76eb2e4e6b312ebfe36081d14617513787
|
||||
Built UTC: 2026-11-24T07:21:02.813363+00:00
|
||||
Source commit: 0a74686c5291ff18d201fefd0215c8a83e55a47f
|
||||
Build: Vue typecheck/Vite + Maven package; Java release 11
|
||||
Tests: 5 Java tests, CheerpJ/navigation/widget suites and Chromium component smoke passed
|
||||
Live GlassFish/Oracle/SQL Server role roundtrip: NOT tested
|
||||
Tests: 7 Java tests incl H2 Oracle/MSSQL modes; CheerpJ/theme/design-schema suites; Chromium component and compiled-App tests; real CheerpJ maximization fixture
|
||||
Live GlassFish/Oracle/SQL Server/MES deployment: NOT tested
|
||||
Identical WAR paths: release/backend-1.war and backend/target/backend-1.war
|
||||
WAR SHA256: 3c4c2dc5ce000c39df360a647621683de6cc7ab60fc7980d3360558b5f2fa49b
|
||||
WAR SHA256: 7fcb1c083e0fcf52c59fe85f9d5c7aaf7bbd5f1033d1e3eba8b77c59fcd44b19
|
||||
|
||||
@@ -64,3 +64,9 @@ it does not change classes or deployments inside the MES server.
|
||||
This release also includes persistent page-role assignments, an always-visible role catalog and
|
||||
automatically maximized JNLP browser viewport. Window diagnostics remain off by default.
|
||||
See `HMI_PAGE_ROLES_FULLSCREEN.md` for authorization semantics and verification limits.
|
||||
|
||||
## Latest correction: embedded maximization and Design Studio
|
||||
|
||||
Automatic viewport overlay is superseded: Workplace remains embedded and its Java main window
|
||||
is maximized within the frame. Design-Studio adds named color/base-layout profiles with JSON
|
||||
import/export and database revision history. See HMI_DESIGN_STUDIO.md for usage and test limits.
|
||||
|
||||
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.
|
||||
@@ -1,5 +1,5 @@
|
||||
3c4c2dc5ce000c39df360a647621683de6cc7ab60fc7980d3360558b5f2fa49b backend-1.war
|
||||
148198d84f2965fd417e96c2c1daa007d320962bd0ec46b44ee987b3b0f2f60a WidgetWorkbench-source.zip
|
||||
67b9f8cbd9a40ee1f715e3a4363822741b673815310366c33ad9a5051a73358c DEPLOYMENT.md
|
||||
fdd0e6b7d7393f6b9432ad2492ab1354e8c12b03f1f337a4c533a68b1c6e829c HMI_PAGE_ROLES_FULLSCREEN.md
|
||||
fa1b20f0507a2744bfc6f8de73006dd8efa4838cbaf87913d850fa2f82e97bc8 BUILD.txt
|
||||
7fcb1c083e0fcf52c59fe85f9d5c7aaf7bbd5f1033d1e3eba8b77c59fcd44b19 backend-1.war
|
||||
9b0d26e621530e9c3ce29f42be3c5e78dade2557864954e07a24002fd779bff0 WidgetWorkbench-source.zip
|
||||
789f63295435ad738b5eed77364d1136396ecde02f574831aaf3510a5b23dbfd DEPLOYMENT.md
|
||||
25dd53fdf44eeb85ae6758427171a6a1a62d2bab28535885637f54147a56f7ef HMI_DESIGN_STUDIO.md
|
||||
413bb056aa8e516ae4de2c58b3379db14237729abc4edd993ba58b1f435a5c75 BUILD.txt
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user