Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(ui): chanel hover (#3292)
Fake-User24fe5fd27c22
diff --git a/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx b/js/app/packages/app/component/next-soup/soup-view/soup-view.tsxindex d342effc5e..336c4b3b74 100644--- a/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx+++ b/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx@@ -1029,10 +1029,7 @@ export const SoupViewList = (props: SoupViewListProps) => {DefaultGroupHeader}group={group()}- highlighted={- panel.isPanelActive() &&- row.isFocused()- }+ highlighted={row.isFocused()}/>)}</Match>@@ -1042,9 +1039,7 @@ export const SoupViewList = (props: SoupViewListProps) => {when={row.getIsLoadMore() && row.group}>{(group) => {- const highlighted = () =>- panel.isPanelActive() &&- row.isFocused();+ const highlighted = () => row.isFocused();return (<buttontype="button"@@ -1089,10 +1084,7 @@ export const SoupViewList = (props: SoupViewListProps) => {<ListEntityentity={row.original}timestamp={timestamp()}- highlighted={- panel.isPanelActive() &&- row.isFocused()- }+ highlighted={row.isFocused()}onMouseMove={() => {if (isKeypressActive()) return;if (soup.previewEntity()) return;diff --git a/js/app/packages/app/component/next-soup/soup-view/views/tasks/TaskListEntity.tsx b/js/app/packages/app/component/next-soup/soup-view/views/tasks/TaskListEntity.tsxindex 3249cc2575..6c80d2b420 100644--- a/js/app/packages/app/component/next-soup/soup-view/views/tasks/TaskListEntity.tsx+++ b/js/app/packages/app/component/next-soup/soup-view/views/tasks/TaskListEntity.tsx@@ -133,7 +133,7 @@ export function TaskListEntity(props: TaskListEntityProps) {'ring ring-edge bg-active/60 ring-inset':props.highlighted && !props.checked,'bg-active/40': props.hovered && !props.highlighted && !props.checked,- 'hover:bg-active/40 group-data-expanded/cm-trigger:bg-active/40':+ 'hover:bg-active/40 hover:ring hover:ring-edge hover:ring-inset group-data-expanded/cm-trigger:bg-active/40':!props.checked && !props.highlighted && !props.hovered,})}diff --git a/js/app/packages/app/index.css b/js/app/packages/app/index.cssindex 227e373481..bdb15b76bd 100644--- a/js/app/packages/app/index.css+++ b/js/app/packages/app/index.css@@ -112,7 +112,7 @@--color-overlay: oklch(var(--b1l) var(--b1c) var(--b1h) / 0.8);--color-edge-muted: var(--b3);--color-edge: var(--b4);- --color-rail: color-mix(in oklch, var(--b4) 90%, var(--b0));+ --color-rail: color-mix(in oklch, var(--b0) 75%, var(--c0));--color-ink: var(--c0);--color-ink-muted: var(--c1);@@ -405,7 +405,7 @@/* Suppressed on touch devices */html:not([data-touch-device="true"]) [data-message][data-highlighted],html:not([data-touch-device="true"]) [data-message]:hover{- @apply bg-ink/3 rounded-sm;+ @apply bg-ink/3 rounded-sm ring ring-edge ring-inset;}/* Long-press animation */diff --git a/js/app/packages/entity/src/composed/ListEntity.tsx b/js/app/packages/entity/src/composed/ListEntity.tsxindex 45e3589d44..4b6307ed76 100644--- a/js/app/packages/entity/src/composed/ListEntity.tsx+++ b/js/app/packages/entity/src/composed/ListEntity.tsx@@ -191,7 +191,7 @@ export function ListEntity(props: ListEntityProps) {'ring ring-edge bg-active/60 ring-inset':props.highlighted && !props.checked,'bg-active/40': props.hovered && !props.highlighted && !props.checked,- 'hover:bg-active/40 group-data-expanded/cm-trigger:bg-active/40':+ 'hover:bg-active/40 hover:ring hover:ring-edge hover:ring-inset group-data-expanded/cm-trigger:bg-active/40':!props.checked && !props.highlighted && !props.hovered,})}diff --git a/js/app/packages/theme/constants.ts b/js/app/packages/theme/constants.tsindex 4b1c517e8d..2b75353357 100644--- a/js/app/packages/theme/constants.ts+++ b/js/app/packages/theme/constants.ts@@ -4,6 +4,29 @@ export const DEFAULT_LIGHT_THEME: DefaultTheme = 'Macro Light';export const DEFAULT_DARK_THEME: DefaultTheme = 'Macro Dark';export const DEFAULT_THEMES = [+ {+ id: "Void",+ name: "Void",+ version: 2,+ depth: 0.249,+ tokens: {+ a0 :{ l :0.87, c: 0, h: 0 },+ a1 :{ l :0.87, c: 0, h: 40 },+ a2 :{ l :0.87, c: 0, h: 80 },+ a3 :{ l :0.87, c: 0, h: 120 },+ a4 :{ l :0.87, c: 0, h: 160 },+ b0 :{ l :0.12, c: 0, h: 0 },+ b1 :{ l :0.16, c: 0, h: 0 },+ b2 :{ l :0.23, c: 0, h: 0 },+ b3 :{ l :0.25, c: 0, h: 0 },+ b4 :{ l :0.30, c: 0, h: 0 },+ c0 :{ l :0.88, c: 0, h: 0 },+ c1 :{ l :0.84, c: 0, h: 0 },+ c2 :{ l :0.79, c: 0, h: 0 },+ c3 :{ l :0.73, c: 0, h: 0 },+ c4 :{ l :0.67, c: 0, h: 0 }+ }+ },{id: 'Sleepless',name: 'Sleepless',diff --git a/js/app/packages/ui/components/Layer.tsx b/js/app/packages/ui/components/Layer.tsxindex 40bfde02e4..0802fa834a 100644--- a/js/app/packages/ui/components/Layer.tsx+++ b/js/app/packages/ui/components/Layer.tsx@@ -37,12 +37,14 @@ export function Layer(props: LayerProps) {'--color-overlay': 'oklch(from var(--b2) l c h / 0.5)','--color-edge-muted': 'var(--b3)','--color-edge': 'var(--b4)',+ '--color-rail': 'color-mix(in oklch, var(--b0) 75%, var(--c0))','--color-ink': 'var(--c0)','--color-ink-muted': 'var(--c1)','--color-ink-extra-muted': 'var(--c2)','--color-ink-disabled': 'var(--c3)','--color-ink-placeholder': 'oklch(var(--c4) / 0.5))',+}}>{props.children}