The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): paint Capabilities hover instantly, ease only the exit
Brooklyn Nicholson7f622f521d19
diff --git a/apps/desktop/DESIGN.md b/apps/desktop/DESIGN.mdindex c51e0950cd2..3026147da07 100644--- a/apps/desktop/DESIGN.md+++ b/apps/desktop/DESIGN.md@@ -466,6 +466,11 @@ from their root base tokens; do not multiply the global tokens or nest CSS zoom.Its spring updates the DOM directly without per-frame React renders.- Quick, functional transitions (~100ms on controls). Respect`prefers-reduced-motion` for anything beyond a fade.+- Hover paints instantly; only the return eases. Put the transition on the+ resting state and drop it while hovered (`transition-colors duration-100+ hover:transition-none`, or the CSS equivalent on `:hover`). A group that+ dims siblings goes instant too. Exceptions are named, e.g. the catalog+ card's arc border fades in and out.- Choreographed exits (e.g. onboarding's "matrix" fade-down) stagger per-elementthen settle the surface — the outer container's fade is *delayed* so itdoesn't swallow the inner animation. Don't let a global fade race the detail.diff --git a/apps/desktop/src/app/capabilities/catalog/catalog-card.tsx b/apps/desktop/src/app/capabilities/catalog/catalog-card.tsxindex 34589dc124e..cc9b3dfe730 100644--- a/apps/desktop/src/app/capabilities/catalog/catalog-card.tsx+++ b/apps/desktop/src/app/capabilities/catalog/catalog-card.tsx@@ -105,7 +105,7 @@ export function CatalogCard({ entry, action, accentIndex, onOpen, onCategory, on<span className="catalog-card-title line-clamp-2 min-w-0 break-words text-lg">{variant === 'default' ? entry.name : catalogLabel(entry.name)}</span></RowButton>{variant === 'default' && action && (- <span className="relative shrink-0 opacity-[.66] transition-opacity group-hover:opacity-100 group-focus-within:opacity-100">+ <span className="relative shrink-0 opacity-[.66] transition-opacity group-hover:opacity-100 group-hover:transition-none group-focus-within:opacity-100 group-focus-within:transition-none">{action}</span>)}diff --git a/apps/desktop/src/app/capabilities/catalog/catalog.css b/apps/desktop/src/app/capabilities/catalog/catalog.cssindex 8de419f692e..ad25188c121 100644--- a/apps/desktop/src/app/capabilities/catalog/catalog.css+++ b/apps/desktop/src/app/capabilities/catalog/catalog.css@@ -43,6 +43,17 @@--catalog-near 5s ease;}+/* Hover paints instantly; only the return eases (DESIGN.md → Motion). That+ covers the hovered card and the siblings it dims; the pointer-follow lean+ keeps its glide. The arc below is the one exception and fades both ways. */+[data-catalog-card]:is(:hover, :focus-within),+[data-catalog-hover-group]:has([data-catalog-card]:hover) [data-catalog-card] {+ transition:+ --catalog-x 5s cubic-bezier(0.2, 0.8, 0.2, 1),+ --catalog-y 5s cubic-bezier(0.2, 0.8, 0.2, 1),+ --catalog-near 5s ease;+}+:root.dark [data-catalog-card] {--catalog-rest-x: 0%;--catalog-rest-y: 0%;@@ -99,4 +110,9 @@[data-catalog-card] {transition: border-color 0.1s ease, box-shadow 0.1s ease, opacity 0.15s ease, filter 0.15s ease;}++ [data-catalog-card]:is(:hover, :focus-within),+ [data-catalog-hover-group]:has([data-catalog-card]:hover) [data-catalog-card] {+ transition: none;+ }}diff --git a/apps/desktop/src/app/capabilities/connectors/connector-row-card.tsx b/apps/desktop/src/app/capabilities/connectors/connector-row-card.tsxindex 0c68b1a7ed1..5ed14f9b4ad 100644--- a/apps/desktop/src/app/capabilities/connectors/connector-row-card.tsx+++ b/apps/desktop/src/app/capabilities/connectors/connector-row-card.tsx@@ -80,7 +80,7 @@ export function ConnectorRowCard({return (<divclassName={cn(- 'relative flex items-center gap-3 rounded-lg border p-3 transition-colors duration-100',+ 'relative flex items-center gap-3 rounded-lg border p-3 transition-colors duration-500 hover:transition-none',selected? 'border-(--theme-primary) bg-(--ui-row-active-background)': 'border-(--ui-stroke-quaternary) bg-(--ui-bg-elevated) hover:bg-(--chrome-action-hover)'