A full-featured CRM built with React, shadcn/ui, and Supabase.
Add a Preferences page to the user documentation
Jeromef2e6ead3be2e
diff --git a/doc/astro.config.mjs b/doc/astro.config.mjsindex 2b9ae489..70884e54 100644--- a/doc/astro.config.mjs+++ b/doc/astro.config.mjs@@ -85,6 +85,7 @@ export default defineConfig({label: "Users Documentation",items: ["users/user-management",+ "users/preferences","users/settings","users/import-data","users/merging-contacts",diff --git a/doc/src/content/docs/developers/customizing.mdx b/doc/src/content/docs/developers/customizing.mdxindex d3b33bd0..afe71d55 100644--- a/doc/src/content/docs/developers/customizing.mdx+++ b/doc/src/content/docs/developers/customizing.mdx@@ -91,7 +91,7 @@ The `i18nProvider` defines:- the list of available locales (`availableLocales`)- how messages are resolved for each locale-The language switcher appears in the Profile page when more than one locale is configured.+The language switcher appears in the Profile page when more than one locale is configured. See [Preferences](../../users/preferences#changing-your-language) for the end-user point of view.### Adding a New Languagediff --git a/doc/src/content/docs/users/preferences.mdx b/doc/src/content/docs/users/preferences.mdxnew file mode 100644index 00000000..cacdae0d--- /dev/null+++ b/doc/src/content/docs/users/preferences.mdx@@ -0,0 +1,56 @@+---+title: Preferences+description: This document explains how to change your avatar, name, email, language, and password in Atomic CRM.+---++Every user can adjust their own account from the Profile page: avatar, name, email address, interface language, and password. These preferences only affect your own account. To change settings shared by the whole team (deal stages, note statuses, application name, etc.), see [Application Settings](../../users/settings) instead.++## Accessing Your Preferences++Click on your profile picture in the top right corner of the application, then select "Profile" in the dropdown menu.++++The Profile page gathers all your personal preferences.++++## Changing Your Avatar++Click on your avatar, or on the "Change" link next to it, to open the image editor.++++Drop a JPEG or PNG file on the dashed area (or click it to pick a file), drag the circle to frame the picture, then click "Update Image". The "Delete" button removes your current picture.++The new avatar is saved immediately: you don't need to click "Edit" or "Save".++## Changing Your Name and Email++Click the "Edit" button, update the "First name", "Last name", and "Email" fields, then click "Save".++Your email address is also your login: once changed, sign in with the new address. It is also where Atomic CRM sends notifications and password reset emails.++## Changing Your Language++Pick a language in the "Language" selector. The interface switches immediately, and there is nothing to save.++++Atomic CRM ships with English and French. The first time you open the application, the language is guessed from your browser settings, and falls back to English. Your choice is then remembered by your browser, so you may need to set it again on another computer, in another browser, or after clearing your browsing data.++The selector is hidden when the application is configured with a single language. To translate Atomic CRM into another language, see [Languages (i18n)](../../developers/customizing#languages-i18n) in the developer documentation.++## Changing Your Password++Click the "Change password" button: Atomic CRM sends a reset password email to your address. Follow the link in that email to choose a new password.++## Preferences on Mobile++On a mobile device, these preferences live in the Settings tab of the bottom navigation bar (see [Mobile App](../../users/mobile-app)):++- The "Profile" section holds your avatar, first name, last name, and email. Tap a row to edit it; each change is saved as soon as you validate it.+- The "Preferences" section holds the language selector and a light/dark theme switch.+- The "Change password" button sits at the bottom of the page, next to "Log out".++On desktop, the light/dark theme is switched with the sun/moon button in the top right corner of the application, next to your profile picture.diff --git a/doc/src/content/images/profile-avatar.png b/doc/src/content/images/profile-avatar.pngnew file mode 100644index 00000000..a2b95c18Binary files /dev/null and b/doc/src/content/images/profile-avatar.png differdiff --git a/doc/src/content/images/profile-language.png b/doc/src/content/images/profile-language.pngnew file mode 100644index 00000000..a6e072a4Binary files /dev/null and b/doc/src/content/images/profile-language.png differdiff --git a/doc/src/content/images/profile-menu.png b/doc/src/content/images/profile-menu.pngnew file mode 100644index 00000000..11bfd38aBinary files /dev/null and b/doc/src/content/images/profile-menu.png differdiff --git a/doc/src/content/images/profile-page.png b/doc/src/content/images/profile-page.pngnew file mode 100644index 00000000..681a8f4fBinary files /dev/null and b/doc/src/content/images/profile-page.png differ