From 4b058e324be12386e49ba7d3701cb6ea530f8890 Mon Sep 17 00:00:00 2001 From: Adeel Ahmad Date: Sat, 10 Oct 2026 23:12:02 +0000 Subject: [PATCH 1/8] fix(ui): make Lens usable on a phone The namespace switcher sits at the top of the phone's menu and Import is an icon in the phone's top bar. Settings sections open as a list from the current section's name, tabs wrap, the graph's filters sheet closes after a pick, Copy sits beside webhook addresses instead of over them, and sensors and connections show as cards. Form buttons stay pinned to the bottom of the screen, clear of the floating Ask button, and long dialog titles wrap. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_0173hj1h6qEeBT7zMzCgedwo --- .../__tests__/phone-layout.test.tsx | 52 ++++ nextjs-frontend/__tests__/sensors-ui.test.tsx | 14 +- nextjs-frontend/app/globals.css | 19 ++ .../components/app-shell/app-shell.tsx | 16 ++ .../app-shell/namespace-switcher.tsx | 16 +- nextjs-frontend/components/app-shell/nav.tsx | 7 +- .../extensions/extension-editor.tsx | 3 +- nextjs-frontend/components/graph/canvas.tsx | 2 +- .../components/graph/graph-ask.tsx | 3 +- .../components/graph/graph-page.tsx | 5 +- .../components/page-chat/page-chat.tsx | 1 + .../components/routines/routine-editor.tsx | 2 +- .../components/sensors/sensors-page.tsx | 41 +++- .../components/settings/section.tsx | 2 +- .../components/settings/settings-shell.tsx | 58 ++++- .../components/setup/setup-wizard.tsx | 6 +- .../components/sources/sources-page.tsx | 227 ++++++++++-------- nextjs-frontend/components/ui/dialog.tsx | 15 +- nextjs-frontend/components/ui/panel.tsx | 7 +- nextjs-frontend/components/ui/states.tsx | 7 +- nextjs-frontend/components/ui/tabs.tsx | 7 +- 21 files changed, 368 insertions(+), 142 deletions(-) create mode 100644 nextjs-frontend/__tests__/phone-layout.test.tsx diff --git a/nextjs-frontend/__tests__/phone-layout.test.tsx b/nextjs-frontend/__tests__/phone-layout.test.tsx new file mode 100644 index 000000000..6fdde394c --- /dev/null +++ b/nextjs-frontend/__tests__/phone-layout.test.tsx @@ -0,0 +1,52 @@ +import { fireEvent, render, screen } from "@testing-library/react"; +import "@testing-library/jest-dom"; + +import { NamespaceSwitcher } from "@/components/app-shell/namespace-switcher"; +import { SettingsShell } from "@/components/settings/settings-shell"; +import { TooltipProvider } from "@/components/ui/tooltip"; + +const setNamespace = jest.fn(); + +jest.mock("next-auth/react", () => ({ useSession: () => ({ data: { accessToken: "t" } }) })); +jest.mock("next/navigation", () => ({ + usePathname: () => "/settings/speakers", + useRouter: () => ({ push: jest.fn() }), +})); +jest.mock("@/components/speakers/speakers-page", () => ({ SpeakersPage: () =>

The speakers

})); +jest.mock("@/lib/hooks/session", () => ({ + useArchive: () => ({ + admin: true, + namespaces: [{ name: "interviews", recordings: 2 }, { name: "podcasts" }], + partialNamespaces: [], + namespace: null, + setNamespace, + roleIn: () => "owner", + isPartial: () => false, + }), +})); + +test("picking a namespace in the phone's drawer closes it", () => { + const onPick = jest.fn(); + render(); + fireEvent.click(screen.getByRole("button", { name: /^Namespace: all namespaces/ })); + fireEvent.click(screen.getByRole("option", { name: /^podcasts/ })); + expect(setNamespace).toHaveBeenCalledWith("podcasts"); + expect(onPick).toHaveBeenCalled(); +}); + +test("on a phone the settings sections open as a list from the section's name, and close on a pick", () => { + render( + + + , + ); + const toggle = screen.getByRole("button", { name: "Settings section: Speakers" }); + const list = document.getElementById("settings-sections")!; + expect(toggle).toHaveAttribute("aria-expanded", "false"); + expect(list).toHaveClass("hidden"); + fireEvent.click(toggle); + expect(toggle).toHaveAttribute("aria-expanded", "true"); + expect(list).not.toHaveClass("hidden"); + fireEvent.click(screen.getByRole("link", { name: "LLM provider" })); + expect(toggle).toHaveAttribute("aria-expanded", "false"); +}); diff --git a/nextjs-frontend/__tests__/sensors-ui.test.tsx b/nextjs-frontend/__tests__/sensors-ui.test.tsx index 658aa63b8..0b5d448bc 100644 --- a/nextjs-frontend/__tests__/sensors-ui.test.tsx +++ b/nextjs-frontend/__tests__/sensors-ui.test.tsx @@ -1,5 +1,5 @@ import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; -import { fireEvent, render, screen, waitFor } from "@testing-library/react"; +import { fireEvent, render, screen, waitFor, within } from "@testing-library/react"; import "@testing-library/jest-dom"; import type { ReactNode } from "react"; @@ -80,7 +80,17 @@ test("the Sensors page shows the hub, new sensors with their suggestion, streams expect(await screen.findByText("1 new sensor to look at")).toBeInTheDocument(); expect(screen.getByText("The hub is off.")).toBeInTheDocument(); expect(screen.getByText(/keep everything for two weeks/)).toBeInTheDocument(); - expect(screen.getByText("Changes for a week, hourly summaries for 2 years")).toBeInTheDocument(); + // a table, and on a phone one card per sensor + expect( + within(screen.getByRole("table", { name: "Stream sensors" })).getByText( + "Changes for a week, hourly summaries for 2 years", + ), + ).toBeInTheDocument(); + expect( + within(screen.getByRole("list", { name: "Stream sensors" })).getByText( + "Changes for a week, hourly summaries for 2 years", + ), + ).toBeInTheDocument(); expect(screen.getByText("NAS")).toBeInTheDocument(); fireEvent.click(screen.getByRole("button", { name: "Apply" })); await waitFor(() => expect(Sensors.applySuggestion).toHaveBeenCalled()); diff --git a/nextjs-frontend/app/globals.css b/nextjs-frontend/app/globals.css index b2e03e1f4..d4a55b96c 100644 --- a/nextjs-frontend/app/globals.css +++ b/nextjs-frontend/app/globals.css @@ -38,6 +38,25 @@ } } +@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; diff --git a/nextjs-frontend/components/app-shell/app-shell.tsx b/nextjs-frontend/components/app-shell/app-shell.tsx index e222c8261..3b196ddda 100644 --- a/nextjs-frontend/components/app-shell/app-shell.tsx +++ b/nextjs-frontend/components/app-shell/app-shell.tsx @@ -140,6 +140,12 @@ export function AppShell({ user, children }: { user: SessionUser; children: Reac counts={counts} onNavigate={() => setMobileOpen(false)} className="relative shadow-3" + top={ + // the top bar has no room for it on a phone +
+ setMobileOpen(false)} /> +
+ } /> )} @@ -173,6 +179,16 @@ export function AppShell({ user, children }: { user: SessionUser; children: Reac "Import" )} + {canImport && ( + // a phone's top bar has no room for the labelled button + + + + )} (window.location.href = "/#attention")}> diff --git a/nextjs-frontend/components/app-shell/namespace-switcher.tsx b/nextjs-frontend/components/app-shell/namespace-switcher.tsx index 9fc8c2c3b..ebe8abd1c 100644 --- a/nextjs-frontend/components/app-shell/namespace-switcher.tsx +++ b/nextjs-frontend/components/app-shell/namespace-switcher.tsx @@ -24,9 +24,9 @@ function SomeChip({ className }: { className?: string }) { ); } -/** The top bar's namespace picker: the namespaces the person has a role in, and those they see some collections of. - * Others don't exist for them. */ -export function NamespaceSwitcher() { +/** The top bar's namespace picker (in the navigation drawer on a phone): the namespaces the person has a role in, and + * those they see some collections of. Others don't exist for them. `onPick` runs after one is picked. */ +export function NamespaceSwitcher({ className, onPick }: { className?: string; onPick?: () => void }) { const { namespaces: full, partialNamespaces, namespace, setNamespace, roleIn, isPartial } = useArchive(); const namespaces = [...full, ...partialNamespaces].sort((a, b) => a.name.localeCompare(b.name)); const [open, setOpen] = useState(false); @@ -34,7 +34,10 @@ export function NamespaceSwitcher() { return ( {namespace ? ( @@ -42,7 +45,7 @@ export function NamespaceSwitcher() { ) : ( )} - + Namespace @@ -52,7 +55,7 @@ export function NamespaceSwitcher() { {isPartial(namespace) && } - +
    {[null, ...namespaces.map((n) => n.name)].map((name) => { const ns = namespaces.find((n) => n.name === name); @@ -66,6 +69,7 @@ export function NamespaceSwitcher() { onClick={() => { setNamespace(name); setOpen(false); + onPick?.(); }} className={cn( "flex w-full items-center gap-2.5 rounded-sm px-2.5 py-2 text-left hover:bg-surface-neutral", diff --git a/nextjs-frontend/components/app-shell/nav.tsx b/nextjs-frontend/components/app-shell/nav.tsx index c1c9a6e1a..64696dbf0 100644 --- a/nextjs-frontend/components/app-shell/nav.tsx +++ b/nextjs-frontend/components/app-shell/nav.tsx @@ -3,6 +3,7 @@ import { PanelLeftClose, PanelLeftOpen } from "lucide-react"; import Link from "next/link"; import { usePathname } from "next/navigation"; +import type { ReactNode } from "react"; import { isActive, navFor } from "@/components/app-shell/nav-config"; import { NotesTree } from "@/components/notes/notes-tree"; @@ -11,7 +12,8 @@ import { Tooltip } from "@/components/ui/tooltip"; import { count } from "@/lib/format"; import { cn } from "@/lib/utils"; -/** The primary nav rail: 224px open, 60px collapsed (icons with tooltips). */ +/** The primary nav rail: 224px open, 60px collapsed (icons with tooltips). `top` goes under the brand (the phone's + * drawer puts the namespace switcher there). */ export function Nav({ admin, collapsed, @@ -19,6 +21,7 @@ export function Nav({ counts, onNavigate, className, + top, }: { admin: boolean; collapsed: boolean; @@ -26,6 +29,7 @@ export function Nav({ counts: { recordings?: number; reviews?: number }; onNavigate?: () => void; className?: string; + top?: ReactNode; }) { const pathname = usePathname(); return ( @@ -40,6 +44,7 @@ export function Nav({
    + {top} {navFor(admin).map((it) => { const on = isActive(pathname, it.href); const n = it.countKey ? counts[it.countKey] : undefined; diff --git a/nextjs-frontend/components/extensions/extension-editor.tsx b/nextjs-frontend/components/extensions/extension-editor.tsx index 61de92c2e..8a1416cce 100644 --- a/nextjs-frontend/components/extensions/extension-editor.tsx +++ b/nextjs-frontend/components/extensions/extension-editor.tsx @@ -193,6 +193,7 @@ export function ExtensionEditor({ id }: { id?: number }) { actions={ id == null ? ( { @@ -227,7 +228,7 @@ export function ExtensionEditor({ id }: { id?: number }) {

    )} {editable && ( -
    +
    {id != null && ( {({ id: fid }) => setNotes(ev.target.value)} />} diff --git a/nextjs-frontend/components/graph/canvas.tsx b/nextjs-frontend/components/graph/canvas.tsx index 2ad311a33..83b42d36e 100644 --- a/nextjs-frontend/components/graph/canvas.tsx +++ b/nextjs-frontend/components/graph/canvas.tsx @@ -484,7 +484,7 @@ export function GraphCanvas({
    {focused ? curText : ""}
    -
    +
    + {actions(s)} + + ); + })} +
+
+ + + + + + + + + + + + + + + + + + + {all.map((s) => { + const on = current?.id === s.id; + return ( + setSelected(s.id)}> + + + + + + + ); + })} + +
+ Type + ConnectionHealthWatched folders + Actions +
+ + + + + + {watchedText(bySource(s.id))}{actions(s)}
+
{current && (
, actions: HTMLElement | null } /** Modal dialog: 24px radius, scrim with a 2px blur, title 700/22. Opens with its first field focused; Enter in a - * one-line field runs the main action (the last primary or danger button in `actions`). */ + * one-line field runs the main action (the last primary or danger button in `actions`), and `actions` stay in sight + * when the rest scrolls. */ export function Dialog({ open, onOpenChange, @@ -71,7 +72,9 @@ export function Dialog({ )} >
- {title} + + {title} + + // stays at the bottom of a dialog taller than the screen (a phone), with the rest scrolling above it +
{actions}
)} @@ -123,7 +130,7 @@ export function Drawer({ className="fixed bottom-0 right-0 top-16 z-[90] flex max-w-full flex-col border-l border-border bg-background shadow-3 animate-slide-in-right" >
- {title} + {title} {actions} {(title || actions) && ( -
-
+ // the actions go under the title when both don't fit (a phone), rather than squeezing it a word per line +
+
{title &&

{title}

} {subtitle &&

{subtitle}

}
- {actions &&
{actions}
} + {actions &&
{actions}
}
)}
{children}
diff --git a/nextjs-frontend/components/ui/states.tsx b/nextjs-frontend/components/ui/states.tsx index aba507f18..490501c9c 100644 --- a/nextjs-frontend/components/ui/states.tsx +++ b/nextjs-frontend/components/ui/states.tsx @@ -114,11 +114,12 @@ export function CodeBlock({ ); return ( -
-
+    // Copy sits beside the text, never over it; on a phone long lines (addresses) wrap rather than scroll
+    
+
         {text}
       
-
{btn}
+
{btn}
); } diff --git a/nextjs-frontend/components/ui/tabs.tsx b/nextjs-frontend/components/ui/tabs.tsx index 26133de37..1ce4aa25b 100644 --- a/nextjs-frontend/components/ui/tabs.tsx +++ b/nextjs-frontend/components/ui/tabs.tsx @@ -13,7 +13,8 @@ export type TabItem = { disabled?: boolean; }; -/** Underlined tabs (Aladdin): blue 3px underline and bold label on the active one; optional counts. */ +/** Underlined tabs (Aladdin): blue 3px underline and bold label on the active one; optional counts. On a phone they + * wrap onto a second row rather than scroll sideways, so every tab is in sight. */ export function Tabs({ items, value, @@ -33,13 +34,13 @@ export function Tabs({
{items.map((it) => { const on = it.value === value; const cls = cn( "-mb-px inline-flex shrink-0 items-center gap-2 whitespace-nowrap rounded-t-[3px] border-b-[3px] transition-colors duration-fast", - size === "sm" ? "px-3 py-2 text-[13px]" : "px-3.5 py-2.5 text-[14px]", + size === "sm" ? "px-3 py-2 text-[13px]" : "px-3 py-2.5 text-[14px] sm:px-3.5", on ? "border-blue font-bold text-blue" : "border-transparent font-medium text-fg-secondary hover:text-fg", it.disabled && "cursor-not-allowed opacity-50", ); From f8ca823ff53f17e783e74212e4922edbf0118339 Mon Sep 17 00:00:00 2001 From: Adeel Ahmad Date: Sat, 10 Oct 2026 23:15:05 +0000 Subject: [PATCH 2/8] docs: describe the phone layout Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_0173hj1h6qEeBT7zMzCgedwo --- CHANGELOG.md | 6 ++++++ docs/frontend.md | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5501cca3c..88c102b35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ The backend (`fastapi_backend`) and the frontend (`nextjs-frontend`) are version ## Unreleased +- **Lens on a phone.** Everything works at phone width now: the namespace switcher is at the top of the menu, Import + is in the top bar, Settings opens its sections as a list instead of a row to swipe through, the graph's filters close + after a pick, Copy no longer covers webhook addresses, sensors and connections read as cards, and Save and the other + form buttons stay in sight above the Ask button. On a phone the clicks survey goes from 2 features that couldn't be + done to none. + - **The graph as files.** Graph nodes are folders, nested along its links: collections inside collections, topics inside their broader topics, entities by type. Each folder holds its assets' files, with a `.json` sidecar of metadata and a `.txt` of the text; everyone sees what the web app shows them. Browse and read it through the API diff --git a/docs/frontend.md b/docs/frontend.md index 5fba3eb1e..ac198b8b7 100644 --- a/docs/frontend.md +++ b/docs/frontend.md @@ -49,6 +49,12 @@ four-colour loop (Transcribe blue, Diarize red, Analyze green, Summarize and Rep StatusChip, RoleChip, SpeakerChip, EmotionChip, JobStepChip, Field/Input/Select/Switch/Checkbox, SecretField, Tabs, Dialog, Drawer, Menu, Popover, Toast, Banner, Table with sortable headers and Pagination, Skeleton, EmptyState, CodeBlock, DateTime, Avatar, Progress, PageHeader, Panel, StepLoop, VerdictCard, AgentChip. +* **On a phone** (below 640 px, Tailwind's `sm`), nothing needs a sideways swipe and nothing is out of reach: the + namespace switcher sits at the top of the menu, Import is an icon in the top bar, settings sections open as a list + from the current section's name, tabs wrap, and wide tables (sensors, connections) become cards. A form's main buttons + take `phone-actions` (`app/globals.css`) to stay pinned at the bottom of the screen, clear of the floating Ask button; + a Dialog's actions stay in sight on their own. The [clicks + survey](https://github.com/adeelahmad/lense/blob/main/ci/clicks/README.md) measures every journey on a phone too. * **The role rule:** actions a person can't take stay visible, disabled, with a tooltip saying who can (`needRole()`); namespaces they have no role in never appear. `useArchive()` gives `can(role, ns)` and the current namespace. From 6ad620623f6b6247109623b19da82bbe81a76e9e Mon Sep 17 00:00:00 2001 From: Adeel Ahmad Date: Sun, 11 Oct 2026 01:09:59 +0000 Subject: [PATCH 3/8] fix(ui): keep a settings section's Save clear of the Ask button on a wide screen Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_0173hj1h6qEeBT7zMzCgedwo --- nextjs-frontend/components/settings/section.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nextjs-frontend/components/settings/section.tsx b/nextjs-frontend/components/settings/section.tsx index b91bdac03..25db76af8 100644 --- a/nextjs-frontend/components/settings/section.tsx +++ b/nextjs-frontend/components/settings/section.tsx @@ -276,7 +276,8 @@ export function SettingsSection({
{id !== "startup" && (dirty || errorCount > 0) && ( -
+ // sm:pr: Save stays clear of the floating Ask button on a wider screen too (phone-actions does it on a phone) +
{changes.length + nsChanges.length} change From 11270ffd9657bb5bad8df8ce9ae48165274a6fb7 Mon Sep 17 00:00:00 2001 From: Adeel Ahmad Date: Sun, 11 Oct 2026 01:49:05 +0000 Subject: [PATCH 4/8] ci(clicks): reach the phone's namespace switcher, Import and settings sections The phone journeys open the menu for the namespace switcher, tap Import in the top bar, and open the settings sections from the current section's name. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_0173hj1h6qEeBT7zMzCgedwo --- ci/clicks/journeys.mjs | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/ci/clicks/journeys.mjs b/ci/clicks/journeys.mjs index 51fa9401c..7cf70d952 100644 --- a/ci/clicks/journeys.mjs +++ b/ci/clicks/journeys.mjs @@ -30,13 +30,9 @@ async function jumpTo({ page, meter, phone }) { else await meter.press("Control+k", "Ctrl+K"); } -/** Import: the top bar's button. A phone's top bar has none, so there it's the Jump to palette's Import action. */ -async function openImport(ctx) { - const { page, meter, phone } = ctx; - if (!phone) return meter.click(page.getByRole("banner").getByRole("link", { name: "Import" }), "Import (top bar)"); - await jumpTo(ctx); - await meter.type(page.getByRole("combobox", { name: /Search recordings and pages/ }), "import", "import"); - await meter.click(page.getByRole("option", { name: /^Import/ }).first(), "Import recordings or transcripts"); +/** Import: the top bar's button (an icon on a phone). */ +async function openImport({ page, meter }) { + await meter.click(page.getByRole("banner").getByRole("link", { name: "Import" }), "Import (top bar)"); await page.waitForURL(/\/import/); } @@ -53,6 +49,21 @@ async function madeInBackground({ page, base }, where, locator, from, what) { await page.waitForTimeout(2000); } +/** Opens the namespace switcher: in the top bar, or at the top of the navigation drawer on a phone. */ +async function openSwitcher(ctx) { + const { page, meter, phone } = ctx; + if (phone) await meter.click(page.getByRole("button", { name: "Open navigation" }), "Open navigation (menu)"); + const switcher = page.getByRole("button", { name: /^Namespace: / }).first(); + await needs(ctx, switcher, "the namespace switcher"); + await meter.click(switcher, "the namespace switcher"); +} + +/** Opens a settings section from the sections list, which a phone opens from the current section's name. */ +async function section({ page, meter, phone }, label) { + if (phone) await meter.click(page.getByRole("button", { name: /^Settings section/ }), "Settings sections"); + await meter.click(page.getByRole("link", { name: label }), label); +} + /** Fails the journey with the reason when a control isn't on the screen at all (on a phone some are hidden). */ async function needs({ phone }, locator, what) { try { @@ -346,7 +357,7 @@ export const JOURNEYS = [ async run(ctx) { const { page, meter } = ctx; await go(ctx, "Settings"); - await meter.click(page.getByRole("link", { name: "LLM provider" }), "LLM provider"); + await section(ctx, "LLM provider"); await meter.replace(page.getByRole("textbox", { name: "Timeout (seconds)" }), "120", "timeout"); await save(ctx); await page.getByText(/Saved|Last saved/).first().waitFor(); @@ -397,10 +408,10 @@ export const JOURNEYS = [ from: "/", async run(ctx) { const { page, meter } = ctx; - await needs(ctx, page.getByRole("button", { name: /^Namespace: / }).first(), "the namespace switcher"); - await meter.click(page.getByRole("button", { name: /^Namespace: / }), "the namespace switcher"); + await openSwitcher(ctx); await meter.click(page.getByRole("option", { name: /^podcasts/ }), "podcasts"); - await page.getByRole("button", { name: /^Namespace: podcasts/ }).waitFor(); + // on a phone the drawer closes after the pick, switcher and all + await page.waitForFunction(() => localStorage.getItem("lens.namespace") === "podcasts"); }, }, // --- Modules the first survey left out: one everyday task each --------------------------------------------------- @@ -514,8 +525,7 @@ export const JOURNEYS = [ await page.getByRole("region", { name: "Graph" }).waitFor(); await page.waitForTimeout(1000); if (await page.getByRole("heading", { name: /^No graph/ }).isVisible().catch(() => false)) { - await needs(ctx, page.getByRole("button", { name: /^Namespace: / }).first(), "the namespace switcher"); - await meter.click(page.getByRole("button", { name: /^Namespace: / }).first(), "the namespace switcher"); + await openSwitcher(ctx); await meter.click(page.getByRole("listbox", { name: "Namespaces" }).getByRole("option", { name: /^interviews/ }), "interviews"); } // On a phone the filters, the find box among them, sit behind a button @@ -645,7 +655,7 @@ export const JOURNEYS = [ async run(ctx) { const { page, meter } = ctx; await go(ctx, "Settings"); - await meter.click(page.getByRole("link", { name: "LLM provider" }), "LLM provider"); + await section(ctx, "LLM provider"); await meter.replace(page.getByRole("textbox", { name: "Base URL (OpenAI-compatible)" }), "https://api.openai.com/v1", "the provider's address"); await meter.replace(page.getByRole("textbox", { name: "Model", exact: true }), "gpt-4o-mini", "the model"); await meter.paste(page.getByRole("textbox", { name: "API key" }), "sk-survey-0000000000000000", "paste the API key"); From ed189bc0cafc78b965acd8d4edf0108dcfff8dd5 Mon Sep 17 00:00:00 2001 From: Adeel Ahmad Date: Sun, 11 Oct 2026 02:01:21 +0000 Subject: [PATCH 5/8] ci(clicks): switch to a cloud model through the presets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The same change as #350: Settings › LLM provider has cloud presets (#334), so the journey picks OpenAI and pastes the key instead of typing the address and model, which the form no longer has as plain text boxes. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_0173hj1h6qEeBT7zMzCgedwo --- ci/clicks/journeys.mjs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ci/clicks/journeys.mjs b/ci/clicks/journeys.mjs index 7cf70d952..42cdcc1fd 100644 --- a/ci/clicks/journeys.mjs +++ b/ci/clicks/journeys.mjs @@ -650,14 +650,16 @@ export const JOURNEYS = [ ns: "", module: "Setup", feature: "Switch to a cloud model with an API key", - note: "What a Raspberry Pi install does after the installer: an OpenAI-compatible cloud provider, its model and a pasted key.", + note: "What a Raspberry Pi install does after the installer: a cloud provider picked from the presets fills in its address and model, then a pasted key.", from: "/", async run(ctx) { const { page, meter } = ctx; await go(ctx, "Settings"); await section(ctx, "LLM provider"); - await meter.replace(page.getByRole("textbox", { name: "Base URL (OpenAI-compatible)" }), "https://api.openai.com/v1", "the provider's address"); - await meter.replace(page.getByRole("textbox", { name: "Model", exact: true }), "gpt-4o-mini", "the model"); + const cloud = page.getByRole("group", { name: "Cloud providers" }).getByRole("button", { name: "OpenAI" }); + await meter.click(cloud, "OpenAI (fills in the address and the model)"); + // The key field takes the focus: a person sees the cursor land there before pasting + await page.waitForFunction(() => document.activeElement?.type === "password", null, { timeout: 3000 }).catch(() => {}); await meter.paste(page.getByRole("textbox", { name: "API key" }), "sk-survey-0000000000000000", "paste the API key"); await save(ctx); await page.getByText(/Saved|Last saved/).first().waitFor(); From 825183b070dff5ad080d44941388c8480e85629c Mon Sep 17 00:00:00 2001 From: Adeel Ahmad Date: Sun, 11 Oct 2026 02:18:21 +0000 Subject: [PATCH 6/8] fix(ui): keep a recording's step row from widening the page on a phone The pipeline steps above a recording didn't fit a phone's width, and their screen-reader-only labels were positioned against the page, so the page grew sideways and centred dialogs (Create podcast) half off the screen. The row now scrolls inside its own box. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_0173hj1h6qEeBT7zMzCgedwo --- nextjs-frontend/components/ui/loop.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nextjs-frontend/components/ui/loop.tsx b/nextjs-frontend/components/ui/loop.tsx index f2e52e2d0..edde01553 100644 --- a/nextjs-frontend/components/ui/loop.tsx +++ b/nextjs-frontend/components/ui/loop.tsx @@ -75,7 +75,13 @@ export function StepLoop({ const big = compact ? 22 : 34; const box = compact ? 24 : 38; return ( -
    + // Scrolls inside its own box when the steps don't fit (a phone) rather than widening the page: relative, so the + // screen-reader-only state of each step is positioned (and clipped) in here too. The padding keeps the current + // step's ring clear of the scroll box's edge. +
      {steps.map((s, i) => { const tone = s.tone ?? STEP_TONE[s.key ?? ""] ?? "intent"; const [fg, pale] = FILL[tone]; From eb220bd181d3d0bbb6f60cdc6d3f60c95c82b86f Mon Sep 17 00:00:00 2001 From: Adeel Ahmad Date: Sun, 11 Oct 2026 02:26:54 +0000 Subject: [PATCH 7/8] ci(clicks): phone baseline with the phone layout On a phone every journey can be done now, with 2 swipes (from 9) and 272 keys (from 284); switching namespace takes 3 taps. The computer run is unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_0173hj1h6qEeBT7zMzCgedwo --- ci/clicks/README.md | 4 +- ci/clicks/baseline-phone.json | 213 ++++++++++++++++------------------ ci/clicks/baseline.json | 66 +++++------ 3 files changed, 138 insertions(+), 145 deletions(-) diff --git a/ci/clicks/README.md b/ci/clicks/README.md index 001806771..943ed2a92 100644 --- a/ci/clicks/README.md +++ b/ci/clicks/README.md @@ -38,8 +38,8 @@ rclone must be on the PATH, as it is in the Lens image (the Clicks workflow copi links and fields in the page's main area on a fresh install, not counting navigation. Journeys run in order on the same Lens, each from Home unless it continues the one before (setup does). A journey -that can't be done at all (on a phone, say, where the namespace switcher is hidden) fails with the reason; it is in -the baseline as failed, so it doesn't turn CI red until it can be done, and then it counts as an improvement. +that can't be done at all (on a phone, say, where a control is hidden) fails with the reason; it is in the baseline +as failed, so it doesn't turn CI red until it can be done, and then it counts as an improvement. ## When a change cuts clicks diff --git a/ci/clicks/baseline-phone.json b/ci/clicks/baseline-phone.json index 6a9a11254..caee9ab2f 100644 --- a/ci/clicks/baseline-phone.json +++ b/ci/clicks/baseline-phone.json @@ -1,5 +1,5 @@ { - "surveyed": "2026-10-11T01:55:01.175Z", + "surveyed": "2026-10-11T02:22:40.367Z", "commit": "", "viewport": "Pixel 7, 412x839, touch", "device": "phone", @@ -47,7 +47,7 @@ } ], "id": "install", - "ms": 2184, + "ms": 2703, "ok": true }, { @@ -85,7 +85,7 @@ } ], "id": "first-admin", - "ms": 518, + "ms": 588, "ok": true }, { @@ -95,7 +95,7 @@ "clicks": 4, "keys": 0, "prompts": 0, - "swipes": 1, + "swipes": 0, "steps": [ { "page": "/welcome", @@ -103,8 +103,7 @@ "what": "Save and continue (Connect a model provider)", "clicks": 1, "keys": 0, - "prompts": 0, - "swipes": 1 + "prompts": 0 }, { "page": "/welcome", @@ -132,7 +131,7 @@ } ], "id": "setup-wizard", - "ms": 1195, + "ms": 1225, "ok": true }, { @@ -162,38 +161,22 @@ } ], "id": "first-question", - "ms": 1114, + "ms": 1144, "ok": true }, { "module": "Import", "feature": "Import a pasted transcript", "note": "", - "clicks": 4, - "keys": 7, + "clicks": 3, + "keys": 1, "prompts": 0, "swipes": 1, "steps": [ { "page": "/", "kind": "tap", - "what": "Jump to (top bar)", - "clicks": 1, - "keys": 0, - "prompts": 0 - }, - { - "page": "/", - "kind": "type", - "what": "import", - "clicks": 0, - "keys": 6, - "prompts": 0 - }, - { - "page": "/", - "kind": "tap", - "what": "Import recordings or transcripts", + "what": "Import (top bar)", "clicks": 1, "keys": 0, "prompts": 0 @@ -225,7 +208,7 @@ } ], "id": "import-paste", - "ms": 4748, + "ms": 4519, "ok": true }, { @@ -263,7 +246,7 @@ } ], "id": "library-open", - "ms": 3045, + "ms": 3134, "ok": true }, { @@ -309,7 +292,7 @@ } ], "id": "search-word", - "ms": 3671, + "ms": 3673, "ok": true }, { @@ -347,7 +330,7 @@ } ], "id": "jump-to", - "ms": 2422, + "ms": 2432, "ok": true }, { @@ -401,7 +384,7 @@ } ], "id": "chat-ask", - "ms": 6251, + "ms": 6301, "ok": true }, { @@ -463,7 +446,7 @@ } ], "id": "note-create", - "ms": 3556, + "ms": 3643, "ok": true }, { @@ -517,7 +500,7 @@ } ], "id": "topic-add", - "ms": 3699, + "ms": 3743, "ok": true }, { @@ -563,7 +546,7 @@ } ], "id": "pipeline-create", - "ms": 2993, + "ms": 3061, "ok": true }, { @@ -609,7 +592,7 @@ } ], "id": "routine-create", - "ms": 2982, + "ms": 3077, "ok": true }, { @@ -619,7 +602,7 @@ "clicks": 4, "keys": 0, "prompts": 0, - "swipes": 1, + "swipes": 0, "steps": [ { "page": "/", @@ -648,15 +631,14 @@ { "page": "/extensions/new", "kind": "tap", - "what": "Add to the assistant (covered by something else on the page)", + "what": "Add to the assistant", "clicks": 1, "keys": 0, - "prompts": 0, - "swipes": 1 + "prompts": 0 } ], "id": "extension-add", - "ms": 8345, + "ms": 3191, "ok": true }, { @@ -702,17 +684,17 @@ } ], "id": "sensor-webhook", - "ms": 3098, + "ms": 3112, "ok": true }, { "module": "Settings", "feature": "Change the model's timeout", "note": "", - "clicks": 5, + "clicks": 6, "keys": 4, "prompts": 0, - "swipes": 2, + "swipes": 1, "steps": [ { "page": "/", @@ -730,14 +712,21 @@ "keys": 0, "prompts": 0 }, + { + "page": "/settings/speakers", + "kind": "tap", + "what": "Settings sections", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, { "page": "/settings/speakers", "kind": "tap", "what": "LLM provider", "clicks": 1, "keys": 0, - "prompts": 0, - "swipes": 1 + "prompts": 0 }, { "page": "/settings/llm", @@ -751,14 +740,14 @@ { "page": "/settings/llm", "kind": "tap", - "what": "Save (covered by something else on the page)", + "what": "Save", "clicks": 1, "keys": 0, "prompts": 0 } ], "id": "settings-change", - "ms": 9321, + "ms": 4296, "ok": true }, { @@ -828,7 +817,7 @@ } ], "id": "person-add", - "ms": 3764, + "ms": 3754, "ok": true }, { @@ -874,22 +863,46 @@ } ], "id": "api-token", - "ms": 3435, + "ms": 3358, "ok": true }, { "module": "Navigation", "feature": "Switch to another namespace", "note": "", - "clicks": 0, + "clicks": 3, "keys": 0, "prompts": 0, "swipes": 0, - "steps": [], + "steps": [ + { + "page": "/", + "kind": "tap", + "what": "Open navigation (menu)", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/", + "kind": "tap", + "what": "the namespace switcher", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/", + "kind": "tap", + "what": "podcasts", + "clicks": 1, + "keys": 0, + "prompts": 0 + } + ], "id": "namespace-switch", - "ms": 7184, - "ok": false, - "error": "the namespace switcher isn't on the screen on a phone" + "ms": 2795, + "ok": true }, { "module": "Agents", @@ -918,38 +931,22 @@ } ], "id": "agent-connect", - "ms": 2710, + "ms": 2663, "ok": true }, { "module": "Import", "feature": "Upload a transcript file", "note": "", - "clicks": 5, - "keys": 6, + "clicks": 4, + "keys": 0, "prompts": 0, "swipes": 0, "steps": [ { "page": "/", "kind": "tap", - "what": "Jump to (top bar)", - "clicks": 1, - "keys": 0, - "prompts": 0 - }, - { - "page": "/", - "kind": "type", - "what": "import", - "clicks": 0, - "keys": 6, - "prompts": 0 - }, - { - "page": "/", - "kind": "tap", - "what": "Import recordings or transcripts", + "what": "Import (top bar)", "clicks": 1, "keys": 0, "prompts": 0 @@ -972,7 +969,7 @@ } ], "id": "import-file", - "ms": 4123, + "ms": 3786, "ok": true }, { @@ -982,7 +979,7 @@ "clicks": 10, "keys": 0, "prompts": 0, - "swipes": 1, + "swipes": 0, "steps": [ { "page": "/", @@ -1062,12 +1059,11 @@ "what": "Start watching", "clicks": 1, "keys": 0, - "prompts": 0, - "swipes": 1 + "prompts": 0 } ], "id": "source-folder", - "ms": 5586, + "ms": 5555, "ok": true }, { @@ -1113,14 +1109,14 @@ } ], "id": "entity-find", - "ms": 11897, + "ms": 11938, "ok": true }, { "module": "Graph", "feature": "Find a speaker in the graph of what was imported", "note": "The first namespace keeps its graph to itself, so the graph opens empty until it is picked as the namespace.", - "clicks": 4, + "clicks": 3, "keys": 7, "prompts": 0, "swipes": 0, @@ -1164,18 +1160,10 @@ "clicks": 0, "keys": 1, "prompts": 0 - }, - { - "page": "/graph", - "kind": "tap", - "what": "close the filters (they stay open over the node)", - "clicks": 1, - "keys": 0, - "prompts": 0 } ], "id": "graph-find", - "ms": 5005, + "ms": 4794, "ok": true }, { @@ -1185,7 +1173,7 @@ "clicks": 6, "keys": 0, "prompts": 0, - "swipes": 1, + "swipes": 0, "steps": [ { "page": "/", @@ -1230,15 +1218,14 @@ { "page": "/resources/:id", "kind": "tap", - "what": "Create podcast (covered by something else on the page)", + "what": "Create podcast", "clicks": 1, "keys": 0, - "prompts": 0, - "swipes": 1 + "prompts": 0 } ], "id": "podcast-create", - "ms": 9255, + "ms": 4057, "ok": true }, { @@ -1292,7 +1279,7 @@ } ], "id": "report-pdf", - "ms": 4039, + "ms": 3954, "ok": true }, { @@ -1354,7 +1341,7 @@ } ], "id": "workflow-create", - "ms": 3669, + "ms": 3735, "ok": true }, { @@ -1364,7 +1351,7 @@ "clicks": 5, "keys": 10, "prompts": 0, - "swipes": 1, + "swipes": 0, "steps": [ { "page": "/", @@ -1388,8 +1375,7 @@ "what": "Templates tab", "clicks": 1, "keys": 0, - "prompts": 0, - "swipes": 1 + "prompts": 0 }, { "page": "/templates", @@ -1417,7 +1403,7 @@ } ], "id": "template-create", - "ms": 3614, + "ms": 3651, "ok": true }, { @@ -1479,7 +1465,7 @@ } ], "id": "namespace-create", - "ms": 3416, + "ms": 3442, "ok": true }, { @@ -1541,17 +1527,17 @@ } ], "id": "speaker-rename", - "ms": 4235, + "ms": 4437, "ok": true }, { "module": "Setup", "feature": "Switch to a cloud model with an API key", "note": "What a Raspberry Pi install does after the installer: a cloud provider picked from the presets fills in its address and model, then a pasted key.", - "clicks": 5, + "clicks": 6, "keys": 1, "prompts": 0, - "swipes": 1, + "swipes": 0, "steps": [ { "page": "/", @@ -1569,14 +1555,21 @@ "keys": 0, "prompts": 0 }, + { + "page": "/settings/speakers", + "kind": "tap", + "what": "Settings sections", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, { "page": "/settings/speakers", "kind": "tap", "what": "LLM provider", "clicks": 1, "keys": 0, - "prompts": 0, - "swipes": 1 + "prompts": 0 }, { "page": "/settings/llm", @@ -1597,14 +1590,14 @@ { "page": "/settings/llm", "kind": "tap", - "what": "Save (covered by something else on the page)", + "what": "Save", "clicks": 1, "keys": 0, "prompts": 0 } ], "id": "cloud-model", - "ms": 9453, + "ms": 3878, "ok": true } ], diff --git a/ci/clicks/baseline.json b/ci/clicks/baseline.json index bc16dc2d2..5c2b46f1b 100644 --- a/ci/clicks/baseline.json +++ b/ci/clicks/baseline.json @@ -1,5 +1,5 @@ { - "surveyed": "2026-10-11T01:50:54.212Z", + "surveyed": "2026-10-11T02:26:11.592Z", "commit": "", "viewport": "1400x900", "device": "desktop", @@ -47,7 +47,7 @@ } ], "id": "install", - "ms": 2561, + "ms": 1935, "ok": true }, { @@ -85,7 +85,7 @@ } ], "id": "first-admin", - "ms": 422, + "ms": 486, "ok": true }, { @@ -131,7 +131,7 @@ } ], "id": "setup-wizard", - "ms": 572, + "ms": 649, "ok": true }, { @@ -161,7 +161,7 @@ } ], "id": "first-question", - "ms": 2196, + "ms": 2268, "ok": true }, { @@ -207,7 +207,7 @@ } ], "id": "import-paste", - "ms": 4093, + "ms": 4195, "ok": true }, { @@ -237,7 +237,7 @@ } ], "id": "library-open", - "ms": 2522, + "ms": 2597, "ok": true }, { @@ -275,7 +275,7 @@ } ], "id": "search-word", - "ms": 3096, + "ms": 3256, "ok": true }, { @@ -313,7 +313,7 @@ } ], "id": "jump-to", - "ms": 2245, + "ms": 2287, "ok": true }, { @@ -351,7 +351,7 @@ } ], "id": "chat-ask", - "ms": 3280, + "ms": 3410, "ok": true }, { @@ -405,7 +405,7 @@ } ], "id": "note-create", - "ms": 3052, + "ms": 3222, "ok": true }, { @@ -451,7 +451,7 @@ } ], "id": "topic-add", - "ms": 3206, + "ms": 3270, "ok": true }, { @@ -489,7 +489,7 @@ } ], "id": "pipeline-create", - "ms": 2517, + "ms": 2514, "ok": true }, { @@ -527,7 +527,7 @@ } ], "id": "routine-create", - "ms": 2516, + "ms": 2574, "ok": true }, { @@ -565,7 +565,7 @@ } ], "id": "extension-add", - "ms": 2513, + "ms": 2495, "ok": true }, { @@ -603,7 +603,7 @@ } ], "id": "sensor-webhook", - "ms": 2568, + "ms": 2591, "ok": true }, { @@ -649,7 +649,7 @@ } ], "id": "settings-change", - "ms": 3218, + "ms": 3278, "ok": true }, { @@ -711,7 +711,7 @@ } ], "id": "person-add", - "ms": 2983, + "ms": 3030, "ok": true }, { @@ -757,7 +757,7 @@ } ], "id": "api-token", - "ms": 3061, + "ms": 3236, "ok": true }, { @@ -787,7 +787,7 @@ } ], "id": "namespace-switch", - "ms": 2242, + "ms": 2278, "ok": true }, { @@ -817,7 +817,7 @@ } ], "id": "agent-connect", - "ms": 2528, + "ms": 2516, "ok": true }, { @@ -838,7 +838,7 @@ "prompts": 0 }, { - "page": "/", + "page": "/import", "kind": "upload", "what": "Choose files, then the file", "clicks": 2, @@ -855,7 +855,7 @@ } ], "id": "import-file", - "ms": 8592, + "ms": 8195, "ok": true }, { @@ -941,7 +941,7 @@ } ], "id": "source-folder", - "ms": 10678, + "ms": 5129, "ok": true }, { @@ -979,7 +979,7 @@ } ], "id": "entity-find", - "ms": 11282, + "ms": 11402, "ok": true }, { @@ -1017,7 +1017,7 @@ } ], "id": "graph-find", - "ms": 4153, + "ms": 4188, "ok": true }, { @@ -1071,7 +1071,7 @@ } ], "id": "podcast-create", - "ms": 3347, + "ms": 3555, "ok": true }, { @@ -1117,7 +1117,7 @@ } ], "id": "report-pdf", - "ms": 3299, + "ms": 3368, "ok": true }, { @@ -1171,7 +1171,7 @@ } ], "id": "workflow-create", - "ms": 2944, + "ms": 2947, "ok": true }, { @@ -1225,7 +1225,7 @@ } ], "id": "template-create", - "ms": 2846, + "ms": 2754, "ok": true }, { @@ -1279,7 +1279,7 @@ } ], "id": "namespace-create", - "ms": 2835, + "ms": 2851, "ok": true }, { @@ -1333,7 +1333,7 @@ } ], "id": "speaker-rename", - "ms": 3808, + "ms": 3926, "ok": true }, { @@ -1387,7 +1387,7 @@ } ], "id": "cloud-model", - "ms": 2711, + "ms": 3406, "ok": true } ], From 5f73e8aa7a91d9a69bb9bec962b2e68d7dd4d066 Mon Sep 17 00:00:00 2001 From: Adeel Ahmad Date: Wed, 14 Oct 2026 10:06:00 +0000 Subject: [PATCH 8/8] ci(clicks): baselines with the phone layout on v0.8.1 Phone: every journey can be done, 2 swipes (from 9), 248 keys (from 260). Computer unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_0173hj1h6qEeBT7zMzCgedwo --- ci/clicks/baseline-phone.json | 231 ++++++++++++++++++---------------- ci/clicks/baseline.json | 86 ++++++++----- 2 files changed, 173 insertions(+), 144 deletions(-) diff --git a/ci/clicks/baseline-phone.json b/ci/clicks/baseline-phone.json index 098361425..7da5c2b6b 100644 --- a/ci/clicks/baseline-phone.json +++ b/ci/clicks/baseline-phone.json @@ -1,5 +1,5 @@ { - "surveyed": "2026-10-11T01:55:01.175Z", + "surveyed": "2026-10-14T10:02:07.028Z", "commit": "", "viewport": "Pixel 7, 412x839, touch", "device": "phone", @@ -47,7 +47,7 @@ } ], "id": "install", - "ms": 2184, + "ms": 2963, "ok": true }, { @@ -85,7 +85,7 @@ } ], "id": "first-admin", - "ms": 518, + "ms": 620, "ok": true }, { @@ -95,7 +95,7 @@ "clicks": 4, "keys": 0, "prompts": 0, - "swipes": 1, + "swipes": 0, "steps": [ { "page": "/welcome", @@ -103,8 +103,7 @@ "what": "Save and continue (Connect a model provider)", "clicks": 1, "keys": 0, - "prompts": 0, - "swipes": 1 + "prompts": 0 }, { "page": "/welcome", @@ -132,7 +131,7 @@ } ], "id": "setup-wizard", - "ms": 1195, + "ms": 1394, "ok": true }, { @@ -162,38 +161,22 @@ } ], "id": "first-question", - "ms": 1114, + "ms": 1180, "ok": true }, { "module": "Import", "feature": "Import a pasted transcript", "note": "", - "clicks": 4, - "keys": 7, + "clicks": 3, + "keys": 1, "prompts": 0, "swipes": 1, "steps": [ { "page": "/", "kind": "tap", - "what": "Jump to (top bar)", - "clicks": 1, - "keys": 0, - "prompts": 0 - }, - { - "page": "/", - "kind": "type", - "what": "import", - "clicks": 0, - "keys": 6, - "prompts": 0 - }, - { - "page": "/", - "kind": "tap", - "what": "Import recordings or transcripts", + "what": "Import (top bar)", "clicks": 1, "keys": 0, "prompts": 0 @@ -225,7 +208,7 @@ } ], "id": "import-paste", - "ms": 4748, + "ms": 4518, "ok": true }, { @@ -263,7 +246,7 @@ } ], "id": "library-open", - "ms": 3045, + "ms": 3125, "ok": true }, { @@ -309,7 +292,7 @@ } ], "id": "search-word", - "ms": 3671, + "ms": 3935, "ok": true }, { @@ -347,7 +330,7 @@ } ], "id": "jump-to", - "ms": 2422, + "ms": 2460, "ok": true }, { @@ -401,7 +384,7 @@ } ], "id": "chat-ask", - "ms": 6251, + "ms": 6336, "ok": true }, { @@ -463,7 +446,7 @@ } ], "id": "note-create", - "ms": 3556, + "ms": 3613, "ok": true }, { @@ -517,7 +500,7 @@ } ], "id": "topic-add", - "ms": 3699, + "ms": 3727, "ok": true }, { @@ -563,7 +546,7 @@ } ], "id": "pipeline-create", - "ms": 2993, + "ms": 2970, "ok": true }, { @@ -609,7 +592,7 @@ } ], "id": "routine-create", - "ms": 2982, + "ms": 3042, "ok": true }, { @@ -619,7 +602,7 @@ "clicks": 4, "keys": 0, "prompts": 0, - "swipes": 1, + "swipes": 0, "steps": [ { "page": "/", @@ -648,15 +631,14 @@ { "page": "/extensions/new", "kind": "tap", - "what": "Add to the assistant (covered by something else on the page)", + "what": "Add to the assistant", "clicks": 1, "keys": 0, - "prompts": 0, - "swipes": 1 + "prompts": 0 } ], "id": "extension-add", - "ms": 8345, + "ms": 3261, "ok": true }, { @@ -702,17 +684,17 @@ } ], "id": "sensor-webhook", - "ms": 3098, + "ms": 3137, "ok": true }, { "module": "Settings", "feature": "Change the model's timeout", "note": "", - "clicks": 5, + "clicks": 6, "keys": 4, "prompts": 0, - "swipes": 2, + "swipes": 1, "steps": [ { "page": "/", @@ -730,14 +712,21 @@ "keys": 0, "prompts": 0 }, + { + "page": "/settings/speakers", + "kind": "tap", + "what": "Settings sections", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, { "page": "/settings/speakers", "kind": "tap", "what": "LLM provider", "clicks": 1, "keys": 0, - "prompts": 0, - "swipes": 1 + "prompts": 0 }, { "page": "/settings/llm", @@ -751,14 +740,14 @@ { "page": "/settings/llm", "kind": "tap", - "what": "Save (covered by something else on the page)", + "what": "Save", "clicks": 1, "keys": 0, "prompts": 0 } ], "id": "settings-change", - "ms": 9321, + "ms": 4414, "ok": true }, { @@ -828,7 +817,7 @@ } ], "id": "person-add", - "ms": 3764, + "ms": 3740, "ok": true }, { @@ -874,22 +863,46 @@ } ], "id": "api-token", - "ms": 3435, + "ms": 3397, "ok": true }, { "module": "Navigation", "feature": "Switch to another namespace", "note": "", - "clicks": 0, + "clicks": 3, "keys": 0, "prompts": 0, "swipes": 0, - "steps": [], + "steps": [ + { + "page": "/", + "kind": "tap", + "what": "Open navigation (menu)", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/", + "kind": "tap", + "what": "the namespace switcher", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/", + "kind": "tap", + "what": "podcasts", + "clicks": 1, + "keys": 0, + "prompts": 0 + } + ], "id": "namespace-switch", - "ms": 7184, - "ok": false, - "error": "the namespace switcher isn't on the screen on a phone" + "ms": 2846, + "ok": true }, { "module": "Agents", @@ -934,38 +947,22 @@ } ], "id": "agent-connect", - "ms": 3259, + "ms": 3170, "ok": true }, { "module": "Import", "feature": "Upload a transcript file", "note": "", - "clicks": 5, - "keys": 6, + "clicks": 4, + "keys": 0, "prompts": 0, "swipes": 0, "steps": [ { "page": "/", "kind": "tap", - "what": "Jump to (top bar)", - "clicks": 1, - "keys": 0, - "prompts": 0 - }, - { - "page": "/", - "kind": "type", - "what": "import", - "clicks": 0, - "keys": 6, - "prompts": 0 - }, - { - "page": "/", - "kind": "tap", - "what": "Import recordings or transcripts", + "what": "Import (top bar)", "clicks": 1, "keys": 0, "prompts": 0 @@ -988,7 +985,7 @@ } ], "id": "import-file", - "ms": 4123, + "ms": 3397, "ok": true }, { @@ -998,7 +995,7 @@ "clicks": 10, "keys": 0, "prompts": 0, - "swipes": 1, + "swipes": 0, "steps": [ { "page": "/", @@ -1078,12 +1075,11 @@ "what": "Start watching", "clicks": 1, "keys": 0, - "prompts": 0, - "swipes": 1 + "prompts": 0 } ], "id": "source-folder", - "ms": 5586, + "ms": 9832, "ok": true }, { @@ -1129,14 +1125,14 @@ } ], "id": "entity-find", - "ms": 11897, + "ms": 11946, "ok": true }, { "module": "Graph", "feature": "Find a speaker in the graph of what was imported", "note": "The first namespace keeps its graph to itself, so the graph opens empty until it is picked as the namespace.", - "clicks": 4, + "clicks": 3, "keys": 7, "prompts": 0, "swipes": 0, @@ -1180,18 +1176,10 @@ "clicks": 0, "keys": 1, "prompts": 0 - }, - { - "page": "/graph", - "kind": "tap", - "what": "close the filters (they stay open over the node)", - "clicks": 1, - "keys": 0, - "prompts": 0 } ], "id": "graph-find", - "ms": 5005, + "ms": 4826, "ok": true }, { @@ -1201,7 +1189,7 @@ "clicks": 6, "keys": 0, "prompts": 0, - "swipes": 1, + "swipes": 0, "steps": [ { "page": "/", @@ -1246,15 +1234,14 @@ { "page": "/resources/:id", "kind": "tap", - "what": "Create podcast (covered by something else on the page)", + "what": "Create podcast", "clicks": 1, "keys": 0, - "prompts": 0, - "swipes": 1 + "prompts": 0 } ], "id": "podcast-create", - "ms": 9255, + "ms": 4153, "ok": true }, { @@ -1308,7 +1295,7 @@ } ], "id": "report-pdf", - "ms": 4039, + "ms": 3947, "ok": true }, { @@ -1370,7 +1357,7 @@ } ], "id": "workflow-create", - "ms": 3669, + "ms": 3832, "ok": true }, { @@ -1380,7 +1367,7 @@ "clicks": 5, "keys": 10, "prompts": 0, - "swipes": 1, + "swipes": 0, "steps": [ { "page": "/", @@ -1404,8 +1391,7 @@ "what": "Templates tab", "clicks": 1, "keys": 0, - "prompts": 0, - "swipes": 1 + "prompts": 0 }, { "page": "/templates", @@ -1433,7 +1419,7 @@ } ], "id": "template-create", - "ms": 3614, + "ms": 3873, "ok": true }, { @@ -1495,7 +1481,7 @@ } ], "id": "namespace-create", - "ms": 3416, + "ms": 3772, "ok": true }, { @@ -1557,17 +1543,17 @@ } ], "id": "speaker-rename", - "ms": 4235, + "ms": 4438, "ok": true }, { "module": "Setup", "feature": "Switch to a cloud model with an API key", "note": "What a Raspberry Pi install does after the installer: a cloud provider picked from the presets fills in its address and model, then a pasted key.", - "clicks": 5, + "clicks": 6, "keys": 1, "prompts": 0, - "swipes": 1, + "swipes": 0, "steps": [ { "page": "/", @@ -1585,14 +1571,21 @@ "keys": 0, "prompts": 0 }, + { + "page": "/settings/speakers", + "kind": "tap", + "what": "Settings sections", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, { "page": "/settings/speakers", "kind": "tap", "what": "LLM provider", "clicks": 1, "keys": 0, - "prompts": 0, - "swipes": 1 + "prompts": 0 }, { "page": "/settings/llm", @@ -1613,14 +1606,14 @@ { "page": "/settings/llm", "kind": "tap", - "what": "Save (covered by something else on the page)", + "what": "Save", "clicks": 1, "keys": 0, "prompts": 0 } ], "id": "cloud-model", - "ms": 9453, + "ms": 3795, "ok": true } ], @@ -1883,6 +1876,24 @@ "reach": 3, "controls": 14 }, + { + "page": "/settings/telegram", + "label": "Settings › Telegram", + "reach": 3, + "controls": 2 + }, + { + "page": "/settings/slack", + "label": "Settings › Slack", + "reach": 3, + "controls": 2 + }, + { + "page": "/settings/mailbox", + "label": "Settings › Assistant email", + "reach": 3, + "controls": 2 + }, { "page": "/settings/notifications", "label": "Settings › Notifications", diff --git a/ci/clicks/baseline.json b/ci/clicks/baseline.json index 1332c3be6..f094c58d6 100644 --- a/ci/clicks/baseline.json +++ b/ci/clicks/baseline.json @@ -1,5 +1,5 @@ { - "surveyed": "2026-10-11T01:50:54.212Z", + "surveyed": "2026-10-14T10:05:41.681Z", "commit": "", "viewport": "1400x900", "device": "desktop", @@ -47,7 +47,7 @@ } ], "id": "install", - "ms": 2561, + "ms": 1912, "ok": true }, { @@ -85,7 +85,7 @@ } ], "id": "first-admin", - "ms": 422, + "ms": 490, "ok": true }, { @@ -131,7 +131,7 @@ } ], "id": "setup-wizard", - "ms": 572, + "ms": 772, "ok": true }, { @@ -161,7 +161,7 @@ } ], "id": "first-question", - "ms": 2196, + "ms": 1258, "ok": true }, { @@ -207,7 +207,7 @@ } ], "id": "import-paste", - "ms": 4093, + "ms": 4155, "ok": true }, { @@ -237,7 +237,7 @@ } ], "id": "library-open", - "ms": 2522, + "ms": 2596, "ok": true }, { @@ -275,7 +275,7 @@ } ], "id": "search-word", - "ms": 3096, + "ms": 3146, "ok": true }, { @@ -313,7 +313,7 @@ } ], "id": "jump-to", - "ms": 2245, + "ms": 2269, "ok": true }, { @@ -351,7 +351,7 @@ } ], "id": "chat-ask", - "ms": 3280, + "ms": 3400, "ok": true }, { @@ -405,7 +405,7 @@ } ], "id": "note-create", - "ms": 3052, + "ms": 3532, "ok": true }, { @@ -451,7 +451,7 @@ } ], "id": "topic-add", - "ms": 3206, + "ms": 3200, "ok": true }, { @@ -489,7 +489,7 @@ } ], "id": "pipeline-create", - "ms": 2517, + "ms": 2505, "ok": true }, { @@ -527,7 +527,7 @@ } ], "id": "routine-create", - "ms": 2516, + "ms": 2601, "ok": true }, { @@ -565,7 +565,7 @@ } ], "id": "extension-add", - "ms": 2513, + "ms": 2526, "ok": true }, { @@ -603,7 +603,7 @@ } ], "id": "sensor-webhook", - "ms": 2568, + "ms": 2579, "ok": true }, { @@ -649,7 +649,7 @@ } ], "id": "settings-change", - "ms": 3218, + "ms": 3256, "ok": true }, { @@ -711,7 +711,7 @@ } ], "id": "person-add", - "ms": 2983, + "ms": 3016, "ok": true }, { @@ -757,7 +757,7 @@ } ], "id": "api-token", - "ms": 3061, + "ms": 3147, "ok": true }, { @@ -787,7 +787,7 @@ } ], "id": "namespace-switch", - "ms": 2242, + "ms": 2311, "ok": true }, { @@ -833,7 +833,7 @@ } ], "id": "agent-connect", - "ms": 2753, + "ms": 2964, "ok": true }, { @@ -854,7 +854,7 @@ "prompts": 0 }, { - "page": "/", + "page": "/import", "kind": "upload", "what": "Choose files, then the file", "clicks": 2, @@ -871,7 +871,7 @@ } ], "id": "import-file", - "ms": 8592, + "ms": 8710, "ok": true }, { @@ -957,7 +957,7 @@ } ], "id": "source-folder", - "ms": 10678, + "ms": 4741, "ok": true }, { @@ -995,7 +995,7 @@ } ], "id": "entity-find", - "ms": 11282, + "ms": 11312, "ok": true }, { @@ -1033,7 +1033,7 @@ } ], "id": "graph-find", - "ms": 4153, + "ms": 4183, "ok": true }, { @@ -1087,7 +1087,7 @@ } ], "id": "podcast-create", - "ms": 3347, + "ms": 3500, "ok": true }, { @@ -1133,7 +1133,7 @@ } ], "id": "report-pdf", - "ms": 3299, + "ms": 3339, "ok": true }, { @@ -1187,7 +1187,7 @@ } ], "id": "workflow-create", - "ms": 2944, + "ms": 3019, "ok": true }, { @@ -1241,7 +1241,7 @@ } ], "id": "template-create", - "ms": 2846, + "ms": 2861, "ok": true }, { @@ -1295,7 +1295,7 @@ } ], "id": "namespace-create", - "ms": 2835, + "ms": 2856, "ok": true }, { @@ -1349,7 +1349,7 @@ } ], "id": "speaker-rename", - "ms": 3808, + "ms": 3914, "ok": true }, { @@ -1403,7 +1403,7 @@ } ], "id": "cloud-model", - "ms": 2711, + "ms": 2760, "ok": true } ], @@ -1666,6 +1666,24 @@ "reach": 2, "controls": 14 }, + { + "page": "/settings/telegram", + "label": "Settings › Telegram", + "reach": 2, + "controls": 2 + }, + { + "page": "/settings/slack", + "label": "Settings › Slack", + "reach": 2, + "controls": 2 + }, + { + "page": "/settings/mailbox", + "label": "Settings › Assistant email", + "reach": 2, + "controls": 2 + }, { "page": "/settings/notifications", "label": "Settings › Notifications", @@ -1776,7 +1794,7 @@ }, { "page": "/notes/:id", - "label": "Untitled", + "label": "Pi setup", "reach": 1, "controls": 9 }