feat: add invoice builder with line detail, address, and person picker.

Enrich invoice line items and previews, migrate several CRM surfaces to Ant, and wire shared money/picker helpers.
This commit is contained in:
2026-11-30 14:34:47 +03:30
parent f1bcb232ee
commit 33c95d72a8
64 changed files with 5813 additions and 2737 deletions
@@ -35,7 +35,8 @@ Also read and obey [`.cursor/rules/antd-strict-governance.mdc`](../../rules/antd
| Piece | Location |
|---|---|
| Dependency | `ant-design-vue` ^4, `@ant-design/icons-vue`, `unplugin-vue-components` in `@mento/web` |
| Dependency | `ant-design-vue` ^4, `@ant-design/icons-vue` (dep only; app code uses bridge), `unplugin-vue-components` in `@mento/web` |
| Icons | Canonical = Vuesax via `@/icons/ant-bridge` (Ant `*Outlined` API → `VsIcon`). Never import `@ant-design/icons-vue` in app code. |
| Vite plugin | `apps/web/vite.config.ts` — `Components` + `AntDesignVueResolver` |
| Theme | `apps/web/src/theme/antdTheme.ts` (`controlHeight: 36`) |
| RTL + locale + theme + StyleProvider | `apps/web/src/App.vue` — `<a-style-provider hash-priority="high">` wrapping `<a-config-provider direction="rtl" :locale="faIR" :theme="antdTheme">` (mandatory so legacy `main.css` cannot override Ant) |
@@ -56,7 +57,7 @@ Also read and obey [`.cursor/rules/antd-strict-governance.mdc`](../../rules/antd
- Modal/Drawer → `a-modal` / `a-drawer`
- Table → `a-table` (columns via Ant API)
- Page chrome → `a-card`, title + `a-space`, layout via `a-row`/`a-col`
- Icons → `@ant-design/icons-vue`
- Icons → `import { … } from '@/icons/ant-bridge'` (Vuesax; never `@ant-design/icons-vue`)
5. Remove page-local CSS that only existed to skin the old controls.
6. Keep business logic, API calls, and router behavior intact.
7. Grep-verify zero hits for `<input|<select|<textarea|<button|UiInput|UiSelect|UiField|UiTextarea|UiButton` in the View + converted children.
@@ -73,6 +74,7 @@ Also read and obey [`.cursor/rules/antd-strict-governance.mdc`](../../rules/antd
## Anti-patterns (reject)
- Importing both `UiButton` and `a-button` on the same migrated page
- Importing icons from `@ant-design/icons-vue` instead of `@/icons/ant-bridge`
- Adding `ant-design-vue/dist/reset.css` “to fix spacing”
- Editing `components/ui` to “look more like Ant”
- `size="small|middle|large"` on Ant controls