:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(desktop/canvas): split the space list into sessions and canvases tabs (#81277)
Adam Leithe863a58c090f
diff --git a/products/desktop/packages/core/src/canvas/channelItems.test.ts b/products/desktop/packages/core/src/canvas/channelItems.test.tsindex 64339cf8ae44..b47f972a666c 100644--- a/products/desktop/packages/core/src/canvas/channelItems.test.ts+++ b/products/desktop/packages/core/src/canvas/channelItems.test.ts@@ -4,9 +4,11 @@ import {buildChannelItems,type ChannelItemFilters,type ChannelItemModel,+ type ChannelItemSort,channelItemSources,DEFAULT_CHANNEL_ITEM_FILTERS,filterChannelItems,+ groupChannelItems,sortChannelItems,} from "./channelItems";import type { DashboardRecord } from "./dashboardSchemas";@@ -387,3 +389,82 @@ describe("sortChannelItems", () => {}});});++describe("groupChannelItems", () => {+ const NOW = new Date(2026, 6, 29, 12);+ const at = (day: number, hour: number) =>+ new Date(2026, 6, day, hour).getTime();++ function group(items: ChannelItemModel[], sort: ChannelItemSort = "recent") {+ return groupChannelItems(sortChannelItems(items, sort), sort, NOW).map(+ (section) => [section.label, ...section.items.map((i) => i.id)],+ );+ }++ it("runs a day's items under one header", () => {+ expect(+ group([+ model({ id: "morning", ts: at(29, 9) }),+ model({ id: "earlier", ts: at(29, 8) }),+ model({ id: "last-night", ts: at(28, 22) }),+ ]),+ ).toEqual([+ ["Today", "morning", "earlier"],+ ["Yesterday", "last-night"],+ ]);+ });++ // The pin is what lifted it out of its day; leaving it in both places would+ // list one session twice.+ it("lists a pin under the pins and nowhere else", () => {+ expect(+ group([+ model({ id: "today", ts: at(29, 9) }),+ model({ id: "kept", ts: at(20, 9), pinned: true }),+ ]),+ ).toEqual([+ ["Pinned", "kept"],+ ["Today", "today"],+ ]);+ });++ // Dating a created-first list by last activity would reopen a day the list+ // had already passed, splitting one day across two headers.+ it("dates a created-first list by when each session started", () => {+ expect(+ group(+ [+ model({ id: "started-today", createdAt: at(29, 9), ts: at(20, 9) }),+ model({ id: "started-friday", createdAt: at(24, 9), ts: at(29, 11) }),+ ],+ "created",+ ),+ ).toEqual([+ ["Today", "started-today"],+ ["Friday", "started-friday"],+ ]);+ });++ // A row can be stamped ahead of this client's clock (skew between whoever+ // wrote it and whoever reads it). Dated on its own it opens a second "Today".+ it("keeps a row stamped in the future under today", () => {+ expect(+ group([+ model({ id: "ahead", ts: at(29, 14) }),+ model({ id: "earlier", ts: at(29, 9) }),+ ]),+ ).toEqual([["Today", "ahead", "earlier"]]);+ });++ it("leaves an alphabetical list undated", () => {+ expect(+ group(+ [+ model({ id: "a", title: "A", ts: at(29, 9) }),+ model({ id: "b", title: "B", ts: at(20, 9) }),+ ],+ "alpha",+ ),+ ).toEqual([[null, "a", "b"]]);+ });+});diff --git a/products/desktop/packages/core/src/canvas/channelItems.ts b/products/desktop/packages/core/src/canvas/channelItems.tsindex 2cda8065efb8..690dc40edbf0 100644--- a/products/desktop/packages/core/src/canvas/channelItems.ts+++ b/products/desktop/packages/core/src/canvas/channelItems.ts@@ -1,4 +1,8 @@-import type { WorkspaceMode } from "@posthog/shared";+import {+ formatShortDayLabel,+ getLocalDayKey,+ type WorkspaceMode,+} from "@posthog/shared";import type {Task,TaskRunStatus,@@ -316,3 +320,61 @@ export function sortChannelItems(...rest.sort((a, b) => compareChannelItems(a, b, sort)),];}++export interface ChannelItemSection {+ /** Stable between renders, so a section isn't rebuilt on every poll. */+ key: string;+ /** Null where the run has nothing to be called — an alphabetical list. */+ label: string | null;+ items: ChannelItemModel[];+}++/** The section pinned sessions lead the list under. */+export const PINNED_SECTION_KEY = "pinned";++/**+ * A sorted list cut into the sections a reader can scan: the pins, then one per+ * calendar day.+ *+ * The day is read off whichever timestamp the sort ordered by, so each section+ * is a contiguous run — dating a created-first list by last activity would+ * reopen a day the list had already passed. Alphabetical order holds no days at+ * all, so it stays one unnamed run below the pins.+ *+ * Takes the list `sortChannelItems` returned: pins already lead it, so lifting+ * them out keeps the order they were given.+ */+export function groupChannelItems(+ items: readonly ChannelItemModel[],+ sort: ChannelItemSort,+ now: Date = new Date(),+): ChannelItemSection[] {+ const sections: ChannelItemSection[] = [];++ const pinned = items.filter((item) => item.pinned);+ if (pinned.length > 0) {+ sections.push({ key: PINNED_SECTION_KEY, label: "Pinned", items: pinned });+ }++ const rest = items.filter((item) => !item.pinned);+ if (rest.length === 0) return sections;+ if (sort === "alpha") {+ sections.push({ key: "all", label: null, items: rest });+ return sections;+ }++ for (const item of rest) {+ // Clamped to now, because the label does the same: a row stamped in the+ // future (clock skew between the writer and this client) would otherwise+ // take a day key of its own under a second "Today" header.+ const ts = Math.min(sort === "created" ? item.createdAt : item.ts, +now);+ const key = `day:${getLocalDayKey(ts)}`;+ const open = sections[sections.length - 1];+ if (open?.key === key) {+ open.items.push(item);+ continue;+ }+ sections.push({ key, label: formatShortDayLabel(ts, now), items: [item] });+ }+ return sections;+}diff --git a/products/desktop/packages/shared/src/index.ts b/products/desktop/packages/shared/src/index.tsindex d2037d4a8f74..4accd787b9c4 100644--- a/products/desktop/packages/shared/src/index.ts+++ b/products/desktop/packages/shared/src/index.ts@@ -363,6 +363,7 @@ export {formatDaySeparatorLabel,formatRelativeTimeLong,formatRelativeTimeShort,+ formatShortDayLabel,getLocalDayDiff,getLocalDayKey,getRelativeDateGroup,diff --git a/products/desktop/packages/shared/src/time.test.ts b/products/desktop/packages/shared/src/time.test.tsindex f76961a0a85d..85efcb1126dd 100644--- a/products/desktop/packages/shared/src/time.test.ts+++ b/products/desktop/packages/shared/src/time.test.ts@@ -4,6 +4,7 @@ import {formatDaySeparatorLabel,formatRelativeTimeLong,formatRelativeTimeShort,+ formatShortDayLabel,getLocalDayDiff,getLocalDayKey,getRelativeDateGroup,@@ -160,3 +161,22 @@ describe("formatDaySeparatorLabel", () => {expect(formatDaySeparatorLabel(new Date(2026, 5, 16), now)).toBe("Today");});});++describe("formatShortDayLabel", () => {+ const now = new Date(2026, 5, 15, 12);++ it.each([+ ["today", new Date(2026, 5, 15, 9), "Today"],+ ["yesterday", new Date(2026, 5, 14, 9), "Yesterday"],+ // Inside the week the weekday alone places it, with no date to read.+ ["earlier this week", new Date(2026, 5, 11), "Thursday"],+ // Past the week the weekday stops narrowing it down, so it takes a date.+ ["last month", new Date(2026, 4, 20), "May 20"],+ ["last year", new Date(2025, 11, 3), "Dec 3, 2025"],+ // A tomorrow — a clock skew, or a session filed in another timezone — is+ // still today's news rather than a day of its own.+ ["a future day", new Date(2026, 5, 16), "Today"],+ ])("labels %s", (_case, date: Date, expected) => {+ expect(formatShortDayLabel(date, now)).toBe(expected);+ });+});diff --git a/products/desktop/packages/shared/src/time.ts b/products/desktop/packages/shared/src/time.tsindex 08c3e822aee3..8fd31988ce84 100644--- a/products/desktop/packages/shared/src/time.ts+++ b/products/desktop/packages/shared/src/time.ts@@ -117,6 +117,29 @@ export function formatDaySeparatorLabel(return `${weekday}, ${month} ${day}${year}`;}+/**+ * The compact form of `formatDaySeparatorLabel`, for a sidebar column with no+ * room for "Wednesday, May 20th": the recent days by name, then a short date.+ *+ * Both read the same `getLocalDayDiff`, so the two can differ in how verbosely+ * they name a day but never in which day a timestamp falls on.+ */+export function formatShortDayLabel(+ timestamp: number | string | Date,+ now: Date = new Date(),+): string {+ const date = new Date(timestamp);+ const days = getLocalDayDiff(date, now);+ if (days <= 0) return "Today";+ if (days === 1) return "Yesterday";+ if (days < 7) return date.toLocaleDateString(undefined, { weekday: "long" });+ return date.toLocaleDateString(undefined, {+ month: "short",+ day: "numeric",+ year: date.getFullYear() === now.getFullYear() ? undefined : "numeric",+ });+}+export function getRelativeDateGroup(timestamp: number | string,): string | null {diff --git a/products/desktop/packages/ui/src/features/canvas/AGENTS.md b/products/desktop/packages/ui/src/features/canvas/AGENTS.mdindex 4cf404e25e0a..fbfdc70216c8 100644--- a/products/desktop/packages/ui/src/features/canvas/AGENTS.md+++ b/products/desktop/packages/ui/src/features/canvas/AGENTS.md@@ -129,9 +129,10 @@ The root `AGENTS.md` architecture rules still apply.means synthesizing the arrow keys it listens for — and moving *before*collapsing, while the rows still exist.- One `ChannelsFab` serves both panes: given a `channelId` it creates inside- that channel (task, canvas), and either way it can create a channel. Off the- layout it keeps its original two-item menu. Archived moves out of the sidebar- and into the account menu (`ProjectSwitcher`), beside Settings.+ that channel (task, canvas); from the list, where nothing else offers it, it+ creates a space instead. Off the layout it keeps its original two-item menu.+ Archived moves out of the sidebar and into the account menu+ (`ProjectSwitcher`), beside Settings.- **Which pane shows is view state, not a route.** `channelPaneStore` holds it,separately from the scoped channel (`currentChannelStore`): "back to channels"browses the list while the route, the main pane and the scoped channel staydiff --git a/products/desktop/packages/ui/src/features/canvas/components/ChannelBackRow.tsx b/products/desktop/packages/ui/src/features/canvas/components/ChannelBackRow.tsxindex ec0828adefd4..4adee47d43c1 100644--- a/products/desktop/packages/ui/src/features/canvas/components/ChannelBackRow.tsx+++ b/products/desktop/packages/ui/src/features/canvas/components/ChannelBackRow.tsx@@ -91,7 +91,10 @@ export function ChannelBackRow({ channelId }: { channelId: string }) {// the star. Padding rather than a spacer element: quill hides an// empty one (`empty:hidden`), which is how the shortcut hint ended// up sitting beneath the star.- className={cn("w-full gap-1.5 text-left", showStar && "pr-8")}+ className={cn(+ "w-full gap-1.5 pr-1 text-left",+ showStar && "pr-8",+ )}><CaretLeftIconsize={12}diff --git a/products/desktop/packages/ui/src/features/canvas/components/ChannelFilterMenu.tsx b/products/desktop/packages/ui/src/features/canvas/components/ChannelFilterMenu.tsxindex d454db6bfc39..a30558d6e155 100644--- a/products/desktop/packages/ui/src/features/canvas/components/ChannelFilterMenu.tsx+++ b/products/desktop/packages/ui/src/features/canvas/components/ChannelFilterMenu.tsx@@ -5,7 +5,6 @@ import {type ChannelItemFilters,type ChannelItemSort,type CreatedByFilter,- DEFAULT_CHANNEL_ITEM_FILTERS,type EnvironmentFilter,type PinnedFilter,} from "@posthog/core/canvas/channelItems";@@ -149,21 +148,37 @@ function FilterSubmenu<T extends string>({*/export function ChannelFilterMenu({filters,- onFiltersChange,+ onFilterChange,+ onClearFilters,sort,onSortChange,sources,showCreatedBy,+ showRunFilters,active,}: {+ /**+ * What the menu shows as chosen. It can be narrower than what is stored: a+ * filter the current list cannot answer reads as "any" here.+ */filters: ChannelItemFilters;- onFiltersChange: (filters: ChannelItemFilters) => void;+ /**+ * One field at a time. Writing the whole object back would carry the+ * narrowed values with it and drop a choice made under another tab.+ */+ onFilterChange: <K extends keyof ChannelItemFilters>(+ key: K,+ value: ChannelItemFilters[K],+ ) => void;+ onClearFilters: () => void;sort: ChannelItemSort;onSortChange: (sort: ChannelItemSort) => void;/** `origin_product` keys present in the list. */sources: readonly string[];/** False in #me, where every session is yours and the filter says nothing. */showCreatedBy: boolean;+ /** False on the canvases tab: a canvas has no run to ask these about. */+ showRunFilters: boolean;/** A filter is narrowing the list, so the button says so. */active: boolean;}) {@@ -177,11 +192,6 @@ export function ChannelFilterMenu({})),];- const set = <K extends keyof ChannelItemFilters>(- key: K,- value: ChannelItemFilters[K],- ) => onFiltersChange({ ...filters, [key]: value });-return (<DropdownMenu><DropdownMenuTrigger@@ -208,12 +218,14 @@ export function ChannelFilterMenu({sideOffset={6}className="min-w-fit">- <FilterSubmenu- label="Status"- options={ATTENTION_OPTIONS}- value={filters.attention}- onChange={(value) => set("attention", value)}- />+ {showRunFilters && (+ <FilterSubmenu+ label="Status"+ options={ATTENTION_OPTIONS}+ value={filters.attention}+ onChange={(value) => onFilterChange("attention", value)}+ />+ )}{/* #me holds only your own sessions, so "created by" can only everanswer "you" — the whole group is dropped rather than shown with twooptions that empty the list. */}@@ -222,27 +234,31 @@ export function ChannelFilterMenu({label="Created by"options={CREATED_BY_OPTIONS}value={filters.createdBy}- onChange={(value) => set("createdBy", value)}+ onChange={(value) => onFilterChange("createdBy", value)}/>)}<FilterSubmenulabel="Pinned"options={PINNED_OPTIONS}value={filters.pinned}- onChange={(value) => set("pinned", value)}- />- <FilterSubmenu- label="Environment"- options={ENVIRONMENT_OPTIONS}- value={filters.environment}- onChange={(value) => set("environment", value)}- />- <FilterSubmenu- label="Source"- options={sourceOptions}- value={filters.source}- onChange={(value) => set("source", value)}+ onChange={(value) => onFilterChange("pinned", value)}/>+ {showRunFilters && (+ <>+ <FilterSubmenu+ label="Environment"+ options={ENVIRONMENT_OPTIONS}+ value={filters.environment}+ onChange={(value) => onFilterChange("environment", value)}+ />+ <FilterSubmenu+ label="Source"+ options={sourceOptions}+ value={filters.source}+ onChange={(value) => onFilterChange("source", value)}+ />+ </>+ )}<DropdownMenuSeparator /><FilterSubmenulabel="Sort by"@@ -255,10 +271,7 @@ export function ChannelFilterMenu({<DropdownMenuSeparator />{/* The empty state tells you to clear the filters; with five of thembehind submenus, this is where that instruction is carried out. */}- <DropdownMenuItem- onClick={() => onFiltersChange(DEFAULT_CHANNEL_ITEM_FILTERS)}- variant="destructive"- >+ <DropdownMenuItem onClick={onClearFilters} variant="destructive">Clear filters</DropdownMenuItem></>diff --git a/products/desktop/packages/ui/src/features/canvas/components/ChannelItemRow.tsx b/products/desktop/packages/ui/src/features/canvas/components/ChannelItemRow.tsxindex 1353d27d245a..57fbb9ae604e 100644--- a/products/desktop/packages/ui/src/features/canvas/components/ChannelItemRow.tsx+++ b/products/desktop/packages/ui/src/features/canvas/components/ChannelItemRow.tsx@@ -135,6 +135,7 @@ export function ChannelItemRow({isActive,actions,isEditing = false,+ showPinBadge = true,onRename,onAddToCommandCenter,onEditSubmit,@@ -146,6 +147,8 @@ export function ChannelItemRow({isActive: boolean;actions: ChannelItemActions;isEditing?: boolean;+ /** False under a "Pinned" header, which says it for every row beneath it. */+ showPinBadge?: boolean;/** Puts the row into inline-rename mode. Absent for canvases. */onRename?: () => void;/** Absent when the command centre has no free cell, which disables the item. */@@ -154,6 +157,7 @@ export function ChannelItemRow({onEditCancel?: () => void;}) {const status = useChannelTaskStatus(item);+ const pinBadge = item.pinned && showPinBadge;const [confirmDeleteOpen, setConfirmDeleteOpen] = useState(false);// A canvas inside its undo window stays in the list rather than vanishing and// reappearing on Undo, so the row has to say what's happening to it.@@ -236,12 +240,12 @@ export function ChannelItemRow({card. The pin joins whichever stack the row has, ratherthan standing beside it as a badge of its own. */}{status ? (- <TaskBadgeStack status={status} pinned={item.pinned} />+ <TaskBadgeStack status={status} pinned={pinBadge} />) : item.kind === "canvas" ? (- <CanvasBadgeStack item={item} pinned={item.pinned} />+ <CanvasBadgeStack item={item} pinned={pinBadge} />) : (<>- {item.pinned && (+ {pinBadge && (<AvatarGroup stacked reverse size="xs" className="shrink-0"><PinnedBadge /></AvatarGroup>diff --git a/products/desktop/packages/ui/src/features/canvas/components/ChannelSidebar.test.tsx b/products/desktop/packages/ui/src/features/canvas/components/ChannelSidebar.test.tsxindex 3dc85e226331..49361c6e5ed5 100644--- a/products/desktop/packages/ui/src/features/canvas/components/ChannelSidebar.test.tsx+++ b/products/desktop/packages/ui/src/features/canvas/components/ChannelSidebar.test.tsx@@ -82,9 +82,9 @@ function item(overrides: Partial<ChannelItemModel> = {}): ChannelItemModel {// A fresh element per render: React bails out of re-rendering an element it has// already seen by reference, and these tests change the hook's answer between// renders rather than the props.-const sidebar = () => (+const sidebar = (channelId = "channel-1") => (<Theme>- <ChannelSidebar channelId="channel-1" />+ <ChannelSidebar channelId={channelId} /></Theme>);@@ -104,19 +104,20 @@ describe("ChannelSidebar", () => {what: "nothing has arrived yet",state: { items: [], isLoading: true },shown: [] as string[],- hidden: ["Sessions", "No matches", "Nothing here yet"],+ hidden: ["Sessions", "No matches", "No sessions yet"],},{what: "the space is settled and genuinely empty",state: { items: [], isLoading: false },- shown: ["Nothing here yet"],- hidden: ["Sessions", "No matches"],+ // The tabs stay, or an empty tab is one you can't leave.+ shown: ["Sessions", "No sessions yet"],+ hidden: ["No matches"],},{what: "the space is settled with items",state: { items: [item()], isLoading: false },shown: ["Sessions", "Investigate signup drop-off"],- hidden: ["No matches", "Nothing here yet"],+ hidden: ["No matches", "No sessions yet"],},])("shows one state when $what", ({ state, shown, hidden }) => {mocks.items = state.items;@@ -160,7 +161,7 @@ describe("ChannelSidebar", () => {rerender(sidebar());expect(screen.queryByText("No matches")).not.toBeInTheDocument();- expect(screen.queryByText("Nothing here yet")).not.toBeInTheDocument();+ expect(screen.queryByText("No sessions yet")).not.toBeInTheDocument();});it("shows a single empty state when the last item goes away under a search", async () => {@@ -173,7 +174,58 @@ describe("ChannelSidebar", () => {rerender(sidebar());expect(screen.getByText("No matches")).toBeInTheDocument();- expect(screen.queryByText("Nothing here yet")).not.toBeInTheDocument();+ expect(screen.queryByText("No sessions yet")).not.toBeInTheDocument();+ });++ it("opens a space on its sessions, whichever tab the last one was left on", async () => {+ const user = userEvent.setup({ pointerEventsCheck: 0 });+ mocks.items = [item()];+ const { rerender } = renderSidebar();++ await user.click(screen.getByRole("tab", { name: "Canvases" }));+ expect(screen.getByRole("tab", { name: "Canvases" })).toHaveAttribute(+ "aria-selected",+ "true",+ );++ // The pane stays mounted across a space switch, so the tab has to be put+ // back rather than left where the last space was.+ rerender(sidebar("channel-2"));++ expect(screen.getByRole("tab", { name: "Sessions" })).toHaveAttribute(+ "aria-selected",+ "true",+ );+ });++ it("shows one kind at a time, and drops the run filters with the sessions", async () => {+ const user = userEvent.setup({ pointerEventsCheck: 0 });+ mocks.items = [+ item(),+ item({+ key: "canvas:c1",+ kind: "canvas",+ id: "c1",+ title: "Signup funnel canvas",+ }),+ ];+ renderSidebar();++ await user.click(screen.getByRole("tab", { name: "Canvases" }));++ expect(screen.getByText("Signup funnel canvas")).toBeInTheDocument();+ expect(+ screen.queryByText("Investigate signup drop-off"),+ ).not.toBeInTheDocument();++ // A canvas has no run, so the filters that ask about one are gone rather+ // than left to empty the tab.+ await user.click(screen.getByRole("button", { name: "Filter" }));+ expect(+ await screen.findByRole("menuitem", { name: /Pinned/ }),+ ).toBeInTheDocument();+ expect(screen.queryByRole("menuitem", { name: /Status/ })).toBeNull();+ expect(screen.queryByRole("menuitem", { name: /Source/ })).toBeNull();});});@@ -191,7 +243,7 @@ describe("ChannelSidebar recents list", () => {vi.useRealTimers();});- it("lists recents newest first without day separators", () => {+ it("heads each run of days with the day it is", () => {mocks.items = [item({key: "task:a",@@ -221,29 +273,24 @@ describe("ChannelSidebar recents list", () => {renderSidebar();- expect(screen.getByText("Today's work")).not.toBeNull();- expect(screen.getByText("Also today")).not.toBeNull();- expect(screen.getByText("Yesterday's work")).not.toBeNull();- expect(screen.getByText("Older work")).not.toBeNull();- expect(screen.queryByText("Today")).toBeNull();- expect(screen.queryByText("Yesterday")).toBeNull();- expect(screen.queryByText("Monday, July 20th")).toBeNull();- });-- it("keeps items from the same day as plain rows", () => {- mocks.items = [- item({ key: "task:a", id: "a", ts: new Date(2026, 6, 29, 9).getTime() }),- item({ key: "task:b", id: "b", ts: new Date(2026, 6, 29, 8).getTime() }),- item({ key: "task:c", id: "c", ts: new Date(2026, 6, 29, 1).getTime() }),- ];-- renderSidebar();-- expect(screen.getAllByText("Investigate signup drop-off")).toHaveLength(3);- expect(screen.queryByText("Today")).toBeNull();+ // The two same-day rows share one header rather than each getting their own.+ const labelled = screen+ .getAllByText(+ /^(Today|Yesterday|Jul 20|Today's work|Also today|Yesterday's work|Older work)$/,+ )+ .map((el) => el.textContent);+ expect(labelled).toEqual([+ "Today",+ "Today's work",+ "Also today",+ "Yesterday",+ "Yesterday's work",+ "Jul 20",+ "Older work",+ ]);});- it("lists pins in the one session list, ahead of newer items", () => {+ it("leads with a pinned section, ahead of newer items", () => {mocks.items = [item({key: "task:newer",@@ -262,14 +309,18 @@ describe("ChannelSidebar recents list", () => {renderSidebar();- // No section of its own — a pin is a mark on a session, and the row's badge- // is what says so.- expect(screen.queryByText("Pinned")).toBeNull();- const titles = screen- .getAllByText(/Kept at hand|Filed this morning/)- .map((el) => el.textContent);// Older, but pinned: it sorts above the newer row rather than risking the- // recents cap.- expect(titles).toEqual(["Kept at hand", "Filed this morning"]);+ // recents cap, and it is listed under the pins rather than under its day.+ const listed = screen+ .getAllByText(/^(Pinned|Today|Kept at hand|Filed this morning)$/)+ .map((el) => el.textContent);+ expect(listed).toEqual([+ "Pinned",+ "Kept at hand",+ "Today",+ "Filed this morning",+ ]);+ // The header says it for the whole section, so the rows below drop the badge.+ expect(screen.queryByRole("img", { name: "Pinned" })).toBeNull();});});diff --git a/products/desktop/packages/ui/src/features/canvas/components/ChannelSidebar.tsx b/products/desktop/packages/ui/src/features/canvas/components/ChannelSidebar.tsxindex 649b4c74ad55..fcb1a34c7861 100644--- a/products/desktop/packages/ui/src/features/canvas/components/ChannelSidebar.tsx+++ b/products/desktop/packages/ui/src/features/canvas/components/ChannelSidebar.tsx@@ -2,15 +2,20 @@ import {ChatsCircleIcon,MagnifyingGlass,PackageIcon,+ ShapesIcon,} from "@phosphor-icons/react";import {+ ANY_SOURCE,type ChannelItemFilters,+ type ChannelItemModel,type ChannelItemSort,channelItemSources,DEFAULT_CHANNEL_ITEM_FILTERS,DEFAULT_CHANNEL_ITEM_SORT,filterChannelItems,+ groupChannelItems,hasActiveChannelItemFilters,+ PINNED_SECTION_KEY,sortChannelItems,} from "@posthog/core/canvas/channelItems";import {@@ -24,6 +29,9 @@ import {MenuLabel,Skeleton,SkeletonText,+ Tabs,+ TabsList,+ TabsTrigger,} from "@posthog/quill";import { LOOPS_FLAG } from "@posthog/shared";import { ChannelBackRow } from "@posthog/ui/features/canvas/components/ChannelBackRow";@@ -37,51 +45,96 @@ import {} from "@posthog/ui/features/canvas/components/channelPages";import { useChannelItems } from "@posthog/ui/features/canvas/hooks/useChannelItems";import { useChannels } from "@posthog/ui/features/canvas/hooks/useChannels";+import { useLocalDayStart } from "@posthog/ui/features/canvas/hooks/useLocalDayStart";import { PERSONAL_CHANNEL_NAME } from "@posthog/ui/features/canvas/hooks/useTaskChannels";+import { SHORTCUTS } from "@posthog/ui/features/command/keyboard-shortcuts";import { useCommandCenterStore } from "@posthog/ui/features/command-center/commandCenterStore";import { placeTaskInCommandCenter } from "@posthog/ui/features/command-center/placeTaskInCommandCenter";import { useFeatureFlag } from "@posthog/ui/features/feature-flags/useFeatureFlag";+import { SidebarKbdHint } from "@posthog/ui/features/sidebar/components/items/SidebarKbdHint";import { SidebarItem } from "@posthog/ui/features/sidebar/components/SidebarItem";import { useRenameTask } from "@posthog/ui/features/tasks/useTaskMutations";import { logger } from "@posthog/ui/shell/logger";import { useNavigate, useRouterState } from "@tanstack/react-router";-import { useMemo, useState } from "react";+import { Fragment, useMemo, useState } from "react";const RECENTS_CAP = 30;const log = logger.scope("channel-sidebar");+/** The list holds two kinds of thing, and shows one of them at a time. */+type ChannelTab = ChannelItemModel["kind"];++const CHANNEL_TABS: readonly { value: ChannelTab; label: string }[] = [+ { value: "task", label: "Sessions" },+ { value: "canvas", label: "Canvases" },+];+function RecentSectionHeader({+ tab,+ onTabChange,searchOpen,onToggleSearch,query,onQueryChange,filters,- onFiltersChange,+ onFilterChange,+ onClearFilters,sort,onSortChange,sources,showCreatedBy,+ showRunFilters,filtersActive,}: {+ tab: ChannelTab;+ onTabChange: (tab: ChannelTab) => void;searchOpen: boolean;onToggleSearch: () => void;query: string;onQueryChange: (value: string) => void;filters: ChannelItemFilters;- onFiltersChange: (filters: ChannelItemFilters) => void;+ onFilterChange: <K extends keyof ChannelItemFilters>(+ key: K,+ value: ChannelItemFilters[K],+ ) => void;+ onClearFilters: () => void;sort: ChannelItemSort;onSortChange: (sort: ChannelItemSort) => void;sources: readonly string[];/** False in #me, where every session is yours and the filter says nothing. */showCreatedBy: boolean;+ /** False on the canvases tab: a canvas has no run to ask these about. */+ showRunFilters: boolean;filtersActive: boolean;}) {return (<><div className="flex items-center gap-0.5">- <div className="min-w-0 flex-1">- <MenuLabel>Sessions</MenuLabel>- </div>+ {/* The tabs name the list, so it has no label of its own. */}+ <Tabs+ value={tab}+ onValueChange={(value: string) => onTabChange(value as ChannelTab)}+ className="min-w-0 flex-1"+ >+ {/* text-[13px] is the sidebar's own scale: quill's default tab is+ sized for a page header, which reads as a heading over this list. */}+ {/* quill-tabs-fill: the active/hover fills, from globals.css — they+ can't be utilities here, see the rule's comment. */}+ <TabsList+ variant="line"+ className="quill-tabs-fill h-auto gap-0.5 border-b-0"+ >+ {CHANNEL_TABS.map(({ value, label }) => (+ <TabsTrigger+ key={value}+ value={value}+ className="rounded-sm px-1 py-0.5 text-[13px]"+ >+ {label}+ </TabsTrigger>+ ))}+ </TabsList>+ </Tabs><Buttonvariant="default"size="icon-xs"@@ -94,11 +147,13 @@ function RecentSectionHeader({</Button><ChannelFilterMenufilters={filters}- onFiltersChange={onFiltersChange}+ onFilterChange={onFilterChange}+ onClearFilters={onClearFilters}sort={sort}onSortChange={onSortChange}sources={sources}showCreatedBy={showCreatedBy}+ showRunFilters={showRunFilters}active={filtersActive}/></div>@@ -109,7 +164,9 @@ function RecentSectionHeader({value={query}onChange={(event) => onQueryChange(event.target.value)}placeholder="Search…"- aria-label="Search sessions"+ aria-label={+ tab === "canvas" ? "Search canvases" : "Search sessions"+ }className="h-6 text-[12px]"/></div>@@ -125,7 +182,7 @@ const SKELETON_ROW_WIDTHS = [60, 80, 40, 75, 50, 66] as const;function ChannelItemsSkeleton() {return (<div aria-hidden className="flex flex-col gap-px">- {/* Stands in for the "Sessions" MenuLabel, so it carries that label's scale. */}+ {/* Stands in for the tabs row, so it carries that row's scale. */}<SkeletonTextlines={1}maxWidth={100}@@ -148,6 +205,31 @@ function ChannelItemsSkeleton() {);}+/** An empty tab says what would fill it, rather than what the space holds. */+function TabEmptyState({ tab }: { tab: ChannelTab }) {+ return (+ <Empty className="border-0 py-6">+ <EmptyHeader>+ <EmptyMedia variant="icon">+ {tab === "canvas" ? (+ <ShapesIcon size={18} />+ ) : (+ <ChatsCircleIcon size={18} />+ )}+ </EmptyMedia>+ <EmptyTitle>+ {tab === "canvas" ? "No canvases yet" : "No sessions yet"}+ </EmptyTitle>+ <EmptyDescription>+ {tab === "canvas"+ ? "Canvases you create in this space show up here."+ : "Sessions you start in this space show up here."}+ </EmptyDescription>+ </EmptyHeader>+ </Empty>+ );+}+/** `ready` is the list itself, whether or not the filters leave any rows in it. */type ListState = "unavailable" | "loading" | "empty" | "ready";@@ -194,6 +276,15 @@ export function ChannelSidebar({ channelId }: { channelId: string }) {const { renameTask } = useRenameTask();const commandCenterCells = useCommandCenterStore((state) => state.cells);+ // A space opens on its sessions. The pane stays mounted across a space+ // switch, so the tab is stored against the space it was chosen in rather than+ // carried into the next one; the filters below deliberately do carry over.+ const [chosenTab, setChosenTab] = useState({+ channelId,+ tab: "task" as ChannelTab,+ });+ const tab = chosenTab.channelId === channelId ? chosenTab.tab : "task";+ const setTab = (next: ChannelTab) => setChosenTab({ channelId, tab: next });const [searchOpen, setSearchOpen] = useState(false);const [query, setQuery] = useState("");const [rawFilters, setFilters] = useState<ChannelItemFilters>(@@ -207,16 +298,33 @@ export function ChannelSidebar({ channelId }: { channelId: string }) {const { channels } = useChannels();const isPersonalChannel =channels.find((c) => c.id === channelId)?.name === PERSONAL_CHANNEL_NAME;- const filters = useMemo<ChannelItemFilters>(- () =>- isPersonalChannel ? { ...rawFilters, createdBy: "anyone" } : rawFilters,- [isPersonalChannel, rawFilters],- );+ // A canvas has no run, so the three run filters can only ever empty the+ // canvases tab. Same treatment as createdBy above: neutralised as well as+ // hidden, or a choice made on the sessions tab would empty this one.+ const filters = useMemo<ChannelItemFilters>(() => {+ const scoped = isPersonalChannel+ ? { ...rawFilters, createdBy: "anyone" as const }+ : rawFilters;+ return tab === "canvas"+ ? {+ ...scoped,+ attention: "any",+ environment: "any",+ source: ANY_SOURCE,+ }+ : scoped;+ }, [isPersonalChannel, rawFilters, tab]);const filtersActive = hasActiveChannelItemFilters(filters);+ // The tab is the list, so everything below it — the filters, the empty state,+ // the sections — is about one kind of thing at a time.+ const tabItems = useMemo(+ () => items.filter((item) => item.kind === tab),+ [items, tab],+ );// The menu only offers sources the list holds, so it is built from everything- // in the space rather than from what the current filters left behind — picking+ // in the tab rather than from what the current filters left behind — picking// one source must not be what removes the others from the menu.- const sources = useMemo(() => channelItemSources(items), [items]);+ const sources = useMemo(() => channelItemSources(tabItems), [tabItems]);const base = `/website/${channelId}`;// Activeness is a key comparison rather than a flag baked into each item, so@@ -228,39 +336,47 @@ export function ChannelSidebar({ channelId }: { channelId: string }) {return task ? `task:${task[1]}` : null;}, [pathname]);- // One list, pins included — a pin is a mark on a session, not a different kind- // of thing, and the row's own badge says so. They sort to the top because a pin- // is a request not to lose the thing: below the chosen order it would fall off- // the end of the cap.+ // Pins sort to the top because a pin is a request not to lose the thing:+ // below the chosen order it would fall off the end of the cap. The cap is+ // applied to the flat list, before the sections, so the number of rows a+ // reader gets doesn't depend on how many days they span.const recentItems = useMemo(() =>sortChannelItems(- filterChannelItems(items, { query, filters, me }),+ filterChannelItems(tabItems, { query, filters, me }),sort,).slice(0, RECENTS_CAP),- [items, query, filters, sort, me],+ [tabItems, query, filters, sort, me],+ );+ // Dated against the day rather than the moment, so the headers follow local+ // midnight even when the list itself hasn't changed for hours.+ const dayStart = useLocalDayStart();+ const sections = useMemo(+ () => groupChannelItems(recentItems, sort, new Date(dayStart)),+ [recentItems, sort, dayStart],);const narrowed = filtersActive || searchOpen;const listState = listStateOf({channelMissing,isLoading,- itemCount: items.length,+ itemCount: tabItems.length,narrowed,});- // The one section, which only exists once there are items — but its header- // stays while the list is narrowed, so you can undo whatever emptied it.- const showRecent = listState === "ready";+ // The header stays while the list is narrowed, so you can undo whatever+ // emptied it — and while a tab is empty, so you can leave that tab.+ const showHeader = listState === "ready" || listState === "empty";const commandCenterAssigner = (taskId: string, taskTitle: string) => () =>placeTaskInCommandCenter(taskId, taskTitle);- const taskRow = (item: (typeof items)[number]) => (+ const taskRow = (item: (typeof items)[number], showPinBadge: boolean) => (<ChannelItemRowkey={item.key}item={item}channelId={channelId}isActive={item.key === activeKey}+ showPinBadge={showPinBadge}actions={actions}isEditing={item.kind === "task" && editingTaskId === item.id}onRename={@@ -328,6 +444,9 @@ export function ChannelSidebar({ channelId }: { channelId: string }) {params: { channelId },})}+ // ⌘N inside a space lands on this same route (openTaskInput scopes to+ // the channel you're in), so the row can claim the key.+ endHint={<SidebarKbdHint keys={SHORTCUTS.NEW_TASK} />}/>{sectionRow("home",@@ -365,11 +484,42 @@ export function ChannelSidebar({ channelId }: { channelId: string }) {)}</div>- {/* Relative so the FAB can float over the list. */}- <div className="relative mt-2 min-h-0 flex-1">+ {/* Relative so the FAB can float over the list. The tabs sit above the+ scroll container rather than in it: they are how you leave whatever+ the list is showing, so they can't scroll away with it. */}+ <div className="relative mt-2 flex min-h-0 flex-1 flex-col">+ {showHeader && (+ <div className="border-border border-b px-2">+ <RecentSectionHeader+ tab={tab}+ onTabChange={setTab}+ searchOpen={searchOpen}+ onToggleSearch={() => {+ if (searchOpen) setQuery("");+ setSearchOpen(!searchOpen);+ }}+ query={query}+ onQueryChange={setQuery}+ filters={filters}+ // Written against the stored filters, not the narrowed ones the+ // menu displays: a choice made under one tab has to survive a+ // write made under another.+ onFilterChange={(key, value) =>+ setFilters((prev) => ({ ...prev, [key]: value }))+ }+ onClearFilters={() => setFilters(DEFAULT_CHANNEL_ITEM_FILTERS)}+ sort={sort}+ onSortChange={setSort}+ sources={sources}+ showCreatedBy={!isPersonalChannel}+ showRunFilters={tab === "task"}+ filtersActive={filtersActive}+ />+ </div>+ )}<divaria-busy={isLoading}- className="scroll-mask-4 h-full overflow-y-auto px-2 pb-2"+ className="scroll-mask-4 min-h-0 flex-1 overflow-y-auto px-2 pt-1 pb-2">{listState === "loading" && <ChannelItemsSkeleton />}@@ -387,57 +537,42 @@ export function ChannelSidebar({ channelId }: { channelId: string }) {</Empty>)}- {showRecent && (- <>- <RecentSectionHeader- searchOpen={searchOpen}- onToggleSearch={() => {- if (searchOpen) setQuery("");- setSearchOpen(!searchOpen);- }}- query={query}- onQueryChange={setQuery}- filters={filters}- onFiltersChange={setFilters}- sort={sort}- onSortChange={setSort}- sources={sources}- showCreatedBy={!isPersonalChannel}- filtersActive={filtersActive}- />- {recentItems.length > 0 ? (- <div className="flex flex-col gap-px">- {recentItems.map(taskRow)}- </div>- ) : (- <Empty className="border-0 py-6">- <EmptyHeader>- <EmptyMedia variant="icon">- <MagnifyingGlass size={18} />- </EmptyMedia>- <EmptyTitle>No matches</EmptyTitle>- <EmptyDescription>- Try a different search or clear the filters.- </EmptyDescription>- </EmptyHeader>- </Empty>- )}- </>- )}-- {listState === "empty" && (- <Empty className="border-0 py-6">- <EmptyHeader>- <EmptyMedia variant="icon">- <ChatsCircleIcon size={18} />- </EmptyMedia>- <EmptyTitle>Nothing here yet</EmptyTitle>- <EmptyDescription>- Tasks and canvases you create in this space show up here.- </EmptyDescription>- </EmptyHeader>- </Empty>- )}+ {showHeader &&+ (listState === "empty" ? (+ <TabEmptyState tab={tab} />+ ) : sections.length > 0 ? (+ <div className="flex flex-col gap-px">+ {sections.map((section, index) => {+ // Under "Pinned" every row would wear the same badge, so the+ // header says it once instead — but only while a header below+ // marks where the pins stop. An alphabetical run carries no+ // header of its own, so there the badges stay.+ const nextRunIsHeaded =+ sections[index + 1] == null ||+ sections[index + 1].label != null;+ const showPinBadge =+ section.key !== PINNED_SECTION_KEY || !nextRunIsHeaded;+ return (+ <Fragment key={section.key}>+ {section.label && <MenuLabel>{section.label}</MenuLabel>}+ {section.items.map((item) => taskRow(item, showPinBadge))}+ </Fragment>+ );+ })}+ </div>+ ) : (+ <Empty className="border-0 py-6">+ <EmptyHeader>+ <EmptyMedia variant="icon">+ <MagnifyingGlass size={18} />+ </EmptyMedia>+ <EmptyTitle>No matches</EmptyTitle>+ <EmptyDescription>+ Try a different search or clear the filters.+ </EmptyDescription>+ </EmptyHeader>+ </Empty>+ ))}</div><ChannelsFab channelId={channelId} /></div>diff --git a/products/desktop/packages/ui/src/features/canvas/components/ChannelsFab.tsx b/products/desktop/packages/ui/src/features/canvas/components/ChannelsFab.tsxindex b5db0874a358..5fbd0f49bdeb 100644--- a/products/desktop/packages/ui/src/features/canvas/components/ChannelsFab.tsx+++ b/products/desktop/packages/ui/src/features/canvas/components/ChannelsFab.tsx@@ -38,8 +38,8 @@ import { useState } from "react";* of whichever sidebar pane is showing.** The same button on both panes, so "create" is always the same corner: given a- * channel it creates inside it (task, canvas), and either way it can create a- * channel — the list has no other entry point for that.+ * channel it creates inside it (task, canvas); from the list it creates a+ * channel, which has no other entry point.*/export function ChannelsFab({ channelId }: { channelId?: string }) {const channelsLayout = useChannelsLayout();@@ -81,7 +81,7 @@ export function ChannelsFab({ channelId }: { channelId?: string }) {variant="primary"size="icon-lg"aria-label="Create"- className="absolute right-3 bottom-3 z-10"+ className="absolute right-3 bottom-3 z-10 rounded-full"><PlusIcon size={20} weight="bold" />{channelsLayout && hasDraft && (@@ -140,7 +140,9 @@ export function ChannelsFab({ channelId }: { channelId?: string }) {New canvas</DropdownMenuItem>)}- {channelsLayout && (+ {/* Inside a space the menu is about filling that space; making+ another one belongs to the list this button also serves. */}+ {channelsLayout && !channelId && (<><DropdownMenuSeparator />{newChannelItem}diff --git a/products/desktop/packages/ui/src/features/canvas/hooks/useLocalDayStart.ts b/products/desktop/packages/ui/src/features/canvas/hooks/useLocalDayStart.tsnew file mode 100644index 000000000000..d88186e54315--- /dev/null+++ b/products/desktop/packages/ui/src/features/canvas/hooks/useLocalDayStart.ts@@ -0,0 +1,33 @@+import { useEffect, useState } from "react";++function startOfLocalDay(): number {+ const start = new Date();+ start.setHours(0, 0, 0, 0);+ return start.getTime();+}++/**+ * Today, as a timestamp that changes when the day does.+ *+ * A list headed "Today" and "Yesterday" is wrong the moment local midnight+ * passes, and a sidebar left open on a quiet space has nothing else to make it+ * re-render — its items can be identical for hours. Anything that dates rows+ * relative to now reads this instead of calling `new Date()` mid-render.+ */+export function useLocalDayStart(): number {+ const [dayStart, setDayStart] = useState(startOfLocalDay);++ useEffect(() => {+ // setDate rather than adding 24 hours: a DST change makes a local day 23 or+ // 25 hours long, and the timer has to land after midnight either way.+ const nextMidnight = new Date(dayStart);+ nextMidnight.setDate(nextMidnight.getDate() + 1);+ const timer = setTimeout(+ () => setDayStart(startOfLocalDay()),+ Math.max(nextMidnight.getTime() - Date.now(), 0) + 1_000,+ );+ return () => clearTimeout(timer);+ }, [dayStart]);++ return dayStart;+}diff --git a/products/desktop/packages/ui/src/features/sidebar/components/SidebarItem.tsx b/products/desktop/packages/ui/src/features/sidebar/components/SidebarItem.tsxindex e1be24a5fa9c..9611c3a45832 100644--- a/products/desktop/packages/ui/src/features/sidebar/components/SidebarItem.tsx+++ b/products/desktop/packages/ui/src/features/sidebar/components/SidebarItem.tsx@@ -32,7 +32,18 @@ interface SidebarItemPropsaction?: SidebarItemAction;/** Hugs the label but never truncates with it; pushes endContent right. */badge?: React.ReactNode;+ /**+ * Trailing controls — hover toolbars, avatars, spinners, status badges. They+ * sit flush with the row's edge, because an icon-sized control carries its+ * own padding and reads as inset twice over if the row adds more.+ */endContent?: React.ReactNode;+ /**+ * Trailing text — a shortcut hint, a count. Unlike a control it has no+ * padding of its own, so the row gives it the gap from the edge. Rendered+ * outside `endContent`, i.e. rightmost.+ */+ endHint?: React.ReactNode;disabled?: boolean;}@@ -51,6 +62,7 @@ export function SidebarItem({onContextMenu,badge,endContent,+ endHint,disabled,ref,...buttonProps@@ -101,6 +113,9 @@ export function SidebarItem({</span>) : null}{endContent}+ {endHint ? (+ <span className="flex shrink-0 items-center pr-1">{endHint}</span>+ ) : null}</span>{subtitle ? (<span className="truncate text-gray-10 group-data-active:text-gray-11">diff --git a/products/desktop/packages/ui/src/features/sidebar/components/items/InboxItem.tsx b/products/desktop/packages/ui/src/features/sidebar/components/items/InboxItem.tsxindex ad35ff198f81..b121e69f4413 100644--- a/products/desktop/packages/ui/src/features/sidebar/components/items/InboxItem.tsx+++ b/products/desktop/packages/ui/src/features/sidebar/components/items/InboxItem.tsx@@ -46,7 +46,7 @@ export function InboxItem({badge={<Badge variant="warning">Beta</Badge>}isActive={isActive}onClick={onClick}- endContent={<SidebarKbdHint keys={SHORTCUTS.INBOX} />}+ endHint={<SidebarKbdHint keys={SHORTCUTS.INBOX} />}/></div></Tooltip>diff --git a/products/desktop/packages/ui/src/features/sidebar/components/items/NewTaskItem.tsx b/products/desktop/packages/ui/src/features/sidebar/components/items/NewTaskItem.tsxindex a4fd352279bc..d232a5c407e1 100644--- a/products/desktop/packages/ui/src/features/sidebar/components/items/NewTaskItem.tsx+++ b/products/desktop/packages/ui/src/features/sidebar/components/items/NewTaskItem.tsx@@ -23,15 +23,13 @@ export function NewTaskItem({ isActive, onClick }: NewTaskItemProps) {isActive={isActive}onClick={onClick}endContent={- <>- {hasDraft ? (- <Badge variant="default" title="You have unsubmitted changes">- Draft- </Badge>- ) : null}- <SidebarKbdHint keys={SHORTCUTS.NEW_TASK} />- </>+ hasDraft ? (+ <Badge variant="default" title="You have unsubmitted changes">+ Draft+ </Badge>+ ) : null}+ endHint={<SidebarKbdHint keys={SHORTCUTS.NEW_TASK} />}/>);}diff --git a/products/desktop/packages/ui/src/features/sidebar/components/items/SearchItem.tsx b/products/desktop/packages/ui/src/features/sidebar/components/items/SearchItem.tsxindex 85ee680878fb..6b3c7692d0e3 100644--- a/products/desktop/packages/ui/src/features/sidebar/components/items/SearchItem.tsx+++ b/products/desktop/packages/ui/src/features/sidebar/components/items/SearchItem.tsx@@ -15,7 +15,7 @@ export function SearchItem({ onClick, depth = 0 }: SearchItemProps) {icon={<MagnifyingGlass size={16} />}label="Search"onClick={onClick}- endContent={<SidebarKbdHint keys={SHORTCUTS.COMMAND_MENU} />}+ endHint={<SidebarKbdHint keys={SHORTCUTS.COMMAND_MENU} />}/>);}diff --git a/products/desktop/packages/ui/src/styles/globals.css b/products/desktop/packages/ui/src/styles/globals.cssindex 58811906858e..0b7a55adecff 100644--- a/products/desktop/packages/ui/src/styles/globals.css+++ b/products/desktop/packages/ui/src/styles/globals.css@@ -1431,3 +1431,20 @@ button,background-color: rgb(0 0 0 / 0.7);opacity: 1;}++/*+ * @posthog/quill Tabs — quill paints an active trigger `var(--background)` with+ * `!important`, and `!important` inverts cascade-layer order, so no utility+ * class on the trigger can outrank it however specific or `!`-marked. An+ * override has to sit in quill's own layer with a longer selector, which is+ * what this is: the fill tokens the sidebar's tab strips ask for.+ */+@layer components {+ .quill-tabs-fill .quill-tabs__trigger[data-active] {+ background-color: var(--fill-hover) !important;+ }+ .quill-tabs-fill .quill-tabs__trigger:hover,+ .quill-tabs-fill .quill-tabs__trigger[data-active]:hover {+ background-color: var(--fill-selected) !important;+ }+}diff --git a/products/desktop/pnpm-lock.yaml b/products/desktop/pnpm-lock.yamlindex df16cd7d94a1..b778bb22546a 100644--- a/products/desktop/pnpm-lock.yaml+++ b/products/desktop/pnpm-lock.yaml@@ -28,8 +28,8 @@ catalogs:specifier: ^2.1.10version: 2.1.10'@posthog/quill':- specifier: 0.3.0-beta.24- version: 0.3.0-beta.24+ specifier: 0.3.0-beta.26+ version: 0.3.0-beta.26'@radix-ui/themes':specifier: ^3.2.1version: 3.3.0@@ -218,7 +218,7 @@ importers:version: link:../../packages/platform'@posthog/quill':specifier: 'catalog:'- version: 0.3.0-beta.24(@base-ui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])+ version: 0.3.0-beta.26(@base-ui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])'@posthog/shared':specifier: workspace:*version: link:../../packages/shared@@ -903,7 +903,7 @@ importers:version: 5.9.3vitest:specifier: ^4.1.8- version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))packages/api-client:dependencies:@@ -919,7 +919,7 @@ importers:version: 5.9.3vitest:specifier: ^4.1.8- version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))packages/core:dependencies:@@ -983,7 +983,7 @@ importers:version: 5.9.3vitest:specifier: ^4.1.8- version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))packages/di:dependencies:@@ -1005,7 +1005,7 @@ importers:version: 5.9.3vitest:specifier: ^4.1.8- version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))packages/electron-trpc:devDependencies:@@ -1060,7 +1060,7 @@ importers:version: 5.9.3vitest:specifier: ^4.1.8- version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))packages/git:dependencies:@@ -1082,7 +1082,7 @@ importers:version: 5.9.3vitest:specifier: ^4.1.8- version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))packages/harness:dependencies:@@ -1128,7 +1128,7 @@ importers:version: 5.9.3vitest:specifier: ^4.1.8- version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))packages/host-router:dependencies:@@ -1233,7 +1233,7 @@ importers:version: 5.9.3vitest:specifier: ^4.1.8- version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))packages/ui:dependencies:@@ -1522,7 +1522,7 @@ importers:'@posthog/quill':specifier: 'catalog:'- version: 0.3.0-beta.24(@base-ui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])+ version: 0.3.0-beta.26(@base-ui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])'@posthog/tsconfig':specifier: workspace:*version: link:../../tooling/typescript@@ -1561,7 +1561,7 @@ importers:version: 5.0.6'@vitejs/plugin-react':specifier: ^4.2.1- version: 4.7.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.7.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))jsdom:specifier: ^26.0.0version: 26.1.0@@ -1576,7 +1576,7 @@ importers:version: 5.9.3vitest:specifier: ^4.1.8- version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))packages/workspace-client:dependencies:@@ -1610,7 +1610,7 @@ importers:version: 5.9.3vitest:specifier: ^4.1.8- version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))packages/workspace-server:dependencies:@@ -1710,7 +1710,7 @@ importers:version: 5.9.3vitest:specifier: ^4.1.8- version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))tooling/tsup-config:dependencies:@@ -6286,8 +6286,8 @@ packages:react: 19.2.6react-dom: 19.2.6- '@posthog/[email protected]':- resolution: {integrity: sha512-lBnnFqX3aVNXPPc5j8pO2cGr99IeClIr2ByVTdote477Bnqwt8HDX7jbFxCwiUr8ARnuSTvhDrqeagZzplwE9Q==}+ '@posthog/[email protected]':+ resolution: {integrity: sha512-ZRMrY38pfdpB9hIJZ3yQI0XhXsovpE7c25ULnzZFI3jnj3lsYselt0SHvViuI2OdX/BDX0GePxk0uXfD3WusJg==}engines: {node: '>=20'}peerDependencies:'@base-ui/react': ^1.3.0@@ -10313,8 +10313,8 @@ packages:resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==}engines: {node: '>=6'}- resolution: {integrity: sha512-sJcR5LLnEG+w58Oy5CdZfwAfm8XiERbXp9c941Aoeb8JmBHk/56TbZQlLJseJtClg0dkn88wpmnI82+iF0jagg==}+ resolution: {integrity: sha512-tiUyzTadQM0BWSGaP0u347c4q2vDIHyY0GUg0jY3Py6nEU0uaB6P0fKevWJmaYK4N+i+H7oE3GYdumfx/AcsUw==}resolution: {integrity: sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==}@@ -11651,6 +11651,10 @@ packages:resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}engines: {node: '>=8'}+ resolution: {integrity: sha512-CsNUt5x9LUdx6hnk/E2SZLsDyvfqANZSUq4+D3D8RzDJ2M+HDTIkF60ibS1vHaK55vzgiZw1bEPFG9yH7l33wA==}+ engines: {node: '>=12'}+resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==}@@ -11906,6 +11910,12 @@ packages:resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==}+ resolution: {integrity: sha512-TFDXc/0mwUW7LMjsr0/LeLxPVV5BnHDuDQff9RCgP4rb3R+V/4dIwGBZbCevcJZtQnVcW+Iz1LUrUbpq+UDwYA==}+ engines: {node: '>=18'}+ peerDependencies:+ ink: '>=6'+resolution: {integrity: sha512-EYEasbEjkqLGyPOUc8hBJZNuC5GvXGMLu0w5gdTNskPc7Izc5vO3tdQEYnzvshucyGCBXc86ig0ujXPMWaQCdA==}engines: {node: '>=14.16'}@@ -12524,6 +12534,12 @@ packages:cpu: [arm64]os: [android]+ resolution: {integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [android]+resolution: {integrity: sha512-Gl/lqIXY+d+ySmMbgDf0pgaWSqrWYxVHoc88q+Vhf2YNzZ8DwoRzGt5NZDVqqIW5ScpSnmmjcgXP87Dn2ylSSQ==}engines: {node: '>= 12.0.0'}@@ -12536,6 +12552,12 @@ packages:cpu: [arm64]os: [darwin]+ resolution: {integrity: sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [darwin]+resolution: {integrity: sha512-0+mZa54IlcNAoQS9E0+niovhyjjQWEMrwW0p2sSdLRhLDc8LMQ/b67z7+B5q4VmjYCMSfnFi3djAAQFIDuj/Tg==}engines: {node: '>= 12.0.0'}@@ -12548,6 +12570,12 @@ packages:cpu: [x64]os: [darwin]+ resolution: {integrity: sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [darwin]+resolution: {integrity: sha512-n1sEf85fePoU2aDN2PzYjoI8gbBqnmLGEhKq7q0DKLj0UTVmOTwDC7PtLcy/zFxzASTSBlVQYJUhwIStQMIpRA==}engines: {node: '>= 12.0.0'}@@ -12560,6 +12588,12 @@ packages:cpu: [x64]os: [freebsd]+ resolution: {integrity: sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [freebsd]+resolution: {integrity: sha512-MUMRmtdRkOkd5z3h986HOuNBD1c2lq2BSQA1Jg88d9I7bmPGx08bwGcnB75dvr17CwxjxD6XPi3Qh8ArmKFqCA==}engines: {node: '>= 12.0.0'}@@ -12572,6 +12606,12 @@ packages:cpu: [arm]os: [linux]+ resolution: {integrity: sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm]+ os: [linux]+resolution: {integrity: sha512-cPsxo1QEWq2sfKkSq2Bq5feQDHdUEwgtA9KaB27J5AX22+l4l0ptgjMZZtYtUnteBofjee+0oW1wQ1guv04a7A==}engines: {node: '>= 12.0.0'}@@ -12586,6 +12626,13 @@ packages:os: [linux]libc: [glibc]+ resolution: {integrity: sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]+resolution: {integrity: sha512-rCGBm2ax7kQ9pBSeITfCW9XSVF69VX+fm5DIpvDZQl4NnQoMQyRwhZQm9pd59m8leZ1IesRqWk2v/DntMo26lg==}engines: {node: '>= 12.0.0'}@@ -12600,6 +12647,13 @@ packages:os: [linux]libc: [musl]+ resolution: {integrity: sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [linux]+ libc: [musl]+resolution: {integrity: sha512-Dk/jovSI7qqhJDiUibvaikNKI2x6kWPN79AQiD/E/KeQWMjdGe9kw51RAgoWFDi0coP4jinaH14Nrt/J8z3U4A==}engines: {node: '>= 12.0.0'}@@ -12614,6 +12668,13 @@ packages:os: [linux]libc: [glibc]+ resolution: {integrity: sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [linux]+ libc: [glibc]+resolution: {integrity: sha512-QKjTxXm8A9s6v9Tg3Fk0gscCQA1t/HMoF7Woy1u68wCk5kS4fR+q3vXa1p3++REW784cRAtkYKrPy6JKibrEZA==}engines: {node: '>= 12.0.0'}@@ -12628,6 +12689,13 @@ packages:os: [linux]libc: [musl]+ resolution: {integrity: sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [linux]+ libc: [musl]+resolution: {integrity: sha512-/wXegPS1hnhkeG4OXQKEMQeJd48RDC3qdh+OA8pCuOPCyvnm/yEayrJdJVqzBsqpy1aJklRCVxscpFur80o6iQ==}engines: {node: '>= 12.0.0'}@@ -12640,6 +12708,12 @@ packages:cpu: [arm64]os: [win32]+ resolution: {integrity: sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [win32]+resolution: {integrity: sha512-/OJLj94Zm/waZShL8nB5jsNj3CfNATLCTyFxZyouilfTmSoLDX7VlVAmhPHoZWVFp4vdmoiEbPEYC8HID3m6yw==}engines: {node: '>= 12.0.0'}@@ -12652,6 +12726,12 @@ packages:cpu: [x64]os: [win32]+ resolution: {integrity: sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [win32]+resolution: {integrity: sha512-8f7aNmS1+etYSLHht0fQApPc2kNO8qGRutifN5rVIc6Xo6ABsEbqOr758UwI7ALVbTt4x1fllKt0PYgzD9S3yQ==}engines: {node: '>= 12.0.0'}@@ -12660,6 +12740,10 @@ packages:resolution: {integrity: sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==}engines: {node: '>= 12.0.0'}+ resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==}+ engines: {node: '>= 12.0.0'}+resolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==}engines: {node: '>=14'}@@ -13547,8 +13631,8 @@ packages:engines: {node: ^20.19.0 || >=22.12.0}hasBin: true- resolution: {integrity: sha512-7XDOw+zjVquh0yqX3zvGQC2zzWIp2rXyMjLDqFzzQ8t7TZXfIQ6ttQhBwckQSk4c7kD7Cy9If0F4LI4XXI4Gsg==}+ resolution: {integrity: sha512-JydpWgYo2nZPAO+9Zc3H7SzwPaqsCMTPHMRHHbtXdjL440y/aU/89gV8hfNCXhoNBafVRAg9Z9Jjl9uGg1hfWA==}engines: {node: ^20.19.0 || >=22.13.0}@@ -14179,8 +14263,8 @@ packages:resolution: {integrity: sha512-+NRMYs2DyTP4/tqWz371Oo50JqmWltR1h2gcdgUMAWZJIAvrd0/SqlCfx7tpzpl/s36rzw6qH2MjoNrxtRNYhA==}engines: {node: ^20.9.0 || >=22}- resolution: {integrity: sha512-s8kWwfFKZA3e9AT5wwFilQNjxKFP30ceFIXOZDrmLPstFodbHOpE0Mv+fEY0/04uZbhRdVYKoaHYb+yaAIEwPw==}+ resolution: {integrity: sha512-Zq8dmmLOyuyJselHQVJhsfCATjYN5+TeXSJmbC1IUH2kfmD8hC4NomV5A4ZrarSG5lqIwlar4ehYGlXDMBNokw==}engines: {node: ^20.19.0 || >=22.13.0}hasBin: true@@ -15200,6 +15284,10 @@ packages:resolution: {integrity: sha512-H+ue8Zo4vJmV2nRjpx86P35lzwDT3nItnIsocgumgr0hHMQ+ZGq5vrERg9kJBo5AWGmxZDhzDo+WVIJqkB0cGA==}engines: {node: '>=16'}+ resolution: {integrity: sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==}engines: {node: '>=4'}@@ -15216,6 +15304,10 @@ packages:resolution: {integrity: sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==}engines: {node: '>=8'}+ resolution: {integrity: sha512-ZW2OvfeCXrNTbLakPUzjQG922EeGCOteFSVoek5DKStTh898wf7zgtuFlzQN8HfZCxC3Eh02yJVrRW51hADf+w==}+ engines: {node: '>=20'}+resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}engines: {node: '>= 0.4'}@@ -15294,6 +15386,10 @@ packages:resolution: {integrity: sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==}engines: {node: '>=8'}+ resolution: {integrity: sha512-qFAy10MTMwjzjU8U16YS4YoZD+NQLHzLssFMNqgravjbvIPNiqkGFR4yjhJfmY9R5OFU7+yHxc6y+uGHkKwLRA==}+ engines: {node: '>=20'}+resolution: {integrity: sha512-avMLDQpUI9I5XFrklECw1ZEUPJhqzcwSWsyyI8blhRLT+8N1jLJWLWWYQpB2q2xthq8xDvjZPISVh53T/+CLYQ==}engines: {node: '>=18'}@@ -21108,7 +21204,7 @@ snapshots:react-dom: 19.2.6([email protected])simple-statistics: 7.8.9- '@posthog/[email protected](@base-ui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])':+ '@posthog/[email protected](@base-ui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])':dependencies:'@base-ui/react': 1.3.0(@types/[email protected])([email protected]([email protected]))([email protected])class-variance-authority: 0.7.1@@ -21120,7 +21216,7 @@ snapshots:tailwind-merge: 2.6.1tailwindcss: 4.2.2- '@posthog/[email protected](@base-ui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])':+ '@posthog/[email protected](@base-ui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])':dependencies:'@base-ui/react': 1.3.0(@types/[email protected])([email protected]([email protected]))([email protected])class-variance-authority: 0.7.1@@ -23797,7 +23893,7 @@ snapshots:transitivePeerDependencies:- supports-color- '@vitejs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@vitejs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@babel/core': 7.29.0'@babel/plugin-transform-react-jsx-self': 7.27.1(@babel/[email protected])@@ -23805,7 +23901,7 @@ snapshots:'@rolldown/pluginutils': 1.0.0-beta.27'@types/babel__core': 7.20.5react-refresh: 0.17.0- vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])transitivePeerDependencies:- supports-color@@ -23870,23 +23966,23 @@ snapshots:msw: 2.12.8(@types/[email protected])([email protected])vite: [email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])- '@vitest/[email protected]([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@vitest/[email protected]([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@vitest/spy': 4.1.8estree-walker: 3.0.3magic-string: 0.30.21optionalDependencies:msw: 2.12.8(@types/[email protected])([email protected])- vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])- '@vitest/[email protected]([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@vitest/[email protected]([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@vitest/spy': 4.1.8estree-walker: 3.0.3magic-string: 0.30.21optionalDependencies:msw: 2.12.8(@types/[email protected])([email protected])- vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])'@vitest/[email protected]([email protected](@types/[email protected])([email protected]))([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:@@ -23897,23 +23993,23 @@ snapshots:msw: 2.12.8(@types/[email protected])([email protected])vite: [email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])- '@vitest/[email protected]([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@vitest/[email protected]([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@vitest/spy': 4.1.8estree-walker: 3.0.3magic-string: 0.30.21optionalDependencies:msw: 2.12.8(@types/[email protected])([email protected])- vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])- '@vitest/[email protected]([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@vitest/[email protected]([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@vitest/spy': 4.1.8estree-walker: 3.0.3magic-string: 0.30.21optionalDependencies:msw: 2.12.8(@types/[email protected])([email protected])- vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])'@vitest/[email protected]':dependencies:@@ -25330,7 +25426,7 @@ snapshots:dependencies:'@oxc-project/types': 0.142.0fast-glob: 3.3.3@@ -26912,6 +27008,8 @@ snapshots:+ [email protected]: {}+dependencies:es-define-property: 1.0.1@@ -27237,6 +27335,11 @@ snapshots:+ [email protected]([email protected](@types/[email protected])([email protected])([email protected])):+ dependencies:+ terminal-link: 5.0.0+[email protected]([email protected](@types/[email protected])([email protected])([email protected]))([email protected]):dependencies:cli-spinners: 2.9.2@@ -28195,66 +28298,99 @@ snapshots:optional: true+ optional: true+optional: trueoptional: true+ optional: true+optional: trueoptional: true+ optional: true+optional: trueoptional: true+ optional: true+optional: trueoptional: true+ optional: true+optional: trueoptional: true+ optional: true+optional: trueoptional: true+ optional: true+optional: trueoptional: true+ optional: true+optional: trueoptional: true+ optional: true+optional: trueoptional: true+ optional: true+optional: trueoptional: true+ optional: true+dependencies:detect-libc: 1.0.3@@ -28286,6 +28422,22 @@ snapshots:lightningcss-win32-arm64-msvc: 1.32.0lightningcss-win32-x64-msvc: 1.32.0+ dependencies:+ detect-libc: 2.1.2+ optionalDependencies:+ lightningcss-android-arm64: 1.33.0+ lightningcss-darwin-arm64: 1.33.0+ lightningcss-darwin-x64: 1.33.0+ lightningcss-freebsd-x64: 1.33.0+ lightningcss-linux-arm-gnueabihf: 1.33.0+ lightningcss-linux-arm64-gnu: 1.33.0+ lightningcss-linux-arm64-musl: 1.33.0+ lightningcss-linux-x64-gnu: 1.33.0+ lightningcss-linux-x64-musl: 1.33.0+ lightningcss-win32-arm64-msvc: 1.33.0+ lightningcss-win32-x64-msvc: 1.33.0+@@ -29712,12 +29864,13 @@ snapshots:'@oxfmt/binding-win32-ia32-msvc': 0.45.0'@oxfmt/binding-win32-x64-msvc': 0.45.0dependencies:'@shaderfrog/glsl-parser': 7.0.1'@typescript-eslint/types': 8.65.0eslint-scope: 9.1.2eslint-visitor-keys: 5.0.1+ lightningcss: 1.33.0oxc-parser: 0.142.0@@ -30450,7 +30603,7 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected](@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected]):+ [email protected](@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected]):dependencies:'@astrojs/compiler': 4.0.0'@babel/code-frame': 7.29.7@@ -30458,16 +30611,17 @@ snapshots:agent-install: 0.0.5conf: 15.1.0confbox: 0.2.4- deslop-js: 0.9.3+ deslop-js: 0.9.4eslint-plugin-react-hooks: 7.1.1([email protected]([email protected]))figures: 6.1.0+ ink-link: 5.0.0([email protected](@types/[email protected])([email protected])([email protected]))ink-spinner: 5.0.0([email protected](@types/[email protected])([email protected])([email protected]))([email protected])jiti: 2.7.0magicast: 0.5.3oxc-resolver: 11.24.2oxlint: 1.76.0- oxlint-plugin-react-doctor: 0.9.3+ oxlint-plugin-react-doctor: 0.9.4prompts: 2.4.2react: 19.2.6typescript: 5.9.3@@ -30769,7 +30923,7 @@ snapshots:preact: 10.29.2prompts: 2.4.2react: 19.2.6- react-doctor: 0.9.3(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react-doctor: 0.9.4(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])react-dom: 19.2.6([email protected])react-grab: 0.1.50([email protected])optionalDependencies:@@ -31769,6 +31923,8 @@ snapshots:dependencies:copy-anything: 4.0.5+ [email protected]: {}+dependencies:has-flag: 3.0.0@@ -31786,6 +31942,11 @@ snapshots:has-flag: 4.0.0supports-color: 7.2.0+ dependencies:+ has-flag: 5.0.1+ supports-color: 10.2.2+@@ -31896,6 +32057,11 @@ snapshots:ansi-escapes: 4.3.2supports-hyperlinks: 2.3.0+ dependencies:+ ansi-escapes: 7.3.0+ supports-hyperlinks: 4.5.0+[email protected](@swc/[email protected])([email protected])([email protected])([email protected](@swc/[email protected])([email protected])([email protected])):@@ -32503,7 +32669,7 @@ snapshots:- supports-color- typescript- [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):+ [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:esbuild: 0.27.2fdir: 6.5.0([email protected])@@ -32515,12 +32681,12 @@ snapshots:'@types/node': 20.19.41fsevents: 2.3.3jiti: 2.7.0- lightningcss: 1.32.0+ lightningcss: 1.33.0terser: 5.46.0tsx: 4.22.4yaml: 2.9.0- [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):+ [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:esbuild: 0.27.2fdir: 6.5.0([email protected])@@ -32532,12 +32698,12 @@ snapshots:'@types/node': 22.20.0fsevents: 2.3.3jiti: 2.7.0- lightningcss: 1.32.0+ lightningcss: 1.33.0terser: 5.46.0tsx: 4.22.4yaml: 2.9.0- [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):+ [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:esbuild: 0.27.2fdir: 6.5.0([email protected])@@ -32549,12 +32715,12 @@ snapshots:'@types/node': 25.2.0fsevents: 2.3.3jiti: 2.7.0- lightningcss: 1.32.0+ lightningcss: 1.33.0terser: 5.46.0tsx: 4.21.0yaml: 2.9.0- [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):+ [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:esbuild: 0.27.2fdir: 6.5.0([email protected])@@ -32566,7 +32732,7 @@ snapshots:'@types/node': 25.2.0fsevents: 2.3.3jiti: 2.7.0- lightningcss: 1.32.0+ lightningcss: 1.33.0terser: 5.46.0tsx: 4.22.4yaml: 2.9.0@@ -32600,10 +32766,10 @@ snapshots:transitivePeerDependencies:- msw- [email protected](@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])):+ [email protected](@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])):dependencies:'@vitest/expect': 4.1.8- '@vitest/mocker': 4.1.8([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ '@vitest/mocker': 4.1.8([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))'@vitest/pretty-format': 4.1.8'@vitest/runner': 4.1.8'@vitest/snapshot': 4.1.8@@ -32620,7 +32786,7 @@ snapshots:tinyexec: 1.0.2tinyglobby: 0.2.15tinyrainbow: 3.1.0- vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])why-is-node-running: 2.3.0optionalDependencies:'@opentelemetry/api': 1.9.1@@ -32630,10 +32796,10 @@ snapshots:transitivePeerDependencies:- msw- [email protected](@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])):+ [email protected](@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])):dependencies:'@vitest/expect': 4.1.8- '@vitest/mocker': 4.1.8([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ '@vitest/mocker': 4.1.8([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))'@vitest/pretty-format': 4.1.8'@vitest/runner': 4.1.8'@vitest/snapshot': 4.1.8@@ -32650,7 +32816,7 @@ snapshots:tinyexec: 1.0.2tinyglobby: 0.2.15tinyrainbow: 3.1.0- vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])why-is-node-running: 2.3.0optionalDependencies:'@opentelemetry/api': 1.9.1@@ -32721,10 +32887,10 @@ snapshots:transitivePeerDependencies:- msw- [email protected](@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])):+ [email protected](@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])):dependencies:'@vitest/expect': 4.1.8- '@vitest/mocker': 4.1.8([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ '@vitest/mocker': 4.1.8([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))'@vitest/pretty-format': 4.1.8'@vitest/runner': 4.1.8'@vitest/snapshot': 4.1.8@@ -32741,7 +32907,7 @@ snapshots:tinyexec: 1.0.2tinyglobby: 0.2.15tinyrainbow: 3.1.0- vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])why-is-node-running: 2.3.0optionalDependencies:'@opentelemetry/api': 1.9.1@@ -32751,10 +32917,10 @@ snapshots:transitivePeerDependencies:- msw- [email protected](@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])):+ [email protected](@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])):dependencies:'@vitest/expect': 4.1.8- '@vitest/mocker': 4.1.8([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ '@vitest/mocker': 4.1.8([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))'@vitest/pretty-format': 4.1.8'@vitest/runner': 4.1.8'@vitest/snapshot': 4.1.8@@ -32771,7 +32937,7 @@ snapshots:tinyexec: 1.0.2tinyglobby: 0.2.15tinyrainbow: 3.1.0- vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])why-is-node-running: 2.3.0optionalDependencies:'@opentelemetry/api': 1.9.1diff --git a/products/desktop/pnpm-workspace.yaml b/products/desktop/pnpm-workspace.yamlindex ad934c121f7e..a5c1f113e6d1 100644--- a/products/desktop/pnpm-workspace.yaml+++ b/products/desktop/pnpm-workspace.yaml@@ -13,7 +13,7 @@ catalog:'@earendil-works/pi-tui': 0.83.0'@parcel/watcher': ^2.5.6'@phosphor-icons/react': ^2.1.10- '@posthog/quill': 0.3.0-beta.24+ '@posthog/quill': 0.3.0-beta.26'@radix-ui/themes': ^3.2.1'@tanstack/react-query': ^5.100.14'@tanstack/react-router': ^1.170.10