Skip to content

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

Merge branch 'main' into feat/global-search

erwanMarmelab4897816c9d0d
diff --cc doc/astro.config.mjs
index 8684488e,70884e54..aceff86e
--- a/doc/astro.config.mjs
+++ b/doc/astro.config.mjs
@@@ -85,8 -85,8 +85,9 @@@ export default defineConfig(
label: "Users Documentation",
items: [
"users/user-management",
+ "users/preferences",
"users/settings",
+ "users/global-search",
"users/import-data",
"users/merging-contacts",
"users/inbound-email",
diff --cc src/components/atomic-crm/layout/MobileHeader.tsx
index 03e40bfa,1b57b541..138cca3c
--- a/src/components/atomic-crm/layout/MobileHeader.tsx
+++ b/src/components/atomic-crm/layout/MobileHeader.tsx
@@@ -1,10 -1,10 +1,17 @@@
+import { GlobalSearchButton } from "../search";
+ import { MobileRefreshButton } from "./MobileRefreshButton";
++// Both actions live here rather than in each screen: there is no Cmd+K on a
++// phone, and the desktop refresh button is hidden on small screens, so this
++// header is the only place reachable from every mobile page.
const MobileHeader = ({ children }: { children: React.ReactNode }) => {
return (
<header className="fixed top-0 left-0 right-0 z-10 bg-secondary h-14 px-4 w-full flex justify-between items-center">
{children}
- <GlobalSearchButton variant="icon" />
- <MobileRefreshButton />
++ <div className="flex items-center">
++ <GlobalSearchButton variant="icon" />
++ <MobileRefreshButton />
++ </div>
</header>
);
};
diff --cc src/components/atomic-crm/providers/commons/englishCrmMessages.ts
index b84d8589,bf63ee46..0fda3297
--- a/src/components/atomic-crm/providers/commons/englishCrmMessages.ts
+++ b/src/components/atomic-crm/providers/commons/englishCrmMessages.ts
@@@ -438,25 -430,27 +430,43 @@@ export const englishCrmMessages =
},
upcoming_tasks: "Upcoming Tasks",
},
+ data_import: {
+ button: "Import CSV",
+ complete:
+ "Import complete. Imported %{importCount} records, with %{errorCount} errors",
+ csv_file: "CSV File",
+ error:
+ "Failed to import this file, please make sure you provided a valid CSV file.",
+ progress:
+ "Imported %{importCount} / %{rowCount} records, with %{errorCount} errors.",
+ remaining_time: "Estimated remaining time:",
+ resource: "Resource",
+ running: "The import is running, please do not close this tab.",
+ sample_download: "Download CSV sample",
+ sample_hint: "Here is a sample CSV file you can use as a template",
+ start: "Start import",
+ stop: "Stop import",
+ title: "Import data",
+ },
header: {
- import_data: "Import data",
+ import_data: "Import from JSON",
},
+ search: {
+ title: "Search",
+ placeholder: "Search contacts, companies, deals, tasks and notes...",
+ hint: "Type at least %{min} characters to search",
+ empty: "No result found",
+ error: "Search is unavailable right now. Please try again.",
+ untitled_result: "(no title)",
+ groups: {
+ contacts: "Contacts",
+ companies: "Companies",
+ deals: "Deals",
+ tasks: "Tasks",
+ contact_notes: "Contact notes",
+ deal_notes: "Deal notes",
+ },
+ },
image_editor: {
change: "Change",
drop_hint: "Drop a file to upload, or click to select it.",
diff --cc src/components/atomic-crm/providers/commons/frenchCrmMessages.ts
index 0085f778,afcee542..37b8112a
--- a/src/components/atomic-crm/providers/commons/frenchCrmMessages.ts
+++ b/src/components/atomic-crm/providers/commons/frenchCrmMessages.ts
@@@ -445,27 -436,28 +436,46 @@@ export const frenchCrmMessages =
},
upcoming_tasks: "Tâches à venir",
},
+ data_import: {
+ button: "Importer un fichier CSV",
+ complete:
+ "Import terminé. %{importCount} enregistrements importés, %{errorCount} erreurs",
+ csv_file: "Fichier CSV",
+ error:
+ "Échec de l'importation de ce fichier. Veuillez vous assurer que vous avez fourni un fichier CSV valide.",
+ progress:
+ "%{importCount} / %{rowCount} enregistrements importés, avec %{errorCount} erreurs.",
+ remaining_time: "Temps restant estimé :",
+ resource: "Ressource",
+ running: "L'import est en cours, merci de ne pas fermer cet onglet.",
+ sample_download: "Télécharger un exemple CSV",
+ sample_hint:
+ "Voici un exemple de fichier CSV que vous pouvez utiliser comme modèle",
+ start: "Démarrer l'import",
+ stop: "Arrêter l'importation",
+ title: "Importer des données",
+ },
header: {
- import_data: "Importer des données",
+ import_data: "Importer depuis JSON",
},
+ search: {
+ title: "Rechercher",
+ placeholder:
+ "Rechercher un contact, une entreprise, une affaire, une tâche, une note...",
+ hint: "Saisissez au moins %{min} caractères pour lancer la recherche",
+ empty: "Aucun résultat",
+ error:
+ "La recherche est indisponible pour le moment. Veuillez réessayer.",
+ untitled_result: "(sans titre)",
+ groups: {
+ contacts: "Contacts",
+ companies: "Entreprises",
+ deals: "Affaires",
+ tasks: "Tâches",
+ contact_notes: "Notes de contact",
+ deal_notes: "Notes d'affaire",
+ },
+ },
image_editor: {
change: "Changer",
drop_hint: