Your own team of AI bots in one self-hosted binary: spaces, every account you have, handoffs, approvals and routines. Open-source, self-hosted alternative to Grok Bot, Claude Duet and OpenAI dots. Rust + React.
Rust ai-agentsai-assistantai-botautomationbotbots-teamchatbotclaude-duetgrokgrok-botgrok-bot-alternativeharnessllmmulti-agentopenai-dotsopenbotpersonal-agentrustself-hostedselfhosted-ai
0.7.1: Dev desk style v2 (PX-2, PX-3) (#346)
Oleksandr Ivanchenko2727b1f0a162
diff --git a/frontend/src/components/DevDesk.tsx b/frontend/src/components/DevDesk.tsxindex be3dfc0d..e2c537f1 100644--- a/frontend/src/components/DevDesk.tsx+++ b/frontend/src/components/DevDesk.tsx@@ -3,8 +3,8 @@// SSE (App re-sends it as DEV_CARD_EVENT) and mounts Iris's cards (#314) through DevDeskSlots.import React, { useCallback, useEffect, useId, useRef, useState, useSyncExternalStore } from 'react';-import { ChevronLeft, Code, Loader2, RefreshCw } from 'lucide-react';-import { DevModeState, devApi, devStore, deskStatus, firstRun } from '../devMode';+import { ChevronLeft, Code, RefreshCw } from 'lucide-react';+import { DevModeState, devApi, devStore, deskStatus, firstRun, statusLine } from '../devMode';import { FindingAction, LandedPage, ShellCard, asCard, parseCards, parseLandedPage } from '../dev/shellTypes';import { LandedList, ReleaseNotesSheet, ReviewCard, Rollup } from './DevDeskSlots';import { useDevMode } from './DevModeSwitch';@@ -180,7 +180,7 @@ export interface DevDeskViewProps {onOpenLooseEnds?: () => void;}-export const DevDeskView: React.FC<DevDeskViewProps> = ({ spaceId, spaceName, onBack, onSaveToNotion, initialTab = 'landed', now, onOpenLooseEnds }) => {+export const DevDeskView: React.FC<DevDeskViewProps> = ({ spaceId, onBack, onSaveToNotion, initialTab = 'landed', now, onOpenLooseEnds }) => {const desk = useDesk(spaceId, true);const dev = useDevMode(spaceId);const [tab, setTab] = useState<Tab>(initialTab);@@ -309,9 +309,17 @@ export const DevDeskView: React.FC<DevDeskViewProps> = ({ spaceId, spaceName, onconst newest = landedCards[0];const lastMerge = newest && typeof newest.pr === 'number' ? { pr: newest.pr, merged_at: newest.merged_at ?? null } : null;const unseen = landed?.rollup?.count ?? 0;+ // Style-v2 review (Mira, 23:30): the rollup, the tab count and the list must agree.+ // No cards and a zero rollup: the empty card alone says it (no merges yet, or nothing new); a+ // "Nothing landed since you last looked" rollup above it would only repeat it.+ const nothingLanded = !landedCards.length && unseen === 0;+ const rollupSaysLanded = unseen > 0 && !landedCards.length;+ const showRollup =+ dev?.status !== 'not_connected' && dev?.status !== 'no_repo' && !firstVisit && !nothingLanded && !rollupSaysLanded;const open = openReviews(desk.reviews);const first = !landed && !desk.reviews;const polling = firstPolling(dev, landedCards.length);+ const statusShown = statusLine(dev) !== null;const tabs: Array<{ key: Tab; label: string; count: number }> = [{ key: 'landed', label: 'What landed', count: unseen },@@ -334,16 +342,20 @@ export const DevDeskView: React.FC<DevDeskViewProps> = ({ spaceId, spaceName, on<ChevronLeft size={18} /></button>)}+ <span className="kw-dv-glyph" aria-hidden="true">+ </>+ </span><div className="min-w-0 flex-1">- <h2 className="text-sm font-semibold text-zinc-100 truncate">Dev desk</h2>- <p className="text-[11px] text-zinc-400 truncate mt-0.5">What landed in {spaceName}, and the open pull requests</p>+ <h2 className="text-[17px] leading-6 font-semibold text-zinc-50 truncate">Dev desk</h2>+ <p className="hidden sm:block text-meta text-zinc-400 truncate">What landed and what needs a look</p></div>{dev?.repo && !dev.status && (<span className="hidden sm:inline-flex shrink-0 font-mono text-[11px] text-zinc-300 px-2 py-0.5 rounded-md bg-white/[0.04] border border-zinc-700/60" data-dev-repo-chip>{dev.repo} · {dev.branch || 'main'}</span>)}- {desk.checkedAt != null && (+ {/* An older server has no status line, so "Checked" stays up here for it. */}+ {desk.checkedAt != null && !statusShown && (<span className="shrink-0 text-[11px] text-zinc-500 tabular-nums" data-dev-checked>Checked {checkedLabel(desk.checkedAt)}</span>@@ -353,20 +365,27 @@ export const DevDeskView: React.FC<DevDeskViewProps> = ({ spaceId, spaceName, ononClick={() => void deskStore.load(spaceId)}disabled={desk.loading}aria-label="Refresh"- className={`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg text-xs text-zinc-300 border border-zinc-700/60 hover:bg-zinc-800 disabled:opacity-60 ${focusRing}`}+ data-dev-refresh+ className="kw-btn-ghost shrink-0 max-sm:w-11 max-sm:h-11 max-sm:px-0 disabled:opacity-60">- <RefreshCw size={12} className={desk.loading ? 'animate-spin motion-reduce:animate-none' : ''} aria-hidden="true" />+ <RefreshCw size={14} className={desk.loading ? 'animate-spin motion-reduce:animate-none' : ''} aria-hidden="true" /><span className="hidden sm:inline">Refresh</span></button></div>+ <DevStatusLine+ spaceId={spaceId}+ state={dev}+ onConnect={onOpenLooseEnds}+ checked={desk.checkedAt != null ? checkedLabel(desk.checkedAt) : null}+ checkedAt={desk.checkedAt ?? null}+ /><div className="flex-1 overflow-y-auto overflow-x-hidden p-4 sm:p-6" aria-busy={desk.loading}><div className="max-w-[760px] mx-auto space-y-4">- <DevStatusLine spaceId={spaceId} state={dev} onConnect={onOpenLooseEnds} />{intro && dev?.on && (- <DevIntro repo={(dev.status ?? (dev.repo ? 'watching' : 'no_repo')) === 'watching' ? dev.repo : null} onClose={() => setIntro(false)} />+ <DevIntro cmd="kwant dev --on" repo={(dev.status ?? (dev.repo ? 'watching' : 'no_repo')) === 'watching' ? dev.repo : null} onClose={() => setIntro(false)} />)}- <div role="tablist" aria-label="Dev desk" className="flex gap-1">+ <div role="tablist" aria-label="Dev desk" className="kw-dv-tabs">{tabs.map((t, i) => {const on = t.key === tab;return (@@ -382,12 +401,10 @@ export const DevDeskView: React.FC<DevDeskViewProps> = ({ spaceId, spaceName, ononKeyDown={(e) => onTabKey(e, i)}onClick={() => setTab(t.key)}data-dev-tab={t.key}- className={`inline-flex items-center gap-1.5 min-h-[44px] sm:min-h-[36px] px-3 rounded-lg text-xs font-medium ${focusRing} ${- on ? 'bg-zinc-800 text-zinc-100 border border-zinc-700' : 'text-zinc-400 border border-transparent hover:text-zinc-200'- }`}+ className={`kw-dv-tab ${focusRing}`}>{t.label}- {t.count > 0 && <span className="min-w-[18px] h-[18px] px-1 rounded-full bg-zinc-700 text-2xs text-zinc-100 flex items-center justify-center tabular-nums">{t.count}</span>}+ {t.count > 0 && <span className="kw-dv-tab-count">{t.count}</span>}</button>);})}@@ -408,13 +425,14 @@ export const DevDeskView: React.FC<DevDeskViewProps> = ({ spaceId, spaceName, on{tab === 'landed' && polling ? (<SkeletonCards />) : first && desk.loading ? (- <p className="flex items-center gap-2 py-8 justify-center text-meta text-zinc-400" data-dev-loading>- <Loader2 size={14} className="animate-spin motion-reduce:animate-none" aria-hidden="true" />- Loading the Dev desk…- </p>+ // Flow copy §6 on the first visit; style-v2 §9 "Reading main" with 2 cards on later loads.+ firstVisit ? <SkeletonCards /> : <SkeletonCards line="Reading main" n={2} />) : tab === 'landed' ? (<>- {landed?.rollup && landedCards.length > 0 && (+ {/* No repo or no connection: the empty below says why; a "nothing landed" rollup would contradict it.+ First visit: there is no "last look" yet; the first-run block and the empty say it all.+ A non-zero rollup only shows with the cards it counts. */}+ {showRollup && landed?.rollup && (<Rolluprollup={landed.rollup}last_tag={landed.last_tag}@@ -435,17 +453,30 @@ export const DevDeskView: React.FC<DevDeskViewProps> = ({ spaceId, spaceName, on<TermEmpty out="(no repo yet)" title="Cards show up once there’s a repo." line="The production floor already works." />) : (landed &&+ !rollupSaysLanded &&(firstVisit ? (<TermEmpty out="(no merges yet)" title="No merges on main yet." line="They show up here as short cards in plain words." />) : (- <Empty title="Nothing has landed yet" line="Each merge to main shows up here as a short card in plain words. kwant checks every 5 minutes." />+ <TermEmpty+ cmd='git log main --since="your last look"'+ out="(nothing new)"+ title="Nothing new on main"+ line="Merges show up here as short cards in plain words. kwant checks every 5 minutes."+ />)))}</>) : reviews.length ? (reviews.map((c) => <ReviewCard key={c.id} card={c} onFinding={onFinding} onPost={onPost} forge={dev?.forge ?? null} forgeLogin={dev?.forge_login ?? null} now={now} />)) : (- desk.reviews && <Empty title="No open pull requests" line="Each open PR gets a review here from a bot that didn’t write it." />+ desk.reviews && (+ <TermEmpty+ cmd="kwant reviews --open"+ out="0 open changes"+ title="No open changes to review"+ line="When a bot opens a pull request, a second bot reads it and the card lands here."+ />+ ))}</div></div>@@ -474,14 +505,15 @@ export const DevDeskView: React.FC<DevDeskViewProps> = ({ spaceId, spaceName, on};/** Still placeholders (no shimmer, style v2 §9) while the first poll reads the last 5 merges. */-const SkeletonCards: React.FC = () => (- <div data-dev-skeleton>+const SkeletonCards: React.FC<{ line?: string; n?: number }> = ({ line = 'Reading the last 5 merges…', n = 3 }) => (+ <div data-dev-skeleton data-dev-loading><p role="status" className="flex items-center gap-2 pb-1 font-mono text-[12px] text-zinc-300"><span className="dv-led" data-s="run" aria-hidden="true" />- Reading the last 5 merges…<span className="kw-dv-intro-caret" aria-hidden="true" />+ {line}+ <span className="kw-dv-intro-caret" aria-hidden="true" /></p><div className="space-y-3" aria-hidden="true">- {[0, 1, 2].map((i) => (+ {[0, 1, 2].slice(0, n).map((i) => (<div key={i} className="kw-dv-skel rounded-2xl border border-hairline px-4 py-3.5"><div className="flex items-center gap-2"><span className="kw-dv-skel-bar w-12 h-3" />@@ -496,10 +528,10 @@ const SkeletonCards: React.FC = () => ();/** Flow copy §6: a first-visit empty state as a tiny terminal, `$ git log main -5` and its output. */-const TermEmpty: React.FC<{ out: string; title: string; line: string }> = ({ out, title, line }) => (+const TermEmpty: React.FC<{ cmd?: string; out: string; title: string; line: string }> = ({ cmd = 'git log main -5', out, title, line }) => (<div className="rounded-2xl border border-dashed border-hairline-strong px-5 py-6" data-dev-empty data-dev-empty-term>- <p className="font-mono text-[12px] text-zinc-500" aria-hidden="true">- <span className="text-sky-300">$</span> git log main -5+ <p className="font-mono text-[12px] text-zinc-500 break-words" aria-hidden="true">+ <span className="text-sky-300">$</span> {cmd}<br />{out}<span className="kw-dv-intro-caret" />@@ -509,13 +541,6 @@ const TermEmpty: React.FC<{ out: string; title: string; line: string }> = ({ out</div>);-const Empty: React.FC<{ title: string; line: string }> = ({ title, line }) => (- <div className="rounded-2xl border border-dashed border-hairline-strong px-5 py-8 text-center" data-dev-empty>- <p className="text-body font-medium text-zinc-200">{title}</p>- <p className="mt-1 text-meta text-zinc-400">{line}</p>- </div>-);-// ---------------------------------------------------------------------------// First run (flow copy §5): a terminal-style block above the cards on the first visit only. Got it hides// it for good; it is the only control.@@ -526,10 +551,11 @@ export const DEV_FEATURES = [{ key: 'floor', n: '03', title: 'Production floor.', line: 'Deploys and live-database commands wait for your OK.' },] as const;-const DevIntro: React.FC<{ repo: string | null; onClose: () => void }> = ({ repo, onClose }) => (+// cmd is the terminal line the intro types out (copy.md §5), not prose.+const DevIntro: React.FC<{ repo: string | null; onClose: () => void; cmd: string }> = ({ repo, onClose, cmd }) => (<section className="kw-dv-intro relative" aria-labelledby="dv-intro-h" data-dev-intro><p className="font-mono text-[11px] leading-relaxed text-zinc-500" aria-hidden="true">- <span className="text-sky-300">$</span> dev --on+ <span className="text-sky-300">$</span> {cmd}<br /><span className="text-sky-300">HEAD → dev</span> · {repo ? `watching ${repo}` : 'guards up'}<span className="kw-dv-intro-caret" />@@ -553,7 +579,7 @@ const DevIntro: React.FC<{ repo: string | null; onClose: () => void }> = ({ repotype="button"onClick={onClose}data-dev-intro-close- className={`mt-2.5 -ml-2 inline-flex items-center min-h-[44px] sm:min-h-[32px] px-2 rounded-lg text-meta font-semibold text-zinc-200 hover:bg-white/5 ${focusRing}`}+ className={`mt-2.5 -ml-1 inline-flex items-center min-h-[44px] sm:min-h-[28px] px-2 rounded-lg text-meta font-semibold text-sky-300 hover:bg-sky-500/10 ${focusRing}`}>Got it</button>diff --git a/frontend/src/components/DevStatusLine.tsx b/frontend/src/components/DevStatusLine.tsxindex 116c2fde..0199b1e0 100644--- a/frontend/src/components/DevStatusLine.tsx+++ b/frontend/src/components/DevStatusLine.tsx@@ -4,17 +4,17 @@// blocks anything: the production floor and the command guards are on in every status.import React, { useEffect, useId, useRef, useState } from 'react';-import { Check, FolderGit2, FolderSearch, Hourglass, Link2, Loader2, LucideIcon, PlugZap, Radar } from 'lucide-react';+import { Check, ChevronDown, FolderGit2, Link2, Loader2 } from 'lucide-react';import { DevModeState, DevSource, StatusLine, deskIntent, devApi, devStore, statusLine, typedRepo, watchedSource } from '../devMode';const focusRing = 'focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-sky-400';-const ICON: Record<StatusLine['status'], LucideIcon> = {- watching: Radar,- not_connected: PlugZap,- other_host: Hourglass,- no_repo: FolderSearch,-};+/** style-v2 §4: the LED mirrors the status. ok only while a remote repo is really watched. */+export function statusLed(line: StatusLine, state: DevModeState): 'ok' | 'warn' | 'off' {+ if (line.status === 'not_connected') return 'warn';+ if (line.status === 'watching') return watchedSource(state)?.from === 'local' ? 'off' : 'ok';+ return 'off';+}export const sourceWhere = (s: DevSource): string => (s.from === 'repo' ? `${s.team}’s repo link` : s.from === 'local' ? `${s.team}’s folder, no remote` : `${s.team}’s folder`);@@ -23,17 +23,23 @@ export interface DevStatusLineProps {state: DevModeState | null;/** Opens Loose ends (Connect GitHub). Connect hides without it. */onConnect?: () => void;+ /** "Checked 19:58" at the right (style-v2 §4); the LED pings once each time it changes. */+ checked?: string | null;+ checkedAt?: number | null;/** Test hook. */save?: typeof devApi.putRepo;}-export const DevStatusLine: React.FC<DevStatusLineProps> = ({ spaceId, state, onConnect, save = devApi.putRepo }) => {+export const DevStatusLine: React.FC<DevStatusLineProps> = ({ spaceId, state, onConnect, checked = null, checkedAt = null, save = devApi.putRepo }) => {const line = statusLine(state);// The toast's "Type a repo" lands here with the list open and its input focused.const [open, setOpen] = useState<false | 'list' | 'type'>(() => (deskIntent.take(spaceId) ? 'type' : false));const switchBtn = useRef<HTMLButtonElement>(null);+ // One 200 ms ping when a check lands, not on first paint.+ const firstCheck = useRef(checkedAt);+ const ping = checkedAt != null && checkedAt !== firstCheck.current;if (!line || !state) return null;- const Icon = ICON[line.status];+ const led = statusLed(line, state);const action =line.action === 'switch' || line.action === 'type' ? (<button@@ -43,34 +49,46 @@ export const DevStatusLine: React.FC<DevStatusLineProps> = ({ spaceId, state, onaria-expanded={!!open}aria-haspopup="true"data-dv-status-action={line.action}- className={`kw-dv-status-btn ${line.action === 'type' ? 'kw-dv-status-btn-primary' : ''} ${focusRing}`}+ className={`act kw-dv-status-act ${focusRing}`}>{line.action === 'type' ? 'Type a repo' : 'Switch'}+ {line.action === 'switch' && <ChevronDown size={12} aria-hidden="true" className={open ? 'rotate-180' : ''} />}</button>) : line.action === 'connect' && onConnect ? (- <button type="button" onClick={onConnect} data-dv-status-action="connect" className={`kw-dv-status-btn kw-dv-status-btn-primary ${focusRing}`}>+ <button type="button" onClick={onConnect} data-dv-status-action="connect" className={`act kw-dv-status-act ${focusRing}`}>Connect GitHub</button>) : null;return (<div className="relative" data-dv-status-wrap>- <div role="status" className="kw-dv-status" data-dv-status={line.status}>- <span className="kw-dv-status-icon" aria-hidden="true">- <Icon size={13} aria-hidden="true" />- {line.status === 'watching' && <span className="kw-dv-status-ping" />}- </span>- <p className="min-w-0 flex-1 text-meta text-zinc-300 leading-snug" data-dv-status-text>- {line.parts.map((p, i) =>- p.mono ? (- <code key={i} className="font-mono text-[12px] text-zinc-100 break-all">- {p.text}- </code>- ) : (- <React.Fragment key={i}>{p.text}</React.Fragment>- ),- )}+ <div role="status" className="dv-statusline kw-dv-statusline" data-dv-status={line.status}>+ <p className="txt" data-dv-status-text>+ <span key={checkedAt ?? 0} className="dv-led" data-s={led} data-ping={ping || undefined} data-dv-led={led} aria-hidden="true" />+ <span>+ {line.parts.map((p, i) =>+ p.mono ? (+ // The branch follows " on "; the repo and host read as names.+ /\bon $/.test(line.parts[i - 1]?.text ?? '') ? (+ <code key={i} className="dv-code">+ {p.text}+ </code>+ ) : (+ <b key={i} className="font-mono text-[12px] break-all">+ {p.text}+ </b>+ )+ ) : (+ <React.Fragment key={i}>{p.text}</React.Fragment>+ ),+ )}+ </span></p>{action}+ {checked && (+ <span className="checked" data-dev-checked>+ Checked {checked}+ </span>+ )}</div>{open && (<SourcePicker@@ -185,7 +203,7 @@ const SourcePicker: React.FC<{ spaceId: string; state: DevModeState; save: typeo{busy === s.repo ? (<Loader2 size={13} className="shrink-0 animate-spin motion-reduce:animate-none text-zinc-300" aria-hidden="true" />) : on ? (- <Check size={14} className="shrink-0 text-ok" aria-hidden="true" />+ <Check size={14} className="shrink-0 text-sky-300" aria-hidden="true" />) : null}</button>);diff --git a/frontend/src/components/dev/Rollup.tsx b/frontend/src/components/dev/Rollup.tsxindex a5ff1ff7..ddaf389e 100644--- a/frontend/src/components/dev/Rollup.tsx+++ b/frontend/src/components/dev/Rollup.tsx@@ -24,7 +24,7 @@ export function rollupTiles<T extends { area: string }>(areas: T[], needsYou: st}/** The "Since you last looked" card at the top of What landed. */-export const Rollup: React.FC<RollupProps> = ({ rollup, last_tag, last_merge, branch = 'main', needsYouAreas = [], onDraftNotes, onMarkSeen, drafting = false, marking = false }) => {+export const Rollup: React.FC<RollupProps> = ({ rollup, last_merge, branch = 'main', needsYouAreas = [], onDraftNotes, onMarkSeen, drafting = false, marking = false }) => {const since = clock(rollup.since);const until = clock(rollup.until);const range = since && until ? `Since you last looked · ${since} → ${until}` : until ? `Everything so far · up to ${until}` : 'Since you last looked';@@ -93,23 +93,16 @@ export const Rollup: React.FC<RollupProps> = ({ rollup, last_tag, last_merge, br)}</ul>- <div className="mt-3 flex flex-wrap items-center gap-2">- <button type="button" onClick={onDraftNotes} disabled={drafting} aria-busy={drafting || undefined} className="kw-btn-primary min-h-[44px] sm:min-h-0 max-sm:flex-1">+ {/* Phones: both actions full width, one line each, Draft release notes first. The count is in the title. */}+ <div className="mt-3 flex flex-col gap-2 sm:flex-row sm:flex-wrap sm:items-center" data-dev-rollup-actions>+ <button type="button" onClick={onDraftNotes} disabled={drafting} aria-busy={drafting || undefined} className="kw-btn-primary min-h-[44px] sm:min-h-0 max-sm:w-full max-sm:justify-center whitespace-nowrap"><Sparkles size={14} aria-hidden="true" />{drafting ? 'Drafting…' : 'Draft release notes'}</button>- <button type="button" onClick={onMarkSeen} disabled={marking} aria-busy={marking || undefined} className="kw-btn-ghost min-h-[44px] sm:min-h-0 max-sm:flex-1">+ <button type="button" onClick={onMarkSeen} disabled={marking} aria-busy={marking || undefined} className="kw-btn-ghost min-h-[44px] sm:min-h-0 max-sm:w-full max-sm:justify-center whitespace-nowrap">{marking ? 'Marking…' : 'Mark all seen'}</button>{/* The "Send me this every morning" link is 0.7.x (plan §1): hidden. */}- <p className="w-full text-meta text-zinc-400 sm:ml-auto sm:w-auto">- {plural(rollup.count, 'change', 'changes')}- {last_tag && (- <>- {' '}since <code className="font-mono text-zinc-300">{last_tag}</code>- </>- )}- </p></div></section>);diff --git a/frontend/src/styles/devStatus.css b/frontend/src/styles/devStatus.cssindex a80812b8..a07a13f8 100644--- a/frontend/src/styles/devStatus.css+++ b/frontend/src/styles/devStatus.css@@ -4,48 +4,16 @@next update and no repo violet/zinc (nothing to do). Text is zinc-300 or brighter on the raisedsurface, so every line passes AA. */-.kw-dv-status {- display: flex;- align-items: center;- gap: 10px;- min-height: 44px;- padding: 7px 8px 7px 10px;- border-radius: 14px;- border: 1px solid rgb(255 255 255 / 0.1);- background:- linear-gradient(90deg, rgb(var(--kw-dv-tint) / 0.1), transparent 55%),- rgb(255 255 255 / 0.025);- box-shadow: inset 2px 0 0 rgb(var(--kw-dv-tint) / 0.75);- --kw-dv-tint: 157 143 255;-}-.kw-dv-status[data-dv-status='watching'] { --kw-dv-tint: 45 212 191; }-.kw-dv-status[data-dv-status='not_connected'] { --kw-dv-tint: 251 191 36; }-.kw-dv-status[data-dv-status='no_repo'] { --kw-dv-tint: 161 161 170; }--.kw-dv-status-icon {- position: relative;- flex: none;- width: 26px;- height: 26px;- display: grid;- place-items: center;- border-radius: 9px;- color: rgb(var(--kw-dv-tint));- background: rgb(var(--kw-dv-tint) / 0.12);- box-shadow: inset 0 0 0 1px rgb(var(--kw-dv-tint) / 0.25);-}-.kw-dv-status-ping {- position: absolute;- inset: 0;- border-radius: 9px;- box-shadow: 0 0 0 1px rgb(var(--kw-dv-tint) / 0.55);- animation: kw-dv-ping 2.4s var(--kw-ease) 3;- opacity: 0;-}-@keyframes kw-dv-ping {- 0% { transform: scale(1); opacity: 0.9; }- 70%, 100% { transform: scale(1.55); opacity: 0; }+/* style-v2 §4: the row itself is .dv-statusline (tokens). Phone: px-3, 44 px action. The LED's ping is+ .dv-led[data-ping] (one 200 ms ring when a check lands), static under reduced motion. */+@media (max-width: 639px) {+ .kw-dv-statusline { padding-left: 12px; padding-right: 12px; }+ .kw-dv-statusline .act { min-height: 44px; padding: 0 12px; }+ .kw-dv-statusline .checked { margin-left: 0; }}+.kw-dv-statusline .act:hover { background: rgb(157 143 255 / 0.1); }+.kw-dv-statusline .act[aria-expanded='true'] { background: rgb(157 143 255 / 0.14); }+.kw-dv-statusline .act svg { transition: transform 140ms var(--kw-ease); }.kw-dv-status-btn {flex: none;@@ -68,10 +36,10 @@.kw-dv-picker {position: absolute;- right: 0;+ right: 16px;top: calc(100% + 6px);z-index: 30;- width: min(360px, calc(100vw - 32px));+ width: min(340px, calc(100vw - 32px));padding: 10px 8px 6px;border-radius: 16px;border: 1px solid rgb(255 255 255 / 0.14);@@ -95,7 +63,8 @@transition: background-color 140ms var(--kw-ease), border-color 140ms var(--kw-ease);}.kw-dv-pick:hover:not(:disabled) { background: rgb(255 255 255 / 0.05); }-.kw-dv-pick[aria-checked='true'] { background: rgb(45 212 191 / 0.07); border-color: rgb(45 212 191 / 0.25); }+.kw-dv-pick[aria-checked='true'] { background: linear-gradient(135deg, rgb(122 98 240 / 0.22) 0%, rgb(91 71 214 / 0.10) 100%); border-color: rgb(184 173 255 / 0.25); }+@media (max-width: 639px) { .kw-dv-picker { left: 12px; right: 12px; width: auto; } }.kw-dv-pick-icon {flex: none;width: 26px;@@ -198,10 +167,64 @@}@media (prefers-reduced-motion: reduce) {- .kw-dv-status-ping, .kw-dv-intro-caret, .kw-dv-picker, .kw-dv-ontoast, .kw-dv-row-badge-pop { animation: none; }+ .kw-dv-intro-caret, .kw-dv-picker, .kw-dv-ontoast, .kw-dv-row-badge-pop { animation: none; }/* Reduced motion: the highlight shows for 2.8 s with no fades. */.kw-dv-row-fresh { animation: kw-dv-row-fresh-rm 2800ms steps(1, end) 1; }@keyframes kw-dv-row-fresh-rm { 0% { background-color: var(--kw-accent-soft, rgb(157 143 255 / 0.14)); } 100% { background-color: transparent; } }- .kw-dv-status-ping { opacity: 0; }.kw-dv-status-btn, .kw-dv-pick { transition: none; }}++/* style-v2 §3: the desk header's `</>` chip (mono 12, accent on accent-soft, radius 6). */+.kw-dv-glyph {+ flex: none;+ display: inline-grid;+ place-items: center;+ height: 24px;+ padding: 0 6px;+ border-radius: 6px;+ font: 600 12px/1 'JetBrains Mono', monospace;+ color: var(--dv-accent);+ background: linear-gradient(135deg, rgb(122 98 240 / 0.22) 0%, rgb(91 71 214 / 0.10) 100%);+}++/* style-v2 §3 tabs: a hairline under the row; the active tab is zinc-50 with a 2 px sky-400 underline+ inset 8 px. The count is a mono 10.5 chip on surface-overlay, radius 5. Phone: 44 px tall. */+.kw-dv-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--kw-hairline); }+.kw-dv-tab {+ position: relative;+ display: inline-flex;+ align-items: center;+ gap: 6px;+ min-height: 40px;+ padding: 0 12px;+ border-radius: 8px 8px 0 0;+ font-size: 13px;+ font-weight: 500;+ color: var(--dv-t4);+ transition: color 140ms var(--kw-ease);+}+.kw-dv-tab:hover { color: var(--dv-t2); }+.kw-dv-tab[aria-selected='true'] { color: var(--dv-t1); }+.kw-dv-tab[aria-selected='true']::after {+ content: '';+ position: absolute;+ left: 8px;+ right: 8px;+ bottom: -1px;+ height: 2px;+ border-radius: 2px;+ background: #9d8fff;+}+.kw-dv-tab-count {+ min-width: 18px;+ height: 18px;+ padding: 0 5px;+ display: inline-grid;+ place-items: center;+ border-radius: 5px;+ font: 600 10.5px/1 'JetBrains Mono', monospace;+ font-variant-numeric: tabular-nums;+ color: var(--dv-t2);+ background: var(--kw-surface-overlay);+}+@media (max-width: 639px) { .kw-dv-tab { min-height: 44px; } }diff --git a/frontend/tests/devAutodetect.test.mjs b/frontend/tests/devAutodetect.test.mjsindex ff8c42f4..f5c12bd5 100644--- a/frontend/tests/devAutodetect.test.mjs+++ b/frontend/tests/devAutodetect.test.mjs@@ -47,7 +47,7 @@ g.fetch = g.window.fetch = async (url, init = {}) => {if (method === 'PUT') server.state = { ...server.state, ...body, status: 'watching' };return json(server.state);}- if (u.includes('/dev/landed')) return json({ cards: [], rollup: { count: 0, areas: [] }, last_tag: null, last_merge: null });+ if (u.includes('/dev/landed')) return json(server.landed ?? { cards: [], rollup: { count: 0, areas: [] }, last_tag: null, last_merge: null });if (u.includes('/dev/reviews')) return json({ cards: [] });return json({});};@@ -64,6 +64,8 @@ const m = await loadBundled(`export { saveGate, SAVE_FIRST } from './src/passwordStore';export { nextTabStop } from './src/components/DevOnToast';export { lastOn } from './src/components/DevModeSwitch';+ export { Rollup as IrisRollup } from './src/components/dev/Rollup';+ export * as fx from './src/dev/fixtures';`);const { React, createRoot } = m;const h = React.createElement;@@ -231,6 +233,35 @@ test('DOM: each status renders one status line under the header; an older serverroot.unmount();});+test('PX-2 (style-v2 §3/§4): header chip and subtitle, LED per status, Checked in the status line, Refresh 44 px on phone', async () => {+ const want = { watching: 'ok', not_connected: 'warn', other_host: 'off', no_repo: 'off' };+ for (const [st, extra] of [+ ['watching', { repo: 'demo-org/demo-web', branch: 'main', sources: [SOURCES[0]] }],+ ['not_connected', { repo: 'demo-org/demo-web', sources: [SOURCES[0]] }],+ ['other_host', { repo: 'https://gitlab.example.test/demo/app', sources: [{ team: 'Web', repo: 'https://gitlab.example.test/demo/app', host: 'gitlab.example.test', from: 'folder' }] }],+ ['no_repo', { sources: [] }],+ ]) {+ const { root } = await desk({ status: st, ...extra }, { onOpenLooseEnds() {} });+ const line = document.querySelector('[data-dv-status]');+ assert.equal(line.querySelector('[data-dv-led]').dataset.s, want[st], `${st}: LED`);+ assert.match(line.querySelector('[data-dev-checked]').textContent, /^Checked \d\d:\d\d$/, `${st}: Checked lives in the status line`);+ assert.equal(document.querySelectorAll('[data-dev-checked]').length, 1, `${st}: not in the header too`);+ root.unmount();+ }+ const { root } = await desk({ status: 'watching', repo: 'demo-org/demo-web', branch: 'trunk', sources: [SOURCES[0]] });+ const glyph = document.querySelector('.kw-dv-glyph');+ assert.equal(glyph.textContent.trim(), '</>');+ const sub = [...document.querySelectorAll('[data-dev-desk] p')].find((p) => p.textContent === 'What landed and what needs a look');+ assert.ok(sub && sub.classList.contains('hidden') && sub.classList.contains('sm:block'), 'subtitle hides under 640');+ const refresh = document.querySelector('[data-dev-refresh]');+ assert.equal(refresh.getAttribute('aria-label'), 'Refresh');+ assert.ok(refresh.classList.contains('max-sm:w-11') && refresh.classList.contains('max-sm:h-11'), 'icon-only 44x44 on phone');+ const text = document.querySelector('[data-dv-status-text]');+ assert.equal(text.querySelector('b').textContent, 'demo-org/demo-web', 'repo reads as a bold name');+ assert.equal(text.querySelector('code.dv-code').textContent, 'trunk', 'branch is code');+ root.unmount();+});+test('DOM: Connect opens Loose ends; it hides when the app gives no way there', async () => {let opened = 0;const { root } = await desk({ status: 'not_connected', repo: 'demo-org/demo-web', sources: [SOURCES[0]] }, { onOpenLooseEnds: () => opened++ });@@ -520,6 +551,30 @@ test('F4 DOM: the first-run block shows on the first visit only, and Got it hidetwo.root.unmount();});+test('PX-3 (style-v2 §9): later visits say "Nothing new on main" and "No open changes to review"; the first run reads $ kwant dev --on', async () => {+ reset({ status: 'watching', repo: 'demo-org/demo-web', branch: 'main', sources: [SOURCES[0]], polled_at: '2026-11-05T09:00:00Z' });+ localStorage.setItem('kwnt.dev.intro.spc_demo', '1');+ m.devStore.set('spc_demo', m.parseDevMode(server.state));+ const later = await mount(h(m.DevDeskView, { spaceId: 'spc_demo', spaceName: 'Demo' }));+ assert.equal(document.querySelector('[data-dev-intro]'), null);+ const e = document.querySelector('[data-dev-empty-term]');+ assert.ok(e.textContent.includes('$ git log main --since="your last look"'));+ assert.ok(e.textContent.includes('(nothing new)'));+ assert.ok(e.textContent.includes('Nothing new on main'));+ assert.doesNotMatch(document.body.textContent, /No merges on main yet|Nothing has landed yet/);+ await click(document.querySelector('[data-dev-tab="reviews"]'));+ const r = document.querySelector('[data-dev-empty-term]');+ assert.ok(r.textContent.includes('$ kwant reviews --open'));+ assert.ok(r.textContent.includes('0 open changes'));+ assert.ok(r.textContent.includes('No open changes to review'));+ later.root.unmount();+ const first = await desk({ status: 'no_repo', sources: [] });+ assert.match(document.querySelector('[data-dev-intro]').textContent, /\$ kwant dev --on/);+ // no repo: no "nothing landed" rollup above the empty that says why+ assert.doesNotMatch(document.body.textContent, /Nothing landed since you last looked/);+ first.root.unmount();+});+test('F4 DOM: first-visit empty states speak git and never say "Nothing has landed yet"; 9+ caps the badge', async () => {for (const [over, out, title] of [[{ status: 'watching', repo: 'demo-org/demo-web', branch: 'main', sources: [SOURCES[0]], polled_at: '2026-11-05T09:00:00Z' }, '(no merges yet)', 'No merges on main yet.'],@@ -825,3 +880,75 @@ test('F8-R3-1: a space never seen in this browser shows the switch as loading (ng.fetch = g.window.fetch = realFetch;root.unmount();});++// ---------------------------------------------------------------------------+// Style-v2 review fixes (Mira, 23:30): the rollup, the tab count and the list agree++const landedDesk = async (landed, { later = true } = {}) => {+ reset({ status: 'watching', repo: 'demo-org/demo-web', branch: 'main', sources: [SOURCES[0]], polled_at: '2026-11-05T09:00:00Z' });+ server.landed = landed;+ if (later) localStorage.setItem('kwnt.dev.intro.spc_demo', '1');+ m.devStore.set('spc_demo', m.parseDevMode(server.state));+ return mount(h(m.DevDeskView, { spaceId: 'spc_demo', spaceName: 'Demo' }));+};+const ZERO = { since: '2026-11-05T18:00:00Z', until: '2026-11-05T21:00:00Z', count: 0, needs_you: 0, main_green: true, areas: [] };++test('fix 2: a first visit has no "Since you last looked" rollup, only the first-run block and "No merges on main yet."', async () => {+ const { root } = await landedDesk({ cards: [], rollup: ZERO, last_tag: null }, { later: false });+ assert.equal(!!document.querySelector('[data-dev-intro]'), true);+ assert.equal(!!document.querySelector('[data-dev-rollup]'), false, 'no rollup on a first visit');+ assert.doesNotMatch(document.body.textContent, /Since you last looked|Nothing landed since/);+ assert.match(document.querySelector('[data-dev-empty-term]').textContent, /No merges on main yet\./);+ root.unmount();+});++test('fix 2: a first visit with merges still has no rollup, but shows the cards', async () => {+ const { root } = await landedDesk({ cards: m.fx.LANDED_ROUTE.cards, rollup: { ...m.fx.ROLLUP_QUIET }, last_tag: null }, { later: false });+ assert.equal(!!document.querySelector('[data-dev-rollup]'), false);+ assert.equal(!!document.querySelector('[data-dev-empty-term]'), false);+ root.unmount();+});++test('fix 3: "Nothing new on main" shows only with a zero rollup, and then without a repeating rollup card', async () => {+ const zero = await landedDesk({ cards: [], rollup: ZERO, last_tag: null });+ assert.match(document.querySelector('[data-dev-empty-term]').textContent, /Nothing new on main/);+ assert.equal(!!document.querySelector('[data-dev-rollup]'), false, 'the empty card alone says it');+ zero.root.unmount();+ const odd = await landedDesk({ cards: [], rollup: { ...ZERO, count: 3, areas: [] }, last_tag: null });+ assert.equal(!!document.querySelector('[data-dev-rollup]'), false, 'no "3 changes landed" with no cards to show');+ assert.equal(!!document.querySelector('[data-dev-empty-term]'), false, 'and no "Nothing new on main" either');+ odd.root.unmount();+ const real = await landedDesk({ cards: m.fx.LANDED_ROUTE.cards, rollup: { ...m.fx.ROLLUP_QUIET }, last_tag: null });+ assert.equal(!!document.querySelector('[data-dev-rollup]'), true, 'later visit with cards: the rollup is back');+ assert.equal(!!document.querySelector('[data-dev-empty-term]'), false);+ real.root.unmount();+});++test('fix 4: rollup actions stack full width on one line below 640 px, Draft release notes first; no count caption', () => {+ const host = document.createElement('div');+ document.body.appendChild(host);+ const root = createRoot(host);+ root.render(h(m.IrisRollup, { rollup: m.fx.ROLLUP_QUIET, last_tag: 'v0.7.0', branch: 'main', onDraftNotes() {}, onMarkSeen() {} }));+ return settle().then(() => {+ const row = host.querySelector('[data-dev-rollup-actions]');+ assert.match(row.className, /(^| )flex-col( |$)/);+ assert.match(row.className, /sm:flex-row/);+ const btns = [...row.querySelectorAll('button')];+ assert.deepEqual(btns.map((b) => b.textContent.trim()), ['Draft release notes', 'Mark all seen']);+ for (const b of btns) {+ assert.match(b.className, /max-sm:w-full/);+ assert.match(b.className, /whitespace-nowrap/);+ assert.match(b.className, /min-h-\[44px\]/);+ }+ assert.equal(row.querySelectorAll('p').length, 0, 'no "N changes" caption');+ assert.doesNotMatch(host.textContent, /\d+ changes? since|v0\.7\.0/);+ root.unmount();+ });+});++test('first-run Got it: the same ghost style as the off note\'s Turn back on, 44 px on phone', async () => {+ const { root } = await landedDesk({ cards: [], rollup: ZERO, last_tag: null }, { later: false });+ const b = document.querySelector('[data-dev-intro-close]');+ for (const c of ['min-h-[44px]', 'sm:min-h-[28px]', 'text-sky-300', 'hover:bg-sky-500/10', 'rounded-lg', 'font-semibold']) assert.ok(b.className.includes(c), c);+ root.unmount();+});diff --git a/frontend/tests/devDeskWire.test.mjs b/frontend/tests/devDeskWire.test.mjsindex ccea7063..70e25783 100644--- a/frontend/tests/devDeskWire.test.mjs+++ b/frontend/tests/devDeskWire.test.mjs@@ -70,6 +70,8 @@ const mount = async (el) => {};const desk = async () => {m.deskStore._reset();+ // A later visit: the first visit has no "since you last looked" rollup (style-v2 review fix 2).+ localStorage.setItem('kwnt.dev.intro.spc_demo', '1');const host = await mount(h(m.DevDeskView, { spaceId: 'spc_demo', spaceName: 'Demo', now: fx.FIXTURE_NOW }));await settle();return host;@@ -83,7 +85,7 @@ const click = async (el) => {test('slot swap: What landed draws Iris’s rollup and landed cards; a card she can’t draw gets her fallback row', async () => {const host = await desk();assert.ok(host.querySelector('[data-dev-landed-list]'), 'Iris’s LandedList');- assert.equal(host.querySelector('[data-dev-slot]'), null, 'no placeholder cards are left');+ assert.equal(!!host.querySelector('[data-dev-slot]'), false, 'no placeholder cards are left');assert.match(host.textContent, /changes? landed on main/, 'Iris’s rollup title, with the branch');const prs = [...host.querySelectorAll('[data-dev-card="landed"][data-pr]')].map((c) => Number(c.getAttribute('data-pr')));assert.deepEqual(prs.sort(), [288, 289, 290, 301, 303]);@@ -92,7 +94,7 @@ test('slot swap: What landed draws Iris’s rollup and landed cards; a card sheassert.ok(direct, 'the direct commit draws as a landed card');assert.match(direct.textContent, /Fix typo in README/);assert.match(direct.textContent, /Commit c0ffee1/);- assert.equal(direct.querySelector('[data-verified]'), null);+ assert.equal(!!direct.querySelector('[data-verified]'), false);const fallback = host.querySelectorAll('[data-dev-card="fallback"]');assert.equal(fallback.length, 1);assert.match(fallback[0].textContent, /A card without a PR · This card couldn’t be shown\./);@@ -118,7 +120,7 @@ test('Open review: switches to Reviews, scrolls to that PR’s card and focusesassert.equal(reviewsTab.getAttribute('aria-selected'), 'true');const card = host.querySelector('[data-dev-card="review"][data-pr="289"]');const heading = card.querySelector('h3');- assert.equal(document.activeElement, heading, 'focus is on #289’s heading, not <body>');+ assert.equal(document.activeElement === heading, true, 'focus is on #289’s heading, not <body>');assert.equal(heading.getAttribute('tabindex'), '-1', 'focusable by script, not a tab stop');assert.deepEqual(scrolled, [['289', { block: 'start', behavior: 'smooth' }]]);});@@ -143,7 +145,7 @@ test('Open review: when that PR’s card isn’t on the desk, focus goes to theawait click(open);const reviewsTab = host.querySelector('[data-dev-tab="reviews"]');assert.equal(reviewsTab.getAttribute('aria-selected'), 'true');- assert.equal(document.activeElement, reviewsTab);+ assert.equal(document.activeElement === reviewsTab, true);assert.deepEqual(scrolled, []);});@@ -182,7 +184,7 @@ test('ProdFloorCard: a backup from the secondary Back up first that fails puts fconst main = host.querySelector('[data-floor-main]');assert.equal(main.getAttribute('data-floor-main'), 'retry');assert.equal(main.textContent.trim(), 'Try the backup again');- assert.equal(document.activeElement, main, `${failure}: focus is on Try again, not <body>`);+ assert.equal(document.activeElement === main, true, `${failure}: focus is on Try again, not <body>`);mounted.pop()();host.remove();}@@ -225,7 +227,7 @@ for (const outcome of ['ok', 'throws', 'not ok']) {composer.focus();release();await settle();- assert.equal(document.activeElement, composer, 'focus is not taken from the composer');+ assert.equal(document.activeElement === composer, true, 'focus is not taken from the composer');composer.dispatchEvent(new KeyboardEvent('keydown', { key: ' ', bubbles: true }));composer.dispatchEvent(new KeyboardEvent('keyup', { key: ' ', bubbles: true }));await settle();@@ -242,7 +244,7 @@ test('M1: with focus still in the card, a good backup lands focus on Allow thisawait settle();const main = host.querySelector('[data-floor-main]');assert.equal(main.textContent.trim(), 'Allow this deploy');- assert.equal(document.activeElement, main);+ assert.equal(document.activeElement === main, true);});test('S1: the secondary Back up first keeps focus during the backup and ignores presses while busy', async () => {@@ -251,7 +253,7 @@ test('S1: the secondary Back up first keeps focus during the backup and ignoresawait click(secondary);assert.equal(secondary.hasAttribute('disabled'), false, 'not disabled, so focus does not drop to <body>');assert.equal(secondary.getAttribute('aria-disabled'), 'true');- assert.equal(document.activeElement, secondary);+ assert.equal(document.activeElement === secondary, true);assert.equal(host.querySelector('[data-floor-case]').getAttribute('data-floor-case'), 'taking');// A second press while busy does nothing: still one backup in flight, still taking.const before = host.innerHTML;diff --git a/frontend/tests/devMode.test.mjs b/frontend/tests/devMode.test.mjsindex 9b103199..5fbcbcf2 100644--- a/frontend/tests/devMode.test.mjs+++ b/frontend/tests/devMode.test.mjs@@ -338,7 +338,7 @@ test('DOM: off → on is one press: PUT {on:true}, onTurnedOn, and a double-clicconst { host, root } = await mount(h(m.DevModeSwitch, { space: { id: 'spc_demo', name: 'Demo' }, onTurnedOn: () => turnedOn++ }));const b = switchEl(host);assert.equal(b.dataset.covered, undefined, 'off: no cover');- assert.equal(b.querySelector('[data-dv-glyph]'), null, 'off: no lock');+ assert.equal(!!b.querySelector('[data-dv-glyph]'), false, 'off: no lock');assert.equal(b.title, 'Dev mode: plain-words merges, code reviews, production floor');await click(b);await click(b);@@ -413,7 +413,7 @@ test('0.7.1 look (style v2 §10): the Branch switch; label dev → (one press) dassert.ok(b.classList.contains('kw-dv') && !b.classList.contains('kw-dv-rm'));assert.ok(b.classList.contains('h-11'), 'the phone target is 44 px tall');assert.ok(host.querySelector('[data-dev-switch-wrap]').className.includes('min-w-[44px]'));- for (const gone of ['.kw-dv-cover', '.kw-dv-hinge', '.kw-dv-ring', '.kw-dv-knob', '.kw-dv-track']) assert.equal(b.querySelector(gone), null, gone);+ for (const gone of ['.kw-dv-cover', '.kw-dv-hinge', '.kw-dv-ring', '.kw-dv-knob', '.kw-dv-track']) assert.equal(!!b.querySelector(gone), false, gone);const svg = b.querySelector('svg[data-dv-graph]');assert.equal(svg.getAttribute('viewBox'), '0 0 44 24');assert.equal(svg.querySelector('.kw-dv-base').getAttribute('d'), 'M2 17H42');@@ -461,8 +461,8 @@ test('DOM 0.7.1: the first switch-on turns Dev mode on with no dialog and sendsawait click(b); // flow F1: one pressawait settle();assert.equal(turnedOn?.on, true, 'onTurnedOn gets the saved state, for the toast');- assert.equal(document.querySelector('[role="dialog"]'), null, 'no setup sheet');- assert.equal(document.querySelector('[data-dev-setup]'), null);+ assert.equal(!!document.querySelector('[role="dialog"]'), false, 'no setup sheet');+ assert.equal(!!document.querySelector('[data-dev-setup]'), false);assert.deepEqual(server.calls.filter(([meth]) => meth === 'PUT').map(([, , body]) => body), [{ on: true }]);assert.equal(server.calls.filter(([, u]) => u.endsWith('/check')).length, 0, 'no repo check');assert.equal(b.dataset.on, 'true');@@ -529,7 +529,7 @@ test('DOM: a failed Turn on keeps the sheet open with the server’s reason', astest('Settings › Dev mode: hidden before the first switch-on; saves repo, branch, backup command; Turn off', async () => {reset();let v = await mount(h(m.DevModeSettings, { spaceId: 'spc_demo', spaceName: 'Demo' }));- assert.equal(v.host.querySelector('[data-dev-settings]'), null);+ assert.equal(!!v.host.querySelector('[data-dev-settings]'), false);v.root.unmount();reset({ ...off, on: true, repo: 'demo-org/demo-app', branch: 'main', polled_at: 'x' });@@ -599,7 +599,7 @@ test('Dev desk: empty What landed, then the Reviews tab by keyboard', async () =await settle();const now = [...host.querySelectorAll('[role="tab"]')];assert.equal(now[1].getAttribute('aria-selected'), 'true');- assert.equal(document.activeElement, now[1]);+ assert.equal(document.activeElement === now[1], true);root.unmount();});@@ -640,12 +640,13 @@ test('round 2: the Dev desk header shows the repo chip and when it was checked;assert.equal(chip.textContent, 'demo-org/demo-app · trunk');assert.ok(chip.classList.contains('hidden') && chip.classList.contains('sm:inline-flex'), 'chip hides at 390');assert.match(host.querySelector('[data-dev-checked]').textContent, /^Checked \d\d:\d\d$/);- for (const t of host.querySelectorAll('[role="tab"]')) assert.ok(t.classList.contains('min-h-[44px]'));+ // style-v2 §3: tabs are .kw-dv-tab (44 px under 640 px in devStatus.css), active = 2 px underline.+ for (const t of host.querySelectorAll('[role="tab"]')) assert.ok(t.classList.contains('kw-dv-tab'));root.unmount();m.devStore.set('spc_demo', { ...off, on: true, repo: null });m.deskStore._reset();const again = await mount(h(m.DevDeskView, { spaceId: 'spc_demo', spaceName: 'Demo' }));await settle(20);- assert.equal(again.host.querySelector('[data-dev-repo-chip]'), null, 'no repo known: no chip');+ assert.equal(!!again.host.querySelector('[data-dev-repo-chip]'), false, 'no repo known: no chip');again.root.unmount();});