Skip to content

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

feat: make launch video overview card dismissible and disable for PortOS and Eidoverse Worlds

[._.]/ Adam Eivy64505d852670
diff --git a/client/src/components/apps/constants.js b/client/src/components/apps/constants.js
index a342a615fe..a2d3044a23 100644
--- a/client/src/components/apps/constants.js
+++ b/client/src/components/apps/constants.js
@@ -166,6 +166,15 @@ export const isAppFeatureEnabled = (app, featureId, globalEnabled) => {
return legacy ?? (globalEnabled !== false);
};
+/** Whether launch videos are disabled for an app (PortOS baseline app or Eidoverse Worlds app). */
+export const isLaunchVideoDisabled = (app) => {
+ if (!app) return false;
+ if (app.id === PORTOS_APP_ID) return true;
+ if (app.id === 'eidoverse-worlds' || app.id === 'eidoverse') return true;
+ if (Array.isArray(app.pm2ProcessNames) && app.pm2ProcessNames.includes('eidoverse-worlds')) return true;
+ return false;
+};
+
// Overview first, then alphabetical. Every id is a real route segment
// (`/apps/:appId/:tab`) so each tab is linkable, bookmarkable, and reachable
// from ⌘K — see the routing rules in client/src/AGENTS.md. Icons live in
@@ -185,7 +194,7 @@ export const APP_DETAIL_TABS = [
{ id: 'issues', label: 'Issues' },
{ id: 'pull-requests', label: 'PRs / MRs' },
{ id: 'jira', label: 'JIRA', feature: 'jira' },
- { id: 'launch-video', label: 'Launch Video' },
+ { id: 'launch-video', label: 'Launch Video', visibleWhen: (app) => !isLaunchVideoDisabled(app) },
{ id: 'processes', label: 'Processes' },
{ id: 'quality', label: 'Quality' },
{ id: 'references', label: 'References' },
diff --git a/client/src/components/apps/constants.test.js b/client/src/components/apps/constants.test.js
index 29b6ffc53a..63a300c548 100644
--- a/client/src/components/apps/constants.test.js
+++ b/client/src/components/apps/constants.test.js
@@ -1,5 +1,6 @@
import { describe, it, expect } from 'vitest';
-import { APP_DETAIL_TABS, appUsesJira, getAppFeatureOverride, isAppFeatureEnabled } from './constants';
+import { PORTOS_APP_ID } from '../../lib/appIdentity';
+import { APP_DETAIL_TABS, appUsesJira, getAppFeatureOverride, isAppFeatureEnabled, isLaunchVideoDisabled } from './constants';
const featureEntry = (id) => APP_DETAIL_TABS.find(tab => tab.id === id);
@@ -59,3 +60,23 @@ describe('managed-app feature overrides', () => {
expect(isAppFeatureEnabled({ jira: { enabled: false }, workTracker: 'github' }, 'jira', true)).toBe(false);
});
});
+
+describe('isLaunchVideoDisabled', () => {
+ it('disables launch videos for PortOS baseline app and Eidoverse Worlds app', () => {
+ expect(isLaunchVideoDisabled({ id: PORTOS_APP_ID })).toBe(true);
+ expect(isLaunchVideoDisabled({ id: 'eidoverse-worlds' })).toBe(true);
+ expect(isLaunchVideoDisabled({ id: 'eidoverse' })).toBe(true);
+ expect(isLaunchVideoDisabled({ id: 'custom-id', pm2ProcessNames: ['eidoverse-worlds'] })).toBe(true);
+
+ expect(isLaunchVideoDisabled({ id: 'standard-app', pm2ProcessNames: ['standard-app'] })).toBe(false);
+ expect(isLaunchVideoDisabled(null)).toBe(false);
+ });
+
+ it('hides launch-video detail tab for PortOS and Eidoverse Worlds apps via visibleWhen', () => {
+ const launchVideoTab = featureEntry('launch-video');
+ expect(typeof launchVideoTab.visibleWhen).toBe('function');
+ expect(launchVideoTab.visibleWhen({ id: 'portos-default' })).toBe(false);
+ expect(launchVideoTab.visibleWhen({ id: 'eidoverse-worlds' })).toBe(false);
+ expect(launchVideoTab.visibleWhen({ id: 'my-app' })).toBe(true);
+ });
+});
diff --git a/client/src/components/apps/tabs/OverviewTab.jsx b/client/src/components/apps/tabs/OverviewTab.jsx
index c21c81d72a..b3d46cf984 100644
--- a/client/src/components/apps/tabs/OverviewTab.jsx
+++ b/client/src/components/apps/tabs/OverviewTab.jsx
@@ -1,12 +1,13 @@
import { useState, useEffect, useMemo } from 'react';
import { Link, useNavigate } from 'react-router';
-import { FolderOpen, Gamepad2, Terminal, Code, RefreshCw, Wrench, Archive, ArchiveRestore, Download, Tag, AlertTriangle, Rocket, Camera, Image, Sparkles, Trash2, Smartphone, Clapperboard } from 'lucide-react';
+import { FolderOpen, Gamepad2, Terminal, Code, RefreshCw, Wrench, Archive, ArchiveRestore, Download, Tag, AlertTriangle, Rocket, Camera, Image, Sparkles, Trash2, Smartphone, Clapperboard, X } from 'lucide-react';
import toast from '../../ui/Toast';
import InlineConfirmRow from '../../ui/InlineConfirmRow';
-import { isStandardizable, NON_PM2_TYPES } from '../constants';
+import { isStandardizable, NON_PM2_TYPES, isLaunchVideoDisabled } from '../constants';
import ActivityLog from '../ActivityLog';
import SlashDoPanel from '../SlashDoPanel';
import Banner from '../../ui/Banner';
+import { safeReadStorage, safeWriteStorage } from '../../../lib/safeStorage';
import { useAppOperation } from '../../../hooks/useAppOperation';
import * as api from '../../../services/api';
import { formatBytes } from '../../../utils/formatters';
@@ -125,21 +126,50 @@ export default function OverviewTab({ app, onRefresh }) {
};
const launchVideoPath = `/apps/${encodeURIComponent(app.id)}/launch-video`;
+ const launchVideoDismissKey = `portos:launch-video-card-dismissed:${app?.id}`;
+ const [launchVideoCardDismissed, setLaunchVideoCardDismissed] = useState(
+ () => safeReadStorage(launchVideoDismissKey) === 'true'
+ );
+
+ useEffect(() => {
+ if (!app?.id) return;
+ setLaunchVideoCardDismissed(safeReadStorage(`portos:launch-video-card-dismissed:${app.id}`) === 'true');
+ }, [app?.id]);
+
+ const handleDismissLaunchVideoCard = () => {
+ setLaunchVideoCardDismissed(true);
+ if (app?.id) {
+ safeWriteStorage(`portos:launch-video-card-dismissed:${app.id}`, 'true');
+ }
+ };
+
+ const showLaunchVideoCard = !isLaunchVideoDisabled(app) && !launchVideoCardDismissed;
return (
<div className="space-y-6">
- <div className="flex flex-wrap items-center justify-between gap-3 rounded-lg border border-port-border bg-port-card p-4">
- <div>
- <h2 className="font-semibold">Launch videos</h2>
- <p className="text-sm text-port-text-muted">Make a short launch video with any agent, then preview and download every take.</p>
- </div>
- <div className="flex flex-wrap gap-2">
- <Link to={launchVideoPath} className="inline-flex items-center gap-2 rounded border border-port-border px-3 py-2 text-port-text hover:border-port-accent">
- <Clapperboard size={16} aria-hidden="true" />View launch videos
- </Link>
- <Link to={`${launchVideoPath}?launchVideo=true`} className="rounded bg-port-accent px-3 py-2 text-white">Make launch video</Link>
+ {showLaunchVideoCard && (
+ <div className="flex flex-wrap items-center justify-between gap-3 rounded-lg border border-port-border bg-port-card p-4">
+ <div>
+ <h2 className="font-semibold">Launch videos</h2>
+ <p className="text-sm text-port-text-muted">Make a short launch video with any agent, then preview and download every take.</p>
+ </div>
+ <div className="flex flex-wrap items-center gap-2">
+ <Link to={launchVideoPath} className="inline-flex items-center gap-2 rounded border border-port-border px-3 py-2 text-port-text hover:border-port-accent">
+ <Clapperboard size={16} aria-hidden="true" />View launch videos
+ </Link>
+ <Link to={`${launchVideoPath}?launchVideo=true`} className="rounded bg-port-accent px-3 py-2 text-white">Make launch video</Link>
+ <button
+ type="button"
+ onClick={handleDismissLaunchVideoCard}
+ aria-label="Dismiss launch video card"
+ title="Dismiss launch video card"
+ className="inline-flex items-center justify-center rounded p-2 text-port-text-muted hover:bg-port-border hover:text-white transition-colors"
+ >
+ <X size={16} aria-hidden="true" />
+ </button>
+ </div>
</div>
- </div>
+ )}
{/* Capped width so key/value pairs stay legible. (JIRA config + the sprint
Kanban board, which needed the full page width, now live on the app's
own JIRA tab.) */}
diff --git a/client/src/components/apps/tabs/OverviewTab.test.jsx b/client/src/components/apps/tabs/OverviewTab.test.jsx
index edc2e91f2c..3774f8edfc 100644
--- a/client/src/components/apps/tabs/OverviewTab.test.jsx
+++ b/client/src/components/apps/tabs/OverviewTab.test.jsx
@@ -134,3 +134,48 @@ describe('OverviewTab native app actions', () => {
expect(screen.getByRole('button', { name: 'Open Example iOS App in Xcode' }).disabled).toBe(false);
});
});
+
+describe('OverviewTab launch video card', () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ window.localStorage?.clear();
+ api.getAppSpriteBindings.mockResolvedValue({ bindings: [] });
+ });
+
+ it('renders the launch video card for standard apps and permits dismissal', async () => {
+ const user = userEvent.setup();
+ renderOverview({ ...APP, id: 'standard-app', name: 'Standard App' });
+ await waitFor(() => expect(api.getAppSpriteBindings).toHaveBeenCalledWith('standard-app'));
+
+ expect(screen.getByRole('heading', { name: 'Launch videos' })).toBeTruthy();
+ const dismissButton = screen.getByRole('button', { name: 'Dismiss launch video card' });
+ expect(dismissButton).toBeTruthy();
+
+ await user.click(dismissButton);
+
+ expect(screen.queryByRole('heading', { name: 'Launch videos' })).toBeNull();
+ expect(window.localStorage.getItem('portos:launch-video-card-dismissed:standard-app')).toBe('true');
+ });
+
+ it('does not render launch video card when previously dismissed', async () => {
+ window.localStorage.setItem('portos:launch-video-card-dismissed:standard-app', 'true');
+ renderOverview({ ...APP, id: 'standard-app', name: 'Standard App' });
+ await waitFor(() => expect(api.getAppSpriteBindings).toHaveBeenCalledWith('standard-app'));
+
+ expect(screen.queryByRole('heading', { name: 'Launch videos' })).toBeNull();
+ });
+
+ it('does not render launch video card for PortOS baseline app', async () => {
+ renderOverview({ ...APP, id: 'portos-default', name: 'PortOS' });
+ await waitFor(() => expect(api.getAppSpriteBindings).toHaveBeenCalledWith('portos-default'));
+
+ expect(screen.queryByRole('heading', { name: 'Launch videos' })).toBeNull();
+ });
+
+ it('does not render launch video card for Eidoverse Worlds app', async () => {
+ renderOverview({ ...APP, id: 'eidoverse-worlds', name: 'Eidoverse Worlds', pm2ProcessNames: ['eidoverse-worlds'] });
+ await waitFor(() => expect(api.getAppSpriteBindings).toHaveBeenCalledWith('eidoverse-worlds'));
+
+ expect(screen.queryByRole('heading', { name: 'Launch videos' })).toBeNull();
+ });
+});