feat(unit): add unit management pages and form components

- Create new unit list and add pages under org-src feature
- Implement unit entry form with validation using zod
- Update error types to support readonly path property
- Refactor field component to use shared error type
This commit is contained in:
Khafid Prayoga
2025-08-29 11:14:19 +07:00
parent ee3bb1cd6e
commit 5e1775d057
6 changed files with 241 additions and 55 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ export interface XError {
/** Nilai yang diberikan (untuk validasi) */
givenVal?: string
/** Path field yang error (untuk form validation) */
path?: (string | number)[]
path?: readonly (string | number)[]
/** Properties tambahan lainnya */
[key: string]: any
}