Commit Graph

24 Commits

Author SHA1 Message Date
c4eeda5777 Merge branch 'dev' into feat/consultation-82 2025-10-19 06:27:59 +07:00
c8ec0410e6 Merge branch 'dev' into feat/consultation-82 2025-10-15 20:13:47 +07:00
Khafid Prayoga
4976916780 Merge branch 'dev' of github.com:dikstub-rssa/simrs-fe into feat/patient-63 2025-10-15 12:45:40 +07:00
Khafid Prayoga
bc286f16c8 wip: select regency paginated
todo: search reactive

wip: paginated regency

todo: search bind

wip gess
2025-10-14 11:36:55 +07:00
0e43bff367 dev: hotfix, added userQueryCRUD 2025-10-13 21:40:12 +07:00
Khafid Prayoga
46911514fb refactor: postal region, add new field on list
feat: implement postal region model and update address handling

- Add new PostalRegion model and service
- Replace postalCode with postalRegion in address-related components
- Update schemas and models to use locationType_code consistently
- Add usePostalRegion composable for postal code selection
- Modify patient form to handle address changes more robustly

feat(patient): add ID column and improve date formatting

- Add patient ID column to patient list
- Format dates using 'id-ID' locale in preview
- Update identity number display for foreign patients
- Include passport number for foreign nationals
2025-10-13 13:07:00 +07:00
Khafid Prayoga
5121422658 adjust: improve regency select based on new useRegencies composable to explicit pull all data with no limitation, because it has a province code 2025-10-09 18:46:58 +07:00
Khafid Prayoga
e0867cb59f wip: paginated regencies 2025-10-09 11:38:42 +07:00
Khafid Prayoga
1f93fc2c81 refactor(composables): update API query params and improve code style
- Standardize parameter naming with hyphens instead of underscores
- Remove page size limit and enable no-limit flag for all region queries
- Improve arrow function syntax consistency and formatting
2025-10-09 10:13:00 +07:00
Khafid Prayoga
55239606af feat(patient): address integration to backend apis
feat(patient): add newborn status field and validation

- Add radio button component for newborn status selection
- Update patient schema with newborn status validation
- Remove deprecated alias field from person model
- Refactor disability type handling in patient schema

fix(patient): correct address comparison logic and schema

Update the patient address comparison to use boolean instead of string '1' and modify the schema to transform the string value to boolean. This ensures consistent type usage throughout the application.

feat(models): add village and district model interfaces

Add new model interfaces for Village and District with their respective generator functions. These models will be used to handle administrative division data in the application.

feat(address): implement dynamic province selection with caching

- Add province service for CRUD operations
- Create useProvinces composable with caching and loading states
- Update select-province component to use dynamic data
- Export SelectItem interface for type consistency
- Improve combobox styling and accessibility

feat(address-form): implement dynamic regency selection with caching

- Add new regency service for CRUD operations
- Create useRegencies composable with caching and loading states
- Update SelectRegency component to use dynamic data based on province selection
- Improve placeholder and disabled state handling

feat(address-form): implement dynamic district selection

- Add district service for CRUD operations
- Create useDistricts composable with caching and loading states
- Update SelectDistrict component to use dynamic data
- Remove hardcoded district options and implement regency-based filtering

feat(address-form): implement dynamic village selection with caching

- Add village service for CRUD operations
- Create useVillages composable with caching and loading states
- Update SelectVillage component to fetch villages based on district
- Remove hardcoded village options in favor of API-driven data

feat(address-form): improve address selection with debouncing and request deduplication

- Add debouncing to prevent rapid API calls when selecting addresses
- Implement request deduplication to avoid duplicate API calls
- Add delayed form reset to ensure proper composable cleanup
- Add isUserAction flag to force refresh when user changes selection
2025-10-08 15:58:22 +07:00
51d1221318 Merge branch 'dev' into feat/consultation-82 2025-10-08 07:55:22 +07:00
Munawwirul Jamal
3eb9dde21d Dev cleaning (#106) 2025-10-08 00:03:36 +07:00
2da4e616ba dev: hotfix refactor
+ merged pub/custom-ui and pub/base into my-ui
- droped pub/custom-ui
2025-10-05 09:45:17 +07:00
Munawwirul Jamal
d792893545 Merge pull request #66 from dikstub-rssa/fe-public-features-46
Feat(public): Implement Dark Mode + Adjustment Padding Frame
2025-09-19 07:49:33 +07:00
riefive
e02360aea5 feat(public): add setting dark or light mode 2025-09-16 12:34:37 +07:00
Khafid Prayoga
26b0cf12e3 refactor(api): consolidate query param transformation into utility function
Move URL parameter construction logic from multiple list components to a shared transform function in usePaginatedList. This improves code reuse and maintainability while keeping the same functionality.

Standardize query parameter names to match backend expectations ('page-number' and 'page-size' instead of 'page' and 'pageSize'). Update related schema and default params accordingly.
2025-09-11 13:28:07 +07:00
Khafid Prayoga
d9a675be05 refactor(composables): extract pagination logic into usePaginatedList composable
- Remove duplicate schema.query.ts files from unit, division, and installation components
- Create new usePaginatedList composable to centralize pagination logic
- Update list.vue components to use the new composable
- Maintain same functionality while reducing code duplication
2025-09-04 16:19:51 +07:00
Khafid Prayoga
ee3bb1cd6e refactor(error): move error types to centralized location
Consolidate XError, XErrors, and FormErrors types into a single file for better maintainability and consistency across the codebase.
2025-08-29 11:04:59 +07:00
Khafid Prayoga
d6b288404f feat(division): add division management pages and form validation
- Create new division list and add pages
- Implement form validation using zod and error handling
- Add useFormErrors composable for form error management
- Update division entry form with validation support
- Add error styling in main.css
2025-08-29 10:42:07 +07:00
Abizrh
fe46db6bc6 feat (dashboard): implement dashboard page with summary cards and quick actions 2025-08-15 16:30:48 +07:00
Abizrh
67ccb21b49 🐛 fix (rbac): use userStore to determine user roles 2025-08-13 16:37:32 +07:00
Abizrh
d8d7d61fca enhance (auth): clear store on 401 and redirect to /401 2025-08-13 13:17:21 +07:00
Abizrh
125d7857ce feat (rbac): implement role-based access control 2025-08-12 11:32:36 +07:00
Abizrh
d4dc345d26 feat (composables): add xfetch 2025-08-10 15:47:55 +07:00