Couche applications¶
Surfaces client du monorepo brickssas/monorepo. Toutes consomment la même API via des contrats TypeScript partagés.
Diagramme¶
flowchart LR
subgraph shared["Packages partagés"]
ac["api-communication"]
acpo["api-communication-project-owner"]
acbo["api-communication-bricksoffice"]
uimmo["uimmo"]
theme["@bricks-common-front/theme"]
bo["@bricks-common/bo"]
webkit["@bricks-common-web/ui-kit"]
end
mobile["front-mobile-app"] --> ac
mobile --> uimmo
mobile --> theme
pdp["app-pdp-financement"] --> ac
pdp --> acpo
pdp --> uimmo
legacy["front-app"] --> ac
legacy --> webkit
boinv["bricksoffice-invest"] --> ac
boinv --> acbo
boproj["bricksoffice-projects"] --> ac
boproj --> acbo
boproj --> bo
sb["storybook"] --> uimmo
sb --> mobile
sb --> pdp
Applications¶
| Application | Package | Stack | Cible | Auth |
|---|---|---|---|---|
| App investisseur | @bricks/mobile-app |
Expo 55, RN, Uniwind, uimmo | iOS, Android, Web | clientAuth |
| Web investisseur legacy | @bricks/front-app |
React 18, Mantine, Redux RTK | Web | clientAuth |
| Espace porteur | @bricks/app-pdp-financement |
Expo, uimmo | Web | clientAuth |
| BO investisseurs | @bricks/bricksoffice-invest |
Vite, React Router, shadcn local | Interne | adminAuth |
| BO projets | @bricks/bricksoffice-projects |
Vite, TanStack Router, @bricks-common/bo |
Interne | adminAuth |
| Storybook | @bricks-common/storybook |
uimmo + stories apps | Design / dev | — |
Patterns transverses¶
| Concern | Mobile + PDP | front-app | bricksoffice-projects | bricksoffice-invest |
|---|---|---|---|---|
| Design system | uimmo + Uniwind | Mantine + ui-kit | @bricks-common/bo |
shadcn local |
| Routing | Expo Router | React Router 7 | TanStack Router | React Router 7 |
| Data fetching | TanStack Query | RTK Query | TanStack Query | TanStack Query |
| API transport | axios + cookies | fetch + cookies | axios + cookies | axios + cookies |
App investisseur (front-mobile-app)¶
Chemin : projects/front-mobile-app
Modules migrés (src/modules/) :
| Module | Rôle |
|---|---|
auth |
Login, signup, 2FA |
home |
Dashboard |
projects / project |
Liste et détail biens |
wallet |
Solde, top-up, retrait, achat |
boostedBalance |
Solde boosté |
security |
MFA, mot de passe |
Legacy encore routé (src/legacy/) : portfolio, marketplace, onboarding KYC, account, taxation, referral…
Déploiement : web → Railway ; natif → EAS (stores + OTA). Voir Infrastructure & déploiement.
App porteur (app-pdp-financement)¶
Chemin : projects/app-pdp-financement
| Groupe | Rôle |
|---|---|
financing-request/ |
Wizard demande de financement |
financing-management/ |
Dashboard post-approbation |
auth/, shell/, account/ |
Auth, chrome, compte |
Contrat API dédié : @bricks-common/api-communication-project-owner.
Back-offices¶
bricksoffice-projects — référence moderne : DS partagé @bricks-common/bo, modules projets (obligations, royalties, échéancier, SPV…).
bricksoffice-invest — CRM investisseurs (customers, réservations, KYC bulk). Stack locale, convergence vers @bricks-common/bo : À compléter — roadmap.
Packages partagés¶
| Package | Consommateurs | Rôle |
|---|---|---|
@bricks-common/api-communication |
Toutes les apps investisseur + API | Contrats investisseur |
@bricks-common/api-communication-project-owner |
PDP + API | Contrats porteur |
@bricks-common/api-communication-bricksoffice |
BOs + API | Contrats admin |
@bricks-common/uimmo |
mobile, PDP, Storybook | Design system RN |
@bricks-common-front/theme |
mobile, PDP | Tokens Uniwind |
@bricks-common-front/helpers |
mobile, PDP | Formatters, Datadog, i18n |
@bricks-common/bo |
bricksoffice-projects | DS back-office |
@bricks-common-web/ui-kit |
front-app | DS web legacy |
À compléter¶
| Sujet | Owner | Notes |
|---|---|---|
| URLs prod BO / PDP | À compléter | |
| Stratégie convergence front-app → mobile web | À compléter | |
| Matrice feature parity mobile / web / legacy | À compléter | |
| Deep links et intégration WebView mobile ↔ front-app | À compléter |