Commit Graph

14 Commits

Author SHA1 Message Date
Abizrh
d070be2962 Merge branch 'dev' of https://github.com/dikstub-rssa/simrs-fe into feat/fe-encounter-68 2025-09-27 23:16:07 +07:00
Abizrh
dcfadcf4a0 feat (pub): adjust data table 2025-09-27 23:14:56 +07:00
4a3ef1cf79 adjust some pub components 2025-09-24 13:37:36 +07:00
Abizrh
a208bbad9c Merge branch 'dev' of https://github.com/dikstub-rssa/simrs-fe into feat/user 2025-09-08 15:23:51 +07:00
Khafid Prayoga
a3905dd9b9 feat(data-table): add skeletonSize prop to customize loading rows
Add optional skeletonSize prop to control the number of skeleton rows displayed during loading. Defaults to 5 if not provided.
2025-09-03 15:34:11 +07:00
Khafid Prayoga
a9c286bd0a feat(division): impl division list+entry
feat(form): add accessibility improvements to form components

- Add labelFor prop to Label component for better form element association
- Enhance Combobox with ARIA attributes for better screen reader support
- Update form fields with proper IDs and label associations

feat(pagination): adjust button width based on page number length

Add dynamic button sizing for pagination items to accommodate different digit lengths (1-99, 100-999, 1000+). This improves visual consistency when displaying varying page numbers.

feat(modal): add reusable dialog component and refactor division form

- Create new Dialog.vue component with configurable size and outside click prevention
- Replace inline dialog implementation in division list with new Dialog component
- Fix formatting in entry-form.vue

feat(data-table): add click handling for action cells

Implement handleActionCellClick function to manage click events on action cells, triggering dropdown buttons when clicked outside interactive elements. Add cursor-pointer class and click handler to action cells for better UX.

refactor(custom-ui): centralize action event strings in types

Replace hardcoded action event strings with constants from types.ts to improve maintainability and reduce potential typos

feat(confirmation): add reusable confirmation modal components

- Implement base confirmation.vue component with customizable props
- Create record-specific record-confirmation.vue for data operations
- Add comprehensive README.md documentation for usage
- Integrate confirmation flow in division list component

refactor(components): move dialog component to base directory and update imports

The dialog component was moved from custom-ui/modal to base/modal to better reflect its shared usage across the application. All import paths referencing the old location have been updated accordingly.

refactor(select): reorganize imports and adjust conditional formatting

- Reorder imports in Select.vue for better organization
- Adjust logical operator formatting in SelectContent.vue for consistency
2025-09-03 15:13:44 +07:00
Khafid Prayoga
add19f33a2 feat(data-table): add size prop to action components
Add size prop configuration to action components in data table to allow consistent sizing. Update dropdown action component to accept size prop with default value.
2025-09-02 16:25:32 +07:00
Khafid Prayoga
b1b324e688 refactor(data-table): improve type safety and component rendering
- Replace generic 'any' types with specific type imports for better type safety
- Add optional chaining for funcComponent to prevent potential runtime errors
- Update funcHtml and funcParsed to include rowIndex parameter in callbacks
2025-09-01 11:35:02 +07:00
Abizrh
f5209154ee feat (form): add stacked layout option for form fields 2025-08-31 17:21:23 +07:00
Khafid Prayoga
6ad99d45f2 Fix/linter (#10)
* fix(style): formatting inconsistencies across codebase

- Remove trailing semicolons from TypeScript imports
- Fix Vue template indentation and line breaks
- Standardize component attribute formatting
- Remove unnecessary empty lines
- Reorder import statements for consistency

* chore: update import path and add editorconfig

Update SidebarNavLink import path to match new component structure and add standard editorconfig for consistent code formatting
2025-08-27 13:06:40 +07:00
Khafid Prayoga
e21e5f1e7a refactor(ui): improve layout consistency and table styling
- Add container borders and padding for better visual hierarchy
- Standardize table cell borders across components
- Reset query params to defaults when changing resource type
- Clear data on fetch error to prevent stale data display
- Translate "No data available" to Indonesian
2025-08-26 15:15:14 +07:00
Khafid Prayoga
5685b31c48 feat(satusehat): implement query schema and improve data table
- Add schema.query.ts for query validation with zod
- Move constants to const.ts for better organization
- Refactor list.vue to use new query schema and constants
- Add empty state handling to data-table.vue
2025-08-26 13:10:09 +07:00
Khafid Prayoga
de7a833ddc Merge branch 'dev' of github.com:dikstub-rssa/simrs-fe into feat/satusehat 2025-08-25 14:58:45 +07:00
Abizrh
61b71f7e76 ⚠️ refactor (components): restructure components to custom-ui 2025-08-25 09:59:44 +07:00