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: show music video draft timestamps in browser local time
[._.]/ Adam Eivya34ce08347fc
diff --git a/client/src/AGENTS.md b/client/src/AGENTS.mdindex 7d0bd0df34..e5b341943c 100644--- a/client/src/AGENTS.md+++ b/client/src/AGENTS.md@@ -4,6 +4,7 @@ These apply to React/Vite client code. Universal constraints (functional program## UI conventions+- **Display timestamps in browser-local time** — use the shared date/time formatters in `utils/formatters.js`; never render an ISO/UTC serialization as a display timestamp. Keep ISO timestamps for transport and persistence. Explicit schedule timezones and date-keyed reporting boundaries retain their domain semantics.- **Admin workspace design** — for new or redesigned admin pages, follow [the workspace design guide](../../docs/UX_DESIGN_GUIDE.md): choose a page family, put useful work first, use desktop width for related work/evidence, and preserve icon-prefixed desktop navigation plus CoS-style compact mobile icon rows. Apply incrementally; the guide does not authorize unrelated behavior changes or a global CSS rewrite.- **No window.alert/confirm** - use inline confirmations or toast notifications- **Form labels need `htmlFor`/`id` pairing** - when adding a settings/config form field, wire `<label htmlFor="...">` to an `id="..."` on the input — screen readers and click-to-focus both depend on the association. The visual `block`/`mb-1` styling alone doesn't establish it.diff --git a/client/src/components/musicVideo/ExcerptPanel.jsx b/client/src/components/musicVideo/ExcerptPanel.jsxindex f2302661be..5acc4cada4 100644--- a/client/src/components/musicVideo/ExcerptPanel.jsx+++ b/client/src/components/musicVideo/ExcerptPanel.jsx@@ -4,7 +4,7 @@ import { musicVideoAspect, MUSIC_VIDEO_ASPECTS } from '../../lib/musicVideoAspecimport { getMusicVideoSocialCuts } from '../../services/apiMusicVideo.js';import RevisionPanel, { currentRevision } from './RevisionPanel.jsx';import AutoReviewPanel from './AutoReviewPanel.jsx';-import { formatCount } from '../../utils/formatters.js';+import { formatCount, formatDateTime } from '../../utils/formatters.js';import { autoReviewNeedsUser } from '../../lib/musicVideoAttention.js';const VERDICT_STYLES = {@@ -129,7 +129,7 @@ function ExcerptCard({ excerpt, role, proofApproved, activeRenderId, connected,: <button type="button" disabled={deleting} onClick={() => setConfirmingDelete(true)} className="text-port-error flex items-center gap-1 disabled:opacity-50 min-h-[44px] sm:min-h-0"><Trash2 size={12} /> Delete</button>}</div></div>- <p className="text-xs text-port-text-muted">{excerpt.dependencyState?.status === 'stale' ? 'Made before later changes · re-render this range to see them' : excerpt.dependencyState?.status === 'current' ? 'Matches current inputs · production approval is separate' : 'Draft · approval is separate'}{excerpt.createdAt ? ` · ${new Date(excerpt.createdAt).toISOString().replace('T', ' ').slice(0, 19)} UTC` : ''}</p>+ <p className="text-xs text-port-text-muted">{excerpt.dependencyState?.status === 'stale' ? 'Made before later changes · re-render this range to see them' : excerpt.dependencyState?.status === 'current' ? 'Matches current inputs · production approval is separate' : 'Draft · approval is separate'}{excerpt.createdAt ? ` · ${formatDateTime(excerpt.createdAt)}` : ''}</p>{excerpt.status === 'error' && excerpt.error && <p role="alert" className="text-xs text-port-error">{excerpt.error}</p>}{excerpt.status === 'complete' && excerpt.filename && (<div className="space-y-2">diff --git a/client/src/components/musicVideo/ExcerptPanel.test.jsx b/client/src/components/musicVideo/ExcerptPanel.test.jsxindex f71e314fc7..80f3d0772d 100644--- a/client/src/components/musicVideo/ExcerptPanel.test.jsx+++ b/client/src/components/musicVideo/ExcerptPanel.test.jsx@@ -21,6 +21,23 @@ function renderPanel(project, startExcerpt = vi.fn()) {beforeEach(() => vi.clearAllMocks());+it('shows draft creation in browser-local time, including the local calendar day', () => {+ const createdAt = new Date(2026, 0, 2, 23, 45).toISOString();+ render(<ExcerptPanel project={documentProject} rendering={false} progress={0} excerpts={[+ { id: 'local-draft', status: 'complete', filename: 'draft.mp4', startSec: 0, endSec: 12, createdAt },+ ]} startExcerpt={vi.fn()} />);+ const expected = new Intl.DateTimeFormat(undefined, { dateStyle: 'medium', timeStyle: 'short' }).format(new Date(createdAt));+ expect(screen.getByText(`Draft · approval is separate · ${expected}`)).toBeVisible();+ expect(screen.queryByText(/ UTC$/)).toBeNull();+});++it('keeps a draft with an invalid creation timestamp viewable', () => {+ render(<ExcerptPanel project={documentProject} rendering={false} progress={0} excerpts={[+ { id: 'invalid-date', status: 'complete', filename: 'draft.mp4', startSec: 0, endSec: 12, createdAt: 'invalid' },+ ]} startExcerpt={vi.fn()} />);+ expect(screen.getByText('Draft · approval is separate · Unknown time')).toBeVisible();+});+describe('ExcerptPanel social cuts (#9280)', () => {it('renders the chosen range at another frame with faded audio edges', () => {const start = renderPanel(documentProject);