Skip to content

Drafts tab and Studio Pro-style Toolbox - #31

Merged
lucamykael merged 9 commits into
mainfrom
feat/drafts-view
Jul 25, 2026
Merged

Drafts tab and Studio Pro-style Toolbox#31
lucamykael merged 9 commits into
mainfrom
feat/drafts-view

Conversation

@lucamykael

Copy link
Copy Markdown
Owner

Two viewer improvements aligning the frontend with what the backend already stores:

Drafts tab

The visual editors save reviewable drafts (visual-plans.json, page-plans.json) but nothing surfaced them. New GET /api/drafts lists both, and a Drafts tab shows each draft with validity, saved time, a link to the element, and copyable MDL. Applying stays in the guarded CLI workflow.

Toolbox restyle (Studio Pro-like)

Widgets/Building blocks tabs, a search box, collapsible group headers with chevrons, and larger pictogram cards in a 3-column grid — matching Studio Pro's toolbox layout. Group order mirrors Studio Pro (Data containers first). Theme-aware.

Tests: 10 RSpec + 56 minitest runs, 0 failures. npm run build passes.

- New GET /api/drafts lists the entity and page drafts saved by the visual
  editors, and a Drafts tab in the viewer shows them with validity, saved
  time, and copyable MDL; applying stays in the guarded CLI workflow.
- Toolbox restyled after Studio Pro: Widgets/Building blocks tabs, search
  box, collapsible group headers, and larger pictogram cards in a 3-column
  grid; colours track the active theme.
Explorer header, indent guide lines, compact rows, and per-type coloured glyph icons instead of emoji.
Flood-fill the white corner background to alpha on favicon, apple-touch-icon, and the brand logo so they blend with dark browser and app chrome.
MDL requires a name identifier before the props parenthesis. New widgets get a unique name at creation, and the serializer synthesizes names for parsed widgets that came in unnamed.
- Document tab bar (element name [module], close) and an editor toolbar
  (kind + qualified name) above the canvas.
- Microflow activity nodes restyled as light rounded cards with a circular
  icon, closer to Studio Pro.
- Explorer: search icon in the filter, expand/collapse-all buttons, boxed
  +/- expanders, and circle bullets on leaf rows.
The canvas now takes the full editor area; the parameters/widgets detail dump moved into a collapsible Details drawer behind a Studio Pro-style bottom console bar, hidden by default.
Structure/Design toggle like Studio Pro: Structure keeps the builder chrome (drop zones, container heads, delete); Design renders the page on a light surface with real heading sizes (RenderMode H1-H4), clean inputs and buttons, and no editing chrome.
…polish

- Microflow editor: horizontal left-to-right layout with side handles, a
  shortcut toolbar (add activity/decision/change/validation/end, zoom, fit),
  re-wirable and connectable arrows, boxed edge labels, and a Studio Pro-style
  edit dialog on double-click (caption, activity type, flow parameters).
  Structural edits are canvas drafts; the MDL flow round-trip comes next.
- Marketplace: install is now a real guarded flow — requires confirming
  Studio Pro is closed, runs mxcli marketplace install against the source
  project, refreshes the inventory, and reloads so the module (e.g. OQL)
  appears in the App Explorer with its documents.
- Shell: bottom dock with Details/Changes/Errors/Console tabs (Changes reads
  the guarded git status), resizable side panels, and the Pages-only filter
  checkbox removed from the explorer.
@lucamykael
lucamykael merged commit b1450a2 into main Jul 25, 2026
5 checks passed
@lucamykael
lucamykael deleted the feat/drafts-view branch July 25, 2026 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant