Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

MUL-9229: feat(appearance): theme hooks for page header, panel sections, issue rows, labels, chat, inbox and toasts (#10575)

Jiayuan Zhang163f6cdfa001
diff --git a/docs/theming.md b/docs/theming.md
index 03ab78d920..a656633c55 100644
--- a/docs/theming.md
+++ b/docs/theming.md
@@ -171,17 +171,19 @@ those change without notice. Anchors, slots and hooks stay until the next
| `[data-mc="app-rail"]` | The icon rail on the far left. |
| `[data-mc="sidebar"]` | The navigation panel next to the rail; `data-state` is `expanded` or `collapsed`. |
| `[data-mc="nav-item"]` | A row in the sidebar; `data-active` is `true` on the current one. |
+| `[data-mc="panel-section"]` | A labelled group of rows, headed by an `h3`, in the sidebar or a detail page's property panel. Scope it with `[data-mc="sidebar"] [data-mc="panel-section"]` for the sidebar only. |
| `[data-mc="page"]` | The rounded canvas that holds the current page. |
+| `[data-mc="page-header"]` | The bar at the top of a page, with its title and actions. |
| `[data-mc="window-toolbar"]` | Desktop only: the toolbar above the rail. |
| `[data-mc="tab-bar"]` | Desktop only: the tab strip above the page. |
| `[data-mc="bottom-bar"]` | The status bar under the page, on windows wide enough to show it. |
| `[data-mc="issue-group-header"]` | A status group header in issue lists; `data-status` is the status key (`backlog`, `todo`, `in_progress`, `in_review`, `done`, `blocked`, `cancelled`, or a custom key). |
-| `[data-mc="issue-row"]` | One issue in a list; `data-status`, `data-priority` (`urgent`, `high`, `medium`, `low`, `none`) and `data-assignee-type` (`member`, `agent`, `squad` or `none`). |
+| `[data-mc="issue-row"]` | One issue in a list; `data-status`, `data-priority` (`urgent`, `high`, `medium`, `low`, `none`), `data-assignee-type` (`member`, `agent`, `squad` or `none`), `data-parity` (`even` or `odd`, the row's index within its status group, so stripes survive virtual scrolling where `:nth-child` does not) and `data-selected` (`true` or `false`, ticked for bulk actions). |
| `[data-mc="board-column"]` | One column on a board. |
-| `[data-mc="board-card"]` | One issue card on a board; same attributes as `issue-row`. |
+| `[data-mc="board-card"]` | One issue card on a board; `data-status`, `data-priority` and `data-assignee-type` as on `issue-row`. Cards have no `data-parity` or `data-selected`. |
| `[data-mc="status-icon"]` | The status glyph (an `svg`). |
| `[data-mc="priority-icon"]` | The priority glyph (an `svg`). |
-| `[data-mc="label-chip"]` | A label; `data-color` is its hex colour. |
+| `[data-mc="label-chip"]` | A label; `data-color` is its hex colour. The chip paints with `var(--label-color)` and `var(--label-foreground)`, so a rule can restyle it without `!important`. |
| `[data-mc="content"]` | Rich text: issue descriptions, comments, chat messages and documents, reading and editing. `data-density` is `document` or `compact` when reading. |
| `[data-mc="comment"]` | A top-level comment card; `data-author-type` is `member`, `agent` or `system`. |
| `[data-mc="comment-reply"]` | A reply inside a comment card; `data-author-type` as on `comment`. |
@@ -189,9 +191,28 @@ those change without notice. Anchors, slots and hooks stay until the next
| `[data-mc="chat-window"]` | The chat panel. |
| `[data-mc="chat-input"]` | The message box in chat. |
| `[data-mc="chat-message"]` | One message in a chat; `data-role` is `user` or `assistant`. |
-| `[data-mc="inbox-item"]` | One notification in the inbox; `data-read` is `true` or `false`. |
+| `[data-mc="chat-bubble"]` | The bubble around a user message. Assistant replies have none: they are full-width rich text. |
+| `[data-mc="inbox-item"]` | One notification in the inbox; `data-read` is `true` or `false`, and `data-selected` is `true` on the one open in the detail pane. |
+| `[data-mc="unread-dot"]` | The unread marker on an inbox item. |
+| `[data-mc="toaster"]` | The toast region. Each toast inside is an `li` with `data-type` `success`, `error`, `info`, `warning`, `loading` or `default`. A plain toast usually has no `data-type`, so match it with both `li:not([data-type])` and `li[data-type="default"]`. |
| `[data-mc="settings-page"]` | The settings page. |
+Each label chip sets `--label-color` (its hex colour) and `--label-foreground`
+(a text colour readable on it). Read them to draw a label another way, such
+as a dot in front of its name:
+
+```css
+[data-mc="label-chip"] { background: transparent; color: inherit; }
+[data-mc="label-chip"]::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--label-color); }
+```
+
+A plain toast has no `data-type`, so style the default look with both
+selectors:
+
+```css
+[data-mc="toaster"] :is(li:not([data-type]), li[data-type="default"]) { border-radius: 0.75rem; }
+```
+
UI primitives carry a `data-slot`; these are public too: `button` (also
`data-variant` and `data-size`), `input`, `textarea`, `switch`, `checkbox`,
`select-trigger`, `select-content`, `select-item`,
diff --git a/packages/core/appearance/anchors.ts b/packages/core/appearance/anchors.ts
index 7284d81e7c..c760284fd6 100644
--- a/packages/core/appearance/anchors.ts
+++ b/packages/core/appearance/anchors.ts
@@ -10,18 +10,23 @@ export const THEME_ANCHORS = {
"app-rail": "The icon rail on the far left.",
sidebar: "The navigation panel next to the rail; `data-state` is expanded or collapsed.",
"nav-item": "A row in the sidebar; `data-active` is true on the current one.",
+ "panel-section":
+ "A labelled group of rows, headed by an `h3`, in the sidebar or a detail page's property panel.",
page: "The rounded canvas that holds the current page.",
+ "page-header": "The bar at the top of a page, with its title and actions.",
"window-toolbar": "Desktop only: the toolbar above the rail with history buttons.",
"tab-bar": "Desktop only: the tab strip above the page.",
"bottom-bar": "The status bar under the page, on windows wide enough to show it.",
"issue-group-header": "A status group header in issue lists; `data-status` is the status key.",
"issue-row":
- "One issue in a list; `data-status`, `data-priority` and `data-assignee-type` (member, agent, squad or none).",
+ "One issue in a list; `data-status`, `data-priority`, `data-assignee-type` (member, agent, squad or none), `data-parity` (even or odd within its status group) and `data-selected` (true or false).",
"board-column": "One column on a board.",
- "board-card": "One issue card on a board; same attributes as `issue-row`.",
+ "board-card":
+ "One issue card on a board; `data-status`, `data-priority` and `data-assignee-type` as on `issue-row`.",
"status-icon": "The status glyph (an svg).",
"priority-icon": "The priority glyph (an svg).",
- "label-chip": "A label; `data-color` is its hex colour.",
+ "label-chip":
+ "A label; `data-color` is its hex colour, also set as `--label-color` (and the text colour as `--label-foreground`).",
content:
"Rich text: issue descriptions, comments, chat messages and documents, in both reading and editing; `data-density` is document or compact when reading.",
comment: "A top-level comment card in an issue timeline; `data-author-type` is member, agent or system.",
@@ -30,7 +35,12 @@ export const THEME_ANCHORS = {
"chat-window": "The chat panel.",
"chat-input": "The message box in chat.",
"chat-message": "One message in a chat; `data-role` is user or assistant.",
- "inbox-item": "One notification in the inbox list; `data-read` is true or false.",
+ "chat-bubble": "The bubble around a user message. Assistant replies have none.",
+ "inbox-item":
+ "One notification in the inbox list; `data-read` is true or false, `data-selected` is true on the one open in the detail pane.",
+ "unread-dot": "The unread marker on an inbox item.",
+ toaster:
+ "The toast region. Each toast is an `li`; `data-type` is success, error, info, warning, loading or default, and a plain toast may have no `data-type` at all.",
"settings-page": "The settings page.",
} as const;
diff --git a/packages/ui/components/ui/sonner.tsx b/packages/ui/components/ui/sonner.tsx
index bdc2dd7c52..6064affdd9 100644
--- a/packages/ui/components/ui/sonner.tsx
+++ b/packages/ui/components/ui/sonner.tsx
@@ -12,42 +12,46 @@ const Toaster = ({ ...props }: ToasterProps) => {
// sometimes rendered light on a dark UI.
const { resolvedTheme = "system" } = useTheme()
+ // Sonner forwards no data attributes, so the theme anchor sits on a
+ // box-less wrapper; the toast list inside stays `position: fixed`.
return (
- <Sonner
- theme={resolvedTheme as ToasterProps["theme"]}
- className="toaster group"
- icons={{
- success: (
- <CircleCheckIcon className="size-4 text-success" />
- ),
- info: (
- <InfoIcon className="size-4 text-info" />
- ),
- warning: (
- <TriangleAlertIcon className="size-4 text-warning" />
- ),
- error: (
- <OctagonXIcon className="size-4 text-destructive" />
- ),
- loading: (
- <Loader2Icon className="size-4 animate-spin text-brand" />
- ),
- }}
- style={
- {
- "--normal-bg": "var(--popover)",
- "--normal-text": "var(--popover-foreground)",
- "--normal-border": "var(--border)",
- "--border-radius": "var(--radius)",
- } as React.CSSProperties
- }
- toastOptions={{
- classNames: {
- toast: "cn-toast",
- },
- }}
- {...props}
- />
+ <div data-mc="toaster" className="contents">
+ <Sonner
+ theme={resolvedTheme as ToasterProps["theme"]}
+ className="toaster group"
+ icons={{
+ success: (
+ <CircleCheckIcon className="size-4 text-success" />
+ ),
+ info: (
+ <InfoIcon className="size-4 text-info" />
+ ),
+ warning: (
+ <TriangleAlertIcon className="size-4 text-warning" />
+ ),
+ error: (
+ <OctagonXIcon className="size-4 text-destructive" />
+ ),
+ loading: (
+ <Loader2Icon className="size-4 animate-spin text-brand" />
+ ),
+ }}
+ style={
+ {
+ "--normal-bg": "var(--popover)",
+ "--normal-text": "var(--popover-foreground)",
+ "--normal-border": "var(--border)",
+ "--border-radius": "var(--radius)",
+ } as React.CSSProperties
+ }
+ toastOptions={{
+ classNames: {
+ toast: "cn-toast",
+ },
+ }}
+ {...props}
+ />
+ </div>
)
}
diff --git a/packages/views/chat/components/chat-message-list.tsx b/packages/views/chat/components/chat-message-list.tsx
index da0dd5e911..1d8e764afb 100644
--- a/packages/views/chat/components/chat-message-list.tsx
+++ b/packages/views/chat/components/chat-message-list.tsx
@@ -546,7 +546,10 @@ const MessageBubble = memo(function MessageBubble({
if (message.role === "user") {
return (
<div className="flex justify-end">
- <div className="rounded-2xl bg-muted px-3.5 py-2 text-body max-w-[80%] break-words">
+ <div
+ data-mc="chat-bubble"
+ className="rounded-2xl bg-muted px-3.5 py-2 text-body max-w-[80%] break-words"
+ >
{/* User messages are authored as markdown in ContentEditor, so they
* render through the SAME RichContent as assistant replies and as
* Issue/Comment — a Mermaid fence a user pastes is a diagram here
diff --git a/packages/views/inbox/components/inbox-list-item.test.tsx b/packages/views/inbox/components/inbox-list-item.test.tsx
index efef7a4b11..deb3ff7959 100644
--- a/packages/views/inbox/components/inbox-list-item.test.tsx
+++ b/packages/views/inbox/components/inbox-list-item.test.tsx
@@ -121,6 +121,7 @@ function renderRow(props: {
view: "inbox" | "archived";
adapter?: NavigationAdapter;
onClick?: () => void;
+ isSelected?: boolean;
}) {
return render(
<WorkspaceSlugProvider slug="acme">
@@ -128,7 +129,7 @@ function renderRow(props: {
<InboxListItem
item={props.item}
view={props.view}
- isSelected={false}
+ isSelected={props.isSelected ?? false}
onClick={props.onClick ?? vi.fn()}
onAction={vi.fn()}
/>
@@ -137,7 +138,7 @@ function renderRow(props: {
);
}
-const unreadDot = (container: HTMLElement) => container.querySelector(".bg-brand");
+const unreadDot = (container: HTMLElement) => container.querySelector('[data-mc="unread-dot"]');
const title = (container: HTMLElement) => container.querySelector(".truncate");
describe("InboxListItem unread affordance", () => {
@@ -168,6 +169,17 @@ describe("InboxListItem unread affordance", () => {
});
});
+describe("InboxListItem theme hooks", () => {
+ it("marks the row open in the detail pane as selected", () => {
+ const anchor = (container: HTMLElement) => container.querySelector('[data-mc="inbox-item"]');
+ expect(anchor(renderRow({ item: item(), view: "inbox", isSelected: true }).container)).toHaveAttribute(
+ "data-selected",
+ "true",
+ );
+ expect(anchor(renderRow({ item: item(), view: "inbox" }).container)).toHaveAttribute("data-selected", "false");
+ });
+});
+
describe("InboxListItem issue activity", () => {
it("shows issue-specific agent activity without an availability dot", () => {
const { getByTestId } = renderRow({ item: item(), view: "inbox" });
diff --git a/packages/views/inbox/components/inbox-list-item.tsx b/packages/views/inbox/components/inbox-list-item.tsx
index f4796c83d3..3f0252c879 100644
--- a/packages/views/inbox/components/inbox-list-item.tsx
+++ b/packages/views/inbox/components/inbox-list-item.tsx
@@ -102,6 +102,7 @@ export function InboxListItem({
<div
data-mc="inbox-item"
data-read={item.read === true ? "true" : "false"}
+ data-selected={isSelected ? "true" : "false"}
role="button"
tabIndex={0}
onClick={(e) => {
@@ -144,7 +145,7 @@ export function InboxListItem({
<div className="flex items-center justify-between gap-2">
<div className="flex min-w-0 items-center gap-1.5">
{showUnread && (
- <span className="h-1.5 w-1.5 shrink-0 rounded-full bg-brand" />
+ <span data-mc="unread-dot" className="h-1.5 w-1.5 shrink-0 rounded-full bg-brand" />
)}
<span
className={`truncate text-body ${showUnread ? "font-medium" : "text-muted-foreground"}`}
diff --git a/packages/views/issues/components/list-row-peek.test.tsx b/packages/views/issues/components/list-row-peek.test.tsx
index a95f22afb5..ddf4bc6366 100644
--- a/packages/views/issues/components/list-row-peek.test.tsx
+++ b/packages/views/issues/components/list-row-peek.test.tsx
@@ -1,4 +1,5 @@
import { useIssueOpeningStore } from "@multica/core/issues/stores/issue-opening-store";
+import { useIssueSelectionStore } from "@multica/core/issues/stores/selection-store";
import { fireEvent, render, screen } from "@testing-library/react";
import type { ReactNode } from "react";
import { beforeEach, describe, expect, it, vi } from "vitest";
@@ -9,7 +10,7 @@ import {
IssuePeekIdContext,
type IssuePeekActions,
} from "../surface/peek-context";
-import { ListRow } from "./list-row";
+import { ListRow, rowParity, type RowParity } from "./list-row";
vi.mock("@tanstack/react-query", async (importOriginal) => ({
...(await importOriginal<typeof import("@tanstack/react-query")>()),
@@ -77,12 +78,12 @@ const issue = {
properties: {},
} as unknown as Issue;
-function renderRow(peekedId: string | null = null) {
+function renderRow(peekedId: string | null = null, parity: RowParity = "even") {
return render(
<NavigationProvider value={navigation}>
<IssuePeekActionsContext.Provider value={peek}>
<IssuePeekIdContext.Provider value={peekedId}>
- <ListRow issue={issue} />
+ <ListRow issue={issue} parity={parity} />
</IssuePeekIdContext.Provider>
</IssuePeekActionsContext.Provider>
</NavigationProvider>,
@@ -93,6 +94,7 @@ describe("ListRow side peek", () => {
beforeEach(() => {
vi.clearAllMocks();
useIssueOpeningStore.setState({ openMode: "page" });
+ useIssueSelectionStore.getState().clear();
});
it("opens the peek on Shift+Click and still navigates on a plain click", () => {
@@ -119,3 +121,23 @@ describe("ListRow side peek", () => {
expect(row).toHaveAttribute("data-peeked");
});
});
+
+describe("ListRow theme hooks", () => {
+ beforeEach(() => {
+ useIssueSelectionStore.getState().clear();
+ });
+
+ it("alternates parity by index within the group", () => {
+ expect([0, 1, 2, 3].map(rowParity)).toEqual(["even", "odd", "even", "odd"]);
+ });
+
+ it("exposes parity and follows the selection", () => {
+ const { container } = renderRow(null, "odd");
+ const row = container.querySelector('[data-mc="issue-row"]');
+ expect(row).toHaveAttribute("data-parity", "odd");
+ expect(row).toHaveAttribute("data-selected", "false");
+
+ fireEvent.click(screen.getByRole("checkbox"));
+ expect(row).toHaveAttribute("data-selected", "true");
+ });
+});
diff --git a/packages/views/issues/components/list-row.tsx b/packages/views/issues/components/list-row.tsx
index b0eca059fc..a753ba2390 100644
--- a/packages/views/issues/components/list-row.tsx
+++ b/packages/views/issues/components/list-row.tsx
@@ -44,8 +44,16 @@ function formatDate(date: string, locale: string): string {
return formatDateOnly(date, { month: "short", day: "numeric" }, locale);
}
+/** A row's position within its status group, for themes that stripe rows. */
+export type RowParity = "even" | "odd";
+
+export function rowParity(index: number): RowParity {
+ return index % 2 === 0 ? "even" : "odd";
+}
+
function ListRowContent({
issue,
+ parity,
childProgress,
project,
isDragging,
@@ -55,6 +63,7 @@ function ListRowContent({
checkboxProps,
}: {
issue: Issue;
+ parity: RowParity;
childProgress?: ChildProgress;
project?: Project;
isDragging?: boolean;
@@ -97,6 +106,8 @@ function ListRowContent({
data-status={issue.status}
data-priority={issue.priority}
data-assignee-type={issue.assignee_type ?? "none"}
+ data-parity={parity}
+ data-selected={selected ? "true" : "false"}
{...{ [PEEK_TARGET_ATTR]: issue.id }}
data-peeked={peeked ? "" : undefined}
style={containerStyle}
@@ -216,16 +227,19 @@ function ListRowContent({
export const ListRow = memo(function ListRow({
issue,
+ parity,
childProgress,
project,
}: {
issue: Issue;
+ parity: RowParity;
childProgress?: ChildProgress;
project?: Project;
}) {
return (
<ListRowContent
issue={issue}
+ parity={parity}
childProgress={childProgress}
project={project}
/>
@@ -244,11 +258,13 @@ const stopDrag = (e: React.SyntheticEvent) => {
export const DraggableListRow = memo(function DraggableListRow({
issue,
+ parity,
childProgress,
project,
disableSorting,
}: {
issue: Issue;
+ parity: RowParity;
childProgress?: ChildProgress;
project?: Project;
disableSorting?: boolean;
@@ -275,6 +291,7 @@ export const DraggableListRow = memo(function DraggableListRow({
return (
<ListRowContent
issue={issue}
+ parity={parity}
childProgress={childProgress}
project={project}
isDragging={isDragging}
diff --git a/packages/views/issues/components/list-view.tsx b/packages/views/issues/components/list-view.tsx
index 3eba1bf998..c0fbcbd8b8 100644
--- a/packages/views/issues/components/list-view.tsx
+++ b/packages/views/issues/components/list-view.tsx
@@ -23,7 +23,7 @@ import { Button } from "@multica/ui/components/ui/button";
import type { Issue, IssueStatus, Project } from "@multica/core/types";
import { useViewStore } from "@multica/core/issues/stores/view-store-context";
import { StatusHeading } from "./status-heading";
-import { ListRow, DraggableListRow, type ChildProgress } from "./list-row";
+import { ListRow, DraggableListRow, rowParity, type ChildProgress } from "./list-row";
import { useDragSettle } from "./use-drag-settle";
import { ListLoadMoreFooter } from "./list-load-more-footer";
import { useT } from "../../i18n";
@@ -537,10 +537,11 @@ function StatusAccordionItem({
);
const computeItemKey = (_index: number, issue: Issue) => issue.id;
- const itemContent = (_index: number, issue: Issue) =>
+ const itemContent = (index: number, issue: Issue) =>
dragEnabled ? (
<DraggableListRow
issue={issue}
+ parity={rowParity(index)}
childProgress={childProgressMap.get(issue.id)}
project={
issue.project_id && issue.project_id !== projectId
@@ -552,6 +553,7 @@ function StatusAccordionItem({
) : (
<ListRow
issue={issue}
+ parity={rowParity(index)}
childProgress={childProgressMap.get(issue.id)}
project={
issue.project_id && issue.project_id !== projectId
diff --git a/packages/views/labels/label-chip.test.tsx b/packages/views/labels/label-chip.test.tsx
new file mode 100644
index 0000000000..8a6a33d71c
--- /dev/null
+++ b/packages/views/labels/label-chip.test.tsx
@@ -0,0 +1,30 @@
+import { describe, expect, it } from "vitest";
+import type { Label } from "@multica/core/types";
+import { renderWithI18n } from "../test/i18n";
+import { LabelChip } from "./label-chip";
+
+const label = (color: string) =>
+ ({ id: "label-1", name: "Design", color, workspace_id: "ws-1" }) as Label;
+
+const chip = (container: HTMLElement) => container.querySelector<HTMLElement>('[data-mc="label-chip"]')!;
+
+describe("LabelChip", () => {
+ it("paints from --label-color, not an inline background, so themes can restyle it", () => {
+ const el = chip(renderWithI18n(<LabelChip label={label("#8b5cf6")} />).container);
+
+ expect(el.style.getPropertyValue("--label-color")).toBe("#8b5cf6");
+ expect(el.style.backgroundColor).toBe("");
+ expect(el.className).toContain("bg-(--label-color)");
+ expect(el).toHaveAttribute("data-color", "#8b5cf6");
+ });
+
+ it("sets a readable text colour as --label-foreground", () => {
+ const dark = chip(renderWithI18n(<LabelChip label={label("#1e3a8a")} />).container);
+ const light = chip(renderWithI18n(<LabelChip label={label("#fde68a")} />).container);
+
+ expect(dark.style.getPropertyValue("--label-foreground")).toBe("#f9fafb");
+ expect(light.style.getPropertyValue("--label-foreground")).toBe("#111827");
+ expect(dark.style.color).toBe("");
+ expect(dark.className).toContain("text-(--label-foreground)");
+ });
+});
diff --git a/packages/views/labels/label-chip.tsx b/packages/views/labels/label-chip.tsx
index 0033060e7d..245281a2a2 100644
--- a/packages/views/labels/label-chip.tsx
+++ b/packages/views/labels/label-chip.tsx
@@ -1,5 +1,6 @@
"use client";
+import type { CSSProperties } from "react";
import type { Label } from "@multica/core/types";
import { X } from "@multica/ui/icons";
import { TooltipHint } from "@multica/ui/components/common/tooltip-hint";
@@ -15,14 +16,16 @@ import { TruncatedTooltip } from "@multica/ui/components/common/truncated-toolti
* table.
*
* The malformed-hex fallback returns dark-on-default which is readable on
- * the default `backgroundColor` rendering path — better than pure black
+ * the default `--label-color` rendering path — better than pure black
* which disappears on dark chips.
*
- * SECURITY INVARIANT: `LabelChip` applies `style={{ backgroundColor: color }}`
- * directly, trusting the backend's color format. The backend's
- * `normalizeColor` regex pins the value to `^#?[0-9a-fA-F]{6}$`. If that regex
- * ever loosens (named colors, `url(...)`, etc.), this becomes an injection
- * vector.
+ * SECURITY INVARIANT: `LabelChip` sets the color as the `--label-color`
+ * custom property and paints with `var(--label-color)`, trusting the backend's
+ * color format. The backend's `normalizeColor` regex pins the value to
+ * `^#?[0-9a-fA-F]{6}$`. A custom property is substituted wherever a theme's
+ * CSS reads it, not only in this chip's background, so if that regex ever
+ * loosens (named colors, `url(...)`, etc.) this becomes an injection vector
+ * into every rule that uses the variable.
*/
function contrastTextColor(hex: string): string {
const h = hex.replace("#", "");
@@ -65,8 +68,10 @@ export function LabelChip({ label, onRemove, className, fullName }: LabelChipPro
// container (the create toolbar's label pill). Without it the chip keeps
// its content width and the parent clips it mid-shape; with it the inner
// name truncates and the chip keeps its rounded ends.
- className={`inline-flex min-w-0 items-center gap-1 rounded-label px-2 py-0.5 text-caption font-medium ${className ?? ""}`}
- style={{ backgroundColor: label.color, color: textColor }}
+ // Custom properties rather than inline colors, so a theme can restyle the
+ // chip from `var(--label-color)` without `!important`.
+ className={`inline-flex min-w-0 items-center gap-1 rounded-label bg-(--label-color) px-2 py-0.5 text-caption font-medium text-(--label-foreground) ${className ?? ""}`}
+ style={{ "--label-color": label.color, "--label-foreground": textColor } as CSSProperties}
// aria-label exposes the full name to screen readers when the span
// visually truncates; sighted users get it from the hover tooltip,
// which only opens when the name is actually cut off.
diff --git a/packages/views/layout/page-header.tsx b/packages/views/layout/page-header.tsx
index 8f0e5c0ca7..4c7e9b1e6d 100644
--- a/packages/views/layout/page-header.tsx
+++ b/packages/views/layout/page-header.tsx
@@ -161,6 +161,7 @@ export function PageHeader({ children, leading, className }: PageHeaderProps) {
const titleBar = usePageHeaderTitleBar();
return (
<header
+ data-mc="page-header"
className={cn(
"flex h-12 shrink-0 items-center gap-2 border-b",
className,
diff --git a/packages/views/layout/panel-nav.tsx b/packages/views/layout/panel-nav.tsx
index 6a4f8a79aa..e085b94a3f 100644
--- a/packages/views/layout/panel-nav.tsx
+++ b/packages/views/layout/panel-nav.tsx
@@ -102,7 +102,7 @@ export function PanelSection({
const contentId = useId();
const collapsible = !!onCollapsedChange;
return (
- <section aria-labelledby={id} className="mt-5">
+ <section data-mc="panel-section" aria-labelledby={id} className="mt-5">
<div className="group/section flex h-7 items-center gap-1 pl-3 pr-1">
<h3 id={id} className="min-w-0 flex-1 truncate text-caption font-medium text-muted-foreground">
{collapsible ? (
diff --git a/scripts/theme-preview.test.mjs b/scripts/theme-preview.test.mjs
index 0e5e08d056..003ea7225f 100644
--- a/scripts/theme-preview.test.mjs
+++ b/scripts/theme-preview.test.mjs
@@ -299,7 +299,8 @@ test("anchors nest as they do in the app", () => {
assert.ok(inside(sidebar, "page"), "the sidebar sits inside the page canvas");
assert.ok(!inside(rail, "page"), "the rail sits outside the page canvas");
for (const el of anchors(elements, "nav-item")) assert.ok(inside(el, "sidebar"), "nav items sit inside the sidebar");
- for (const name of ["issue-group-header", "issue-row", "comment", "comment-composer"]) {
+ for (const el of anchors(elements, "panel-section")) assert.ok(inside(el, "sidebar"), "panel sections sit inside the sidebar");
+ for (const name of ["page-header", "issue-group-header", "issue-row", "comment", "comment-composer"]) {
for (const el of anchors(elements, name)) assert.ok(inside(el, "page"), `${name} sits inside the page`);
}
for (const el of anchors(elements, "comment-reply")) assert.ok(inside(el, "comment"), "replies sit inside their comment");
diff --git a/scripts/theme-preview/fixture.html b/scripts/theme-preview/fixture.html
index 8ed326fcea..941504e00c 100644
--- a/scripts/theme-preview/fixture.html
+++ b/scripts/theme-preview/fixture.html
@@ -8,8 +8,9 @@
it stands for (app-rail.tsx, space-panel.tsx, panel-nav.tsx, list-view.tsx,
list-row.tsx, label-chip.tsx, issue-peek.tsx, comment-card.tsx,
comment-input.tsx, switch.tsx). States a component sets in script are
- written out: `aria-current`, `data-active`, `data-peeked`, `data-checked`
- and `data-unchecked`, the selected row's background. scripts/theme-preview.test.mjs checks the aliases against
+ written out: `aria-current`, `data-active`, `data-peeked`, `data-parity`,
+ `data-selected`, `data-checked` and `data-unchecked`, the selected row's
+ background, and each label chip's `--label-color` and `--label-foreground`. scripts/theme-preview.test.mjs checks the aliases against
packages/ui/styles/theme-variables.css. Class names here are only for the
fixture; themes must not rely on them.
-->
@@ -40,7 +41,7 @@
<div class="flex min-w-0 flex-1 items-center gap-2"><h2 class="truncate text-title-sm font-semibold">Work</h2></div>
</div>
<div class="min-h-0 flex-1 overflow-hidden px-2 pb-4">
- <section>
+ <section data-mc="panel-section">
<div class="flex h-7 items-center gap-1 pl-3 pr-1"><h3 class="min-w-0 flex-1 truncate text-caption font-medium text-muted-foreground">Views</h3></div>
<ul class="space-y-px">
<li><a data-mc="nav-item" data-active="false" class="flex min-h-[var(--nav-item-height,2rem)] w-full items-center gap-2.5 rounded-nav-item px-3 py-1.5 text-left text-body text-nav-item"><svg class="icon icon-circle-user size-4 shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle class="icon-body" cx="12" cy="12" r="9.25"/><circle class="icon-cut" cx="12" cy="10" r="3"/><path class="icon-cut" d="M6.6 18.4c1.3-1.85 3.2-2.8 5.4-2.8s4.1.95 5.4 2.8"/></svg><span class="truncate">My issues</span></a></li>
@@ -48,7 +49,7 @@
<li><a data-mc="nav-item" data-active="true" aria-current="page" class="flex min-h-[var(--nav-item-height,2rem)] w-full items-center gap-2.5 rounded-nav-item bg-nav-item-active px-3 py-1.5 text-left text-body text-nav-item-active-foreground"><svg class="icon icon-list-todo size-4 shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path class="icon-body" d="M4 10.5 C4 7.25 4 5.9 4.95 4.95 C5.9 4 7.25 4 10.5 4 L13.5 4 C16.75 4 18.1 4 19.05 4.95 C20 5.9 20 7.25 20 10.5 L20 14.75 C20 18 20 19.35 19.05 20.3 C18.1 21.25 16.75 21.25 13.5 21.25 L10.5 21.25 C7.25 21.25 5.9 21.25 4.95 20.3 C4 19.35 4 18 4 14.75 Z"/><path class="icon-body" d="M8.5 4.1 C8.5 3.3 8.5 2.97 8.73 2.73 C8.97 2.5 9.3 2.5 10.1 2.5 L13.9 2.5 C14.7 2.5 15.03 2.5 15.27 2.73 C15.5 2.97 15.5 3.3 15.5 4.1 L15.5 4.65 C15.5 5.45 15.5 5.78 15.27 6.02 C15.03 6.25 14.7 6.25 13.9 6.25 L10.1 6.25 C9.3 6.25 8.97 6.25 8.73 6.02 C8.5 5.78 8.5 5.45 8.5 4.65 Z"/><path class="icon-cut" d="M8.75 13.25 L9.94 14.44 C10.47 14.97 10.69 15.19 11 15.19 C11.31 15.19 11.53 14.97 12.06 14.44 L15.25 11.25"/></svg><span class="truncate">All issues</span></a></li>
</ul>
</section>
- <section class="mt-5">
+ <section data-mc="panel-section" class="mt-5">
<div class="flex h-7 items-center gap-1 pl-3 pr-1"><h3 class="min-w-0 flex-1 truncate text-caption font-medium text-muted-foreground">Projects</h3></div>
<ul class="space-y-px">
<li><a data-mc="nav-item" data-active="false" class="flex min-h-[var(--nav-item-height,2rem)] w-full items-center gap-2.5 rounded-nav-item px-3 py-1.5 text-left text-body text-nav-item"><svg class="icon icon-folder-kanban size-4 shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path class="icon-body" d="M2.75 7 C2.75 5.38 2.75 4.7 3.22 4.22 C3.7 3.75 4.38 3.75 6 3.75 L7.75 3.75 C8.5 3.75 8.81 3.75 9.18 3.91 C9.54 4.08 9.75 4.31 10.25 4.86 L10.5 5.14 C11 5.69 11.21 5.92 11.57 6.09 C11.94 6.25 12.25 6.25 13 6.25 L16.75 6.25 C19 6.25 19.93 6.25 20.59 6.91 C21.25 7.57 21.25 8.5 21.25 10.75 L21.25 14.25 C21.25 17.25 21.25 18.49 20.37 19.37 C19.49 20.25 18.25 20.25 15.25 20.25 L8.75 20.25 C5.75 20.25 4.51 20.25 3.63 19.37 C2.75 18.49 2.75 17.25 2.75 14.25 Z"/><path class="icon-cut" d="M8.5 11.5v4.5M12 11.5v2.25M15.5 11.5v4.5"/></svg><span class="truncate">Onboarding</span><span class="ml-auto shrink-0 text-caption tabular-nums text-faint-foreground">4</span></a></li>
@@ -59,7 +60,7 @@
</div>
</aside>
<div class="relative flex min-w-0 flex-1 flex-col overflow-hidden">
- <header class="flex h-12 shrink-0 items-center gap-2 border-b px-4">
+ <header data-mc="page-header" class="flex h-12 shrink-0 items-center gap-2 border-b px-4">
<div class="flex min-w-0 flex-1 items-center gap-1">
<h1 class="flex min-w-20"><span data-slot="dropdown-menu-trigger" data-variant="ghost" data-size="sm" class="inline-flex h-7 items-center gap-2 rounded-button-sm px-2 text-body font-medium text-foreground"><span class="flex size-4 shrink-0 items-center justify-center text-muted-foreground"><svg class="icon icon-list-todo size-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path class="icon-body" d="M4 10.5 C4 7.25 4 5.9 4.95 4.95 C5.9 4 7.25 4 10.5 4 L13.5 4 C16.75 4 18.1 4 19.05 4.95 C20 5.9 20 7.25 20 10.5 L20 14.75 C20 18 20 19.35 19.05 20.3 C18.1 21.25 16.75 21.25 13.5 21.25 L10.5 21.25 C7.25 21.25 5.9 21.25 4.95 20.3 C4 19.35 4 18 4 14.75 Z"/><path class="icon-body" d="M8.5 4.1 C8.5 3.3 8.5 2.97 8.73 2.73 C8.97 2.5 9.3 2.5 10.1 2.5 L13.9 2.5 C14.7 2.5 15.03 2.5 15.27 2.73 C15.5 2.97 15.5 3.3 15.5 4.1 L15.5 4.65 C15.5 5.45 15.5 5.78 15.27 6.02 C15.03 6.25 14.7 6.25 13.9 6.25 L10.1 6.25 C9.3 6.25 8.97 6.25 8.73 6.02 C8.5 5.78 8.5 5.45 8.5 4.65 Z"/><path class="icon-cut" d="M8.75 13.25 L9.94 14.44 C10.47 14.97 10.69 15.19 11 15.19 C11.31 15.19 11.53 14.97 12.06 14.44 L15.25 11.25"/></svg></span><span class="min-w-0 truncate">All issues</span><svg class="icon icon-chevron-down size-3.5 text-muted-foreground" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 9L12 15 6 9"/></svg></span></h1>
<span data-variant="ghost" data-size="icon-sm" class="inline-flex size-[var(--button-height-sm)] items-center justify-center rounded-button-sm text-muted-foreground"><svg class="icon icon-filter size-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3.75 6.5h16.5M7 12h10M10.25 17.5h3.5"/></svg></span>
@@ -75,15 +76,15 @@
<div class="flex items-center pl-3"><input type="checkbox" class="accent-primary"></div>
<div class="flex h-full flex-1 items-center gap-2 px-2"><svg class="icon icon-chevron-right size-3.5 shrink-0 rotate-90 text-muted-foreground" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 6L15 12 9 18"/></svg><div class="flex items-center gap-2"><span class="inline-flex items-center gap-1.5 text-caption font-semibold"><svg data-mc="status-icon" viewBox="0 0 14 14" fill="none" class="h-3 w-3 shrink-0 text-status-todo"><circle cx="7" cy="7" r="6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-dasharray="3.14 0" stroke-dashoffset="-0.7"/></svg>Todo</span><span class="text-caption text-muted-foreground">3</span></div></div>
</div>
- <div data-slot="issue-list-row" data-mc="issue-row" data-status="todo" data-priority="urgent" data-assignee-type="squad" class="flex h-[var(--issue-row-height)] items-center gap-2 px-[var(--issue-row-padding-x,1rem)] text-body">
+ <div data-slot="issue-list-row" data-mc="issue-row" data-status="todo" data-priority="urgent" data-assignee-type="squad" data-parity="even" data-selected="false" class="flex h-[var(--issue-row-height)] items-center gap-2 px-[var(--issue-row-padding-x,1rem)] text-body">
<div class="relative flex h-4 w-4 shrink-0 items-center justify-center"><svg data-mc="priority-icon" viewBox="0 0 16 16" fill="none" class="h-3.5 w-3.5 shrink-0 text-priority-urgent"><rect x="2" y="2" width="12" height="12" rx="3" fill="currentColor"/><line x1="8" y1="5" x2="8" y2="8.6" stroke="var(--background, #fff)" stroke-width="1.7" stroke-linecap="round"/><circle cx="8" cy="11" r="0.95" fill="var(--background, #fff)"/></svg></div>
- <div class="flex min-w-0 flex-1 items-center gap-2"><span class="min-w-16 shrink-0 text-caption text-issue-row-identifier">ACM-148</span><span class="flex min-w-0 flex-1 items-center gap-1.5"><span class="truncate">Audit log export for workspace admins</span><span class="ml-1.5 inline-flex shrink-0 items-center gap-1"><span data-slot="label-chip" data-mc="label-chip" data-color="#ef4444" class="inline-flex min-w-0 items-center gap-1 rounded-label px-2 py-0.5 text-caption font-medium" style="background-color: #ef4444; color: #f9fafb"><span class="max-w-[12rem] truncate">Security</span></span></span></span></div>
+ <div class="flex min-w-0 flex-1 items-center gap-2"><span class="min-w-16 shrink-0 text-caption text-issue-row-identifier">ACM-148</span><span class="flex min-w-0 flex-1 items-center gap-1.5"><span class="truncate">Audit log export for workspace admins</span><span class="ml-1.5 inline-flex shrink-0 items-center gap-1"><span data-slot="label-chip" data-mc="label-chip" data-color="#ef4444" class="inline-flex min-w-0 items-center gap-1 rounded-label bg-(--label-color) px-2 py-0.5 text-caption font-medium text-(--label-foreground)" style="--label-color: #ef4444; --label-foreground: #f9fafb"><span class="max-w-[12rem] truncate">Security</span></span></span></span></div>
</div>
- <div data-slot="issue-list-row" data-mc="issue-row" data-status="todo" data-priority="medium" data-assignee-type="agent" class="flex h-[var(--issue-row-height)] items-center gap-2 px-[var(--issue-row-padding-x,1rem)] text-body">
+ <div data-slot="issue-list-row" data-mc="issue-row" data-status="todo" data-priority="medium" data-assignee-type="agent" data-parity="odd" data-selected="false" class="flex h-[var(--issue-row-height)] items-center gap-2 px-[var(--issue-row-padding-x,1rem)] text-body">
<div class="relative flex h-4 w-4 shrink-0 items-center justify-center"><svg data-mc="priority-icon" viewBox="0 0 16 16" fill="currentColor" class="h-3.5 w-3.5 shrink-0 text-priority-medium"><rect x="2" y="8" width="3.5" height="6" rx="1"/><rect x="6.25" y="5" width="3.5" height="9" rx="1"/><rect x="10.5" y="2" width="3.5" height="12" rx="1" opacity="0.35"/></svg></div>
<div class="flex min-w-0 flex-1 items-center gap-2"><span class="min-w-16 shrink-0 text-caption text-issue-row-identifier">ACM-147</span><span class="flex min-w-0 flex-1 items-center gap-1.5"><span class="truncate">Summarise weekly agent activity</span></span></div>
</div>
- <div data-slot="issue-list-row" data-mc="issue-row" data-status="todo" data-priority="low" data-assignee-type="none" class="flex h-[var(--issue-row-height)] items-center gap-2 px-[var(--issue-row-padding-x,1rem)] text-body">
+ <div data-slot="issue-list-row" data-mc="issue-row" data-status="todo" data-priority="low" data-assignee-type="none" data-parity="even" data-selected="false" class="flex h-[var(--issue-row-height)] items-center gap-2 px-[var(--issue-row-padding-x,1rem)] text-body">
<div class="relative flex h-4 w-4 shrink-0 items-center justify-center"><svg data-mc="priority-icon" viewBox="0 0 16 16" fill="currentColor" class="h-3.5 w-3.5 shrink-0 text-priority-low"><rect x="2" y="8" width="3.5" height="6" rx="1"/><rect x="6.25" y="5" width="3.5" height="9" rx="1" opacity="0.35"/><rect x="10.5" y="2" width="3.5" height="12" rx="1" opacity="0.35"/></svg></div>
<div class="flex min-w-0 flex-1 items-center gap-2"><span class="min-w-16 shrink-0 text-caption text-issue-row-identifier">ACM-151</span><span class="flex min-w-0 flex-1 items-center gap-1.5"><span class="truncate">Dark mode for exported PDFs</span></span></div>
</div>
@@ -93,13 +94,13 @@
<div class="flex items-center pl-3"><input type="checkbox" class="accent-primary"></div>
<div class="flex h-full flex-1 items-center gap-2 px-2"><svg class="icon icon-chevron-right size-3.5 shrink-0 rotate-90 text-muted-foreground" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 6L15 12 9 18"/></svg><div class="flex items-center gap-2"><span class="inline-flex items-center gap-1.5 text-caption font-semibold"><svg data-mc="status-icon" viewBox="0 0 14 14" fill="none" class="h-3 w-3 shrink-0 text-status-in-progress"><circle cx="7" cy="7" r="6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-dasharray="3.14 0" stroke-dashoffset="-0.7"/><path d="M7,7 L7,3.5 A3.5,3.5 0 0,1 7,10.5 Z" fill="currentColor"/></svg>In Progress</span><span class="text-caption text-muted-foreground">2</span></div></div>
</div>
- <div data-slot="issue-list-row" data-mc="issue-row" data-status="in_progress" data-priority="high" data-assignee-type="agent" data-peeked="" class="flex h-[var(--issue-row-height)] items-center gap-2 px-[var(--issue-row-padding-x,1rem)] text-body data-[peeked]:bg-[color-mix(in_oklab,var(--brand)_6%,var(--background))] data-[peeked]:shadow-[inset_2px_0_0_var(--brand)]">
+ <div data-slot="issue-list-row" data-mc="issue-row" data-status="in_progress" data-priority="high" data-assignee-type="agent" data-parity="even" data-selected="false" data-peeked="" class="flex h-[var(--issue-row-height)] items-center gap-2 px-[var(--issue-row-padding-x,1rem)] text-body data-[peeked]:bg-[color-mix(in_oklab,var(--brand)_6%,var(--background))] data-[peeked]:shadow-[inset_2px_0_0_var(--brand)]">
<div class="relative flex h-4 w-4 shrink-0 items-center justify-center"><svg data-mc="priority-icon" viewBox="0 0 16 16" fill="currentColor" class="h-3.5 w-3.5 shrink-0 text-priority-high"><rect x="2" y="8" width="3.5" height="6" rx="1"/><rect x="6.25" y="5" width="3.5" height="9" rx="1"/><rect x="10.5" y="2" width="3.5" height="12" rx="1"/></svg></div>
- <div class="flex min-w-0 flex-1 items-center gap-2"><span class="min-w-16 shrink-0 text-caption text-issue-row-identifier">ACM-142</span><span class="flex min-w-0 flex-1 items-center gap-1.5"><span class="truncate">Ship the onboarding checklist</span><span class="ml-1.5 inline-flex shrink-0 items-center gap-1"><span data-slot="label-chip" data-mc="label-chip" data-color="#8b5cf6" class="inline-flex min-w-0 items-center gap-1 rounded-label px-2 py-0.5 text-caption font-medium" style="background-color: #8b5cf6; color: #f9fafb"><span class="max-w-[12rem] truncate">Design</span></span></span></span></div>
+ <div class="flex min-w-0 flex-1 items-center gap-2"><span class="min-w-16 shrink-0 text-caption text-issue-row-identifier">ACM-142</span><span class="flex min-w-0 flex-1 items-center gap-1.5"><span class="truncate">Ship the onboarding checklist</span><span class="ml-1.5 inline-flex shrink-0 items-center gap-1"><span data-slot="label-chip" data-mc="label-chip" data-color="#8b5cf6" class="inline-flex min-w-0 items-center gap-1 rounded-label bg-(--label-color) px-2 py-0.5 text-caption font-medium text-(--label-foreground)" style="--label-color: #8b5cf6; --label-foreground: #f9fafb"><span class="max-w-[12rem] truncate">Design</span></span></span></span></div>
</div>
- <div data-slot="issue-list-row" data-mc="issue-row" data-status="in_progress" data-priority="medium" data-assignee-type="member" class="flex h-[var(--issue-row-height)] items-center gap-2 bg-issue-row-selected px-[var(--issue-row-padding-x,1rem)] text-body">
+ <div data-slot="issue-list-row" data-mc="issue-row" data-status="in_progress" data-priority="medium" data-assignee-type="member" data-parity="odd" data-selected="true" class="flex h-[var(--issue-row-height)] items-center gap-2 bg-issue-row-selected px-[var(--issue-row-padding-x,1rem)] text-body">
<div class="relative flex h-4 w-4 shrink-0 items-center justify-center"><input type="checkbox" checked class="absolute inset-0 accent-primary"></div>
- <div class="flex min-w-0 flex-1 items-center gap-2"><span class="min-w-16 shrink-0 text-caption text-issue-row-identifier">ACM-139</span><span class="flex min-w-0 flex-1 items-center gap-1.5"><span class="truncate">Retry failed webhook deliveries</span><span class="inline-grid min-w-0 max-w-full max-w-[40%]"><span class="flex min-w-0 items-center gap-1 overflow-hidden"><span title="acme/app#412" class="inline-flex min-w-0 max-w-[140px] items-center gap-1 rounded-full bg-muted/60 px-1.5 py-0.5 text-micro text-muted-foreground tabular-nums"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" class="icon icon-git-pull-request-closed size-3 shrink-0 text-pr-closed dark:text-pr-closed-dark"><circle cx="6.25" cy="6" r="2.75"/><circle cx="17.75" cy="18" r="2.75"/><path d="M6.25 8.75v12.5M17.75 15.25V11M15.5 3.5 20 8M20 3.5 15.5 8"/></svg><span class="flex min-w-0"><span class="shrink-0">#412</span></span></span></span></span><span class="ml-1.5 inline-flex shrink-0 items-center gap-1"><span data-slot="label-chip" data-mc="label-chip" data-color="#0ea5e9" class="inline-flex min-w-0 items-center gap-1 rounded-label px-2 py-0.5 text-caption font-medium" style="background-color: #0ea5e9; color: #f9fafb"><span class="max-w-[12rem] truncate">Platform</span></span></span></span></div>
+ <div class="flex min-w-0 flex-1 items-center gap-2"><span class="min-w-16 shrink-0 text-caption text-issue-row-identifier">ACM-139</span><span class="flex min-w-0 flex-1 items-center gap-1.5"><span class="truncate">Retry failed webhook deliveries</span><span class="inline-grid min-w-0 max-w-full max-w-[40%]"><span class="flex min-w-0 items-center gap-1 overflow-hidden"><span title="acme/app#412" class="inline-flex min-w-0 max-w-[140px] items-center gap-1 rounded-full bg-muted/60 px-1.5 py-0.5 text-micro text-muted-foreground tabular-nums"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" class="icon icon-git-pull-request-closed size-3 shrink-0 text-pr-closed dark:text-pr-closed-dark"><circle cx="6.25" cy="6" r="2.75"/><circle cx="17.75" cy="18" r="2.75"/><path d="M6.25 8.75v12.5M17.75 15.25V11M15.5 3.5 20 8M20 3.5 15.5 8"/></svg><span class="flex min-w-0"><span class="shrink-0">#412</span></span></span></span></span><span class="ml-1.5 inline-flex shrink-0 items-center gap-1"><span data-slot="label-chip" data-mc="label-chip" data-color="#0ea5e9" class="inline-flex min-w-0 items-center gap-1 rounded-label bg-(--label-color) px-2 py-0.5 text-caption font-medium text-(--label-foreground)" style="--label-color: #0ea5e9; --label-foreground: #f9fafb"><span class="max-w-[12rem] truncate">Platform</span></span></span></span></div>
</div>
</div>
<div>
@@ -107,7 +108,7 @@
<div class="flex items-center pl-3"><input type="checkbox" class="accent-primary"></div>
<div class="flex h-full flex-1 items-center gap-2 px-2"><svg class="icon icon-chevron-right size-3.5 shrink-0 rotate-90 text-muted-foreground" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 6L15 12 9 18"/></svg><div class="flex items-center gap-2"><span class="inline-flex items-center gap-1.5 text-caption font-semibold"><svg data-mc="status-icon" viewBox="0 0 14 14" fill="none" class="h-3 w-3 shrink-0 text-status-in-review"><circle cx="7" cy="7" r="6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-dasharray="3.14 0" stroke-dashoffset="-0.7"/><path d="M7,7 L7,3.5 A3.5,3.5 0 1,1 3.5,7 Z" fill="currentColor"/></svg>In Review</span><span class="text-caption text-muted-foreground">1</span></div></div>
</div>
- <div data-slot="issue-list-row" data-mc="issue-row" data-status="in_review" data-priority="low" data-assignee-type="agent" class="flex h-[var(--issue-row-height)] items-center gap-2 px-[var(--issue-row-padding-x,1rem)] text-body">
+ <div data-slot="issue-list-row" data-mc="issue-row" data-status="in_review" data-priority="low" data-assignee-type="agent" data-parity="even" data-selected="false" class="flex h-[var(--issue-row-height)] items-center gap-2 px-[var(--issue-row-padding-x,1rem)] text-body">
<div class="relative flex h-4 w-4 shrink-0 items-center justify-center"><svg data-mc="priority-icon" viewBox="0 0 16 16" fill="currentColor" class="h-3.5 w-3.5 shrink-0 text-priority-low"><rect x="2" y="8" width="3.5" height="6" rx="1"/><rect x="6.25" y="5" width="3.5" height="9" rx="1" opacity="0.35"/><rect x="10.5" y="2" width="3.5" height="12" rx="1" opacity="0.35"/></svg></div>
<div class="flex min-w-0 flex-1 items-center gap-2"><span class="min-w-16 shrink-0 text-caption text-issue-row-identifier">ACM-133</span><span class="flex min-w-0 flex-1 items-center gap-1.5"><span class="truncate">Invite links that expire</span><span class="inline-grid min-w-0 max-w-full max-w-[40%]"><span class="flex min-w-0 items-center gap-1 overflow-hidden"><span title="acme/app#431" class="inline-flex min-w-0 max-w-[140px] items-center gap-1 rounded-full bg-muted/60 px-1.5 py-0.5 text-micro text-muted-foreground tabular-nums"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" class="icon icon-git-pull-request-arrow size-3 shrink-0 text-pr-open dark:text-pr-open-dark"><circle cx="6.25" cy="6" r="2.75"/><circle cx="17.75" cy="18" r="2.75"/><path d="M6.25 8.75v12.5M12.75 6h2.5a2.5 2.5 0 0 1 2.5 2.5v6.75M15 3.5L12.75 6 15 8.5"/></svg><span class="flex min-w-0"><span class="shrink-0">#431</span></span></span></span></span></span></div>
</div>
@@ -117,7 +118,7 @@
<div class="flex items-center pl-3"><input type="checkbox" class="accent-primary"></div>
<div class="flex h-full flex-1 items-center gap-2 px-2"><svg class="icon icon-chevron-right size-3.5 shrink-0 rotate-90 text-muted-foreground" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 6L15 12 9 18"/></svg><div class="flex items-center gap-2"><span class="inline-flex items-center gap-1.5 text-caption font-semibold"><svg data-mc="status-icon" viewBox="0 0 14 14" fill="none" class="h-3 w-3 shrink-0 text-status-done"><circle cx="7" cy="7" r="6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-dasharray="3.14 0" stroke-dashoffset="-0.7"/><circle cx="7" cy="7" r="6" fill="currentColor"/><path d="M10.951 4.24896C11.283 4.58091 11.283 5.11909 10.951 5.45104L5.95104 10.451C5.61909 10.783 5.0809 10.783 4.74896 10.451L2.74896 8.45104C2.41701 8.11909 2.41701 7.5809 2.74896 7.24896C3.0809 6.91701 3.61909 6.91701 3.95104 7.24896L5.35 8.64792L9.74896 4.24896C10.0809 3.91701 10.6191 3.91701 10.951 4.24896Z" fill="white" stroke="none"/></svg>Done</span><span class="text-caption text-muted-foreground">1</span></div></div>
</div>
- <div data-slot="issue-list-row" data-mc="issue-row" data-status="done" data-priority="medium" data-assignee-type="member" class="flex h-[var(--issue-row-height)] items-center gap-2 px-[var(--issue-row-padding-x,1rem)] text-body">
+ <div data-slot="issue-list-row" data-mc="issue-row" data-status="done" data-priority="medium" data-assignee-type="member" data-parity="even" data-selected="false" class="flex h-[var(--issue-row-height)] items-center gap-2 px-[var(--issue-row-padding-x,1rem)] text-body">
<div class="relative flex h-4 w-4 shrink-0 items-center justify-center"><svg data-mc="priority-icon" viewBox="0 0 16 16" fill="currentColor" class="h-3.5 w-3.5 shrink-0 text-priority-medium"><rect x="2" y="8" width="3.5" height="6" rx="1"/><rect x="6.25" y="5" width="3.5" height="9" rx="1"/><rect x="10.5" y="2" width="3.5" height="12" rx="1" opacity="0.35"/></svg></div>
<div class="flex min-w-0 flex-1 items-center gap-2"><span class="min-w-16 shrink-0 text-caption text-issue-row-identifier">ACM-120</span><span class="flex min-w-0 flex-1 items-center gap-1.5"><span class="truncate">Single sign-on with Okta</span><span class="inline-grid min-w-0 max-w-full max-w-[40%]"><span class="flex min-w-0 items-center gap-1 overflow-hidden"><span title="acme/app#398" class="inline-flex min-w-0 max-w-[140px] items-center gap-1 rounded-full bg-muted/60 px-1.5 py-0.5 text-micro text-muted-foreground tabular-nums"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" class="icon icon-git-merge size-3 shrink-0 text-pr-merged dark:text-pr-merged-dark"><circle cx="6.5" cy="5.75" r="2.75"/><circle cx="17.5" cy="17.25" r="2.75"/><path d="M6.5 8.5v12.75M6.5 8.5c0 4.8 3.45 8.75 8.25 8.75"/></svg><span class="flex min-w-0"><span class="shrink-0">#398</span></span></span></span></span></span></div>
</div>
@@ -144,7 +145,7 @@
<span class="inline-flex h-[var(--button-height-xs)] items-center gap-1.5 overflow-hidden rounded-md border px-2 text-caption"><svg data-mc="status-icon" viewBox="0 0 14 14" fill="none" class="h-3.5 w-3.5 shrink-0 text-status-in-progress"><circle cx="7" cy="7" r="6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-dasharray="3.14 0" stroke-dashoffset="-0.7"/><path d="M7,7 L7,3.5 A3.5,3.5 0 0,1 7,10.5 Z" fill="currentColor"/></svg><span class="truncate">In Progress</span></span>
<span class="inline-flex h-[var(--button-height-xs)] items-center gap-1.5 overflow-hidden rounded-md border px-2 text-caption"><svg data-mc="priority-icon" viewBox="0 0 16 16" fill="currentColor" class="h-3.5 w-3.5 shrink-0 text-priority-high"><rect x="2" y="8" width="3.5" height="6" rx="1"/><rect x="6.25" y="5" width="3.5" height="9" rx="1"/><rect x="10.5" y="2" width="3.5" height="12" rx="1"/></svg><span class="truncate">High</span></span>
<span class="inline-flex h-[var(--button-height-xs)] items-center gap-1.5 overflow-hidden rounded-md border px-2 text-caption"><span class="inline-flex size-4 shrink-0 items-center justify-center overflow-hidden rounded-full bg-muted text-[9px] font-medium text-muted-foreground">L</span><span class="truncate">Lambda</span></span>
- <span class="inline-flex h-[var(--button-height-xs)] items-center gap-1.5 overflow-hidden rounded-md border px-2 text-caption [&_[data-slot=label-chip]]:py-0"><span data-slot="label-chip" data-mc="label-chip" data-color="#8b5cf6" class="inline-flex min-w-0 items-center gap-1 rounded-label px-2 py-0.5 text-caption font-medium" style="background-color: #8b5cf6; color: #f9fafb"><span class="max-w-[12rem] truncate">Design</span></span></span>
+ <span class="inline-flex h-[var(--button-height-xs)] items-center gap-1.5 overflow-hidden rounded-md border px-2 text-caption [&_[data-slot=label-chip]]:py-0"><span data-slot="label-chip" data-mc="label-chip" data-color="#8b5cf6" class="inline-flex min-w-0 items-center gap-1 rounded-label bg-(--label-color) px-2 py-0.5 text-caption font-medium text-(--label-foreground)" style="--label-color: #8b5cf6; --label-foreground: #f9fafb"><span class="max-w-[12rem] truncate">Design</span></span></span>
</div>
<div data-mc="content" class="rich-text-editor mt-5 text-body">
<p>New workspaces should see a short checklist on the dashboard: connect a repository, create an agent and assign it a first issue.</p>