Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

chg(kommand): disable email + search in kommand menu (#482)

teocb4d4ff76530
diff --git a/js/app/packages/app/component/command/Konsole.tsx b/js/app/packages/app/component/command/Konsole.tsx
index 36d75ab4b5..fd1bd44b37 100644
--- a/js/app/packages/app/component/command/Konsole.tsx
+++ b/js/app/packages/app/component/command/Konsole.tsx
@@ -23,7 +23,6 @@ import {
untrack,
} from 'solid-js';
import { VList } from 'virtua/solid';
-import FullTextModeToggle from './FullTextModeToggle';
import { KonsoleFilter } from './KonsoleFilter';
import {
COMMAND_ITEM_HEIGHT,
@@ -355,9 +354,6 @@ export function KommandMenuInner(props: {
class="flex-1 border-0 outline-none! focus:outline-none ring-0! focus:ring-0 font-mono placeholder:text-edge text-accent-270"
onValueChange={setRawQuery}
/>
- <FullTextModeToggle
- checked={currentKonsoleMode() === 'FULL_TEXT_SEARCH'}
- />
</div>
<div
class="bg-menu"
diff --git a/js/app/packages/app/component/command/KonsoleItem.tsx b/js/app/packages/app/component/command/KonsoleItem.tsx
index 1afb78f6fc..373b32f86c 100644
--- a/js/app/packages/app/component/command/KonsoleItem.tsx
+++ b/js/app/packages/app/component/command/KonsoleItem.tsx
@@ -107,7 +107,7 @@ const DEFAULT_CATEGORIES = [
{ name: 'Documents', visible: true },
{ name: 'Chats', visible: true },
{ name: 'Folders', visible: true },
- { name: 'Emails', visible: true },
+ { name: 'Emails', visible: false },
{ name: 'Contacts', visible: ENABLE_GMAIL_BASED_CONTACTS },
{ name: 'Companies', visible: ENABLE_GMAIL_BASED_CONTACTS },
] as const;
diff --git a/js/app/packages/app/component/command/state.ts b/js/app/packages/app/component/command/state.ts
index 5cfd585a2a..e1c1a01633 100644
--- a/js/app/packages/app/component/command/state.ts
+++ b/js/app/packages/app/component/command/state.ts
@@ -44,7 +44,7 @@ export function cleanQuery(query?: string) {
}
export const COMMAND_MODES = [
- { id: 'FULL_TEXT_SEARCH', sigil: '%', label: 'Full Text Search' },
+ // { id: 'FULL_TEXT_SEARCH', sigil: '%', label: 'Full Text Search' },
// { id: "REGEX_SEARCH", sigil: "/", label: "Regex Search" },
// { id: "RUN_COMMAND", sigil: ">", label: "Run" },
// { id: "TEMP_CHAT", sigil: " ", label: "Temporary Chat" },