Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review: stamp locked:true on add for new variations + sheets
[._.]/ Adam Eivyfabf74cf6722
diff --git a/client/src/pages/UniverseBuilder.jsx b/client/src/pages/UniverseBuilder.jsxindex 0b82b6373c..020567f842 100644--- a/client/src/pages/UniverseBuilder.jsx+++ b/client/src/pages/UniverseBuilder.jsx@@ -2134,7 +2134,11 @@ function CompositeSheetsEditor({ sheets, onChange, canRender = false, onRender =const label = newLabel.trim();const prompt = newPrompt.trim();if (!label || !prompt) return;- onChange([...sheets, { kind: newKind, label: label.slice(0, 120), prompt: prompt.slice(0, COMPOSITE_PROMPT_MAX) }]);+ // Stamp `locked: true` up front so the in-draft row matches the+ // lock-by-default contract before the next save round-trips through+ // sanitizeCompositeSheet — otherwise the bulk-toggle's locked-count+ // gate would treat freshly-added boards as unlocked.+ onChange([...sheets, { kind: newKind, label: label.slice(0, 120), prompt: prompt.slice(0, COMPOSITE_PROMPT_MAX), locked: true }]);setNewKind('reference_sheet');setNewLabel('');setNewPrompt('');@@ -2446,7 +2450,11 @@ export function CategoryEditor({const label = newLabel.trim();const prompt = newPrompt.trim();if (!label || !prompt) return;- onChange([...variations, { label: label.slice(0, 120), prompt: prompt.slice(0, 2000) }]);+ // Stamp `locked: true` so the in-draft row matches the lock-by-default+ // contract before the next save round-trips through sanitizeVariation.+ // Without this, the bulk-toggle counts a freshly-added variation as+ // unlocked even though the user expects every new entry to land locked.+ onChange([...variations, { label: label.slice(0, 120), prompt: prompt.slice(0, 2000), locked: true }]);setNewLabel('');setNewPrompt('');setAdding(false);