Commit Graph

179 Commits

Author SHA1 Message Date
Khafid Prayoga
ba6485a3e7 feat(division): wip tree select component
feat(division): update division list components and add mock api

- Replace patient API endpoint with division mock endpoint
- Simplify table columns and headers for division list
- Add mock API endpoint for division list with tree/flat format

feat(select-tree): add collapsible tree select component with lazy loading

Implement a tree select component with collapsible sections and lazy loading of child items. Includes:
- Collapsible component wrappers for Vue
- Command component wrappers for combobox functionality
- Tree select item component with loading states
- Example implementation in dev page

todo:
- scroll on overflow
- long text truncate possibly with tooltip
- more than > 5 depth of child
- mutate the children lazy
- integration backend for search based text and return  keys

feat(select-tree): add command-item component for tree selection

adjust hover bg-accent (remove state on-highlighted at styling) to avoid conflict on global component

refactor(select-tree): extract TreeItem interface to shared type file

Move TreeItem interface to a dedicated type file for better code organization and reusability. Update components to import the interface and add styling improvements to the tree-select component.

adjust text size for tree to sm

refactor(select-tree): rename tree-select-item to leaf and improve component

- Rename component to better reflect its purpose as a leaf node
- Improve UI with better spacing and hover states
- Simplify toggle logic using v-model
- Add checkmark icon for selected items

checkpoint

