Skip to content

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

Fix remaining paths

fzaninotto8f7123ae0615
diff --git a/doc/src/content/docs/developers/architecture-choices.mdx b/doc/src/content/docs/developers/architecture-choices.mdx
index 83db92fa..ff6f51f4 100644
--- a/doc/src/content/docs/developers/architecture-choices.mdx
+++ b/doc/src/content/docs/developers/architecture-choices.mdx
@@ -22,7 +22,7 @@ For the backend, Atomic CRM leverages [Supabase](https://supabase.com/). Supabas
## Mutable Dependencies
-The Atomic CRM code primarily lives in the `src/atomic-crm` directory. With less than 15,000 lines of code, it is a small codebase that can be easily customized.
+The Atomic CRM code primarily lives in the `src/components/atomic-crm` directory. With less than 15,000 lines of code, it is a small codebase that can be easily customized.
The Atomic CRM code also contains some mutable dependencies, i.e. libraries that are directly integrated into the codebase to be modified if needed. These dependencies are located in the following directories:
diff --git a/doc/src/content/docs/index.mdx b/doc/src/content/docs/index.mdx
index 4c2774bc..cf92e1fb 100644
--- a/doc/src/content/docs/index.mdx
+++ b/doc/src/content/docs/index.mdx
@@ -182,13 +182,13 @@ That's it! You've just added a custom field to the Contacts entity. Supabase aut
Next, you need to make this new field available in the frontend.
-The frontend code lives in the `src/atomic-crm` folder, and is organized by entities. Each entity has its own folder containing all the components related to that entity. Take a few minutes to explore the codebase and familiarize yourself with its structure.
+The frontend code lives in the `src/components/atomic-crm` folder, and is organized by entities. Each entity has its own folder containing all the components related to that entity. Take a few minutes to explore the codebase and familiarize yourself with its structure.
:::tip
Atomic CRM leverages two libraries that provided high-level building blocks: [Shadcn Admin Kit](https://marmelab.com/shadcn-admin-kit/) for the application logic, and [Shadcn/ui](https://ui.shadcn.com/) for the UI components. The code for these libraries is copied in the `src/components` folder.
:::
-Atomic CRM uses TypeScript to ensure type safety, so you'll need to modify the `Contact` type to include the new `referred_by` field. Open the `src/atomic-crm/types.ts` file and add the `referred_by` field to the `Contact` interface.
+Atomic CRM uses TypeScript to ensure type safety, so you'll need to modify the `Contact` type to include the new `referred_by` field. Open the `src/components/atomic-crm/types.ts` file and add the `referred_by` field to the `Contact` interface.
```tsx {18}
export type Contact = {
@@ -215,7 +215,7 @@ export type Contact = {
```
You will modify the contact creation and edition form to include an input for the `referred_by` field.
-To do so, open the `src/atomic-crm/contacts/ContactInputs.tsx` file to edit the `<ContactInputs>` component and add a new `<TextInput>`.
+To do so, open the `src/components/atomic-crm/contacts/ContactInputs.tsx` file to edit the `<ContactInputs>` component and add a new `<TextInput>`.
```tsx {5-8}
const ContactMiscInputs = () => {
@@ -259,7 +259,7 @@ The application will automatically pick up this code change. Go back to [http://
![Referred By in Contact Form](../images/contact-inputs-referred-by.png)
-Finally, update the Contacts sidebar to display the referrer when available. Open the `src/atomic-crm/contacts/ContactAside.tsx` file and add a new `<TextField>` for the `referred_by` field.
+Finally, update the Contacts sidebar to display the referrer when available. Open the `src/components/atomic-crm/contacts/ContactAside.tsx` file and add a new `<TextField>` for the `referred_by` field.
```tsx {4-11}
export const ContactAside = ({ link = "edit" }: { link?: "edit" | "show" }) => {