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(kommand): preserve non-search row selection across tab (#3075)
gbirman5bd11c1c1029
diff --git a/js/app/packages/app/component/command/CommandMenu.tsx b/js/app/packages/app/component/command/CommandMenu.tsxindex b67ed5c0a0..95817a7814 100644--- a/js/app/packages/app/component/command/CommandMenu.tsx+++ b/js/app/packages/app/component/command/CommandMenu.tsx@@ -138,7 +138,7 @@ export function CommandMenuInner(props: {});createEffect(- on(query, () => {+ on([query, CommandState.categoryFilter], () => {const items = filteredItems();const firstIsSearch = items[0] && isSearchItem(items[0]);CommandState.setSelectedIndex(firstIsSearch && items.length > 1 ? 1 : 0);@@ -365,7 +365,6 @@ export function CommandMenuInner(props: {);const nextIndex = (currentIndex + 1) % CATEGORIES.length;CommandState.setCategoryFilter(CATEGORIES[nextIndex].id);- CommandState.setSelectedIndex(0);return true;},runWithInputFocused: true,@@ -383,7 +382,6 @@ export function CommandMenuInner(props: {const prevIndex =(currentIndex - 1 + CATEGORIES.length) % CATEGORIES.length;CommandState.setCategoryFilter(CATEGORIES[prevIndex].id);- CommandState.setSelectedIndex(0);return true;},runWithInputFocused: true,@@ -689,7 +687,6 @@ function CategoryFilterTabs() {onChange={(value) => {if (value) {CommandState.setCategoryFilter(value as CategoryFilter);- CommandState.setSelectedIndex(0);}}}/>