From c32f5881817ba02fb5e85ca72d49f18233325f64 Mon Sep 17 00:00:00 2001 From: Adeel Ahmad Date: Wed, 14 Oct 2026 23:58:35 +0000 Subject: [PATCH] build(deps): move to Tailwind CSS 4 Tailwind 4 is configured in CSS: the tokens map into an @theme block in app/globals.css and tailwind.config.js is gone. The official upgrade tool renamed the classes whose meaning moved (shadow-sm to shadow-xs, outline-none to outline-hidden, ring to ring-3, !x to x!, ...); its false positives in plain strings (graph shapes, the NSFW "blur" setting) are left as they were. tailwind-merge moves to 3, which needs Tailwind 4. Utilities stay outside cascade layers: BlockSuite, the notes editor, adds unlayered global rules such as `input { font-size: 12px }` to the page, and in Tailwind 4's layered build those beat every class, which shrank a note's title to 12 px. Unlayered, a class beats an element rule again, as it did in Tailwind 3. Preflight no longer gives buttons a pointer cursor or placeholders a light grey, so the base layer keeps both. The postcss-selector-parser 6 override goes, as nothing asks for that major any more. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01GoeF3WmfShLFtu15B1sQZz --- docs/frontend.md | 3 + nextjs-frontend/__tests__/globalsCss.test.ts | 13 + nextjs-frontend/app/globals.css | 218 ++++-- nextjs-frontend/components.json | 2 +- .../components/access/access-fields.tsx | 2 +- .../components/account/s3-keys.tsx | 4 +- nextjs-frontend/components/account/tokens.tsx | 2 +- .../components/activity/job-detail.tsx | 4 +- .../components/activity/log-viewer.tsx | 12 +- nextjs-frontend/components/admin/audit.tsx | 2 +- .../components/admin/namespaces.tsx | 2 +- nextjs-frontend/components/admin/people.tsx | 6 +- .../components/app-shell/app-shell.tsx | 6 +- .../components/app-shell/command-palette.tsx | 6 +- nextjs-frontend/components/auth/auth-card.tsx | 2 +- .../components/auth/signed-out-dialog.tsx | 6 +- .../components/canvas/flow-canvas.tsx | 18 +- nextjs-frontend/components/chat/answer.tsx | 4 +- nextjs-frontend/components/chat/citation.tsx | 2 +- nextjs-frontend/components/chat/composer.tsx | 4 +- nextjs-frontend/components/chat/sheet.tsx | 4 +- nextjs-frontend/components/chat/steps.tsx | 4 +- .../components/chat/user-bubble.tsx | 2 +- .../components/entities/setup-tab.tsx | 2 +- .../components/fields/fields-ui.tsx | 2 +- nextjs-frontend/components/graph/canvas.tsx | 2 +- nextjs-frontend/components/graph/filters.tsx | 2 +- .../components/graph/graph-ask.tsx | 6 +- .../components/graph/version-picker.tsx | 2 +- .../components/home/assistant-home.tsx | 4 +- .../components/iiif/metadata-editor.tsx | 2 +- .../components/iiif/metadata-fields.tsx | 4 +- nextjs-frontend/components/import/mapping.tsx | 2 +- .../components/import/paste-tab.tsx | 2 +- .../components/import/upload-tab.tsx | 4 +- nextjs-frontend/components/import/web-tab.tsx | 2 +- .../components/library/bulk-bar.tsx | 4 +- nextjs-frontend/components/library/cells.tsx | 2 +- .../components/library/filters-bar.tsx | 10 +- .../components/library/library-tabs.tsx | 2 +- .../components/library/recording-table.tsx | 2 +- .../components/library/sources-strip.tsx | 2 +- .../components/notes/note-history.tsx | 2 +- .../components/notes/note-page.tsx | 4 +- .../notifications/notifications-section.tsx | 2 +- .../components/page-chat/page-chat.tsx | 12 +- .../components/pipelines/pipeline-editor.tsx | 2 +- .../components/player/transport.tsx | 2 +- .../components/player/waveform.tsx | 2 +- nextjs-frontend/components/public/cards.tsx | 4 +- .../components/public/document-view.tsx | 6 +- .../components/public/recording-view.tsx | 8 +- .../components/recording/attach-audio.tsx | 2 +- .../components/recording/chapters.tsx | 11 +- .../components/recording/chat-tab.tsx | 2 +- .../components/recording/comments-tab.tsx | 2 +- .../components/recording/details-tab.tsx | 6 +- .../recording/document/document-layout.tsx | 24 +- nextjs-frontend/components/recording/edit.tsx | 2 +- .../components/recording/files-tab.tsx | 6 +- .../components/recording/find-bar.tsx | 2 +- .../components/recording/header.tsx | 4 +- .../components/recording/highlights-tab.tsx | 2 +- .../components/recording/mobile-layout.tsx | 6 +- .../components/recording/notes-tab.tsx | 2 +- .../recording/selection-toolbar.tsx | 2 +- .../components/recording/side-panel.tsx | 2 +- .../components/recording/skeleton.tsx | 2 +- .../components/recording/summary-tab.tsx | 6 +- .../components/recording/transcript.tsx | 2 +- nextjs-frontend/components/recording/turn.tsx | 4 +- .../recording/video/screen-text-tab.tsx | 4 +- .../components/recording/video/stage.tsx | 12 +- .../components/reports/month-bars.tsx | 2 +- nextjs-frontend/components/search/photos.tsx | 4 +- nextjs-frontend/components/search/results.tsx | 6 +- .../components/search/search-box.tsx | 2 +- .../components/sensors/sensor-detail.tsx | 2 +- .../components/sensors/sensors-page.tsx | 2 +- .../components/settings/bodies.tsx | 2 +- .../components/settings/fields.tsx | 4 +- .../components/settings/log-viewer.tsx | 2 +- .../components/settings/section.tsx | 2 +- .../components/setup/setup-wizard.tsx | 4 +- .../components/similar/selection-popover.tsx | 4 +- .../components/similar/similar-list.tsx | 4 +- .../components/sources/connection-dialog.tsx | 2 +- .../components/sources/sources-page.tsx | 2 +- .../components/sources/watch-card.tsx | 2 +- .../components/speakers/profile.tsx | 2 +- .../components/speakers/review.tsx | 2 +- .../components/templates/code-editor.tsx | 14 +- .../components/templates/template-editor.tsx | 10 +- .../components/templates/versions-panel.tsx | 2 +- nextjs-frontend/components/ui/dialog.tsx | 10 +- nextjs-frontend/components/ui/field.tsx | 2 +- nextjs-frontend/components/ui/loop.tsx | 2 +- nextjs-frontend/components/ui/menu.tsx | 6 +- nextjs-frontend/components/ui/states.tsx | 4 +- nextjs-frontend/components/ui/toast.tsx | 6 +- nextjs-frontend/components/ui/tooltip.tsx | 2 +- nextjs-frontend/package.json | 6 +- nextjs-frontend/pnpm-lock.yaml | 621 +++++++++--------- nextjs-frontend/pnpm-workspace.yaml | 5 +- nextjs-frontend/postcss.config.js | 3 +- nextjs-frontend/tailwind.config.js | 92 --- 106 files changed, 717 insertions(+), 653 deletions(-) create mode 100644 nextjs-frontend/__tests__/globalsCss.test.ts delete mode 100644 nextjs-frontend/tailwind.config.js diff --git a/docs/frontend.md b/docs/frontend.md index ac198b8b7..f52569b44 100644 --- a/docs/frontend.md +++ b/docs/frontend.md @@ -43,6 +43,9 @@ four-colour loop (Transcribe blue, Diarize red, Analyze green, Summarize and Rep * **Tokens** live in `app/styles/tokens.css` and are mapped into Tailwind (`bg-surface`, `text-fg-secondary`, `border-blue-border`, `spk-1…8`, `emo-*`, `rounded-pill`, `shadow-2`...). Don't hard-code colours: the dark theme switches by variables (`[data-theme=dark]`, or the system preference). +* **Tailwind 4** is configured in CSS: the `@theme` block in `app/globals.css` maps the tokens, and there is no + `tailwind.config.js`. Its utilities stay outside cascade layers there, so a class still beats the notes editor's + global element styles (BlockSuite adds rules such as `input { font-size: 12px }` to the page). * **Type:** DM Sans for the UI (13–14 px), Source Serif 4 for transcripts (`.transcript-text`, 17.5/1.6), JetBrains Mono for paths and code. All three are self-hosted in `public/fonts`. * **Primitives** (`components/ui`): Button (pill; `disabledReason` explains a disabled action), IconButton, Badge, diff --git a/nextjs-frontend/__tests__/globalsCss.test.ts b/nextjs-frontend/__tests__/globalsCss.test.ts new file mode 100644 index 000000000..75915de87 --- /dev/null +++ b/nextjs-frontend/__tests__/globalsCss.test.ts @@ -0,0 +1,13 @@ +import { readFileSync } from "fs"; +import { join } from "path"; + +const css = readFileSync(join(__dirname, "..", "app", "globals.css"), "utf8"); + +describe("the app's stylesheet", () => { + it("keeps Tailwind's utilities out of cascade layers, so a class beats the note editor's element rules", () => { + // BlockSuite adds `input { font-size: 12px }` and the like to the page, unlayered: a layered utility would lose to it + expect(css).toMatch(/@import "tailwindcss\/utilities\.css";/); + expect(css).not.toMatch(/@import "tailwindcss";/); + expect(css).not.toMatch(/@layer utilities/); + }); +}); diff --git a/nextjs-frontend/app/globals.css b/nextjs-frontend/app/globals.css index d4a55b96c..c4177f1b0 100644 --- a/nextjs-frontend/app/globals.css +++ b/nextjs-frontend/app/globals.css @@ -1,9 +1,159 @@ @import "./styles/fonts.css"; @import "./styles/tokens.css"; -@tailwind base; -@tailwind components; -@tailwind utilities; +/* Tailwind 4 puts utilities in a cascade layer, where any unlayered rule beats them. The note editor (BlockSuite) + injects unlayered global rules such as `input { font-size: 12px }`, so utilities stay unlayered here, as in Tailwind 3, + and a class still wins over a bare element rule. */ +@layer theme, base, components; +@import "tailwindcss/theme.css" layer(theme); +@import "tailwindcss/preflight.css" layer(base); +@import "tailwindcss/utilities.css"; + +@plugin "tailwindcss-animate"; + +@custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *)); + +@theme { + --font-sans: DM Sans, ui-sans-serif, system-ui, sans-serif; + --font-serif: "Source Serif 4", Georgia, serif; + --font-mono: JetBrains Mono, ui-monospace, Menlo, monospace; + + --color-background: var(--background); + + --color-surface: var(--surface); + --color-surface-neutral: var(--surface-neutral); + + --color-border: var(--border); + + --color-fg: var(--text-primary); + --color-fg-strong: var(--text-strong); + --color-fg-secondary: var(--text-secondary); + --color-fg-muted: var(--text-muted); + --color-fg-accent: var(--accent-text); + --color-fg-on-color: var(--text-on-color); + + --color-blue: var(--aladdin-blue); + --color-blue-dark: var(--blue-dark); + --color-blue-surface: var(--intent-surface); + --color-blue-border: var(--intent-border); + + --color-red: var(--aladdin-red); + --color-red-dark: var(--red-dark); + --color-red-surface: var(--red-surface); + --color-red-border: var(--red-border); + + --color-green: var(--aladdin-green); + --color-green-dark: var(--green-dark); + --color-green-surface: var(--green-surface); + --color-green-border: var(--green-border); + + --color-gold: var(--aladdin-gold); + --color-gold-dark: var(--gold-dark); + --color-gold-surface: var(--gate-surface); + --color-gold-border: var(--gate-border); + + --color-hl: var(--hl); + --color-hl-word: var(--hl-word); + + --color-spk-1: var(--spk-1); + --color-spk-2: var(--spk-2); + --color-spk-3: var(--spk-3); + --color-spk-4: var(--spk-4); + --color-spk-5: var(--spk-5); + --color-spk-6: var(--spk-6); + --color-spk-7: var(--spk-7); + --color-spk-8: var(--spk-8); + + --color-emo-neutral: var(--emo-neutral); + --color-emo-happy: var(--emo-happy); + --color-emo-amused: var(--emo-amused); + --color-emo-surprise: var(--emo-surprise); + --color-emo-sad: var(--emo-sad); + --color-emo-angry: var(--emo-angry); + --color-emo-fear: var(--emo-fear); + --color-emo-disgust: var(--emo-disgust); + + --color-term-bg: var(--term-bg); + --color-term-fg: var(--term-fg); + --color-term-muted: var(--term-muted); + + --radius-xs: 4px; + --radius-sm: 8px; + --radius-md: 12px; + --radius-lg: 16px; + --radius-xl: 24px; + --radius-pill: 999px; + + --shadow-1: var(--shadow-1); + --shadow-2: var(--shadow-2); + --shadow-3: var(--shadow-3); + --shadow-ring: var(--ring-focus); + + --ease-standard: cubic-bezier(0.2, 0, 0, 1); + + --transition-duration-fast: 120ms; + --transition-duration-base: 200ms; + --transition-duration-slow: 320ms; + + --animate-slide-in-right: slide-in-right 200ms cubic-bezier(0.2, 0, 0, 1); + --animate-fade-in: fade-in 120ms cubic-bezier(0.2, 0, 0, 1); + + @keyframes slide-in-right { + from { + transform: translateX(100%); + } + to { + transform: translateX(0); + } + } + @keyframes fade-in { + from { + opacity: 0; + } + to { + opacity: 1; + } + } +} + +@utility phone-actions { + /* A form's main buttons on a phone: the row sticks to the bottom of the screen rather than waiting below the fold, + and leaves room on the right for the floating Ask button. The call site stretches it to its card's edges. */ + @media (max-width: 639px) { + position: sticky; + bottom: 0; + z-index: 10; + background: var(--background); + border-top: 1px solid var(--border); + padding-top: 12px; + padding-bottom: 12px; + body:has([data-ask-button]) & { + padding-right: 80px; + } + } +} + +@utility tabular { + font-variant-numeric: tabular-nums; +} + +@utility label-caps { + font: 700 11px/1 var(--font-sans); + letter-spacing: 0.06em; + text-transform: uppercase; + color: var(--text-muted); +} + +@utility transcript-text { + font: var(--type-transcript); +} + +@utility skeleton { + background: linear-gradient(90deg, var(--surface-neutral) 25%, var(--surface) 50%, var(--surface-neutral) 75%); + background-size: 200% 100%; + animation: skeleton 1.4s ease-in-out infinite; + border-radius: 6px; +} @layer base { html { @@ -17,9 +167,20 @@ } *, ::before, - ::after { + ::after, + ::backdrop, + ::file-selector-button { border-color: var(--border); } + /* What Tailwind 3's preflight did and 4's doesn't: buttons show a hand, placeholders a light grey */ + button:not(:disabled), + [role="button"]:not(:disabled) { + cursor: pointer; + } + input::placeholder, + textarea::placeholder { + color: var(--color-gray-400); + } :focus-visible { outline: 2px solid var(--aladdin-blue); outline-offset: 2px; @@ -38,50 +199,11 @@ } } -@layer components { - /* A form's main buttons on a phone: the row sticks to the bottom of the screen rather than waiting below the fold, - and leaves room on the right for the floating Ask button. The call site stretches it to its card's edges. */ - @media (max-width: 639px) { - .phone-actions { - position: sticky; - bottom: 0; - z-index: 10; - background: var(--background); - border-top: 1px solid var(--border); - padding-top: 12px; - padding-bottom: 12px; - } - body:has([data-ask-button]) .phone-actions { - padding-right: 80px; - } - } -} - -@layer utilities { - .tabular { - font-variant-numeric: tabular-nums; - } - .label-caps { - font: 700 11px/1 var(--font-sans); - letter-spacing: 0.06em; - text-transform: uppercase; - color: var(--text-muted); - } - .transcript-text { - font: var(--type-transcript); - } - .skeleton { - background: linear-gradient(90deg, var(--surface-neutral) 25%, var(--surface) 50%, var(--surface-neutral) 75%); - background-size: 200% 100%; - animation: skeleton 1.4s ease-in-out infinite; - border-radius: 6px; +@keyframes skeleton { + from { + background-position: 200% 0; } - @keyframes skeleton { - from { - background-position: 200% 0; - } - to { - background-position: -200% 0; - } + to { + background-position: -200% 0; } } diff --git a/nextjs-frontend/components.json b/nextjs-frontend/components.json index f1da19fc1..9097642e9 100644 --- a/nextjs-frontend/components.json +++ b/nextjs-frontend/components.json @@ -4,7 +4,7 @@ "rsc": true, "tsx": true, "tailwind": { - "config": "tailwind.config.js", + "config": "", "css": "app/globals.css", "baseColor": "neutral", "cssVariables": true, diff --git a/nextjs-frontend/components/access/access-fields.tsx b/nextjs-frontend/components/access/access-fields.tsx index e8039eb60..e835ad16f 100644 --- a/nextjs-frontend/components/access/access-fields.tsx +++ b/nextjs-frontend/components/access/access-fields.tsx @@ -47,7 +47,7 @@ export function AccessFields({ label="Access" size={size} columns={3} - className="max-sm:!grid-cols-1" + className="max-sm:grid-cols-1!" value={value.access} onChange={(v) => onChange({ ...value, access: v as Access })} disabled={disabled} diff --git a/nextjs-frontend/components/account/s3-keys.tsx b/nextjs-frontend/components/account/s3-keys.tsx index 6ab6ba21f..de1c83963 100644 --- a/nextjs-frontend/components/account/s3-keys.tsx +++ b/nextjs-frontend/components/account/s3-keys.tsx @@ -132,7 +132,7 @@ function Copyable({ label, text }: { label: string; text: string }) {
{label}
-
+        
           {text}
         
); @@ -140,7 +140,7 @@ function Dl({ rows }: { rows: [string, ReactNode][] }) { {rows.map(([k, v]) => (
{k}
-
{v}
+
{v}
))} diff --git a/nextjs-frontend/components/activity/log-viewer.tsx b/nextjs-frontend/components/activity/log-viewer.tsx index d172df2b7..543407275 100644 --- a/nextjs-frontend/components/activity/log-viewer.tsx +++ b/nextjs-frontend/components/activity/log-viewer.tsx @@ -9,10 +9,10 @@ import { cn } from "@/lib/utils"; const TONE: Record = { out: "text-term-muted", - info: "text-[var(--term-blue)]", - ok: "text-[var(--term-green)]", - fail: "text-[var(--term-red)]", - gate: "text-[var(--term-gold)]", + info: "text-(--term-blue)", + ok: "text-(--term-green)", + fail: "text-(--term-red)", + gate: "text-(--term-gold)", }; /** Download lines as a text file (the full log the server keeps). */ @@ -97,10 +97,10 @@ export function LogViewer({ const el = e.currentTarget; follow.current = el.scrollHeight - el.scrollTop - el.clientHeight < 24; }} - className="max-h-[420px] min-h-[120px] overflow-auto px-4 py-3 focus-visible:outline-offset-[-2px]" + className="max-h-[420px] min-h-[120px] overflow-auto px-4 py-3 focus-visible:-outline-offset-2" > {lines.length ? ( -
+            
               {lines.map((l, i) => (
                 
{l.time && {l.time} } diff --git a/nextjs-frontend/components/admin/audit.tsx b/nextjs-frontend/components/admin/audit.tsx index 9f6cb089d..cf7cbb840 100644 --- a/nextjs-frontend/components/admin/audit.tsx +++ b/nextjs-frontend/components/admin/audit.tsx @@ -335,7 +335,7 @@ export function AuditPage() { )}
Details
-
{detail || "No details recorded"}
+
{detail || "No details recorded"}
When
{absolute(e.at)}
Who
diff --git a/nextjs-frontend/components/admin/namespaces.tsx b/nextjs-frontend/components/admin/namespaces.tsx index 6ec48154e..ae85ae3e0 100644 --- a/nextjs-frontend/components/admin/namespaces.tsx +++ b/nextjs-frontend/components/admin/namespaces.tsx @@ -436,7 +436,7 @@ export function NamespaceDetail({ ns }: { ns: string }) { }) } className={cn( - "h-8 w-full appearance-none rounded-sm border border-border pl-2.5 pr-7 text-[13px] font-medium outline-none focus:border-blue", + "h-8 w-full appearance-none rounded-sm border border-border pl-2.5 pr-7 text-[13px] font-medium outline-hidden focus:border-blue", self ? "bg-surface text-fg-muted" : "bg-background text-fg", )} > diff --git a/nextjs-frontend/components/admin/people.tsx b/nextjs-frontend/components/admin/people.tsx index a5888677d..d7302b38b 100644 --- a/nextjs-frontend/components/admin/people.tsx +++ b/nextjs-frontend/components/admin/people.tsx @@ -293,7 +293,7 @@ function RoleGrid({ if (e.target === e.currentTarget) setActive([r, c]); }, onKeyDown: (e: KeyboardEvent) => onCellKey(e, r, c), - className: "flex min-w-0 items-center rounded-sm outline-none focus-visible:ring-2 focus-visible:ring-blue", + className: "flex min-w-0 items-center rounded-sm outline-hidden focus-visible:ring-2 focus-visible:ring-blue", }); if (!people.length) @@ -403,7 +403,7 @@ function RoleGrid({ }) } className={cn( - "h-8 w-full appearance-none rounded-sm border pl-2.5 pr-7 text-[13px] outline-none focus:border-blue", + "h-8 w-full appearance-none rounded-sm border pl-2.5 pr-7 text-[13px] outline-hidden focus:border-blue", role ? "font-medium text-fg" : "font-normal text-fg-muted", changed ? "border-blue bg-blue-surface" : "border-border bg-background", )} @@ -428,7 +428,7 @@ function RoleGrid({
diff --git a/nextjs-frontend/components/app-shell/app-shell.tsx b/nextjs-frontend/components/app-shell/app-shell.tsx index 8b03073ff..c7a67a2c8 100644 --- a/nextjs-frontend/components/app-shell/app-shell.tsx +++ b/nextjs-frontend/components/app-shell/app-shell.tsx @@ -120,7 +120,7 @@ export function AppShell({ user, children }: { user: SessionUser; children: Reac
Skip to content @@ -133,8 +133,8 @@ export function AppShell({ user, children }: { user: SessionUser; children: Reac />
{mobileOpen && ( -
-
setMobileOpen(false)} aria-hidden /> +
+
setMobileOpen(false)} aria-hidden />
diff --git a/nextjs-frontend/components/auth/auth-card.tsx b/nextjs-frontend/components/auth/auth-card.tsx index d738dfa46..2f44b10fd 100644 --- a/nextjs-frontend/components/auth/auth-card.tsx +++ b/nextjs-frontend/components/auth/auth-card.tsx @@ -38,7 +38,7 @@ export function AuthCard({ >
-

{title}

+

{title}

{description &&
{description}
}
{children} diff --git a/nextjs-frontend/components/auth/signed-out-dialog.tsx b/nextjs-frontend/components/auth/signed-out-dialog.tsx index a54dc9e2d..7f5970f19 100644 --- a/nextjs-frontend/components/auth/signed-out-dialog.tsx +++ b/nextjs-frontend/components/auth/signed-out-dialog.tsx @@ -131,7 +131,7 @@ export function SignedOutDialog({ email }: { email?: string | null }) { return ( - + e.preventDefault()} onPointerDownOutside={(e) => e.preventDefault()} @@ -140,9 +140,9 @@ export function SignedOutDialog({ email }: { email?: string | null }) { e.preventDefault(); (passkeyRef.current ?? (who ? passwordRef.current : document.getElementById("so-email")))?.focus(); }} - className="fixed left-1/2 top-1/2 z-[501] flex w-[calc(100vw-32px)] max-w-[420px] -translate-x-1/2 -translate-y-1/2 flex-col gap-3.5 rounded-xl bg-background p-[26px] shadow-3 animate-fade-in" + className="fixed left-1/2 top-1/2 z-501 flex w-[calc(100vw-32px)] max-w-[420px] -translate-x-1/2 -translate-y-1/2 flex-col gap-3.5 rounded-xl bg-background p-[26px] shadow-3 animate-fade-in" > - You've been signed out + You've been signed out Your session ended. Sign in again to{" "} {task ? ( diff --git a/nextjs-frontend/components/canvas/flow-canvas.tsx b/nextjs-frontend/components/canvas/flow-canvas.tsx index b2b98423b..8964d41f0 100644 --- a/nextjs-frontend/components/canvas/flow-canvas.tsx +++ b/nextjs-frontend/components/canvas/flow-canvas.tsx @@ -72,7 +72,7 @@ function CardNode({ data, selected }: NodeProps>) { return (
>) { type="target" position={Position.Left} style={{ top: `${((k + 1) * 100) / (data.inPorts!.length + 1)}%` }} - className="!size-3 !border-2 !border-background !bg-fg-muted" + className="size-3! border-2! border-background! bg-fg-muted!" aria-label={`Input: ${port}`} > @@ -100,7 +100,7 @@ function CardNode({ data, selected }: NodeProps>) { type="target" id="in" position={Position.Left} - className="!size-3 !border-2 !border-background !bg-fg-muted" + className="size-3! border-2! border-background! bg-fg-muted!" aria-label="Input" /> ))} @@ -145,14 +145,14 @@ function CardNode({ data, selected }: NodeProps>) { position={Position.Right} style={{ top }} className={cn( - "!size-3 !border-2 !border-background", + "size-3! border-2! border-background!", port === "no" - ? "!bg-red" + ? "bg-red!" : port === "yes" - ? "!bg-green" + ? "bg-green!" : port === "default" - ? "!bg-fg-muted" - : "!bg-blue", + ? "bg-fg-muted!" + : "bg-blue!", )} aria-label={port === "out" ? "Output" : `Output: ${port}`} > @@ -356,7 +356,7 @@ function Inner({ > - +
); diff --git a/nextjs-frontend/components/chat/answer.tsx b/nextjs-frontend/components/chat/answer.tsx index e363b45ce..cc4755b4c 100644 --- a/nextjs-frontend/components/chat/answer.tsx +++ b/nextjs-frontend/components/chat/answer.tsx @@ -265,7 +265,7 @@ export function Answer(p: AnswerProps) { ) : ( !blank && ( -
+
} + icon={} onClick={p.onStop} disabled={p.stopping} disabledReason="Stopping after the step it’s on" diff --git a/nextjs-frontend/components/chat/citation.tsx b/nextjs-frontend/components/chat/citation.tsx index 3f8989d10..b7baf7771 100644 --- a/nextjs-frontend/components/chat/citation.tsx +++ b/nextjs-frontend/components/chat/citation.tsx @@ -90,7 +90,7 @@ export function CitationChip({ align="start" sideOffset={6} collisionPadding={16} - className="z-[200] flex w-[380px] max-w-[calc(100vw-32px)] flex-col gap-1.5 rounded-md border border-border bg-background px-3.5 py-3 shadow-3 animate-fade-in" + className="z-200 flex w-[380px] max-w-[calc(100vw-32px)] flex-col gap-1.5 rounded-md border border-border bg-background px-3.5 py-3 shadow-3 animate-fade-in" > diff --git a/nextjs-frontend/components/chat/composer.tsx b/nextjs-frontend/components/chat/composer.tsx index af60449a6..15e8be680 100644 --- a/nextjs-frontend/components/chat/composer.tsx +++ b/nextjs-frontend/components/chat/composer.tsx @@ -81,7 +81,7 @@ function ScopeChip({ aria-label={`Remove ${label} from scope`} className="grid size-5 place-items-center rounded-full hover:bg-black/5" > - + )} @@ -537,7 +537,7 @@ export function Composer({ }} placeholder={placeholder} aria-label="Your question" - className="max-h-[180px] min-h-[24px] flex-1 resize-none bg-transparent py-1.5 text-[15px] leading-normal text-fg outline-none placeholder:text-fg-muted" + className="max-h-[180px] min-h-[24px] flex-1 resize-none bg-transparent py-1.5 text-[15px] leading-normal text-fg outline-hidden placeholder:text-fg-muted" /> {voice && ( )} @@ -440,7 +440,7 @@ function ChatPanel({ }} placeholder={selection ? "Ask about the highlighted text…" : "Ask about this page…"} aria-label="Ask a question" - className="max-h-40 min-h-10 flex-1 resize-none rounded-sm border border-border bg-background px-3 py-2 text-[14px] leading-snug text-fg outline-none placeholder:text-fg-muted focus:border-blue focus:shadow-[0_0_0_3px_var(--intent-surface)]" + className="max-h-40 min-h-10 flex-1 resize-none rounded-sm border border-border bg-background px-3 py-2 text-[14px] leading-snug text-fg outline-hidden placeholder:text-fg-muted focus:border-blue focus:shadow-[0_0_0_3px_var(--intent-surface)]" /> {streaming ? ( ); return ( diff --git a/nextjs-frontend/components/recording/highlights-tab.tsx b/nextjs-frontend/components/recording/highlights-tab.tsx index ee330edd8..ac563a584 100644 --- a/nextjs-frontend/components/recording/highlights-tab.tsx +++ b/nextjs-frontend/components/recording/highlights-tab.tsx @@ -134,7 +134,7 @@ function HighlightRow({ h, focused }: { h: Highlight; focused: boolean }) {
{h.quote && (
{h.quote}
diff --git a/nextjs-frontend/components/recording/mobile-layout.tsx b/nextjs-frontend/components/recording/mobile-layout.tsx index 7fbf34e9d..2778e2a6d 100644 --- a/nextjs-frontend/components/recording/mobile-layout.tsx +++ b/nextjs-frontend/components/recording/mobile-layout.tsx @@ -95,7 +95,7 @@ export function MobileLayout() { /> - + @@ -112,7 +112,7 @@ function Sheet({ tab, setTab }: { tab: PanelTab; setTab: (t: PanelTab) => void } @@ -155,7 +155,7 @@ function DockedPlayer({ onPanels }: { onPanels: () => void }) {
{tc(time)} - + {tc(duration)}
diff --git a/nextjs-frontend/components/recording/notes-tab.tsx b/nextjs-frontend/components/recording/notes-tab.tsx index fb3c341e0..31b266ed2 100644 --- a/nextjs-frontend/components/recording/notes-tab.tsx +++ b/nextjs-frontend/components/recording/notes-tab.tsx @@ -317,7 +317,7 @@ function NoteRow({ n }: { n: Note }) {
) : ( -

{n.text}

+

{n.text}

)} {confirm && (
diff --git a/nextjs-frontend/components/recording/selection-toolbar.tsx b/nextjs-frontend/components/recording/selection-toolbar.tsx index 5b45ffe3d..51af38b3d 100644 --- a/nextjs-frontend/components/recording/selection-toolbar.tsx +++ b/nextjs-frontend/components/recording/selection-toolbar.tsx @@ -121,7 +121,7 @@ export function SelectionToolbar({ box }: { box: RefObject e.preventDefault()} className={cn( - "fixed z-[60] flex -translate-y-[calc(100%+10px)] gap-0.5 whitespace-nowrap rounded-[10px] bg-fg p-1 text-[12.5px] font-semibold text-background shadow-3", + "fixed z-60 flex -translate-y-[calc(100%+10px)] gap-0.5 whitespace-nowrap rounded-[10px] bg-fg p-1 text-[12.5px] font-semibold text-background shadow-3", // on a phone it spans the screen and wraps its actions; elsewhere it follows the words narrow ? "inset-x-2 flex-wrap justify-center" : "-translate-x-1/2", )} diff --git a/nextjs-frontend/components/recording/side-panel.tsx b/nextjs-frontend/components/recording/side-panel.tsx index c7969f79b..c834b1231 100644 --- a/nextjs-frontend/components/recording/side-panel.tsx +++ b/nextjs-frontend/components/recording/side-panel.tsx @@ -186,7 +186,7 @@ export function PanelTabs({ role="tablist" aria-label="Recording panels" onKeyDown={onKey} - className="flex min-w-0 flex-1 overflow-x-auto [scrollbar-width:none]" + className="flex min-w-0 flex-1 overflow-x-auto scrollbar-none" > {shown.map((t) => { const on = t.value === value; diff --git a/nextjs-frontend/components/recording/skeleton.tsx b/nextjs-frontend/components/recording/skeleton.tsx index ad0078933..4bd11ca1c 100644 --- a/nextjs-frontend/components/recording/skeleton.tsx +++ b/nextjs-frontend/components/recording/skeleton.tsx @@ -29,7 +29,7 @@ export function RecordingSkeleton() {
- +
diff --git a/nextjs-frontend/components/recording/summary-tab.tsx b/nextjs-frontend/components/recording/summary-tab.tsx index 2e5071383..c0a5babfe 100644 --- a/nextjs-frontend/components/recording/summary-tab.tsx +++ b/nextjs-frontend/components/recording/summary-tab.tsx @@ -216,7 +216,7 @@ function SkeletonLines({ still }: { still?: boolean }) { return (
{[90, 76, 84].map((w) => ( - + ))}
); @@ -265,7 +265,7 @@ function SummaryBlock({ {doc.tldr && (
-

{doc.tldr}

+

{doc.tldr}

)} {doc.sections.map((s) => ( @@ -280,7 +280,7 @@ function SummaryBlock({ {s.glyph} - + {it.text} {it.who && ( diff --git a/nextjs-frontend/components/recording/transcript.tsx b/nextjs-frontend/components/recording/transcript.tsx index 93763f689..06e07b652 100644 --- a/nextjs-frontend/components/recording/transcript.tsx +++ b/nextjs-frontend/components/recording/transcript.tsx @@ -258,7 +258,7 @@ function TranscriptInner({ compact, slim, className }: { compact?: boolean; slim onTouchMove={stopFollow} onKeyDown={(e) => ["PageUp", "PageDown", "Home", "End"].includes(e.key) && stopFollow()} className={cn( - "min-h-0 flex-1 overflow-y-auto outline-none", + "min-h-0 flex-1 overflow-y-auto outline-hidden", compact ? "px-[18px] pb-4 pt-1" : slim ? "pb-10 pl-2 pr-[18px] pt-1" : "pb-10 pl-4 pr-6 pt-1", )} aria-label="Transcript" diff --git a/nextjs-frontend/components/recording/turn.tsx b/nextjs-frontend/components/recording/turn.tsx index aae8b785a..b1dbcf8bf 100644 --- a/nextjs-frontend/components/recording/turn.tsx +++ b/nextjs-frontend/components/recording/turn.tsx @@ -159,7 +159,7 @@ export const TurnView = memo(function TurnView({

setText(e.target.value)} onKeyDown={(e) => e.key === "Escape" && onDone()} aria-label="Corrected text" - className="h-7 min-w-0 flex-1 bg-transparent px-1 text-[13.5px] text-fg outline-none" + className="h-7 min-w-0 flex-1 bg-transparent px-1 text-[13.5px] text-fg outline-hidden" />