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
fix: series premise field honors the server's 20,000-character cap (#9140)
Adam Eivy86e6be93b22f
diff --git a/client/src/pages/PipelineSeries.jsx b/client/src/pages/PipelineSeries.jsxindex 348f511416..ef8182658a 100644--- a/client/src/pages/PipelineSeries.jsx+++ b/client/src/pages/PipelineSeries.jsx@@ -48,6 +48,7 @@ import RecordRenderPinRow from '../components/imageGen/RecordRenderPinRow';import CharacterEvolutionLens from '../components/character/CharacterEvolutionLens';import { EVOLUTION_STAGES, isDeclaredEvolution } from '../lib/characterEvolution.js';import { CHARACTER_ARC_LIMITS, TRANSITION_KINDS, TRANSITION_KIND_LABELS } from '../../../server/lib/seriesCharacterArc.js';+import { LOGLINE_MAX, PREMISE_MAX, STYLE_NOTES_MAX } from '../../../server/lib/universeBibleLimits.js';const EDITOR_TABS = [{ id: 'issues', label: 'Issues & arc' },@@ -425,7 +426,7 @@ function BibleSidebar({ series, universes, patchSeries, onSeriesUpdate, onFlushPonChange={(e) => patchSeries({ logline: e.target.value })}placeholder="One-sentence pitch"className="w-full px-3 py-2 bg-port-bg border border-port-border rounded text-white"- maxLength={500}+ maxLength={LOGLINE_MAX}/></Field><Field compact label="Target issues / episodes">@@ -482,7 +483,7 @@ function BibleSidebar({ series, universes, patchSeries, onSeriesUpdate, onFlushPonChange={(e) => patchSeries({ premise: e.target.value })}rows={5}className="w-full px-3 py-2 bg-port-bg border border-port-border rounded text-white"- maxLength={8000}+ maxLength={PREMISE_MAX}placeholder="Longer free-form premise. World, tone, central conflict, hooks. Fed verbatim into every issue's stage prompts."/></Field>@@ -493,7 +494,7 @@ function BibleSidebar({ series, universes, patchSeries, onSeriesUpdate, onFlushPonChange={(e) => patchSeries({ styleNotes: e.target.value })}rows={3}className="w-full px-3 py-2 bg-port-bg border border-port-border rounded text-white"- maxLength={4000}+ maxLength={STYLE_NOTES_MAX}placeholder="moebius linework, washed sepia, slow zooms, ambient drones. Reused as the visual prefix for every image-gen call from this series."/></Field>diff --git a/client/src/pages/PipelineSeries.responsive.test.jsx b/client/src/pages/PipelineSeries.responsive.test.jsxindex c8230aa6cb..710e985c5d 100644--- a/client/src/pages/PipelineSeries.responsive.test.jsx+++ b/client/src/pages/PipelineSeries.responsive.test.jsx@@ -2,6 +2,7 @@ import { beforeEach, describe, expect, it, vi } from 'vitest';import { act, render, screen, fireEvent } from '@testing-library/react';import { createMemoryRouter, RouterProvider } from 'react-router';import PipelineSeries from './PipelineSeries';+import { LOGLINE_MAX, PREMISE_MAX, STYLE_NOTES_MAX } from '../../../server/lib/universeBibleLimits.js';const getPipelineSeries = vi.fn();const listPipelineIssues = vi.fn();@@ -74,6 +75,17 @@ describe('Pipeline series detail — mobile layout', () => {expect(page).toHaveClass('overflow-y-auto');expect(page).toHaveClass('lg:overflow-hidden');});++ it('caps premise, logline and style notes at the server limits (#9140)', async () => {+ getPipelineSeries.mockResolvedValue({ id: 'series-1', name: 'Example Series', premise: 'x'.repeat(12_000) });+ renderPage();+ await screen.findByRole('heading', { name: 'Example Series' });+ const premise = screen.getByPlaceholderText(/Longer free-form premise/);+ expect(premise).toHaveAttribute('maxlength', String(PREMISE_MAX));+ expect(premise.value).toHaveLength(12_000);+ expect(screen.getByPlaceholderText(/moebius linework/)).toHaveAttribute('maxlength', String(STYLE_NOTES_MAX));+ expect(document.querySelector(`[maxlength="${LOGLINE_MAX}"]`)).not.toBeNull();+ });});describe('Pipeline series detail — unsaved bible edits (#8423)', () => {