mirror of
https://github.com/PR0M3TH3AN/Artstr-Studio.git
synced 2026-10-27 08:40:39 +00:00
Replace the thin single-action-per-layer model with real interactive logic: - Cards gain onEnter/onExit chains; layers gain an onClick chain. Each is an ordered action chain, not a single link. - v1 action set: goto-card, go-back, open-url, show-layer, hide-layer, toggle-layer — reveals, secret panels, multi-step buttons, branching. - New action-builder surface: a no-JSON panel with reorderable rows, id-based target pickers, and authoring warnings. - Runtime tracks a per-card layer-visibility map (reset on re-entry) and executes chains; action overlay regions are focusable buttons. - Safety: onEnter/onExit cannot navigate (no enter->goto->enter loops); chains capped and non-recursive; unknown action types ignored. - Re-phased A (format) -> B (behaviour authoring) -> C (runtime) -> D (route) -> E (stack logic: variables/conditionals, future tier). Interactivity stays a declarative, interpreted attribute of existing layers — no new layer types, no HTML/JS, no eval. Co-Authored-By: Claude Opus 4.7 <[email protected]>