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): form controls tracking + theme (#177)
Eric Hayes03c4279e6206
diff --git a/js/app/packages/app/component/UnifiedListView.tsx b/js/app/packages/app/component/UnifiedListView.tsxindex 35b1b3284e..c269c45ac6 100644--- a/js/app/packages/app/component/UnifiedListView.tsx+++ b/js/app/packages/app/component/UnifiedListView.tsx@@ -1005,7 +1005,7 @@ export function UnifiedListView(props: UnifiedListViewProps) {</Show><DropdownMenusize="SM"- theme="secondary"+ theme="primary"triggerLabel={<StyledTriggerLabel>Filter</StyledTriggerLabel>}><div class="min-w-[10vw] max-w-md">diff --git a/js/app/packages/core/component/AI/component/input/ToolsetSelector.tsx b/js/app/packages/core/component/AI/component/input/ToolsetSelector.tsxindex 9d17c24350..0daa35c877 100644--- a/js/app/packages/core/component/AI/component/input/ToolsetSelector.tsx+++ b/js/app/packages/core/component/AI/component/input/ToolsetSelector.tsx@@ -1,8 +1,7 @@import DropdownMenu from '@core/component/FormControls/DropdownMenu';import { SegmentedControl } from '@core/component/FormControls/SegmentControls';-import { Tooltip } from '@core/component/Tooltip';import type { ToolSet } from '@service-cognition/generated/schemas';-import { type ParentProps, Show, type Signal } from 'solid-js';+import { Show, type Signal } from 'solid-js';type ToolSetName = ToolSet['type'];@@ -52,15 +51,6 @@ export function ToolsetSelector(props: {const [toolset, setToolset] = props.toolset;const [source, setSource] = props.sources;- const _StyledTriggerLabel = (props: ParentProps) => {- return (- <Tooltip- tooltip={'Tell the agent which sources to consider in its search'}- >- {props.children}- </Tooltip>- );- };return (<div class="flex items-center gap-x-1"><SegmentedControldiff --git a/js/app/packages/core/component/FormControls/Button.tsx b/js/app/packages/core/component/FormControls/Button.tsxindex 8ed5014e62..5b877654ff 100644--- a/js/app/packages/core/component/FormControls/Button.tsx+++ b/js/app/packages/core/component/FormControls/Button.tsx@@ -39,7 +39,7 @@ export const Button: ParentComponent<{const hasHotkey = () => !!(props.hotkeyShortcut || props.hotkeyToken);return (<Polymorphic- class="relative flex items-stretch hover:opacity-80 disabled:opacity-50 [&:focus]:[--focus-border-inset:-4px] font-mono font-medium uppercase leading-none tracking-wide disabled:cursor-not-allowed"+ class="relative flex items-stretch hover:opacity-80 disabled:opacity-50 [&:focus]:[--focus-border-inset:-4px] font-mono font-medium uppercase leading-none disabled:cursor-not-allowed"classList={{[`${sizeClass[props.size || 'Base']}`]: !hasHotkey(),[`${themeClass[props.theme || 'primary']}`]: !hasHotkey(),diff --git a/js/app/packages/core/component/FormControls/DropdownMenu.tsx b/js/app/packages/core/component/FormControls/DropdownMenu.tsxindex 820bb281eb..f912a0fe82 100644--- a/js/app/packages/core/component/FormControls/DropdownMenu.tsx+++ b/js/app/packages/core/component/FormControls/DropdownMenu.tsx@@ -105,7 +105,7 @@ const DropdownMenu: ParentComponent<'!block': true,}}as={Button}- theme="primary"+ theme={props.theme}ref={triggerEl}>{props.triggerLabel}