diff --git a/package.json b/package.json index 864b828..3c12420 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "test:e2e": "esbuild src/server/index.ts --bundle --format=esm --platform=node --outfile=test/e2e/.server.mjs --log-level=warning && node --no-warnings test/e2e/run.mjs ./.server.mjs schema.sql && node --no-warnings test/e2e/drive-imports.mjs" }, "dependencies": { - "@clawnify/app": "^0.4.5", + "@clawnify/app": "^0.4.8", "@clawnify/connections": "^0.7.0", "@clawnify/db": "^0.4.3", "@clawnify/queue": "^0.1.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e4191f1..57d221d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: '@clawnify/app': - specifier: ^0.4.5 - version: 0.4.5(@cloudflare/workers-types@4.20260613.1)(@hono/zod-openapi@0.19.10(hono@4.12.25)(zod@3.25.76))(@phosphor-icons/react@2.1.10(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(hono@4.12.25)(react@19.2.7) + specifier: ^0.4.8 + version: 0.4.8(@cloudflare/workers-types@4.20260613.1)(@hono/zod-openapi@0.19.10(hono@4.12.25)(zod@3.25.76))(@phosphor-icons/react@2.1.10(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(hono@4.12.25)(react@19.2.7) '@clawnify/connections': specifier: ^0.7.0 version: 0.7.0 @@ -190,8 +190,8 @@ packages: resolution: {integrity: sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==} engines: {node: '>=6.9.0'} - '@clawnify/app@0.4.5': - resolution: {integrity: sha512-EBaeJvqUIIyZd/hV5+0Gth1NGJoZKz8W1eBOg8ShAuE7rV0QWDP1rK2n4SKiZdMJA8BPkzZcYWaKNy44DNKPbA==} + '@clawnify/app@0.4.8': + resolution: {integrity: sha512-kDeP5J67x6BkTcdFPKgmr3bHuTKyhny2XXkrnyhlHXb4+nVNSYDgNWyeam/Pwkx6wnryvZ3nkv/VAlCDL0bZiA==} peerDependencies: '@hono/zod-openapi': '>=0.18 <1' '@phosphor-icons/react': '>=2' @@ -2710,7 +2710,7 @@ snapshots: '@babel/helper-string-parser': 7.29.7 '@babel/helper-validator-identifier': 7.29.7 - '@clawnify/app@0.4.5(@cloudflare/workers-types@4.20260613.1)(@hono/zod-openapi@0.19.10(hono@4.12.25)(zod@3.25.76))(@phosphor-icons/react@2.1.10(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(hono@4.12.25)(react@19.2.7)': + '@clawnify/app@0.4.8(@cloudflare/workers-types@4.20260613.1)(@hono/zod-openapi@0.19.10(hono@4.12.25)(zod@3.25.76))(@phosphor-icons/react@2.1.10(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(hono@4.12.25)(react@19.2.7)': dependencies: '@clawnify/db': 0.4.3(@cloudflare/workers-types@4.20260613.1) '@clawnify/routes': 0.3.0(@hono/zod-openapi@0.19.10(hono@4.12.25)(zod@3.25.76))(hono@4.12.25) diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 62f1725..f8f53f7 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -5,3 +5,4 @@ allowBuilds: minimumReleaseAgeExclude: - '@clawnify/connections@0.7.0' - '@clawnify/services@0.6.0' + - '@clawnify/app@0.4.8' diff --git a/src/client/app.tsx b/src/client/app.tsx index 854d89e..f7f19fd 100644 --- a/src/client/app.tsx +++ b/src/client/app.tsx @@ -1,6 +1,6 @@ -import { useCallback, useEffect, useState } from "react"; +import { useCallback, useEffect, useState, type ReactNode } from "react"; import { ArrowLeft, Film } from "lucide-react"; -import { AppNav, embedded, reportLocation, useHostNavigate } from "@clawnify/app/client"; +import { AppNav, reportLocation, useHostNavigate } from "@clawnify/app/client"; import { EditRoute, ProjectsHome, type EditProject } from "./edit"; import { SharedHighlightsRoute } from "./library-highlights"; import { HighlightsRoute } from "./highlights"; @@ -26,9 +26,9 @@ function useRouter() { /** * Inside the Clawnify dashboard the projects are listed in the dashboard * sidebar, and the open screen is kept in the host URL so a reload returns to - * it. + * it. Anywhere else the app's own header (`standalone`) is drawn instead. */ -function HostNav({ active, path, navigate }: { active: string; path: string; navigate: (to: string) => void }) { +function HostNav({ active, path, navigate, standalone }: { active: string; path: string; navigate: (to: string) => void; standalone: () => ReactNode }) { const [projects, setProjects] = useState<(Omit & { video_ids?: string[] })[]>([]); useEffect(() => { fetch("/api/projects") @@ -53,6 +53,7 @@ function HostNav({ active, path, navigate }: { active: string; path: string; nav }, ]} onNavigate={(item) => item.href && navigate(item.href)} + standalone={standalone} /> ); } @@ -68,11 +69,10 @@ export function App() { return (
- {embedded && } {/* Brand row: the app icon is the identity object, and the accent hue lives here (plus count badges and the focus ring) and nowhere else. The dashboard draws its own, so it is standalone-only. */} - {!embedded && ( + (
{editId && (
- )} + )} /> {id === "highlights" ? : editId && highlights ? (