From 0477ab0cd793316b3b8776cc7c6078e039a5b20e Mon Sep 17 00:00:00 2001 From: Adeel Ahmad Date: Sat, 17 Oct 2026 09:19:11 +0000 Subject: [PATCH 1/5] fix(chat): copy an answer in one click An answer's Copy button opened a menu, so copying took two clicks. A click on Copy now copies it as Markdown (its citations as footnotes, as before); the arrow beside it, as Regenerate has, holds Copy as Markdown, Copy text and Export as Markdown, PDF or JSON. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01HXPWXcSCQb9hWPr7xkZu7B --- docs/assistant.md | 6 +- .../__tests__/chat-copy-export.test.tsx | 20 +++-- nextjs-frontend/components/chat/export.tsx | 86 ++++++++++--------- 3 files changed, 61 insertions(+), 51 deletions(-) diff --git a/docs/assistant.md b/docs/assistant.md index 4ab1e52b0..e9eeb6b88 100644 --- a/docs/assistant.md +++ b/docs/assistant.md @@ -150,9 +150,9 @@ Exports carry each tool call's arguments and summary, never its raw result, whic export the same way over MCP: `list_chats`, `read_chat` and `export_chat` ([MCP](mcp.md)) work on the person's own conversations. -In the web app, an answer's copy button offers **Copy as Markdown** (its citations as footnotes linking back to Lens, -as in the Markdown export) and **Copy text** (without Markdown or citation numbers), then exports that answer with -its question as Markdown, PDF or JSON. A question has its own copy button, shown on hover, and each code block in an +In the web app, an answer's copy button copies it as Markdown in one click (its citations as footnotes linking back to +Lens, as in the Markdown export); the arrow beside it also offers **Copy text** (without Markdown or citation numbers) +and exports that answer with its question as Markdown, PDF or JSON. A question has its own copy button, shown on hover, and each code block in an answer has one that copies the code as written. The download icon in a conversation's header exports the whole conversation. When the server can't make a PDF, the browser's print dialog opens on the conversation (or that one answer), without the app around it, so Save as PDF still works. diff --git a/nextjs-frontend/__tests__/chat-copy-export.test.tsx b/nextjs-frontend/__tests__/chat-copy-export.test.tsx index 4cf4a18ba..974ec2a93 100644 --- a/nextjs-frontend/__tests__/chat-copy-export.test.tsx +++ b/nextjs-frontend/__tests__/chat-copy-export.test.tsx @@ -83,28 +83,32 @@ describe("copying an answer", () => { expect(plainText("## Steps\n\n```bash\nls\n```")).toBe("Steps\n\nls"); }); - it("copies from the answer's menu, and exports from it", async () => { + it("copies as Markdown in one click, and the rest from the arrow beside it", async () => { const onExport = jest.fn(); show(); - await choose("Copy", "Copy as Markdown"); - expect(writeText).toHaveBeenCalledWith(answerMarkdown(ANSWER, PASSAGES, ORIGIN)); + fireEvent.click(screen.getByRole("button", { name: "Copy" })); + await waitFor(() => expect(writeText).toHaveBeenCalledWith(answerMarkdown(ANSWER, PASSAGES, ORIGIN))); expect(await screen.findByText("Copied as Markdown")).toBeInTheDocument(); - await choose("Copy", "Copy text"); + const more = "More ways to copy and export"; + await choose(more, "Copy text"); expect(writeText).toHaveBeenLastCalledWith(plainText(ANSWER)); - await choose("Copy", "PDF"); + await choose(more, "Copy as Markdown"); + expect(writeText).toHaveBeenLastCalledWith(answerMarkdown(ANSWER, PASSAGES, ORIGIN)); + + await choose(more, "PDF"); await waitFor(() => expect(onExport).toHaveBeenCalledWith("pdf")); }); it("says so when the browser won't copy", async () => { writeText.mockImplementation(() => Promise.reject(new Error("denied"))); show(); - await choose("Copy", "Copy text"); + fireEvent.click(screen.getByRole("button", { name: "Copy" })); expect(await screen.findByText("Couldn’t copy")).toBeInTheDocument(); // not saved yet: nothing to export - fireEvent.keyDown(screen.getByRole("button", { name: "Copy" }), { key: "Enter" }); - expect(await screen.findByRole("menuitem", { name: "Copy as Markdown" })).toBeInTheDocument(); + fireEvent.keyDown(screen.getByRole("button", { name: "More ways to copy" }), { key: "Enter" }); + expect(await screen.findByRole("menuitem", { name: "Copy text" })).toBeInTheDocument(); expect(screen.queryByRole("menuitem", { name: "PDF" })).not.toBeInTheDocument(); }); diff --git a/nextjs-frontend/components/chat/export.tsx b/nextjs-frontend/components/chat/export.tsx index c0ec5c65d..0d0143aab 100644 --- a/nextjs-frontend/components/chat/export.tsx +++ b/nextjs-frontend/components/chat/export.tsx @@ -1,7 +1,7 @@ "use client"; import { useMutation } from "@tanstack/react-query"; -import { Copy, Download, FileText, Type } from "lucide-react"; +import { ChevronDown, Copy, Download, FileText, Type } from "lucide-react"; import { Chats } from "@/app/openapi-client"; import { answerMarkdown, copyText, plainText, type Cited } from "@/components/chat/copy"; @@ -98,7 +98,8 @@ export function ExportMenu({ const ITEM = "w-full text-left"; -/** An answer's copy menu: Copy as Markdown, Copy text and, once it's saved, Export it as Markdown, PDF or JSON. */ +/** An answer's copy button, which copies it as Markdown in one click, and the arrow beside it: Copy as Markdown, Copy + * text and, once it's saved, Export it as Markdown, PDF or JSON. */ export function AnswerMenu({ text, passages, @@ -109,45 +110,50 @@ export function AnswerMenu({ onExport?: (fmt: ExportFormat) => void; }) { const toast = useToast(); + // in the click itself, not after a menu closes: some browsers only let a click write to the clipboard + const asMarkdown = () => + void copyText(answerMarkdown(text, passages, window.location.origin), toast, "Copied as Markdown"); return ( - - - - - - - - {/* in the click itself, not after the menu closes: some browsers only let a click write to the clipboard */} - - - - - - - {onExport && ( - <> - - Export as - {FORMATS.map(({ fmt, label }) => ( - onExport(fmt)}> - {label} - - ))} - - )} - - + + + + + + + + + + + {onExport && ( + <> + + Export as + {FORMATS.map(({ fmt, label }) => ( + onExport(fmt)}> + {label} + + ))} + + )} + + + ); } From 5bc78211201dcac1e09831cc24f43e52150f7f20 Mon Sep 17 00:00:00 2001 From: Adeel Ahmad Date: Sat, 17 Oct 2026 09:19:19 +0000 Subject: [PATCH 2/5] fix(chat): keep each tool change made while the one before is being saved In a conversation, the Tools chip saved each change and then read the conversation back, and the next change was made from what the page still held. Switching a group off and then turning on the limit before the first save came back sent the old tools (Auto) with the limit, and the group came back on. Now each change shows at once, the changes are saved in the order they were made, and the conversation is read back after the last one. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01HXPWXcSCQb9hWPr7xkZu7B --- .../__tests__/chat-tools-picker.test.tsx | 63 +++++++++++++++++-- nextjs-frontend/components/chat/chat-app.tsx | 22 ++----- .../components/chat/tools-picker.tsx | 40 +++++++++++- 3 files changed, 100 insertions(+), 25 deletions(-) diff --git a/nextjs-frontend/__tests__/chat-tools-picker.test.tsx b/nextjs-frontend/__tests__/chat-tools-picker.test.tsx index a2c642342..7ddb44f57 100644 --- a/nextjs-frontend/__tests__/chat-tools-picker.test.tsx +++ b/nextjs-frontend/__tests__/chat-tools-picker.test.tsx @@ -1,12 +1,18 @@ -import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; -import { cleanup, fireEvent, render, screen, within } from "@testing-library/react"; +import { QueryClient, QueryClientProvider, useQuery } from "@tanstack/react-query"; +import { act, cleanup, fireEvent, render, screen, waitFor, within } from "@testing-library/react"; import "@testing-library/jest-dom"; +import { Chats } from "@/app/openapi-client"; import type { ChatTools } from "@/app/openapi-client/types.gen"; import { ScopeBar } from "@/components/chat/composer"; -import { choiceLabel, settingLink, ToolsChip, type ToolChoice } from "@/components/chat/tools-picker"; +import { choiceLabel, settingLink, ToolsChip, useSaveTools, type ToolChoice } from "@/components/chat/tools-picker"; +import { ToastProvider } from "@/components/ui/toast"; +import { data } from "@/lib/api/browser"; -jest.mock("@/app/openapi-client", () => ({ Chats: { chatTools: jest.fn() }, Collections: {} })); +jest.mock("@/app/openapi-client", () => ({ + Chats: { chatTools: jest.fn(), getChat: jest.fn(), updateChat: jest.fn() }, + Collections: {}, +})); jest.mock("next-auth/react", () => ({ useSession: () => ({ data: { accessToken: "t" } }) })); jest.mock("@/lib/hooks/session", () => ({ useArchive: () => ({ @@ -131,6 +137,55 @@ describe("the Tools chip", () => { }); }); +describe("saving a conversation's tools", () => { + const ok = (data: unknown) => ({ data, response: { ok: true, status: 200 } }); + + it("builds a change on the one before while that one is still being saved, and saves them in order", async () => { + let server: ToolChoice = { tools: null, max_tool_calls: null }; + const saving: (() => void)[] = []; // each save, finished when the test says + (Chats.updateChat as jest.Mock).mockImplementation( + ({ body }: { body: ToolChoice }) => + new Promise((done) => + saving.push(() => { + server = { ...server, ...body }; + done(ok({ ok: true })); + }), + ), + ); + (Chats.getChat as jest.Mock).mockImplementation(() => Promise.resolve(ok({ id: 4, ...server }))); + function Conversation() { + const chat = useQuery({ queryKey: ["chat", 4], queryFn: () => data(Chats.getChat({ path: { cid: 4 } })) }); + const save = useSaveTools(4); + if (!chat.data) return null; + const value = { tools: chat.data.tools ?? null, max_tool_calls: chat.data.max_tool_calls ?? null }; + return void save(v)} catalog={CATALOG} admin={false} />; + } + const qc = new QueryClient({ defaultOptions: { queries: { retry: false } } }); + render( + + + + + , + ); + fireEvent.click(await screen.findByRole("button", { name: /^Tools: Auto\./ })); + fireEvent.click(screen.getByRole("switch", { name: "Notes" })); + await waitFor(() => expect(screen.getByRole("switch", { name: "Notes" })).not.toBeChecked()); // shown at once + // the limit, before Notes is saved: it keeps Notes off, and waits for that save + fireEvent.click(screen.getByRole("switch", { name: "Limit tool calls per answer" })); + await waitFor(() => expect(screen.getByRole("switch", { name: "Limit tool calls per answer" })).toBeChecked()); + expect(Chats.updateChat).toHaveBeenCalledTimes(1); + act(() => saving[0]()); + await waitFor(() => expect(Chats.updateChat).toHaveBeenCalledTimes(2)); + expect((Chats.updateChat as jest.Mock).mock.calls[1][0].body).toEqual({ tools: ["archive"], max_tool_calls: 10 }); + expect(Chats.getChat).toHaveBeenCalledTimes(1); // not read back between the two + act(() => saving[1]()); + await waitFor(() => expect(Chats.getChat).toHaveBeenCalledTimes(2)); + expect(server).toEqual({ tools: ["archive"], max_tool_calls: 10 }); + expect(screen.getByRole("button", { name: /^Tools: 1 picked · 10 calls\./ })).toBeInTheDocument(); + }); +}); + describe("the scope's namespaces", () => { it("go back to all of them in one tap", () => { const onChange = jest.fn(); diff --git a/nextjs-frontend/components/chat/chat-app.tsx b/nextjs-frontend/components/chat/chat-app.tsx index a76a4a156..d7220f07c 100644 --- a/nextjs-frontend/components/chat/chat-app.tsx +++ b/nextjs-frontend/components/chat/chat-app.tsx @@ -20,7 +20,7 @@ import { ExportMenu, useChatExport } from "@/components/chat/export"; import { NamespaceOffer, spokenPick } from "@/components/chat/namespace-offer"; import { fromApiScope, scopeFromParams, toApiScope, type Scope } from "@/components/chat/scope"; import { CitationSheet, SourcesPanel, SourcesSheet } from "@/components/chat/sources"; -import { ToolsChip, useToolCatalog, type ToolChoice } from "@/components/chat/tools-picker"; +import { ToolsChip, useSaveTools, useToolCatalog, type ToolChoice } from "@/components/chat/tools-picker"; import { applyEvent, newTurn, @@ -631,17 +631,8 @@ export function ChatApp() { tools: toolCatalog.data?.remembered.tools ?? null, max_tool_calls: toolCatalog.data?.remembered.max_tool_calls ?? null, }); - const pickTools = async (v: ToolChoice) => { - if (activeId == null) return setDraftTools(v); - try { - await data(Chats.updateChat({ client, path: { cid: activeId }, body: v })); - await qc.invalidateQueries({ queryKey: ["chat", activeId] }); - void qc.invalidateQueries({ queryKey: ["chats"] }); - void qc.invalidateQueries({ queryKey: ["chat-tools"] }); - } catch (e) { - toast({ title: "Couldn’t change the tools", body: e instanceof Error ? e.message : undefined, tone: "red" }); - } - }; + const saveTools = useSaveTools(activeId); + const pickTools = (v: ToolChoice) => (activeId == null ? setDraftTools(v) : void saveTools(v)); const showThread = activeId != null || liveHere != null; // setting the server up doesn't look in the archive: no sources column to fill const setupChat = activeId != null && chat.data?.kind === "setup"; @@ -922,12 +913,7 @@ export function ChatApp() { openTick={scopeOpenTick} toolsChip={ usesTools && !setupChat ? ( - void pickTools(v)} - catalog={toolCatalog.data} - admin={admin} - /> + ) : undefined } /> diff --git a/nextjs-frontend/components/chat/tools-picker.tsx b/nextjs-frontend/components/chat/tools-picker.tsx index 1fac0dce7..accbb719e 100644 --- a/nextjs-frontend/components/chat/tools-picker.tsx +++ b/nextjs-frontend/components/chat/tools-picker.tsx @@ -1,18 +1,19 @@ "use client"; -import { useQuery } from "@tanstack/react-query"; +import { useQuery, useQueryClient } from "@tanstack/react-query"; import { ChevronDown, Minus, Plus, Wrench } from "lucide-react"; import Link from "next/link"; -import { useState } from "react"; +import { useCallback, useRef, useState } from "react"; import { Chats } from "@/app/openapi-client"; -import type { ChatTools, ToolGroup } from "@/app/openapi-client/types.gen"; +import type { Chat, ChatTools, ToolGroup } from "@/app/openapi-client/types.gen"; import { settingHref } from "@/components/settings/find"; import { FIELDS, fieldId, SECTIONS } from "@/components/settings/model"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Switch } from "@/components/ui/field"; import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/menu"; +import { useToast } from "@/components/ui/toast"; import { data, useApiClient } from "@/lib/api/browser"; import { cn } from "@/lib/utils"; @@ -34,6 +35,39 @@ export function useToolCatalog(chatId: number | null, enabled = true) { }); } +/** Saves what a conversation's answers may use (PATCH /chats/{cid}): shown at once, saved in the order the changes + * were made, and read back from the server after the last one. So a change made while the one before is still being + * saved builds on it, rather than on what the server said before either (which would put the first change back). */ +export function useSaveTools(chatId: number | null) { + const client = useApiClient(); + const qc = useQueryClient(); + const toast = useToast(); + const saving = useRef>(Promise.resolve()); + const latest = useRef(0); + return useCallback( + async (v: ToolChoice) => { + if (chatId == null) return; + const key = ["chat", chatId]; + const n = ++latest.current; + await qc.cancelQueries({ queryKey: key }); // a read already on its way would show the choice before this one + qc.setQueryData(key, (was) => (was ? { ...was, ...v } : was)); + saving.current = saving.current.then(async () => { + try { + await data(Chats.updateChat({ client, path: { cid: chatId }, body: v })); + } catch (e) { + toast({ title: "Couldn’t change the tools", body: e instanceof Error ? e.message : undefined, tone: "red" }); + } + if (n !== latest.current) return; // a later change is being saved: read it back after that one + await qc.invalidateQueries({ queryKey: key }); + void qc.invalidateQueries({ queryKey: ["chats"] }); + void qc.invalidateQueries({ queryKey: ["chat-tools"] }); + }); + return saving.current; + }, + [chatId, client, qc, toast], + ); +} + /** Where an admin switches a setting back on (`ai.browser`): its field in Settings, else its section. */ export function settingLink(key: string): string | null { const field = FIELDS.find((f) => fieldId(f) === key); From f3d908a98438a3e176b6a0c9aa34d0eed5f9de6b Mon Sep 17 00:00:00 2001 From: Adeel Ahmad Date: Sat, 17 Oct 2026 09:19:26 +0000 Subject: [PATCH 3/5] test(clicks): journeys for regenerating, copying, exporting and choosing tools in a chat chat-regenerate (from Home: the conversation, Regenerate, back to the first version), chat-copy, chat-export-pdf (the server's PDF downloaded, or the browser's print dialog counted outside the browser) and chat-tools (a group off and a limit), on a computer and a phone. They run before cloud-model, which stays last since it points Lens away from the stand-in model; the stand-in model now answers a regenerated question with "..., version 2." so the versions differ. Both baselines are from full runs, so they also carry entity-merge and graph-merge, which they lacked. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01HXPWXcSCQb9hWPr7xkZu7B --- ci/clicks/baseline-phone.json | 759 ++++++++++++++++++++++++++-------- ci/clicks/baseline.json | 731 ++++++++++++++++++++++++-------- ci/clicks/fake-model.mjs | 24 +- ci/clicks/journeys.mjs | 89 ++++ docs/requirements.md | 2 +- 5 files changed, 1251 insertions(+), 354 deletions(-) diff --git a/ci/clicks/baseline-phone.json b/ci/clicks/baseline-phone.json index 81db569a9..02fda39b2 100644 --- a/ci/clicks/baseline-phone.json +++ b/ci/clicks/baseline-phone.json @@ -1,6 +1,6 @@ { - "surveyed": "2026-10-15T00:52:08.738Z", - "commit": "93bbfbe6f96099678673e62cb5897db1901ff413", + "surveyed": "2026-10-17T09:32:32.561Z", + "commit": "", "viewport": "Pixel 7, 412x839, touch", "device": "phone", "journeys": [ @@ -47,7 +47,7 @@ } ], "id": "install", - "ms": 1590, + "ms": 2971, "ok": true }, { @@ -85,7 +85,7 @@ } ], "id": "first-admin", - "ms": 470, + "ms": 696, "ok": true }, { @@ -107,7 +107,7 @@ } ], "id": "setup-wizard", - "ms": 410, + "ms": 590, "ok": true }, { @@ -137,7 +137,7 @@ } ], "id": "first-question", - "ms": 1089, + "ms": 2416, "ok": true }, { @@ -184,7 +184,7 @@ } ], "id": "import-paste", - "ms": 4392, + "ms": 4293, "ok": true }, { @@ -222,7 +222,7 @@ } ], "id": "library-open", - "ms": 3028, + "ms": 3480, "ok": true }, { @@ -268,7 +268,7 @@ } ], "id": "search-word", - "ms": 3605, + "ms": 4181, "ok": true }, { @@ -306,7 +306,7 @@ } ], "id": "jump-to", - "ms": 2365, + "ms": 2668, "ok": true }, { @@ -360,7 +360,7 @@ } ], "id": "chat-ask", - "ms": 6073, + "ms": 6570, "ok": true }, { @@ -422,7 +422,7 @@ } ], "id": "note-create", - "ms": 3403, + "ms": 3936, "ok": true }, { @@ -476,7 +476,7 @@ } ], "id": "topic-add", - "ms": 3606, + "ms": 3763, "ok": true }, { @@ -522,7 +522,7 @@ } ], "id": "pipeline-create", - "ms": 2909, + "ms": 2982, "ok": true }, { @@ -568,7 +568,7 @@ } ], "id": "routine-create", - "ms": 2958, + "ms": 3029, "ok": true }, { @@ -614,7 +614,7 @@ } ], "id": "extension-add", - "ms": 3082, + "ms": 3144, "ok": true }, { @@ -660,7 +660,7 @@ } ], "id": "sensor-webhook", - "ms": 3020, + "ms": 3122, "ok": true }, { @@ -723,7 +723,7 @@ } ], "id": "settings-change", - "ms": 4214, + "ms": 4385, "ok": true }, { @@ -793,7 +793,7 @@ } ], "id": "person-add", - "ms": 3601, + "ms": 3669, "ok": true }, { @@ -831,7 +831,7 @@ } ], "id": "api-token", - "ms": 3232, + "ms": 3331, "ok": true }, { @@ -869,7 +869,7 @@ } ], "id": "namespace-switch", - "ms": 2754, + "ms": 2836, "ok": true }, { @@ -915,7 +915,7 @@ } ], "id": "agent-connect", - "ms": 3109, + "ms": 3219, "ok": true }, { @@ -953,7 +953,7 @@ } ], "id": "import-file", - "ms": 3730, + "ms": 3925, "ok": true }, { @@ -1007,13 +1007,13 @@ } ], "id": "source-folder", - "ms": 4469, + "ms": 4297, "ok": true }, { "module": "Entities", "feature": "Find an entity and see where it was mentioned", - "note": "", + "note": "Its name opens its own page, /wiki//Raspberry_Pi, with its notes and every line that says it.", "clicks": 4, "keys": 4, "prompts": 0, @@ -1053,7 +1053,7 @@ } ], "id": "entity-find", - "ms": 11839, + "ms": 11995, "ok": true }, { @@ -1107,7 +1107,7 @@ } ], "id": "graph-find", - "ms": 4686, + "ms": 5031, "ok": true }, { @@ -1169,7 +1169,7 @@ } ], "id": "podcast-create", - "ms": 3951, + "ms": 4426, "ok": true }, { @@ -1223,7 +1223,7 @@ } ], "id": "report-pdf", - "ms": 3869, + "ms": 4139, "ok": true }, { @@ -1277,7 +1277,7 @@ } ], "id": "workflow-create", - "ms": 3548, + "ms": 3838, "ok": true }, { @@ -1331,7 +1331,7 @@ } ], "id": "template-create", - "ms": 3483, + "ms": 3839, "ok": true }, { @@ -1393,7 +1393,7 @@ } ], "id": "namespace-create", - "ms": 3333, + "ms": 3623, "ok": true }, { @@ -1455,7 +1455,307 @@ } ], "id": "speaker-rename", - "ms": 4242, + "ms": 4559, + "ok": true + }, + { + "module": "Entities", + "feature": "Merge two entities into one, then undo it", + "note": "The merge happens at once and the notice has Undo, so nothing asks to confirm; Undo puts both back.", + "clicks": 6, + "keys": 0, + "prompts": 0, + "swipes": 0, + "steps": [ + { + "page": "/", + "kind": "tap", + "what": "Open navigation (menu)", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/", + "kind": "tap", + "what": "Entities", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/entities", + "kind": "tap", + "what": "tick Lens", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/entities", + "kind": "tap", + "what": "tick Raspberry Pi", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/entities", + "kind": "tap", + "what": "Merge into the one it keeps", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/entities", + "kind": "tap", + "what": "Undo on the notice", + "clicks": 1, + "keys": 0, + "prompts": 0 + } + ], + "id": "entity-merge", + "ms": 6866, + "ok": true + }, + { + "module": "Graph", + "feature": "Merge an entity into another from the graph, then undo it", + "note": "Find the node, Merge in its panel, type the other's name and Enter; the notice has Undo, so nothing asks to confirm.", + "clicks": 5, + "keys": 10, + "prompts": 0, + "swipes": 0, + "steps": [ + { + "page": "/", + "kind": "tap", + "what": "Open navigation (menu)", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/", + "kind": "tap", + "what": "Graph", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/graph", + "kind": "tap", + "what": "Filters", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/graph", + "kind": "type", + "what": "part of the name", + "clicks": 0, + "keys": 4, + "prompts": 0 + }, + { + "page": "/graph", + "kind": "key", + "what": "Enter to pick it", + "clicks": 0, + "keys": 1, + "prompts": 0 + }, + { + "page": "/graph", + "kind": "tap", + "what": "Merge in its panel", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/graph", + "kind": "type", + "what": "the other's name", + "clicks": 0, + "keys": 4, + "prompts": 0 + }, + { + "page": "/graph", + "kind": "key", + "what": "Enter to merge it", + "clicks": 0, + "keys": 1, + "prompts": 0 + }, + { + "page": "/graph", + "kind": "tap", + "what": "Undo on the notice", + "clicks": 1, + "keys": 0, + "prompts": 0 + } + ], + "id": "graph-merge", + "ms": 8282, + "ok": true + }, + { + "module": "Chat", + "feature": "Regenerate an answer, then switch back to the first version", + "note": "In the conversation chat-ask started: Regenerate writes another answer beside it (2 / 2), and the arrow before the count shows the first again.", + "clicks": 5, + "keys": 0, + "prompts": 0, + "swipes": 0, + "steps": [ + { + "page": "/", + "kind": "tap", + "what": "Open navigation (menu)", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/", + "kind": "tap", + "what": "Chat", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/chat", + "kind": "tap", + "what": "the conversation", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/chat/:id", + "kind": "tap", + "what": "Regenerate", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/chat/:id", + "kind": "tap", + "what": "Previous version (‹)", + "clicks": 1, + "keys": 0, + "prompts": 0 + } + ], + "id": "chat-regenerate", + "ms": 4165, + "ok": true + }, + { + "module": "Chat", + "feature": "Copy an answer", + "note": "Continues chat-regenerate, in its conversation. Copy copies it as Markdown, its citations as footnotes; the arrow beside it has Copy text and Export.", + "clicks": 1, + "keys": 0, + "prompts": 0, + "swipes": 0, + "steps": [ + { + "page": "/chat/:id", + "kind": "tap", + "what": "Copy", + "clicks": 1, + "keys": 0, + "prompts": 0 + } + ], + "id": "chat-copy", + "ms": 265, + "ok": true + }, + { + "module": "Chat", + "feature": "Export a conversation as a PDF", + "note": "Continues chat-copy. The download icon in the conversation's header, then PDF. Where the server can make the PDF (Chromium, anytopdf or LibreOffice) the browser saves it; where it can't, the browser's print dialog opens on the conversation and does the saving (one click there, counted).", + "clicks": 2, + "keys": 0, + "prompts": 0, + "swipes": 0, + "steps": [ + { + "page": "/chat/:id", + "kind": "tap", + "what": "Export conversation (the header's download icon)", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/chat/:id", + "kind": "tap", + "what": "PDF", + "clicks": 1, + "keys": 0, + "prompts": 0 + } + ], + "id": "chat-export-pdf", + "ms": 5022, + "ok": true + }, + { + "module": "Chat", + "feature": "Pick the tools and a tool-call limit for a conversation", + "note": "Continues chat-export-pdf. The Tools chip beside the scope: switching one group off keeps the others (Auto goes off), and the limit starts at 10 calls. Each change is saved to the conversation as it's made, and new conversations start with it.", + "clicks": 4, + "keys": 0, + "prompts": 0, + "swipes": 0, + "steps": [ + { + "page": "/chat/:id", + "kind": "tap", + "what": "the Tools chip (Tools: Auto)", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/chat/:id", + "kind": "tap", + "what": "switch off The server", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/chat/:id", + "kind": "tap", + "what": "Limit tool calls per answer (10)", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/chat/:id", + "kind": "tap", + "what": "Done", + "clicks": 1, + "keys": 0, + "prompts": 0 + } + ], + "id": "chat-tools", + "ms": 1132, "ok": true }, { @@ -1525,7 +1825,7 @@ } ], "id": "cloud-model", - "ms": 3735, + "ms": 3952, "ok": true } ], @@ -1534,415 +1834,526 @@ "page": "/", "label": "Home", "reach": 2, - "controls": 4 + "controls": 4, + "askCovers": [] }, { "page": "/library", "label": "Library", "reach": 2, - "controls": 17 + "controls": 17, + "askCovers": [] }, { "page": "/search", "label": "Search", "reach": 2, - "controls": 11 + "controls": 11, + "askCovers": [] }, { "page": "/chat", "label": "Chat", "reach": 2, - "controls": 0 + "controls": 0, + "askCovers": [] }, { "page": "/notes", "label": "Notes", "reach": 2, - "controls": 2 + "controls": 10, + "askCovers": [] + }, + { + "page": "/timeline", + "label": "Timeline", + "reach": 2, + "controls": 51, + "askCovers": [] }, { "page": "/entities", "label": "Entities", "reach": 2, - "controls": 10 + "controls": 10, + "askCovers": [] }, { "page": "/topics", "label": "Topics", "reach": 2, - "controls": 4 + "controls": 4, + "askCovers": [] }, { "page": "/graph", "label": "Graph", "reach": 2, - "controls": 14 + "controls": 14, + "askCovers": [] }, { "page": "/podcasts", "label": "Podcasts", "reach": 2, - "controls": 1 + "controls": 1, + "askCovers": [] }, { "page": "/reports", "label": "Reports", "reach": 2, - "controls": 7 - }, - { - "page": "/costs", - "label": "Costs", - "reach": 2, - "controls": 12 + "controls": 7, + "askCovers": [] }, { "page": "/pipelines", "label": "Pipelines", "reach": 2, - "controls": 20 + "controls": 20, + "askCovers": [] }, { "page": "/workflows", "label": "Pipelines › Workflows", "reach": 3, - "controls": 8 + "controls": 8, + "askCovers": [] }, { "page": "/workflows/nodes", "label": "Pipelines › Custom nodes", "reach": 3, - "controls": 6 + "controls": 6, + "askCovers": [] }, { "page": "/content-types", "label": "Pipelines › Content types", "reach": 3, - "controls": 66 + "controls": 69, + "askCovers": [] }, { "page": "/templates", "label": "Pipelines › Templates", "reach": 3, - "controls": 11 + "controls": 12, + "askCovers": [] }, { "page": "/routines", "label": "Routines", "reach": 2, - "controls": 20 + "controls": 20, + "askCovers": [] }, { "page": "/routines/changes", "label": "Routines › Proposed changes", "reach": 3, - "controls": 5 + "controls": 5, + "askCovers": [] }, { "page": "/routines/history", "label": "Routines › History", "reach": 3, - "controls": 9 + "controls": 21, + "askCovers": [] }, { "page": "/extensions", "label": "Extensions", "reach": 2, - "controls": 7 + "controls": 8, + "askCovers": [] }, { "page": "/sensors", "label": "Sensors", "reach": 2, - "controls": 9 + "controls": 9, + "askCovers": [] }, { "page": "/sources", "label": "Sensors › Files, email and calendars", "reach": 3, - "controls": 9 + "controls": 9, + "askCovers": [] }, { "page": "/sensors/logins", "label": "Sensors › Hub logins", "reach": 3, - "controls": 5 + "controls": 5, + "askCovers": [] + }, + { + "page": "/costs", + "label": "Costs", + "reach": 2, + "controls": 12, + "askCovers": [] + }, + { + "page": "/analytics", + "label": "Analytics", + "reach": 2, + "controls": 5, + "askCovers": [] }, { "page": "/settings/speakers", "label": "Settings", "reach": 2, - "controls": 5 + "controls": 5, + "askCovers": [] }, { - "page": "/settings/transcription", - "label": "Settings › Transcription", + "page": "/settings/llm", + "label": "Settings › LLM provider", "reach": 3, - "controls": 4 + "controls": 16, + "askCovers": [] }, { - "page": "/settings/speaker-separation", - "label": "Settings › Speaker separation", + "page": "/settings/local-model", + "label": "Settings › Local model", "reach": 3, - "controls": 9 + "controls": 20, + "askCovers": [] }, { - "page": "/settings/speech-providers", - "label": "Settings › Speech providers", + "page": "/settings/ai", + "label": "Settings › AI assistant", "reach": 3, - "controls": 30 + "controls": 18, + "askCovers": [] }, { - "page": "/settings/voice-ids", - "label": "Settings › Voice IDs", + "page": "/settings/sandbox", + "label": "Settings › Code sandbox", "reach": 3, - "controls": 6 + "controls": 5, + "askCovers": [] + }, + { + "page": "/settings/search", + "label": "Settings › Search", + "reach": 3, + "controls": 9, + "askCovers": [] }, { "page": "/settings/analysis", "label": "Settings › Analysis", "reach": 3, - "controls": 3 + "controls": 5, + "askCovers": [] }, { - "page": "/settings/llm", - "label": "Settings › LLM provider", + "page": "/settings/transcription", + "label": "Settings › Transcription", "reach": 3, - "controls": 20 + "controls": 4, + "askCovers": [] }, { - "page": "/settings/local-model", - "label": "Settings › Local model", + "page": "/settings/speaker-separation", + "label": "Settings › Speaker separation", "reach": 3, - "controls": 25 + "controls": 9, + "askCovers": [] }, { - "page": "/settings/ai", - "label": "Settings › AI assistant", + "page": "/settings/voice-ids", + "label": "Settings › Voice IDs", "reach": 3, - "controls": 57 + "controls": 4, + "askCovers": [] }, { - "page": "/settings/search", - "label": "Settings › Search", + "page": "/settings/speech-providers", + "label": "Settings › Speech providers", "reach": 3, - "controls": 17 + "controls": 2, + "askCovers": [] }, { - "page": "/settings/reports", - "label": "Settings › Reports and graph", + "page": "/settings/uploads", + "label": "Settings › Uploads", "reach": 3, - "controls": 5 + "controls": 1, + "askCovers": [] + }, + { + "page": "/settings/documents", + "label": "Settings › Documents", + "reach": 3, + "controls": 8, + "askCovers": [] }, { "page": "/settings/video", "label": "Settings › Video, OCR, faces and objects", "reach": 3, - "controls": 19 + "controls": 10, + "askCovers": [] }, { "page": "/settings/nsfw", "label": "Settings › NSFW", "reach": 3, - "controls": 5 + "controls": 5, + "askCovers": [] }, { - "page": "/settings/workers", - "label": "Settings › Workers", + "page": "/settings/reports", + "label": "Settings › Reports and graph", "reach": 3, - "controls": 19 + "controls": 5, + "askCovers": [] }, { - "page": "/settings/sign-in", - "label": "Settings › Sign-in", + "page": "/settings/iiif", + "label": "Settings › IIIF & metadata", "reach": 3, - "controls": 2 + "controls": 7, + "askCovers": [] }, { - "page": "/settings/encryption", - "label": "Settings › Encryption", + "page": "/settings/telegram", + "label": "Settings › Telegram", "reach": 3, - "controls": 3 + "controls": 2, + "askCovers": [] }, { - "page": "/settings/components", - "label": "Settings › Components", + "page": "/settings/slack", + "label": "Settings › Slack", "reach": 3, - "controls": 3 + "controls": 2, + "askCovers": [] }, { - "page": "/settings/access", - "label": "Settings › Access & embedding", + "page": "/settings/bridge", + "label": "Settings › Chat rooms", "reach": 3, - "controls": 6 + "controls": 14, + "askCovers": [] }, { - "page": "/settings/remote-access", - "label": "Settings › Remote access", + "page": "/settings/mailbox", + "label": "Settings › Assistant email", "reach": 3, - "controls": 4 + "controls": 2, + "askCovers": [] }, { - "page": "/settings/https", - "label": "Settings › HTTPS", + "page": "/settings/mail", + "label": "Settings › Email", "reach": 3, - "controls": 18 + "controls": 8, + "askCovers": [] }, { - "page": "/settings/mail", - "label": "Settings › Email", + "page": "/settings/notifications", + "label": "Settings › Notifications", "reach": 3, - "controls": 8 + "controls": 5, + "askCovers": [] }, { - "page": "/settings/bridge", - "label": "Settings › Chat rooms", + "page": "/settings/sign-in", + "label": "Settings › Sign-in", "reach": 3, - "controls": 14 + "controls": 2, + "askCovers": [] }, { - "page": "/settings/telegram", - "label": "Settings › Telegram", + "page": "/settings/tokens", + "label": "Settings › API keys", "reach": 3, - "controls": 2 + "controls": 7, + "askCovers": [] }, { - "page": "/settings/slack", - "label": "Settings › Slack", + "page": "/settings/encryption", + "label": "Settings › Encryption", "reach": 3, - "controls": 2 + "controls": 3, + "askCovers": [] }, { - "page": "/settings/mailbox", - "label": "Settings › Assistant email", + "page": "/settings/access", + "label": "Settings › Access & embedding", "reach": 3, - "controls": 2 + "controls": 7, + "askCovers": [] }, { - "page": "/settings/notifications", - "label": "Settings › Notifications", + "page": "/settings/remote-access", + "label": "Settings › Remote access", "reach": 3, - "controls": 5 + "controls": 4, + "askCovers": [] }, { - "page": "/settings/telemetry", - "label": "Settings › Telemetry", + "page": "/settings/https", + "label": "Settings › HTTPS", "reach": 3, - "controls": 14 + "controls": 9, + "askCovers": [] }, { - "page": "/settings/logs", - "label": "Settings › Logs", + "page": "/settings/storage", + "label": "Settings › Storage", "reach": 3, - "controls": 223 + "controls": 3, + "askCovers": [] }, { - "page": "/settings/fedora", - "label": "Settings › Fedora repository", + "page": "/settings/shares", + "label": "Settings › File shares", "reach": 3, - "controls": 10 + "controls": 7, + "askCovers": [] }, { - "page": "/settings/sensors", - "label": "Settings › Sensors", + "page": "/settings/smb", + "label": "Settings › SMB share", "reach": 3, - "controls": 15 + "controls": 2, + "askCovers": [] }, { "page": "/settings/nfs", "label": "Settings › NFS share", "reach": 3, - "controls": 4 + "controls": 4, + "askCovers": [] }, { - "page": "/settings/smb", - "label": "Settings › SMB share", + "page": "/settings/fedora", + "label": "Settings › Fedora repository", "reach": 3, - "controls": 2 + "controls": 10, + "askCovers": [] }, { - "page": "/settings/shares", - "label": "Settings › File shares", + "page": "/settings/sensors", + "label": "Settings › Sensors", "reach": 3, - "controls": 6 + "controls": 15, + "askCovers": [] }, { - "page": "/settings/uploads", - "label": "Settings › Uploads", + "page": "/settings/updates", + "label": "Settings › Updates", "reach": 3, - "controls": 23 + "controls": 6, + "askCovers": [] }, { "page": "/settings/backups", "label": "Settings › Backups", "reach": 3, - "controls": 9 + "controls": 9, + "askCovers": [] }, { - "page": "/settings/storage", - "label": "Settings › Storage", + "page": "/settings/components", + "label": "Settings › Components", "reach": 3, - "controls": 3 + "controls": 6, + "askCovers": [] }, { - "page": "/settings/documents", - "label": "Settings › Documents", + "page": "/settings/workers", + "label": "Settings › Workers", "reach": 3, - "controls": 12 + "controls": 2, + "askCovers": [] }, { - "page": "/settings/tokens", - "label": "Settings › API keys", + "page": "/settings/automations", + "label": "Settings › Automations", "reach": 3, - "controls": 7 + "controls": 8, + "askCovers": [] }, { - "page": "/settings/iiif", - "label": "Settings › IIIF & metadata", + "page": "/settings/logs", + "label": "Settings › Logs", + "reach": 3, + "controls": 223, + "askCovers": [] + }, + { + "page": "/settings/telemetry", + "label": "Settings › Telemetry", + "reach": 3, + "controls": 14, + "askCovers": [] + }, + { + "page": "/settings/analytics", + "label": "Settings › Usage analytics", "reach": 3, - "controls": 21 + "controls": 14, + "askCovers": [] }, { "page": "/settings/startup", "label": "Settings › Set at startup", "reach": 3, - "controls": 0 + "controls": 0, + "askCovers": [] }, { "page": "/admin/people", "label": "Admin", "reach": 2, - "controls": 13 + "controls": 13, + "askCovers": [] }, { "page": "/admin/roles", "label": "Admin › Roles", "reach": 3, - "controls": 6 + "controls": 6, + "askCovers": [] }, { "page": "/admin/namespaces", "label": "Admin › Namespaces", "reach": 3, - "controls": 9 + "controls": 9, + "askCovers": [] }, { "page": "/admin/audit", "label": "Admin › Audit log", "reach": 3, - "controls": 36 + "controls": 36, + "askCovers": [] }, { "page": "/admin/health", "label": "Admin › System health", "reach": 3, - "controls": 12 + "controls": 12, + "askCovers": [] }, { "page": "/notes/:id", "label": "Untitled", "reach": 2, - "controls": 9 + "controls": 8, + "askCovers": [] } ] } diff --git a/ci/clicks/baseline.json b/ci/clicks/baseline.json index a64fecfff..854d0afc6 100644 --- a/ci/clicks/baseline.json +++ b/ci/clicks/baseline.json @@ -1,6 +1,6 @@ { - "surveyed": "2026-10-15T00:48:22.935Z", - "commit": "93bbfbe6f96099678673e62cb5897db1901ff413", + "surveyed": "2026-10-17T09:27:08.992Z", + "commit": "", "viewport": "1400x900", "device": "desktop", "journeys": [ @@ -47,7 +47,7 @@ } ], "id": "install", - "ms": 1937, + "ms": 3302, "ok": true }, { @@ -85,7 +85,7 @@ } ], "id": "first-admin", - "ms": 379, + "ms": 649, "ok": true }, { @@ -107,7 +107,7 @@ } ], "id": "setup-wizard", - "ms": 267, + "ms": 441, "ok": true }, { @@ -137,7 +137,7 @@ } ], "id": "first-question", - "ms": 2151, + "ms": 2502, "ok": true }, { @@ -183,7 +183,7 @@ } ], "id": "import-paste", - "ms": 4002, + "ms": 3804, "ok": true }, { @@ -213,7 +213,7 @@ } ], "id": "library-open", - "ms": 2500, + "ms": 2780, "ok": true }, { @@ -251,7 +251,7 @@ } ], "id": "search-word", - "ms": 3073, + "ms": 3401, "ok": true }, { @@ -289,7 +289,7 @@ } ], "id": "jump-to", - "ms": 2212, + "ms": 2537, "ok": true }, { @@ -327,7 +327,7 @@ } ], "id": "chat-ask", - "ms": 3148, + "ms": 2822, "ok": true }, { @@ -381,7 +381,7 @@ } ], "id": "note-create", - "ms": 2954, + "ms": 3636, "ok": true }, { @@ -427,7 +427,7 @@ } ], "id": "topic-add", - "ms": 3122, + "ms": 3165, "ok": true }, { @@ -465,7 +465,7 @@ } ], "id": "pipeline-create", - "ms": 2529, + "ms": 2496, "ok": true }, { @@ -503,7 +503,7 @@ } ], "id": "routine-create", - "ms": 2500, + "ms": 2544, "ok": true }, { @@ -541,7 +541,7 @@ } ], "id": "extension-add", - "ms": 2443, + "ms": 2449, "ok": true }, { @@ -579,7 +579,7 @@ } ], "id": "sensor-webhook", - "ms": 2417, + "ms": 2813, "ok": true }, { @@ -625,7 +625,7 @@ } ], "id": "settings-change", - "ms": 3198, + "ms": 3246, "ok": true }, { @@ -687,7 +687,7 @@ } ], "id": "person-add", - "ms": 2767, + "ms": 3212, "ok": true }, { @@ -725,7 +725,7 @@ } ], "id": "api-token", - "ms": 2848, + "ms": 2957, "ok": true }, { @@ -755,7 +755,7 @@ } ], "id": "namespace-switch", - "ms": 2235, + "ms": 2291, "ok": true }, { @@ -801,7 +801,7 @@ } ], "id": "agent-connect", - "ms": 2658, + "ms": 2830, "ok": true }, { @@ -832,14 +832,14 @@ { "page": "/import", "kind": "click", - "what": "Import (covered by something else on the page)", + "what": "Import", "clicks": 1, "keys": 0, "prompts": 0 } ], "id": "import-file", - "ms": 8536, + "ms": 3160, "ok": true }, { @@ -885,13 +885,13 @@ } ], "id": "source-folder", - "ms": 3641, + "ms": 3833, "ok": true }, { "module": "Entities", "feature": "Find an entity and see where it was mentioned", - "note": "", + "note": "Its name opens its own page, /wiki//Raspberry_Pi, with its notes and every line that says it.", "clicks": 3, "keys": 4, "prompts": 0, @@ -923,7 +923,7 @@ } ], "id": "entity-find", - "ms": 11159, + "ms": 10948, "ok": true }, { @@ -961,7 +961,7 @@ } ], "id": "graph-find", - "ms": 4207, + "ms": 4483, "ok": true }, { @@ -1015,7 +1015,7 @@ } ], "id": "podcast-create", - "ms": 3256, + "ms": 4055, "ok": true }, { @@ -1061,7 +1061,7 @@ } ], "id": "report-pdf", - "ms": 3192, + "ms": 3586, "ok": true }, { @@ -1107,7 +1107,7 @@ } ], "id": "workflow-create", - "ms": 2758, + "ms": 3050, "ok": true }, { @@ -1153,7 +1153,7 @@ } ], "id": "template-create", - "ms": 2633, + "ms": 2976, "ok": true }, { @@ -1207,7 +1207,7 @@ } ], "id": "namespace-create", - "ms": 2710, + "ms": 3139, "ok": true }, { @@ -1261,7 +1261,275 @@ } ], "id": "speaker-rename", - "ms": 3581, + "ms": 4284, + "ok": true + }, + { + "module": "Entities", + "feature": "Merge two entities into one, then undo it", + "note": "The merge happens at once and the notice has Undo, so nothing asks to confirm; Undo puts both back.", + "clicks": 5, + "keys": 0, + "prompts": 0, + "swipes": 0, + "steps": [ + { + "page": "/", + "kind": "click", + "what": "Entities", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/entities", + "kind": "click", + "what": "tick Lens", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/entities", + "kind": "click", + "what": "tick Raspberry Pi", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/entities", + "kind": "click", + "what": "Merge into the one it keeps", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/entities", + "kind": "click", + "what": "Undo on the notice", + "clicks": 1, + "keys": 0, + "prompts": 0 + } + ], + "id": "entity-merge", + "ms": 5709, + "ok": true + }, + { + "module": "Graph", + "feature": "Merge an entity into another from the graph, then undo it", + "note": "Find the node, Merge in its panel, type the other's name and Enter; the notice has Undo, so nothing asks to confirm.", + "clicks": 3, + "keys": 10, + "prompts": 0, + "swipes": 0, + "steps": [ + { + "page": "/", + "kind": "click", + "what": "Graph", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/graph", + "kind": "type", + "what": "part of the name", + "clicks": 0, + "keys": 4, + "prompts": 0 + }, + { + "page": "/graph", + "kind": "key", + "what": "Enter to pick it", + "clicks": 0, + "keys": 1, + "prompts": 0 + }, + { + "page": "/graph", + "kind": "click", + "what": "Merge in its panel", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/graph", + "kind": "type", + "what": "the other's name", + "clicks": 0, + "keys": 4, + "prompts": 0 + }, + { + "page": "/graph", + "kind": "key", + "what": "Enter to merge it", + "clicks": 0, + "keys": 1, + "prompts": 0 + }, + { + "page": "/graph", + "kind": "click", + "what": "Undo on the notice", + "clicks": 1, + "keys": 0, + "prompts": 0 + } + ], + "id": "graph-merge", + "ms": 6877, + "ok": true + }, + { + "module": "Chat", + "feature": "Regenerate an answer, then switch back to the first version", + "note": "In the conversation chat-ask started: Regenerate writes another answer beside it (2 / 2), and the arrow before the count shows the first again.", + "clicks": 4, + "keys": 0, + "prompts": 0, + "swipes": 0, + "steps": [ + { + "page": "/", + "kind": "click", + "what": "Chat", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/chat", + "kind": "click", + "what": "the conversation", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/chat/:id", + "kind": "click", + "what": "Regenerate", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/chat/:id", + "kind": "click", + "what": "Previous version (‹)", + "clicks": 1, + "keys": 0, + "prompts": 0 + } + ], + "id": "chat-regenerate", + "ms": 3656, + "ok": true + }, + { + "module": "Chat", + "feature": "Copy an answer", + "note": "Continues chat-regenerate, in its conversation. Copy copies it as Markdown, its citations as footnotes; the arrow beside it has Copy text and Export.", + "clicks": 1, + "keys": 0, + "prompts": 0, + "swipes": 0, + "steps": [ + { + "page": "/chat/:id", + "kind": "click", + "what": "Copy", + "clicks": 1, + "keys": 0, + "prompts": 0 + } + ], + "id": "chat-copy", + "ms": 113, + "ok": true + }, + { + "module": "Chat", + "feature": "Export a conversation as a PDF", + "note": "Continues chat-copy. The download icon in the conversation's header, then PDF. Where the server can make the PDF (Chromium, anytopdf or LibreOffice) the browser saves it; where it can't, the browser's print dialog opens on the conversation and does the saving (one click there, counted).", + "clicks": 2, + "keys": 0, + "prompts": 0, + "swipes": 0, + "steps": [ + { + "page": "/chat/:id", + "kind": "click", + "what": "Export conversation (the header's download icon)", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/chat/:id", + "kind": "click", + "what": "PDF", + "clicks": 1, + "keys": 0, + "prompts": 0 + } + ], + "id": "chat-export-pdf", + "ms": 4652, + "ok": true + }, + { + "module": "Chat", + "feature": "Pick the tools and a tool-call limit for a conversation", + "note": "Continues chat-export-pdf. The Tools chip beside the scope: switching one group off keeps the others (Auto goes off), and the limit starts at 10 calls. Each change is saved to the conversation as it's made, and new conversations start with it.", + "clicks": 4, + "keys": 0, + "prompts": 0, + "swipes": 0, + "steps": [ + { + "page": "/chat/:id", + "kind": "click", + "what": "the Tools chip (Tools: Auto)", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/chat/:id", + "kind": "click", + "what": "switch off The server", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/chat/:id", + "kind": "click", + "what": "Limit tool calls per answer (10)", + "clicks": 1, + "keys": 0, + "prompts": 0 + }, + { + "page": "/chat/:id", + "kind": "click", + "what": "Done", + "clicks": 1, + "keys": 0, + "prompts": 0 + } + ], + "id": "chat-tools", + "ms": 406, "ok": true }, { @@ -1315,7 +1583,7 @@ } ], "id": "cloud-model", - "ms": 2585, + "ms": 2762, "ok": true } ], @@ -1324,415 +1592,526 @@ "page": "/", "label": "Home", "reach": 1, - "controls": 4 + "controls": 4, + "askCovers": [] }, { "page": "/library", "label": "Library", "reach": 1, - "controls": 39 + "controls": 39, + "askCovers": [] }, { "page": "/search", "label": "Search", "reach": 1, - "controls": 11 + "controls": 11, + "askCovers": [] }, { "page": "/chat", "label": "Chat", "reach": 1, - "controls": 9 + "controls": 10, + "askCovers": [] }, { "page": "/notes", "label": "Notes", "reach": 1, - "controls": 2 + "controls": 10, + "askCovers": [] + }, + { + "page": "/timeline", + "label": "Timeline", + "reach": 1, + "controls": 62, + "askCovers": [] }, { "page": "/entities", "label": "Entities", "reach": 1, - "controls": 10 + "controls": 10, + "askCovers": [] }, { "page": "/topics", "label": "Topics", "reach": 1, - "controls": 4 + "controls": 4, + "askCovers": [] }, { "page": "/graph", "label": "Graph", "reach": 1, - "controls": 29 + "controls": 29, + "askCovers": [] }, { "page": "/podcasts", "label": "Podcasts", "reach": 1, - "controls": 1 + "controls": 1, + "askCovers": [] }, { "page": "/reports", "label": "Reports", "reach": 1, - "controls": 7 - }, - { - "page": "/costs", - "label": "Costs", - "reach": 1, - "controls": 12 + "controls": 7, + "askCovers": [] }, { "page": "/pipelines", "label": "Pipelines", "reach": 1, - "controls": 20 + "controls": 20, + "askCovers": [] }, { "page": "/workflows", "label": "Pipelines › Workflows", "reach": 2, - "controls": 8 + "controls": 8, + "askCovers": [] }, { "page": "/workflows/nodes", "label": "Pipelines › Custom nodes", "reach": 2, - "controls": 6 + "controls": 6, + "askCovers": [] }, { "page": "/content-types", "label": "Pipelines › Content types", "reach": 2, - "controls": 66 + "controls": 69, + "askCovers": [] }, { "page": "/templates", "label": "Pipelines › Templates", "reach": 2, - "controls": 11 + "controls": 12, + "askCovers": [] }, { "page": "/routines", "label": "Routines", "reach": 1, - "controls": 20 + "controls": 20, + "askCovers": [] }, { "page": "/routines/changes", "label": "Routines › Proposed changes", "reach": 2, - "controls": 5 + "controls": 5, + "askCovers": [] }, { "page": "/routines/history", "label": "Routines › History", "reach": 2, - "controls": 9 + "controls": 21, + "askCovers": [] }, { "page": "/extensions", "label": "Extensions", "reach": 1, - "controls": 7 + "controls": 8, + "askCovers": [] }, { "page": "/sensors", "label": "Sensors", "reach": 1, - "controls": 9 + "controls": 9, + "askCovers": [] }, { "page": "/sources", "label": "Sensors › Files, email and calendars", "reach": 2, - "controls": 9 + "controls": 9, + "askCovers": [] }, { "page": "/sensors/logins", "label": "Sensors › Hub logins", "reach": 2, - "controls": 5 + "controls": 5, + "askCovers": [] + }, + { + "page": "/costs", + "label": "Costs", + "reach": 1, + "controls": 12, + "askCovers": [] + }, + { + "page": "/analytics", + "label": "Analytics", + "reach": 1, + "controls": 5, + "askCovers": [] }, { "page": "/settings/speakers", "label": "Settings", "reach": 1, - "controls": 5 + "controls": 5, + "askCovers": [] }, { - "page": "/settings/transcription", - "label": "Settings › Transcription", + "page": "/settings/llm", + "label": "Settings › LLM provider", "reach": 2, - "controls": 4 + "controls": 16, + "askCovers": [] }, { - "page": "/settings/speaker-separation", - "label": "Settings › Speaker separation", + "page": "/settings/local-model", + "label": "Settings › Local model", "reach": 2, - "controls": 9 + "controls": 20, + "askCovers": [] }, { - "page": "/settings/speech-providers", - "label": "Settings › Speech providers", + "page": "/settings/ai", + "label": "Settings › AI assistant", "reach": 2, - "controls": 30 + "controls": 18, + "askCovers": [] }, { - "page": "/settings/voice-ids", - "label": "Settings › Voice IDs", + "page": "/settings/sandbox", + "label": "Settings › Code sandbox", "reach": 2, - "controls": 6 + "controls": 5, + "askCovers": [] + }, + { + "page": "/settings/search", + "label": "Settings › Search", + "reach": 2, + "controls": 9, + "askCovers": [] }, { "page": "/settings/analysis", "label": "Settings › Analysis", "reach": 2, - "controls": 3 + "controls": 5, + "askCovers": [] }, { - "page": "/settings/llm", - "label": "Settings › LLM provider", + "page": "/settings/transcription", + "label": "Settings › Transcription", "reach": 2, - "controls": 20 + "controls": 4, + "askCovers": [] }, { - "page": "/settings/local-model", - "label": "Settings › Local model", + "page": "/settings/speaker-separation", + "label": "Settings › Speaker separation", "reach": 2, - "controls": 25 + "controls": 9, + "askCovers": [] }, { - "page": "/settings/ai", - "label": "Settings › AI assistant", + "page": "/settings/voice-ids", + "label": "Settings › Voice IDs", "reach": 2, - "controls": 57 + "controls": 4, + "askCovers": [] }, { - "page": "/settings/search", - "label": "Settings › Search", + "page": "/settings/speech-providers", + "label": "Settings › Speech providers", "reach": 2, - "controls": 17 + "controls": 2, + "askCovers": [] }, { - "page": "/settings/reports", - "label": "Settings › Reports and graph", + "page": "/settings/uploads", + "label": "Settings › Uploads", + "reach": 2, + "controls": 1, + "askCovers": [] + }, + { + "page": "/settings/documents", + "label": "Settings › Documents", "reach": 2, - "controls": 5 + "controls": 8, + "askCovers": [] }, { "page": "/settings/video", "label": "Settings › Video, OCR, faces and objects", "reach": 2, - "controls": 19 + "controls": 10, + "askCovers": [] }, { "page": "/settings/nsfw", "label": "Settings › NSFW", "reach": 2, - "controls": 5 + "controls": 5, + "askCovers": [] }, { - "page": "/settings/workers", - "label": "Settings › Workers", + "page": "/settings/reports", + "label": "Settings › Reports and graph", "reach": 2, - "controls": 19 + "controls": 5, + "askCovers": [] }, { - "page": "/settings/sign-in", - "label": "Settings › Sign-in", + "page": "/settings/iiif", + "label": "Settings › IIIF & metadata", "reach": 2, - "controls": 2 + "controls": 7, + "askCovers": [] }, { - "page": "/settings/encryption", - "label": "Settings › Encryption", + "page": "/settings/telegram", + "label": "Settings › Telegram", "reach": 2, - "controls": 3 + "controls": 2, + "askCovers": [] }, { - "page": "/settings/components", - "label": "Settings › Components", + "page": "/settings/slack", + "label": "Settings › Slack", "reach": 2, - "controls": 3 + "controls": 2, + "askCovers": [] }, { - "page": "/settings/access", - "label": "Settings › Access & embedding", + "page": "/settings/bridge", + "label": "Settings › Chat rooms", "reach": 2, - "controls": 6 + "controls": 14, + "askCovers": [] }, { - "page": "/settings/remote-access", - "label": "Settings › Remote access", + "page": "/settings/mailbox", + "label": "Settings › Assistant email", "reach": 2, - "controls": 4 + "controls": 2, + "askCovers": [] }, { - "page": "/settings/https", - "label": "Settings › HTTPS", + "page": "/settings/mail", + "label": "Settings › Email", "reach": 2, - "controls": 18 + "controls": 8, + "askCovers": [] }, { - "page": "/settings/mail", - "label": "Settings › Email", + "page": "/settings/notifications", + "label": "Settings › Notifications", "reach": 2, - "controls": 8 + "controls": 5, + "askCovers": [] }, { - "page": "/settings/bridge", - "label": "Settings › Chat rooms", + "page": "/settings/sign-in", + "label": "Settings › Sign-in", "reach": 2, - "controls": 14 + "controls": 2, + "askCovers": [] }, { - "page": "/settings/telegram", - "label": "Settings › Telegram", + "page": "/settings/tokens", + "label": "Settings › API keys", "reach": 2, - "controls": 2 + "controls": 7, + "askCovers": [] }, { - "page": "/settings/slack", - "label": "Settings › Slack", + "page": "/settings/encryption", + "label": "Settings › Encryption", "reach": 2, - "controls": 2 + "controls": 3, + "askCovers": [] }, { - "page": "/settings/mailbox", - "label": "Settings › Assistant email", + "page": "/settings/access", + "label": "Settings › Access & embedding", "reach": 2, - "controls": 2 + "controls": 7, + "askCovers": [] }, { - "page": "/settings/notifications", - "label": "Settings › Notifications", + "page": "/settings/remote-access", + "label": "Settings › Remote access", "reach": 2, - "controls": 5 + "controls": 4, + "askCovers": [] }, { - "page": "/settings/telemetry", - "label": "Settings › Telemetry", + "page": "/settings/https", + "label": "Settings › HTTPS", "reach": 2, - "controls": 14 + "controls": 9, + "askCovers": [] }, { - "page": "/settings/logs", - "label": "Settings › Logs", + "page": "/settings/storage", + "label": "Settings › Storage", "reach": 2, - "controls": 223 + "controls": 3, + "askCovers": [] }, { - "page": "/settings/fedora", - "label": "Settings › Fedora repository", + "page": "/settings/shares", + "label": "Settings › File shares", "reach": 2, - "controls": 10 + "controls": 7, + "askCovers": [] }, { - "page": "/settings/sensors", - "label": "Settings › Sensors", + "page": "/settings/smb", + "label": "Settings › SMB share", "reach": 2, - "controls": 15 + "controls": 2, + "askCovers": [] }, { "page": "/settings/nfs", "label": "Settings › NFS share", "reach": 2, - "controls": 4 + "controls": 4, + "askCovers": [] }, { - "page": "/settings/smb", - "label": "Settings › SMB share", + "page": "/settings/fedora", + "label": "Settings › Fedora repository", "reach": 2, - "controls": 2 + "controls": 10, + "askCovers": [] }, { - "page": "/settings/shares", - "label": "Settings › File shares", + "page": "/settings/sensors", + "label": "Settings › Sensors", "reach": 2, - "controls": 6 + "controls": 15, + "askCovers": [] }, { - "page": "/settings/uploads", - "label": "Settings › Uploads", + "page": "/settings/updates", + "label": "Settings › Updates", "reach": 2, - "controls": 23 + "controls": 6, + "askCovers": [] }, { "page": "/settings/backups", "label": "Settings › Backups", "reach": 2, - "controls": 9 + "controls": 9, + "askCovers": [] }, { - "page": "/settings/storage", - "label": "Settings › Storage", + "page": "/settings/components", + "label": "Settings › Components", "reach": 2, - "controls": 3 + "controls": 6, + "askCovers": [] }, { - "page": "/settings/documents", - "label": "Settings › Documents", + "page": "/settings/workers", + "label": "Settings › Workers", "reach": 2, - "controls": 12 + "controls": 2, + "askCovers": [] }, { - "page": "/settings/tokens", - "label": "Settings › API keys", + "page": "/settings/automations", + "label": "Settings › Automations", "reach": 2, - "controls": 7 + "controls": 8, + "askCovers": [] }, { - "page": "/settings/iiif", - "label": "Settings › IIIF & metadata", + "page": "/settings/logs", + "label": "Settings › Logs", + "reach": 2, + "controls": 223, + "askCovers": [] + }, + { + "page": "/settings/telemetry", + "label": "Settings › Telemetry", + "reach": 2, + "controls": 14, + "askCovers": [] + }, + { + "page": "/settings/analytics", + "label": "Settings › Usage analytics", "reach": 2, - "controls": 21 + "controls": 14, + "askCovers": [] }, { "page": "/settings/startup", "label": "Settings › Set at startup", "reach": 2, - "controls": 0 + "controls": 0, + "askCovers": [] }, { "page": "/admin/people", "label": "Admin", "reach": 1, - "controls": 13 + "controls": 13, + "askCovers": [] }, { "page": "/admin/roles", "label": "Admin › Roles", "reach": 2, - "controls": 6 + "controls": 6, + "askCovers": [] }, { "page": "/admin/namespaces", "label": "Admin › Namespaces", "reach": 2, - "controls": 9 + "controls": 9, + "askCovers": [] }, { "page": "/admin/audit", "label": "Admin › Audit log", "reach": 2, - "controls": 36 + "controls": 36, + "askCovers": [] }, { "page": "/admin/health", "label": "Admin › System health", "reach": 2, - "controls": 12 + "controls": 12, + "askCovers": [] }, { "page": "/notes/:id", - "label": "Untitled", + "label": "Pi setup", "reach": 1, - "controls": 9 + "controls": 8, + "askCovers": [] } ] } diff --git a/ci/clicks/fake-model.mjs b/ci/clicks/fake-model.mjs index cd28af9ca..27123b357 100644 --- a/ci/clicks/fake-model.mjs +++ b/ci/clicks/fake-model.mjs @@ -1,10 +1,28 @@ // A stand-in OpenAI-compatible model server, so the journeys that need a model (the install wizard finding one, the -// setup wizard testing one, the assistant answering) run without a real one. Every answer is the same short reply. +// setup wizard testing one, the assistant answering) run without a real one. Every answer is the same short reply, +// except that the assistant asked the same again (an answer regenerated) says which version it's writing. import http from "node:http"; const REPLY = "This is the survey's stand-in model answering."; const MODELS = ["survey-chat", "survey-embed"]; +/** How many times the assistant (a call with tools, or streamed) was asked each question after the same conversation: + * the same again is an answer regenerated, whose reply reads "...answering, version 2." so the versions differ. Other + * calls get REPLY. */ +const asked = new Map(); +function reply(payload) { + if (!payload.tools && !payload.stream) return REPLY; + // what was said, without the system prompt or the excerpts sent with the question ("Excerpts: ... Question: ..."), + // which are marked afresh on each call and grow as more is imported + const said = (payload.messages ?? []) + .filter((m) => m.role !== "system") + .map((m) => [m.role, typeof m.content === "string" ? m.content.split("\n\nQuestion: ").at(-1) : m.content]); + const key = JSON.stringify([Boolean(payload.tools), Boolean(payload.stream), said]); + const n = (asked.get(key) ?? 0) + 1; + asked.set(key, n); + return n === 1 ? REPLY : `${REPLY.slice(0, -1)}, version ${n}.`; +} + export function startFakeModel(port) { const server = http.createServer((req, res) => { let body = ""; @@ -38,12 +56,12 @@ export function startFakeModel(port) { res.writeHead(200, { "Content-Type": "text/event-stream" }); const chunk = (delta, finish = null) => `data: ${JSON.stringify({ id: "survey", object: "chat.completion.chunk", model, choices: [{ index: 0, delta, finish_reason: finish }] })}\n\n`; - res.write(chunk({ role: "assistant", content: REPLY })); + res.write(chunk({ role: "assistant", content: reply(payload) })); res.write(chunk({}, "stop")); return res.end("data: [DONE]\n\n"); } // structured output: an empty object satisfies most schemas' optional fields - const content = payload.response_format ? "{}" : REPLY; + const content = payload.response_format ? "{}" : reply(payload); return json(200, { id: "survey", object: "chat.completion", diff --git a/ci/clicks/journeys.mjs b/ci/clicks/journeys.mjs index 6cf75183d..c8da92124 100644 --- a/ci/clicks/journeys.mjs +++ b/ci/clicks/journeys.mjs @@ -702,6 +702,95 @@ export const JOURNEYS = [ await page.getByText("Merge undone").first().waitFor(); }, }, + // --- Chat: versions, copying, exporting and tools. The new journeys go here, before cloud-model, which has to stay + // last: these need the stand-in model to answer --------------------------------------------------------------------- + { + id: "chat-regenerate", + ns: "", + module: "Chat", + feature: "Regenerate an answer, then switch back to the first version", + note: "In the conversation chat-ask started: Regenerate writes another answer beside it (2 / 2), and the arrow before the count shows the first again.", + from: "/", + async run(ctx) { + const { page, meter } = ctx; + await go(ctx, "Chat"); + await page.waitForURL(/\/chat$/); + // a computer's Chat lists the conversations beside a new one; a phone's opens on the list + const conversation = page + .getByRole("navigation", { name: "Conversations" }) + .getByRole("link", { name: /Who said what about Raspberry Pi/ }) + .first(); + await meter.click(conversation, "the conversation"); + await page.waitForURL(/\/chat\/\d+/); + const answer = page.getByRole("article", { name: "Answer" }).last(); + await answer.getByText(ANSWER).waitFor(); + await meter.click(answer.getByRole("button", { name: "Regenerate", exact: true }), "Regenerate"); + // the stand-in model says which version it's writing (fake-model.mjs) + await page.getByRole("article", { name: "Answer" }).last().getByText(/answering, version 2/).waitFor({ timeout: 60000 }); + const versions = page.getByRole("group", { name: "Versions of this answer" }).last(); + await versions.getByText("2 / 2").waitFor(); + await meter.click(versions.getByRole("button", { name: "Previous version of this answer" }), "Previous version (‹)"); + await versions.getByText("1 / 2").waitFor(); + await page.getByRole("article", { name: "Answer" }).last().getByText(/answering, version 2/).waitFor({ state: "hidden" }); + }, + }, + { + id: "chat-copy", + module: "Chat", + feature: "Copy an answer", + note: "Continues chat-regenerate, in its conversation. Copy copies it as Markdown, its citations as footnotes; the arrow beside it has Copy text and Export.", + async run(ctx) { + const { page, meter, base } = ctx; + await page.context().grantPermissions(["clipboard-read", "clipboard-write"], { origin: base }); + await page.evaluate(() => navigator.clipboard.writeText("")); + const answer = page.getByRole("article", { name: "Answer" }).last(); + await meter.click(answer.getByRole("button", { name: "Copy", exact: true }), "Copy"); + await page.getByText("Copied as Markdown").first().waitFor(); + const copied = await page.evaluate(() => navigator.clipboard.readText()); + if (!ANSWER.test(copied)) throw new Error(`copied ${JSON.stringify(copied.slice(0, 80))}, not the answer`); + }, + }, + { + id: "chat-export-pdf", + module: "Chat", + feature: "Export a conversation as a PDF", + note: "Continues chat-copy. The download icon in the conversation's header, then PDF. Where the server can make the PDF (Chromium, anytopdf or LibreOffice) the browser saves it; where it can't, the browser's print dialog opens on the conversation and does the saving (one click there, counted).", + async run(ctx) { + const { page, meter } = ctx; + await page.evaluate(() => { + window.__printed = false; + window.print = () => (window.__printed = true); + }); + // anytopdf is fetched the first time a PDF is made, so the first can take a while + const wait = 180000; + const saved = page.waitForEvent("download", { timeout: wait }).then((d) => d, () => null); + await meter.click(page.getByRole("button", { name: "Export conversation" }), "Export conversation (the header's download icon)"); + await meter.click(page.getByRole("menuitem", { name: "PDF" }), "PDF"); + const printed = page.waitForFunction(() => window.__printed, null, { timeout: wait }).then(() => "printed", () => null); + const got = await Promise.race([saved, printed]); + if (got === "printed") { + await page.getByText("Printing it instead").first().waitFor(); + meter.record("outside", "the print dialog: Save", 1, 0); + } else if (got) { + if (!got.suggestedFilename().endsWith(".pdf")) throw new Error(`downloaded ${got.suggestedFilename()}, not a PDF`); + } else throw new Error("neither a PDF nor the print dialog came"); + }, + }, + { + id: "chat-tools", + module: "Chat", + feature: "Pick the tools and a tool-call limit for a conversation", + note: "Continues chat-export-pdf. The Tools chip beside the scope: switching one group off keeps the others (Auto goes off), and the limit starts at 10 calls. Each change is saved to the conversation as it's made, and new conversations start with it.", + async run(ctx) { + const { page, meter } = ctx; + await meter.click(page.getByRole("button", { name: /^Tools: Auto\. Choose the tools/ }), "the Tools chip (Tools: Auto)"); + const picker = page.getByRole("dialog").filter({ has: page.getByRole("list", { name: "Tool groups" }) }); + await meter.click(picker.getByRole("switch", { name: "The server", exact: true }), "switch off The server"); + await meter.click(picker.getByRole("switch", { name: "Limit tool calls per answer" }), "Limit tool calls per answer (10)"); + await meter.click(picker.getByRole("button", { name: "Done" }), "Done"); + await page.getByRole("button", { name: /^Tools: \d+ picked · 10 calls\. / }).waitFor(); + }, + }, { // Last: it points Lens at a cloud model, which the stand-in model behind the journeys above isn't id: "cloud-model", diff --git a/docs/requirements.md b/docs/requirements.md index b8552cd7e..769422bca 100644 --- a/docs/requirements.md +++ b/docs/requirements.md @@ -80,7 +80,7 @@ request, to another check that proves the same thing; loosening a requirement or | It acts with tools, and changes wait for approval | [test_chats.py](https://github.com/adeelahmad/lense/blob/main/fastapi_backend/tests/api/test_chats.py) `test_tools_approvals_and_checking`; [test_approvals.py](https://github.com/adeelahmad/lense/blob/main/fastapi_backend/tests/api/test_approvals.py) `test_the_assistant_lists_and_declines_but_never_approves` | | Web search and reading pages, cited like the archive, off until an admin turns it on | [test_web_search.py](https://github.com/adeelahmad/lense/blob/main/fastapi_backend/tests/api/test_web_search.py) `test_an_answer_cites_the_web_and_the_conversation_keeps_it`, `test_reading_pages_and_pdfs`; [chat-web-citations.test.tsx](https://github.com/adeelahmad/lense/blob/main/nextjs-frontend/__tests__/chat-web-citations.test.tsx) | | Python and bash in a sandbox of each conversation's own, off until an admin turns it on | [test_sandbox.py](https://github.com/adeelahmad/lense/blob/main/fastapi_backend/tests/api/test_sandbox.py) `test_python_and_bash_share_one_sandbox_per_conversation`, `test_the_sandbox_is_off_until_an_admin_turns_it_on_for_the_people_it_names` | -| Regenerating an answer or editing a question makes a new version beside the old one | [test_chat_versions.py](https://github.com/adeelahmad/lense/blob/main/fastapi_backend/tests/api/test_chat_versions.py) `test_regenerate_edit_switch_and_go_on`; [chat-versions.test.tsx](https://github.com/adeelahmad/lense/blob/main/nextjs-frontend/__tests__/chat-versions.test.tsx) `regenerating an answer`, `the version switch` | +| Regenerating an answer or editing a question makes a new version beside the old one | [test_chat_versions.py](https://github.com/adeelahmad/lense/blob/main/fastapi_backend/tests/api/test_chat_versions.py) `test_regenerate_edit_switch_and_go_on`; [chat-versions.test.tsx](https://github.com/adeelahmad/lense/blob/main/nextjs-frontend/__tests__/chat-versions.test.tsx) `regenerating an answer`, `the version switch`; [journeys.mjs](https://github.com/adeelahmad/lense/blob/main/ci/clicks/journeys.mjs) `chat-regenerate`; [baseline.json](https://github.com/adeelahmad/lense/blob/main/ci/clicks/baseline.json) `chat-regenerate` ≤ 4 clicks | | Each answer keeps a record of what produced it: the model, its tools, how long it took and what it cost | [test_chat_records.py](https://github.com/adeelahmad/lense/blob/main/fastapi_backend/tests/api/test_chat_records.py) `test_an_answer_records_what_produced_it`, `test_a_regenerated_answer_has_its_own_record`; [chat-details.test.tsx](https://github.com/adeelahmad/lense/blob/main/nextjs-frontend/__tests__/chat-details.test.tsx) `says what produced it: model and host, scope, tools, use, tokens, cost, time and how it ended` | | Answers read aloud by a speech provider, macOS `say` or StyleTTS2 (opt-in) | [test_voice.py](https://github.com/adeelahmad/lense/blob/main/fastapi_backend/tests/api/test_voice.py) `test_answers_are_read_aloud_by_a_speech_model`; [test_speech.py](https://github.com/adeelahmad/lense/blob/main/fastapi_backend/tests/domain/test_speech.py) `test_macos_say_reads_aloud_on_a_mac`, `test_styletts2_reads_aloud_from_its_own_service`; [styletts2.yml](https://github.com/adeelahmad/lense/blob/main/.github/workflows/styletts2.yml) `Read a sentence aloud` | | `/clear` and `/compact` | [test_compaction.py](https://github.com/adeelahmad/lense/blob/main/fastapi_backend/tests/api/test_compaction.py) `test_clear_starts_afresh_and_compact_folds_everything_now`, `test_commands_in_the_app` | From 95d7ca2610f814748bddbde35f4854d9704a0209 Mon Sep 17 00:00:00 2001 From: Adeel Ahmad Date: Sun, 18 Oct 2026 02:36:01 +0000 Subject: [PATCH 4/5] fix(clicks): the chat journeys wait for the answer itself, and the stand-in model titles conversations Since #531 Lens asks the model for a conversation's title after its first answer, and the stand-in model's one reply became every conversation's title in the list beside Chat. chat-ask waits for the reply's words, found them at once in that list, and ended before its own answer was saved, so chat-regenerate and the journeys after it found a conversation with a question and no answer. The stand-in now answers the title prompt with the first question's words, as a model would, and first-question and chat-ask wait for the reply inside the newest answer, not anywhere on the page. The page survey counts a page's controls again for a few seconds when it finds none, so a settings page still loading isn't recorded with none. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01HXPWXcSCQb9hWPr7xkZu7B --- ci/clicks/fake-model.mjs | 14 +++++++++++++- ci/clicks/journeys.mjs | 14 +++++++++----- ci/clicks/survey.mjs | 14 ++++++++++++-- 3 files changed, 34 insertions(+), 8 deletions(-) diff --git a/ci/clicks/fake-model.mjs b/ci/clicks/fake-model.mjs index 27123b357..adbaf51b8 100644 --- a/ci/clicks/fake-model.mjs +++ b/ci/clicks/fake-model.mjs @@ -1,6 +1,7 @@ // A stand-in OpenAI-compatible model server, so the journeys that need a model (the install wizard finding one, the // setup wizard testing one, the assistant answering) run without a real one. Every answer is the same short reply, -// except that the assistant asked the same again (an answer regenerated) says which version it's writing. +// except that the assistant asked the same again (an answer regenerated) says which version it's writing, and a +// conversation's title (asked for after its first answer) is its first question's words, as a real model's would be. import http from "node:http"; const REPLY = "This is the survey's stand-in model answering."; @@ -10,7 +11,18 @@ const MODELS = ["survey-chat", "survey-embed"]; * the same again is an answer regenerated, whose reply reads "...answering, version 2." so the versions differ. Other * calls get REPLY. */ const asked = new Map(); + +/** A title for a conversation: the first question's words, as Lens sends them ("Person: ...") without the question + * mark, so the journeys find the conversation by what was asked, as a person would. */ +function title(payload) { + const said = payload.messages.find((m) => m.role === "user")?.content ?? ""; + const question = String(said).match(/^Person: (.*)$/m)?.[1] ?? said; + return question.trim().replace(/[?.!]+$/, "").split(/\s+/).slice(0, 8).join(" ") || "A conversation"; +} + function reply(payload) { + const system = (payload.messages ?? []).find((m) => m.role === "system")?.content; + if (typeof system === "string" && system.startsWith("You title conversations")) return title(payload); if (!payload.tools && !payload.stream) return REPLY; // what was said, without the system prompt or the excerpts sent with the question ("Excerpts: ... Question: ..."), // which are marked afresh on each call and grow as more is imported diff --git a/ci/clicks/journeys.mjs b/ci/clicks/journeys.mjs index c8da92124..e02862d04 100644 --- a/ci/clicks/journeys.mjs +++ b/ci/clicks/journeys.mjs @@ -81,6 +81,9 @@ async function save({ page, meter, phone }) { /** The model-backed answer the stand-in model gives (fake-model.mjs). */ const ANSWER = /stand-in model answering/; +/** The stand-in model's answer, in the newest answer on the page: not anywhere on it, where the list of conversations + * beside it carries titles, and an earlier answer may read the same. */ +const answered = (page) => page.getByRole("article", { name: "Answer" }).last().getByText(ANSWER); const TRANSCRIPT = [ "Host A: Welcome back. Today we talk about local models on small computers.", @@ -169,11 +172,11 @@ export const JOURNEYS = [ // The tour opens Chat with the question in the composer, not sent const composer = page.getByRole("textbox", { name: "Your question" }); await composer.waitFor(); - if (!(await page.getByText(ANSWER).first().isVisible().catch(() => false))) { + if (!(await answered(page).isVisible().catch(() => false))) { await page.waitForTimeout(1500); if ((await composer.inputValue()).trim()) await meter.press("Enter", "Enter again: the question waits in Chat's composer"); } - await page.getByText(ANSWER).first().waitFor({ timeout: 60000 }); + await answered(page).waitFor({ timeout: 60000 }); }, }, @@ -248,7 +251,7 @@ export const JOURNEYS = [ await meter.click(page.getByRole("button", { name: "New conversation" }), "New conversation"); await meter.type(question, "Who said what about Raspberry Pi?", "question"); await meter.press("Enter", "Enter to send"); - await page.getByText(ANSWER).first().waitFor({ timeout: 60000 }); + await answered(page).waitFor({ timeout: 60000 }); }, }, { @@ -715,15 +718,16 @@ export const JOURNEYS = [ const { page, meter } = ctx; await go(ctx, "Chat"); await page.waitForURL(/\/chat$/); - // a computer's Chat lists the conversations beside a new one; a phone's opens on the list + // a computer's Chat lists the conversations beside a new one; a phone's opens on the list. Lens titles each + // after its first answer (the stand-in model from the question, fake-model.mjs) const conversation = page .getByRole("navigation", { name: "Conversations" }) .getByRole("link", { name: /Who said what about Raspberry Pi/ }) .first(); await meter.click(conversation, "the conversation"); await page.waitForURL(/\/chat\/\d+/); + await answered(page).waitFor(); const answer = page.getByRole("article", { name: "Answer" }).last(); - await answer.getByText(ANSWER).waitFor(); await meter.click(answer.getByRole("button", { name: "Regenerate", exact: true }), "Regenerate"); // the stand-in model says which version it's writing (fake-model.mjs) await page.getByRole("article", { name: "Answer" }).last().getByText(/answering, version 2/).waitFor({ timeout: 60000 }); diff --git a/ci/clicks/survey.mjs b/ci/clicks/survey.mjs index 3aea07b87..41338213b 100644 --- a/ci/clicks/survey.mjs +++ b/ci/clicks/survey.mjs @@ -87,6 +87,16 @@ async function surveyPages(page, base, phone) { return seen.filter((el) => el.offsetParent !== null && !el.closest("[hidden], nav, details:not([open]) > :not(summary)")).length; }); const settle = () => page.waitForTimeout(1200); + // A page's controls once it has drawn: a page still loading what it shows has none for a moment, so none is counted + // again for a few seconds before it's taken + const counted = async () => { + let n = await controls(); + for (let tries = 0; n === 0 && tries < 12; tries++) { + await page.waitForTimeout(300); + n = await controls(); + } + return n; + }; // The controls the floating Ask button covers with the page (and anything scrolling in it) at its end, where // scrolling can't carry them clear: it should rise above them or step aside, so any is a failure. const askCovers = async () => { @@ -143,7 +153,7 @@ async function surveyPages(page, base, phone) { await page.waitForLoadState("domcontentloaded"); await settle(); const key = pageKey(page.url()); - await visit({ page: key, label: item.label, reach: 1 + menu, controls: await controls() }); + await visit({ page: key, label: item.label, reach: 1 + menu, controls: await counted() }); // a second level: settings sections, and tabs that are links (Admin, Sensors, Pipelines) const sub = await page .locator("main") @@ -155,7 +165,7 @@ async function surveyPages(page, base, phone) { if (!s.href || pages.some((p) => p.page === pageKey(base + s.href))) continue; await page.goto(base + s.href, { waitUntil: "domcontentloaded" }); await settle(); - await visit({ page: pageKey(page.url()), label: `${item.label} › ${s.label}`, reach: 2 + menu, controls: await controls() }); + await visit({ page: pageKey(page.url()), label: `${item.label} › ${s.label}`, reach: 2 + menu, controls: await counted() }); } } return pages; From 632b84b3221f4ad664bf80e9fbb7158571c80bca Mon Sep 17 00:00:00 2001 From: Adeel Ahmad Date: Sun, 18 Oct 2026 02:52:52 +0000 Subject: [PATCH 5/5] test(clicks): baselines from full runs with main merged in MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both devices, 37 of 37 journeys ok, every journey's count as before. The per-page control counts move with main: Settings › AI assistant has the auto title switch, Settings › Sensors two more controls. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01HXPWXcSCQb9hWPr7xkZu7B --- ci/clicks/baseline-phone.json | 84 +++++++++++++++++------------------ ci/clicks/baseline.json | 82 +++++++++++++++++----------------- 2 files changed, 83 insertions(+), 83 deletions(-) diff --git a/ci/clicks/baseline-phone.json b/ci/clicks/baseline-phone.json index 02fda39b2..091f2adb0 100644 --- a/ci/clicks/baseline-phone.json +++ b/ci/clicks/baseline-phone.json @@ -1,5 +1,5 @@ { - "surveyed": "2026-10-17T09:32:32.561Z", + "surveyed": "2026-10-18T02:52:10.420Z", "commit": "", "viewport": "Pixel 7, 412x839, touch", "device": "phone", @@ -47,7 +47,7 @@ } ], "id": "install", - "ms": 2971, + "ms": 2929, "ok": true }, { @@ -85,7 +85,7 @@ } ], "id": "first-admin", - "ms": 696, + "ms": 735, "ok": true }, { @@ -107,7 +107,7 @@ } ], "id": "setup-wizard", - "ms": 590, + "ms": 512, "ok": true }, { @@ -137,7 +137,7 @@ } ], "id": "first-question", - "ms": 2416, + "ms": 1302, "ok": true }, { @@ -184,7 +184,7 @@ } ], "id": "import-paste", - "ms": 4293, + "ms": 4128, "ok": true }, { @@ -222,7 +222,7 @@ } ], "id": "library-open", - "ms": 3480, + "ms": 3310, "ok": true }, { @@ -268,7 +268,7 @@ } ], "id": "search-word", - "ms": 4181, + "ms": 4155, "ok": true }, { @@ -306,7 +306,7 @@ } ], "id": "jump-to", - "ms": 2668, + "ms": 2753, "ok": true }, { @@ -360,7 +360,7 @@ } ], "id": "chat-ask", - "ms": 6570, + "ms": 6712, "ok": true }, { @@ -422,7 +422,7 @@ } ], "id": "note-create", - "ms": 3936, + "ms": 4734, "ok": true }, { @@ -476,7 +476,7 @@ } ], "id": "topic-add", - "ms": 3763, + "ms": 4125, "ok": true }, { @@ -522,7 +522,7 @@ } ], "id": "pipeline-create", - "ms": 2982, + "ms": 4247, "ok": true }, { @@ -568,7 +568,7 @@ } ], "id": "routine-create", - "ms": 3029, + "ms": 3207, "ok": true }, { @@ -614,7 +614,7 @@ } ], "id": "extension-add", - "ms": 3144, + "ms": 3443, "ok": true }, { @@ -660,7 +660,7 @@ } ], "id": "sensor-webhook", - "ms": 3122, + "ms": 3208, "ok": true }, { @@ -723,7 +723,7 @@ } ], "id": "settings-change", - "ms": 4385, + "ms": 4500, "ok": true }, { @@ -793,7 +793,7 @@ } ], "id": "person-add", - "ms": 3669, + "ms": 3867, "ok": true }, { @@ -831,7 +831,7 @@ } ], "id": "api-token", - "ms": 3331, + "ms": 3348, "ok": true }, { @@ -869,7 +869,7 @@ } ], "id": "namespace-switch", - "ms": 2836, + "ms": 2821, "ok": true }, { @@ -915,7 +915,7 @@ } ], "id": "agent-connect", - "ms": 3219, + "ms": 3312, "ok": true }, { @@ -953,7 +953,7 @@ } ], "id": "import-file", - "ms": 3925, + "ms": 4019, "ok": true }, { @@ -1007,7 +1007,7 @@ } ], "id": "source-folder", - "ms": 4297, + "ms": 4586, "ok": true }, { @@ -1053,7 +1053,7 @@ } ], "id": "entity-find", - "ms": 11995, + "ms": 12531, "ok": true }, { @@ -1107,7 +1107,7 @@ } ], "id": "graph-find", - "ms": 5031, + "ms": 5444, "ok": true }, { @@ -1169,7 +1169,7 @@ } ], "id": "podcast-create", - "ms": 4426, + "ms": 5830, "ok": true }, { @@ -1223,7 +1223,7 @@ } ], "id": "report-pdf", - "ms": 4139, + "ms": 4340, "ok": true }, { @@ -1277,7 +1277,7 @@ } ], "id": "workflow-create", - "ms": 3838, + "ms": 4261, "ok": true }, { @@ -1331,7 +1331,7 @@ } ], "id": "template-create", - "ms": 3839, + "ms": 4331, "ok": true }, { @@ -1393,7 +1393,7 @@ } ], "id": "namespace-create", - "ms": 3623, + "ms": 3884, "ok": true }, { @@ -1455,7 +1455,7 @@ } ], "id": "speaker-rename", - "ms": 4559, + "ms": 4583, "ok": true }, { @@ -1517,7 +1517,7 @@ } ], "id": "entity-merge", - "ms": 6866, + "ms": 6642, "ok": true }, { @@ -1603,7 +1603,7 @@ } ], "id": "graph-merge", - "ms": 8282, + "ms": 8775, "ok": true }, { @@ -1657,7 +1657,7 @@ } ], "id": "chat-regenerate", - "ms": 4165, + "ms": 4643, "ok": true }, { @@ -1679,7 +1679,7 @@ } ], "id": "chat-copy", - "ms": 265, + "ms": 267, "ok": true }, { @@ -1709,7 +1709,7 @@ } ], "id": "chat-export-pdf", - "ms": 5022, + "ms": 8511, "ok": true }, { @@ -1755,7 +1755,7 @@ } ], "id": "chat-tools", - "ms": 1132, + "ms": 2192, "ok": true }, { @@ -1825,7 +1825,7 @@ } ], "id": "cloud-model", - "ms": 3952, + "ms": 6081, "ok": true } ], @@ -1869,7 +1869,7 @@ "page": "/timeline", "label": "Timeline", "reach": 2, - "controls": 51, + "controls": 55, "askCovers": [] }, { @@ -2030,7 +2030,7 @@ "page": "/settings/ai", "label": "Settings › AI assistant", "reach": 3, - "controls": 18, + "controls": 19, "askCovers": [] }, { @@ -2247,7 +2247,7 @@ "page": "/settings/sensors", "label": "Settings › Sensors", "reach": 3, - "controls": 15, + "controls": 17, "askCovers": [] }, { @@ -2350,7 +2350,7 @@ }, { "page": "/notes/:id", - "label": "Untitled", + "label": "Pi setup", "reach": 2, "controls": 8, "askCovers": [] diff --git a/ci/clicks/baseline.json b/ci/clicks/baseline.json index 854d0afc6..c77b513e5 100644 --- a/ci/clicks/baseline.json +++ b/ci/clicks/baseline.json @@ -1,5 +1,5 @@ { - "surveyed": "2026-10-17T09:27:08.992Z", + "surveyed": "2026-10-18T02:46:22.142Z", "commit": "", "viewport": "1400x900", "device": "desktop", @@ -47,7 +47,7 @@ } ], "id": "install", - "ms": 3302, + "ms": 3603, "ok": true }, { @@ -85,7 +85,7 @@ } ], "id": "first-admin", - "ms": 649, + "ms": 882, "ok": true }, { @@ -107,7 +107,7 @@ } ], "id": "setup-wizard", - "ms": 441, + "ms": 724, "ok": true }, { @@ -137,7 +137,7 @@ } ], "id": "first-question", - "ms": 2502, + "ms": 3186, "ok": true }, { @@ -183,7 +183,7 @@ } ], "id": "import-paste", - "ms": 3804, + "ms": 4284, "ok": true }, { @@ -213,7 +213,7 @@ } ], "id": "library-open", - "ms": 2780, + "ms": 3215, "ok": true }, { @@ -251,7 +251,7 @@ } ], "id": "search-word", - "ms": 3401, + "ms": 3490, "ok": true }, { @@ -289,7 +289,7 @@ } ], "id": "jump-to", - "ms": 2537, + "ms": 2658, "ok": true }, { @@ -327,7 +327,7 @@ } ], "id": "chat-ask", - "ms": 2822, + "ms": 2894, "ok": true }, { @@ -381,7 +381,7 @@ } ], "id": "note-create", - "ms": 3636, + "ms": 3674, "ok": true }, { @@ -427,7 +427,7 @@ } ], "id": "topic-add", - "ms": 3165, + "ms": 3316, "ok": true }, { @@ -465,7 +465,7 @@ } ], "id": "pipeline-create", - "ms": 2496, + "ms": 2558, "ok": true }, { @@ -503,7 +503,7 @@ } ], "id": "routine-create", - "ms": 2544, + "ms": 2558, "ok": true }, { @@ -541,7 +541,7 @@ } ], "id": "extension-add", - "ms": 2449, + "ms": 2471, "ok": true }, { @@ -579,7 +579,7 @@ } ], "id": "sensor-webhook", - "ms": 2813, + "ms": 2677, "ok": true }, { @@ -625,7 +625,7 @@ } ], "id": "settings-change", - "ms": 3246, + "ms": 3377, "ok": true }, { @@ -687,7 +687,7 @@ } ], "id": "person-add", - "ms": 3212, + "ms": 3294, "ok": true }, { @@ -725,7 +725,7 @@ } ], "id": "api-token", - "ms": 2957, + "ms": 3155, "ok": true }, { @@ -755,7 +755,7 @@ } ], "id": "namespace-switch", - "ms": 2291, + "ms": 2304, "ok": true }, { @@ -801,7 +801,7 @@ } ], "id": "agent-connect", - "ms": 2830, + "ms": 3043, "ok": true }, { @@ -839,7 +839,7 @@ } ], "id": "import-file", - "ms": 3160, + "ms": 3546, "ok": true }, { @@ -885,7 +885,7 @@ } ], "id": "source-folder", - "ms": 3833, + "ms": 5402, "ok": true }, { @@ -923,7 +923,7 @@ } ], "id": "entity-find", - "ms": 10948, + "ms": 12392, "ok": true }, { @@ -961,7 +961,7 @@ } ], "id": "graph-find", - "ms": 4483, + "ms": 4376, "ok": true }, { @@ -1015,7 +1015,7 @@ } ], "id": "podcast-create", - "ms": 4055, + "ms": 5013, "ok": true }, { @@ -1061,7 +1061,7 @@ } ], "id": "report-pdf", - "ms": 3586, + "ms": 3676, "ok": true }, { @@ -1107,7 +1107,7 @@ } ], "id": "workflow-create", - "ms": 3050, + "ms": 3146, "ok": true }, { @@ -1153,7 +1153,7 @@ } ], "id": "template-create", - "ms": 2976, + "ms": 2848, "ok": true }, { @@ -1207,7 +1207,7 @@ } ], "id": "namespace-create", - "ms": 3139, + "ms": 2982, "ok": true }, { @@ -1261,7 +1261,7 @@ } ], "id": "speaker-rename", - "ms": 4284, + "ms": 4026, "ok": true }, { @@ -1315,7 +1315,7 @@ } ], "id": "entity-merge", - "ms": 5709, + "ms": 5634, "ok": true }, { @@ -1385,7 +1385,7 @@ } ], "id": "graph-merge", - "ms": 6877, + "ms": 6483, "ok": true }, { @@ -1431,7 +1431,7 @@ } ], "id": "chat-regenerate", - "ms": 3656, + "ms": 3675, "ok": true }, { @@ -1453,7 +1453,7 @@ } ], "id": "chat-copy", - "ms": 113, + "ms": 96, "ok": true }, { @@ -1483,7 +1483,7 @@ } ], "id": "chat-export-pdf", - "ms": 4652, + "ms": 5487, "ok": true }, { @@ -1529,7 +1529,7 @@ } ], "id": "chat-tools", - "ms": 406, + "ms": 1129, "ok": true }, { @@ -1583,7 +1583,7 @@ } ], "id": "cloud-model", - "ms": 2762, + "ms": 3452, "ok": true } ], @@ -1627,7 +1627,7 @@ "page": "/timeline", "label": "Timeline", "reach": 1, - "controls": 62, + "controls": 58, "askCovers": [] }, { @@ -1788,7 +1788,7 @@ "page": "/settings/ai", "label": "Settings › AI assistant", "reach": 2, - "controls": 18, + "controls": 19, "askCovers": [] }, { @@ -2005,7 +2005,7 @@ "page": "/settings/sensors", "label": "Settings › Sensors", "reach": 2, - "controls": 15, + "controls": 17, "askCovers": [] }, {