Skip to content

HALDEN BAKEHOUSE ARCHITECTURE · CLIENT-SIDE REACTIVE SUITE

State Management & Reactive Dynamics Suite

A comprehensive live environment demonstrating client-side reactivity across Site-Wide Globals, Page-Level Local States, Reusable Saved Blocks, Deep Nested JSON trees, Starbase Collection Database CRUD, and Studio Logic Board visual node graph execution — completely decoupled from full-page reloads.

• Site Scope: Shared across every page in the customer session • Page Scope: Reactive local parameters for interactive page elements • Saved Block Scope: Modular components with internal and inherited states • Deep JSON Paths: Dot-notation drill-down (e.g. ) • Starbase CRUD: Real-time database operations synchronized with client state • Studio Logic Board: Multi-node pipeline execution with triggers, gates, conditions, and action dispatching

01 · Site-Wide Global States (Client Session)

Global variables persist across navigation and components throughout a visitor session. Any update here reflects across headers, footers, saved blocks, and normal pages instantly.

📢 Live Global Announcement:

🏪 Hearth Status: Bakery is currently (Location: )

🛒 Shopping Basket: items in cart · Free delivery at $

🎨 Brand Config (JSON): Currency: · City: · Guild Discount:

02 · Page-Scoped States & Dynamic Interactivity

Page variables maintain isolated client state specific to this URL. Interactive elements modify state on button clicks with immediate UI re-rendering.

🪙 Crust Loyalty Tokens: tokens accumulated (VIP Milestone at 10 tokens: )

🍞 Today's Hearth Loaves Baked: units · In Stock: · Shift:

💬 Interactive Modals: Quick Order Dialog: · Flour Spec Sheet Drawer:

Hierarchical Deep JSON Inspection

• Guild Customer Tier: • Scheduled Hearth Pickup: • Calculated Order Subtotal: • Item #1: x () • Item #2: x () • Loyalty Reward Points: Hearth Points

03 · States from Another Saved Block

The card below is a modular Saved Block placed by reference ({ type: "global", props: { ref: "..." } }). Notice how it resolves its own block-scoped states (daily special, price, fermentation hours) while simultaneously reading ambient site and page states:

⭐ Reusable Saved Block · Live Feature Loaf

This modular banner is a shared Saved Block placed by reference ({ type: "global", props: { ref: ... } }). It simultaneously renders its own saved-block states, ambient site-wide globals, and active page-level parameters:

• Saved Block Special: · • Artisan Craft: h slow hearth ferment · Only loaves remaining today! • Inherited Global Announcement: • Inherited Page Category: Active in section

04 · Studio State Management Suite Control

Open the Studio State Management Suite from the left sidebar icon in the dashboard to live-inspect all state variables, add custom variables, modify values with immediate visual canvas hydration, and test interactive dynamics seamlessly.

05 · Starbase Collection Live CRUD Operations

Full two-way synchronization between client-side reactive state and PostgreSQL Starbase collections (collection: test-specials). Click any action button below to trigger database mutations and witness immediate live state updates without a full page refresh.

📁 Starbase Collection: `` (Hearth Daily Specials) 📊 Total Starbase Records in DB: loaves & bakes ⚡ Last Database Operation:

🥖 Featured Special In Focus: · Price: 📦 Stock Availability: ( available units)

06 · Studio Logic Board & Visual Workflow Engine

Every action button, state variable, and database operation on this page is directly connected to the Studio Logic Board. Click the workflow buttons below to execute multi-node logic pipelines across the 4 Studio scopes (Frontend Page, Frontend Global, Backend Page, Backend Global) with live telemetry feedback.

⚡ Last Executed Logic Pipeline: 🧭 Active Logic Scope: `` ⏱️ Execution Timestamp:

🔗 Pipeline Trace: