Commit Graph

76 Commits

Author SHA1 Message Date
riefive
b0171fce21 feat(public): create label for vue 2025-09-23 12:02:28 +07:00
riefive
b50dfe1183 feat(public): create field for vue 2025-09-23 12:00:15 +07:00
riefive
43a80f92e6 feat(public): create block and cell for vue 2025-09-23 11:58:45 +07:00
Munawwirul Jamal
806eace4ef Merge pull request #62 from dikstub-rssa/fe-refactor-division-40
feat(division): add tree-select component for recursive division parent-child relations
2025-09-19 07:50:44 +07:00
Khafid Prayoga
ed56c4201f feat(breadcrumb): add breadcrumb component and update header integration
- Implement new breadcrumb component with proper routing handling
- Update header to use new breadcrumb component
- Optimize nuxt config for SPA with router and rendering settings
2025-09-17 15:57:21 +07:00
Khafid Prayoga
f0c7d678cd Merge remote-tracking branch 'origin/dev' into fe-refactor-division-40 2025-09-17 11:09:39 +07:00
Munawwirul Jamal
f94dac1444 Merge pull request #45 from dikstub-rssa/fe-specialist-subspecialist-39
feat(specialist&sub-specialist): impl list and form entry
2025-09-17 10:22:19 +07:00
Khafid Prayoga
c5ec8ccd32 fix(select-tree): adjust tree node indentation and alignment logic
- Add level prop to track node hierarchy
- Fix indentation calculation for leaves and nodes
- Simplify alignment logic based on node level
2025-09-16 15:14:37 +07:00
Khafid Prayoga
b106b1d23e Merge remote-tracking branch 'origin/dev' into fe-refactor-division-40 2025-09-16 11:23:06 +07:00
Khafid Prayoga
a63c364170 Merge branch 'dev' of github.com:dikstub-rssa/simrs-fe into fe-specialist-subspecialist-39 2025-09-15 14:43:03 +07:00
Khafid Prayoga
56056c3fdb fix(pagination): format record numbers with locale for indonesia
Apply toLocaleString('id-ID') to startRecord and endRecord to display numbers in Indonesian format
2025-09-15 14:42:36 +07:00
Khafid Prayoga
566627239b feat(pagination): add reusable pagination component and update list views
- Create new PaginationView component to standardize pagination display
- Update multiple list components to use the new PaginationView
- Make paginationMeta prop required in list components
2025-09-15 11:01:18 +07:00
Khafid Prayoga
790c76be56 style(form/select): improve select component styling and focus state
- Add focus outline and ring styles to SelectTrigger
- Conditionally apply text color based on modelValue
- Simplify SelectItem template structure
2025-09-12 15:26:23 +07:00
Khafid Prayoga
41d87623e2 feat(combobox): add disabled prop and improve styling
- Add disabled prop to combobox component to support disabled state
- Update styling to include better focus states and border color
2025-09-12 14:39:52 +07:00
riefive
5b5f821848 fix: resolve conflict after merge dev 2025-09-11 12:00:38 +07:00
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
Abizrh
053a540638 enhance (pub): adjust form label 2025-09-11 00:57:12 +07:00
riefive
9d58eae1bf feat(sep): change to update value from datepicker 2025-09-10 15:48:48 +07:00
riefive
fb8fde65d5 feat(sep): update datepicker component 2025-09-10 15:19:40 +07:00
riefive
582bd67cbe feat(sep): modify form entry with calendar select 2025-09-10 14:37:54 +07:00
riefive
93d13cf28c feat(sep): update form entry 2025-09-10 13:17:37 +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
riefive
354ed82df1 fix: solve conflict at material entry 2025-09-08 10:30:26 +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
e9cbb09bc5 feat (pub): add base modal 2025-09-07 20:08:43 +07:00
riefive
ffa4a7d191 refactor(material): modify validation uom and item 2025-09-04 16:21:10 +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
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
664849e15b feat(division): add form dialog for creating new division
- Implement dialog form with validation schema for division creation
- Add combobox component for parent division selection
- Include form submission handling with reset and error states
- a11y
2025-09-02 16:14:40 +07:00
Khafid Prayoga
132068fcde feat(division): implement division list with pagination and search
- Add schema validation for query parameters
- Create pagination component with type definitions
- Implement division list view with search functionality
- Add data table configuration for division listing
- Handle pagination state and URL synchronization
2025-09-01 15:08:55 +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
529b8ef7df feat(installation): add installation entry form and pages
- Create new installation entry form component with validation
- Add installation list and add pages with basic routing
- Implement custom select component for encounter class selection
- Update SelectTrigger styling for better icon positioning
2025-08-29 16:33:20 +07:00
Khafid Prayoga
5e1775d057 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
2025-08-29 13:39:59 +07:00
Khafid Prayoga
89710d9768 feat(combobox): add reusable combobox component with search and selection
Implement a combobox component with search functionality and item selection. The component supports displaying item labels with optional codes, maintains selected item state, and provides customizable placeholders. Items are sorted with selected items first followed by alphabetical order.
2025-08-28 15:24:14 +07:00
Abizrh
00d4419bc7 Merge branch 'dev' of https://github.com/dikstub-rssa/simrs-fe into feat/user 2025-08-28 12:01:55 +07:00
Abizrh
4cb2e92235 enhance (pub): adjust component 2025-08-28 02:03:27 +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
153c171a3b refactor(ui): migrate button and pagination components to radix-vue
- Replace reka-ui imports with radix-vue in Button component
- Update pagination components to use direct radix-vue icons
- Simplify button variants styling and adjust size variants
- Remove unused data-slot attribute from Button component
2025-08-26 16:57:11 +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
Khafid Prayoga
31084be5ce feat(loading-state): add loading indicators and skeleton UI for data tables
- Implement loading state management across patient, doctor and satusehat lists
- Add skeleton loading UI for data tables during data fetching
- Refactor loading state variable naming for consistency
- Make search nav optional in header component
- Update icon sizing in header for better responsiveness
- Implement url search params query state at satusehat
2025-08-25 13:33:28 +07:00
Abizrh
f7815da6fc Merge branch 'dev' of https://github.com/dikstub-rssa/simrs-fe into fix/structure 2025-08-25 10:07:24 +07:00
Abizrh
61b71f7e76 ⚠️ refactor (components): restructure components to custom-ui 2025-08-25 09:59:44 +07:00
Khafid Prayoga
92d6e2af10 Merge branch 'dev' of github.com:dikstub-rssa/simrs-fe into feat/satusehat 2025-08-22 11:34:40 +07:00
Khafid Prayoga
ae0acf84d0 refactor(ui): update import paths from @/lib/utils to ~/lib/utils
Standardize import paths across UI components to use ~/lib/utils alias instead of @/lib/utils for better consistency and maintainability.
2025-08-22 11:18:06 +07:00
Khafid Prayoga
6fe1bd2c48 feat(satusehat): add search component, card summary and date picker
- Implement search component with lucide-vue-next icon
- Create card summary component for displaying summary data
- Add date picker component with range selection functionality
- Update list configuration and styling
- Reorganize package.json structure
2025-08-21 14:43:42 +07:00