Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

Add screenshots to the global search documentation

François Zaninotto5197cf0934f9
diff --git a/doc/src/content/docs/users/global-search.mdx b/doc/src/content/docs/users/global-search.mdx
index 91c59963..1d25be83 100644
--- a/doc/src/content/docs/users/global-search.mdx
+++ b/doc/src/content/docs/users/global-search.mdx
@@ -7,11 +7,14 @@ a phrase you remember without knowing which contact it belongs to.
## Opening the search
-On desktop, click the magnifier in the top bar, or press **Ctrl+K**
+On desktop, click the **Search** box in the top bar, or press **Ctrl+K**
(**Cmd+K** on macOS) from anywhere in the app. The shortcut is ignored while you
are typing in a field, so it never interrupts a note you are writing.
-On mobile, tap the magnifier in the header. It is available on every screen.
+![Search box in the top bar](../../images/global-search-button.png)
+
+On mobile, tap the magnifier in the header. It is available on every screen,
+and the search then takes the whole screen.
## What is searched
@@ -39,11 +42,19 @@ to the contact, not to the note.
Matched words are highlighted. When the match is not in the result's name, an
excerpt of the field it was found in shows under it.
+![Search results on desktop](../../images/global-search-desktop.png)
+
+On mobile, the results of notes and tasks show the excerpt in place of the
+start of their text:
+
+![Search results on mobile](../../images/global-search-mobile.png)
+
## Good to know
- Search starts at **2 characters**.
- Results are capped at **50**, most recent first, with no pagination. Add a
word to narrow them down rather than scrolling.
- Deals and deal notes do not appear on mobile, which has no deal screen to open.
-- The page-specific searches (the search box on the Contacts page, and so on)
- are unchanged and still filter their own list.
+- On desktop, the page-specific searches (the search box on the Contacts page,
+ and so on) are unchanged and still filter their own list. The mobile contact
+ list has no search box of its own: use the global search instead.
diff --git a/doc/src/content/images/global-search-button.png b/doc/src/content/images/global-search-button.png
new file mode 100644
index 00000000..81b1d658
Binary files /dev/null and b/doc/src/content/images/global-search-button.png differ
diff --git a/doc/src/content/images/global-search-desktop.png b/doc/src/content/images/global-search-desktop.png
new file mode 100644
index 00000000..100524f3
Binary files /dev/null and b/doc/src/content/images/global-search-desktop.png differ
diff --git a/doc/src/content/images/global-search-mobile.png b/doc/src/content/images/global-search-mobile.png
new file mode 100644
index 00000000..1a6dfd91
Binary files /dev/null and b/doc/src/content/images/global-search-mobile.png differ