SPB Git

Repository Public License

08-renderer-logic-data.md 1.7 KB 16 lines markdown

1# 8. Renderer, logic, and data runtime23**Renderer.** A schema-driven SwiftUI renderer over registered native components: nested layout, responsive resizing, themes, state binding, action routing, keyboard navigation, VoiceOver, focus order, localization readiness. The preview is the real app running, never a screenshot.45**Theme system.** Semantic colors, spacing scale, typography scale, radius, elevation, animation timing; dark, light, and high contrast. Ship a polished default; allow full customization.67**Events and actions.** Events: click, change, submit, selection, data updated, timer fired, app launched, external event. Actions: navigate, set state, validate, query data, transform, create/update/delete record, show notification, export file, run approved custom logic (per ADR 0003), invoke a permissioned service.89**Reactivity.** Explicit dependency graph, change propagation with cycle detection, debouncing, cancellation. State scopes: component, page, app, project.1011**Data.** Per-app SQLite store with schema, migrations, transactions, crash-safe writes, CSV import/export.1213**Visual editor (Design mode).** Component palette, drag-and-drop canvas, hierarchy tree, properties inspector with live edits, layout guides and snapping, spacing and alignment, theme tokens, multiselect, copy/paste, undo/redo. Edits such as changing a color or moving a panel are deterministic patches to the blueprint and make no model call. The prompt composer stays reachable from every mode.1415**Product modes** (all views over the same blueprint): Create, Design, Logic, Code, Preview, Publish, Evolve, Library, Connections, Monitor. V1 needs Create, Preview, Evolve, Design, Publish, Library, and a basic Monitor (jobs, logs, token usage and cost).16
Files main
Menu

Theme