wip
2025-09-11 09:50:18 +07:00
Munawwirul Jamal
266d5f740b Merge pull request #36 from dikstub-rssa/refactor/mv-flow-to-content
Refactor/mv flow to content
2025-09-08 14:31:44 +07:00
Khafid Prayoga
b436737f62 Merge branch 'dev' into refactor/mv-flow-to-content 2025-09-08 13:41:33 +07:00
Munawwirul Jamal
e2ba3c070c Merge pull request #31 from dikstub-rssa/feat/equipment-material
Feat Equipment Material
2025-09-08 12:07:17 +07:00
Khafid Prayoga
cae8ca73fd refactor(tools-equipment): replace flow components with content components
- Update device and material pages to use Content prefixed components instead of Flow
- Add new content components for device and material list/entry functionality
- Maintain same functionality while improving component naming consistency
2025-09-08 11:17:47 +07:00
Khafid Prayoga
b0938a2eb6 feat(org-src): replace flow components with content components and add list views
Add new content components for unit, division, and installation with list views, entry forms, and validation schemas. Replace Flow*List components with Content*List components in org-src pages. Includes pagination, search functionality, and CRUD operations for each entity type.
2025-09-08 11:09:35 +07:00
Khafid Prayoga
97199cee3b feat(integration): adjust route pages based on sys conf 2025-09-08 10:57:16 +07:00
riefive
354ed82df1 fix: solve conflict at material entry 2025-09-08 10:30:26 +07:00
Munawwirul Jamal
2b41d5f163 Merge pull request #34 from dikstub-rssa/30-fe---item-itemprice
Feat Item, Item Price and Rename flow > content
2025-09-08 08:53:15 +07:00
Munawwirul Jamal
8e52689726 Merge pull request #32 from dikstub-rssa/feat/equipment-device
Feat Equipment Device
2025-09-08 08:51:52 +07:00
Munawwirul Jamal
bc8c6b8033 Merge pull request #20 from dikstub-rssa/feat/org-src
feat/org src implement entry form for division, unit, and installation
2025-09-08 08:48:43 +07:00
Abizrh
ea2076d097 📖 docs (readme): update component directory structure and descriptions 2025-09-07 22:59:57 +07:00
Abizrh
263f9dbc7f ⚠️ refactor (components): rename flow components to content 2025-09-07 22:58:18 +07:00
Abizrh
cdebdb8995 feat (item): add item and item price modules 2025-09-07 22:50:15 +07:00
Abizarah | 比周
24420d642c Merge pull request #33 from dikstub-rssa/23-fe---medicine-source
23 fe   medicine source
2025-09-07 21:43:48 +07:00
Abizrh
88577dbec5 🐛 fix (medicine-type): fix medicine type list display 2025-09-07 21:40:57 +07:00
Abizrh
3d329cb106 Merge branch 'dev' of https://github.com/dikstub-rssa/simrs-fe into 23-fe---medicine-source 2025-09-07 21:39:49 +07:00
Abizrh
e640a6d44c feat (medicine-method): implement medicine method fetching 2025-09-07 20:43:14 +07:00
Abizrh
c3c9154d0e ⚠️ refactor (medicine-method): simplify entry form and list configuration 2025-09-07 20:37:24 +07:00
Abizrh
eb9c918141 ⚠️ refactor (medicine-group): simplify entry form and list configuration 2025-09-07 20:34:22 +07:00
Abizrh
4117b79365 feat (medicine): add medicine group model 2025-09-07 20:17:34 +07:00
Abizrh
210946922d feat (medicine): add medicine model and dto 2025-09-07 20:16:18 +07:00
Abizrh
302bcb3e2a feat (medicine): implement medicine entry form and list 2025-09-07 20:09:31 +07:00
Abizrh
e9cbb09bc5 feat (pub): add base modal 2025-09-07 20:08:43 +07:00
Abizrh
6f4230da04 feat: register schemas and services 2025-09-07 20:08:03 +07:00
riefive
abd98336c1 fix: resolve conflict at sys.json again 2025-09-06 15:28:52 +07:00
riefive
5a7fe0e2d6 fix: resolve conflict at sys.json 2025-09-06 15:11:28 +07:00
riefive
ffa4a7d191 refactor(material): modify validation uom and item 2025-09-04 16:21:10 +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
riefive
21d087e496 refactor(material): add zod validation for stock field as number and display error message after submit in 2025-09-04 15:55:32 +07:00
riefive
209f78df0a feat(material): change menu material to equipment 2025-09-04 14:56:23 +07:00
Khafid Prayoga
39d96e7b24 feat(unit): implement unit management flow with list and form components
- Add schema validation and default query params for unit management
- Create list view with pagination, search, and delete functionality
- Implement form entry with validation for creating/editing units
- Replace placeholder content with functional unit list component
- Remove unused unit add page and update page titles
2025-09-04 13:17:06 +07:00
Khafid Prayoga
3dbc1b8fd1 refactor(pagination): move pagination info display to component and improve layout
- Consolidate pagination info display logic in pagination component
- Remove duplicate computed properties from list components
- Improve pagination layout with better spacing and responsiveness
- Add skeleton loading support to data tables
2025-09-04 11:26:58 +07:00
Munawwirul Jamal
1ee3772e80 Merge pull request #27 from dikstub-rssa/22-fe---menu-structure
22 fe   menu structure
2025-09-04 09:34:04 +07:00
Abizrh
0f046de3ac ⚠️ refactor (employee): remove unused employee pages 2025-09-03 22:14:29 +07:00
Abizrh
5ce3ff05cd feat (human-src): implement employee add and index pages with rbac 2025-09-03 22:12:16 +07:00
Abizrh
bdc3e837f9 enhance (appsidebar): improve sidebar navigation spacing and appearance 2025-09-03 22:11:58 +07:00
Abizrh
38e40416d3 feat (medicine): add medicine management modules 2025-09-03 20:33:19 +07:00
Khafid Prayoga
6c70beb882 refactor(org-src): remove unused division and installation add pages
move to modal based form entry (bcz its simple form)
2025-09-03 17:03:05 +07:00
Khafid Prayoga
4c0312e487 feat(installation): implement installation list with pagination and search
refactor(installation): move form schema and configuration to separate files
fix(installation): update page title and content display
2025-09-03 17:00:49 +07:00
Khafid Prayoga
646c7b6d73 fix(flow): prevent outside click on division form dialog
Add prevent-outside prop to Dialog component to avoid accidental closure
2025-09-03 16:07:39 +07:00
riefive
0435371e1c feat (device): update entry form of device 2025-09-03 15:47:07 +07:00
riefive
81fa38275a feat (material): update validation with error label 2025-09-03 15:41:55 +07:00
riefive
3c74a123ac feat (material): update validation of attribute stock 2025-09-03 15:39:06 +07:00
riefive
06a26c8b07 feat: add RBAC role-based access control and permission checks to device index page 2025-09-03 15:34:59 +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
riefive
6afa968b7b feat (material): update logic validate 2025-09-03 12:50:41 +07:00
riefive
e5d995b9ee feat (material): add zod validation for stock field to ensure number input in entry-form 2025-09-03 12:23:21 +07:00
Khafid Prayoga
b6d30eb154 refactor(division): extract entry form to separate component and improve form handling
- Move form logic from list component to dedicated entry-form component
- Implement proper form submission and cancellation handlers
- Add type safety with DivisionFormData interface
- Improve form validation using vee-validate
- Refresh data after successful form submission
2025-09-02 16:49:19 +07:00