fixed some ux components, added constants

This commit is contained in:
Jelaletdin12 committed 2026-08-12 20:10:20 +05:00
1 parent 6da59f42d9
commit 5073166931
30 files changed
+409 -425

No files matched your search

+6
View File
@@ -146,6 +146,11 @@ src/
│ ├── tableButton.tsx # Small icon button used inside table rows
│ └── tableSearch.tsx # Standalone search input for tables
│
├── constants/ # Global shared constants & options
│ ├── index.ts # Main entry point for re-exporting constants
│ ├── passportSeries.ts # Shared passport series options (I-AŞ, I-MR, etc.)
│ └── statusOptions.ts # Shared status options & i18n helpers (pending, approved, etc.)
│
├── features/ # Feature-Sliced Design — one folder per domain
│ ├── shared/ # APIs and hooks used by 2+ features
│ │ ├── api/ # sharedApi.ts — shared endpoints + TypeScript types
@@ -621,6 +626,7 @@ All authenticated routes are nested under `DashboardLayout`. The full list:
| Disable buttons during mutation | `disabled={mutation.isPending}` on submit buttons. |
| `PageErrorBoundary` on every route | Already set via `errorElement` in the router. |
| No duplicate API calls | If an endpoint is used by 2+ features, it belongs in `src/features/shared/` — never copy-paste API functions across feature folders. |
| Use shared constants | Common lookup options (passport series, status options) must be stored in `src/constants/` and exported via `@/constants`. |
---