Skip to content

Commit

Permalink
feat: enhance Worksite Calendar and Scheduling features (#1331)
Browse files Browse the repository at this point in the history
- **Add new icons**: Integrate `calendar-list` and `calendar-map` icons to improve calendar UI.
- **Extend size options**: Include new `base` size across UI elements, styling, and their functionalities in BaseIcon.vue.
- **Refactor WorksiteCalendar**: Replace individual navigation icons with `WorksiteNavigationIcons` component and reorganize the worksite action panel.
- **Improve forms**: Introduce a tabbed UI for WorksiteForm to separate "Add/Edit" and "Case Information" views.
- **Schedule management**: Implement inline add/edit scheduling with dialog-based functionality. Support selection of start/end dates, work types, teams, and time schedules for worksites.
- **Dynamic view routing**: Utilize query params (`view`) to control and persist Calendar views (map, list, or calendar).
- **Config updates**: Update calendar locale and day boundaries to dynamically adapt based on user setup.
- **Dependency updates**: Upgrade packages to include `@schedule-x/scroll-controller` for improved scheduling scroll.
- **UI tweaks**: Enhance button styles, expand functionality for `AddFromList.vue`, and optimize AddScheduleDialog layout for worksite and schedule forms.

This commit modernizes the scheduling and calendar navigation UI while allowing more flexible scheduling capabilities, improving efficiency and user experience.
  • Loading branch information
tabiodun authored Feb 21, 2025
1 parent 9086dd2 commit d9f42f4
Show file tree
Hide file tree
Showing 14 changed files with 675 additions and 391 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"@schedule-x/drag-and-drop": "^2.18.0",
"@schedule-x/events-service": "^2.18.0",
"@schedule-x/resize": "^2.18.0",
"@schedule-x/scroll-controller": "^2.20.0",
"@schedule-x/theme-default": "^2.18.0",
"@schedule-x/vue": "^2.16.0",
"@sentry/integrations": "^7.111.0",
Expand Down
12 changes: 12 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/assets/icons/calendar-list.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/assets/icons/calendar-map.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/components/BaseIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export default defineComponent({
'cursor-pointer': true,
large: ['lg', 'large'].includes(props.size),
medium: ['md', 'medium'].includes(props.size),
base: ['base'].includes(props.size),
small: ['sm', 'small'].includes(props.size),
tiny: props.size === 'tiny',
xs: props.size === 'xs',
Expand Down Expand Up @@ -151,6 +152,10 @@ export default defineComponent({
height: 20px;
width: 20px;
}
.ccu-icon.base {
height: 25px;
width: 25px;
}
.ccu-icon.xl {
height: 35px;
width: 35px;
Expand Down
Loading

0 comments on commit d9f42f4

Please sign in to comment.