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
feat: add create-loom action to FableLoom empty state (#10933)
Adam Eivy23aa22df2a9e
diff --git a/client/src/pages/FableLoom.jsx b/client/src/pages/FableLoom.jsxindex c00ea33168..3ce30d9da0 100644--- a/client/src/pages/FableLoom.jsx+++ b/client/src/pages/FableLoom.jsx@@ -274,6 +274,13 @@ export default function FableLoom() {<p className="text-sm text-port-text-muted">No branching narratives yet. Create a loom, shape its series plan, then weave its episodes.</p>+ <button+ type="button"+ onClick={() => setShowForm(true)}+ className="mt-4 inline-flex items-center gap-1.5 px-3 py-2 rounded bg-port-accent text-white text-sm"+ >+ <Plus size={15} /> Create your first loom+ </button></div>) : (<div className="grid grid-cols-1 gap-3 sm:grid-cols-2">diff --git a/client/src/pages/FableLoom.test.jsx b/client/src/pages/FableLoom.test.jsxindex 8e5ba38388..eb5909d456 100644--- a/client/src/pages/FableLoom.test.jsx+++ b/client/src/pages/FableLoom.test.jsx@@ -79,6 +79,17 @@ describe('FableLoom index', () => {await waitFor(() => expect(screen.getByText(/No branching narratives yet/)).toBeInTheDocument());});+ it('opens the creation form from the empty-state action', async () => {+ api.listLooms.mockResolvedValue([]);+ const user = userEvent.setup();+ await renderPage();+ await waitFor(() => expect(screen.getByText(/No branching narratives yet/)).toBeInTheDocument());++ expect(screen.queryByLabelText('Name')).not.toBeInTheDocument();+ await user.click(screen.getByRole('button', { name: /Create your first loom/ }));+ expect(screen.getByLabelText('Name')).toBeInTheDocument();+ });+it('creates a loom and navigates to its editor', async () => {api.createLoom.mockResolvedValue({ id: 'loom-9' });const user = userEvent.setup();