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.

fix(search): only hint @mention in sidebar search placeholder (#2739)

gbirman16ddb52583ef
diff --git a/js/app/packages/app/component/next-soup/soup-view/filters-bar/soup-filters-bar.tsx b/js/app/packages/app/component/next-soup/soup-view/filters-bar/soup-filters-bar.tsx
index 227a30c9ae..85e971c3fe 100644
--- a/js/app/packages/app/component/next-soup/soup-view/filters-bar/soup-filters-bar.tsx
+++ b/js/app/packages/app/component/next-soup/soup-view/filters-bar/soup-filters-bar.tsx
@@ -71,7 +71,7 @@ export const SoupFiltersBar = () => {
<Switch>
<Match when={isComponentListView('search')}>
<div class="w-full flex flex-col gap-2 p-2 border-b border-edge-muted/50">
- <SoupSearchbar autoFocus />
+ <SoupSearchbar autoFocus placeholder="Search, @mention contacts" />
<div class="flex items-start gap-2">
<UnifiedFilterDropdown />
<ActiveFilterChips
diff --git a/js/app/packages/app/component/next-soup/soup-view/filters-bar/soup-view-search-bar.tsx b/js/app/packages/app/component/next-soup/soup-view/filters-bar/soup-view-search-bar.tsx
index abbe159b90..7053e2d914 100644
--- a/js/app/packages/app/component/next-soup/soup-view/filters-bar/soup-view-search-bar.tsx
+++ b/js/app/packages/app/component/next-soup/soup-view/filters-bar/soup-view-search-bar.tsx
@@ -17,6 +17,7 @@ interface SoupSearchbarProps {
variant?: SearchbarVariant;
autoFocus?: boolean;
onDismiss?: () => void;
+ placeholder?: string;
}
const variantStyles: Record<SearchbarVariant, string> = {
@@ -129,7 +130,7 @@ export const SoupSearchbar = (props: SoupSearchbarProps) => {
>
<MarkdownShell
config={editor}
- placeholder="Search, @mention contacts"
+ placeholder={props.placeholder ?? 'Search'}
autofocus={props.autoFocus}
class="!min-h-0 !overflow-visible"
/>