Commit Graph
95 Commits
Author SHA1 Message Date
rickyandClaude Opus 5.5 f09c4caf9a Keep calendar toggles per user; bring back New Customer on appointments
- Hide Past Weeks and Show Customer Appointments Only are saved in each user's
  preferences instead of the session, so they stick across logins and devices.
  Show Customer Appointments Only is on by default.
- The new appointment form's New Customer button had no icon since Redmine 6's SVG
  icons, so it didn't show. It has its icon and label again, for users who may add
  customers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 12:48:41 -05:00
rickyandClaude Opus 5.5 be9bd1bac6 2026.11.3
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 21:13:08 -05:00
rickyandClaude Opus 5.5 3a5d83aa69 Calendar review fixes; working day hours setting
- Issues' estimated hours are spread over their working days from start to due date, instead of
  counted in full on both the start and due dates
- Tooltips in the two rightmost columns open leftward again (the rule targeted the old table layout)
- Today scrolls when today is on the page (the check read calendar values that don't exist)
- "Day N of M" on calendar cards and My Page skips holidays; My Page uses the user's date
- Each appointment's working days are worked out once per page (CustomerAppointment#working_days),
  and shared by placement, hours, day numbers and the end date
- The calendar toggles are kept in the session, so changing month loads the page once
- Clicking inside an open tooltip keeps it open; estimates load with the appointments
- Hours in a working day is a plugin setting (default 8)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 21:12:31 -05:00
rickyandClaude Opus 5.5 ae522baf63 2026.11.2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 20:22:52 -05:00
rickyandClaude Opus 5.5 31356ac3fb Appointment statuses in the plugin settings; call-outs as their own entry
Statuses (name, colour, counts toward hours, order) are set up on the plugin's settings page
instead of being hard-coded. Appointments keep a fixed key, so renaming is safe; removing a status
in use asks which status to move its appointments to (done on save by a SettingsController hook).
Colours come from the settings everywhere statuses show, which also fixes Cancelled never being
coloured (cancelled/canceled mismatch).

Call-outs (an employee off work) are their own kind of entry (event_type 'call_out') with an
employee, date, days and notes, added from a button on each calendar day. They sit at the top of
the day in red stripes and never count toward hours. Migration 004 converts Call_Out appointments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 20:22:52 -05:00
rickyandClaude Opus 5.5 f2a16b1821 2026.11.1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 12:11:36 -04:00
ricky a74caaf3ae 2026.11.0 2026-10-31 08:55:20 -04:00
ricky 3361dfe9dd Remove redundant customer appointment history links from calendar and customer actions views 2026-10-29 22:53:19 -04:00
ricky 163b67b02a 2026.10.0 2026-10-28 22:04:20 -04:00
ricky 323c83ace6 Add lambda for calculating event hours and optimize weekly total hours computation 2026-10-23 09:29:20 -04:00
ricky d3b9441f25 2026.9.2 2026-09-09 21:43:55 -04:00
ricky 852d2119a0 Fix over-calculation of hours for multi-day appointments
Updates the calendar view to distribute multi-day appointment hours
across working days, capping each day at 8 hours. This prevents the
total hours from being added to every day and ensures appointments
with fewer hours than their maximum duration don't artificially
inflate daily labor totals.
2026-09-09 21:43:22 -04:00
ricky 041a6441fe 2026.9.1 2026-09-09 21:14:52 -04:00
ricky 0e54316eac Refactor indentation in view_hook_listener.rb for improved readability 2026-09-08 22:39:09 -04:00
ricky 250442db9d removed trailing / 2026-09-08 08:24:00 -04:00
ricky c3a5657b7b Updated README 2026-09-06 21:49:16 -04:00
ricky ee4327152d Updated README 2026-09-06 21:45:45 -04:00
ricky 39f31cfb11 Fix redirect after appointment deletion and handle missing appointment gracefully 2026-09-06 21:38:20 -04:00
ricky df788d4d97 Remove settings partial from plugin registration 2026-09-06 21:31:44 -04:00
ricky 9fac291490 removed unused permissions, moved view registration into setup 2026-09-06 21:30:19 -04:00
ricky 8448c06b10 Refactor menu registration to add top menu item for calendar and remove project menu entry for customer calendar 2026-09-06 21:21:45 -04:00
ricky 97ed852068 Implement global permissions for customer appointments and update views to check permissions before displaying actions 2026-09-06 21:11:18 -04:00
ricky 167e956457 Add holiday management functionality with CRUD operations
- Implement HolidaysController for managing holidays
- Create Holiday model with validation for recurrence types
- Add holiday form and views for creating, editing, and listing holidays
- Integrate holiday checks into customer appointment scheduling
- Update locale file for holiday-related labels and error messages
- Add migration for holidays table
- Update plugin version and add holidays to admin menu
2026-09-05 22:08:36 -04:00
ricky 9a8787c3da Moved calendar JavaScript inclusion from view hook to the calendar view 2026-08-26 10:37:35 -04:00
ricky 2acbbd343a Moved javascript into javascript file 2026-08-25 14:38:24 -04:00
ricky 46784cff44 Added a today button to bring the calendar to the current day 2026-08-25 14:30:06 -04:00
ricky e3b2d33f8e Added session management for calendar month/year 2026-08-25 14:24:30 -04:00
ricky 40fc92b692 2026.8.1 2026-08-25 14:11:28 -04:00
ricky 8427c26532 Refactor appointment labels to use localization for edit and new appointment headers; add missing localization keys. 2026-08-24 20:30:13 -04:00
ricky de7aba15ce Add inline customer creation modal and functionality 2026-08-24 20:17:41 -04:00
ricky 7807e5a1e7 Tweaked layout for avatar & days 2026-08-19 13:56:51 -04:00
ricky a93fdfe63b Added call out status 2026-08-19 12:50:40 -04:00
ricky edd75af01b update the favicon without java script 2026-08-19 08:20:02 -04:00
ricky bd649daa4e added js to dynamically change fav icon to a calendar 2026-08-18 22:05:42 -04:00
ricky 7dbec61c78 Added new issue link 2026-08-18 07:53:59 -04:00
ricky 3e961e2ae9 added option to hide past weeks 2026-08-17 19:31:31 -04:00
ricky e80769bf05 added border around today 2026-08-17 19:10:32 -04:00
ricky e4a51ca393 automatically scroll to today 2026-08-17 18:58:09 -04:00
ricky f99450a58b updated colors and style 2026-08-17 18:52:28 -04:00
ricky d529c99a02 Add day count calculation to appointment display in calendar 2026-08-12 08:37:28 -04:00
ricky 631afa5a6d Refactor calendar to have the date placed on the left and the total estimated hours placed on the right 2026-08-12 07:18:13 -04:00
ricky 97d2fbf5bc Implement responsive mobile view for calendar layout and tooltip positioning 2026-08-12 07:13:24 -04:00
ricky 4e4389dbb8 Remove new apointment links from non working days 2026-08-11 15:13:21 -04:00
ricky 045414e789 Redefine grid layout for calendar and optimize weekend cell display 2026-08-11 14:59:39 -04:00
ricky fbe3eb7382 Enhance appointment card layout with improved styling and structure 2026-08-11 14:46:50 -04:00
ricky 7d6cddf5ca Open estimates in new tab 2026-08-11 14:31:11 -04:00
ricky 62985e9ca2 Added header for simple appointments partial 2026-08-10 19:51:58 -04:00
ricky 0d10a19078 Require redmine_qbo 2026.8.0 2026-08-10 19:38:33 -04:00
ricky 625b970f29 Refactor status retrieval in CustomerAppointment to use constant directly 2026-08-10 19:23:04 -04:00
ricky 48aa873a02 Use the wiki tool bar 2026-08-10 19:20:46 -04:00
ricky adb5344d51 Refactor appointment tooltip links for customer, vehicle, and estimate to simplify display 2026-08-10 19:14:16 -04:00
ricky c656b77b22 Add customer appointment hook to show view for enhanced customization 2026-08-10 19:03:33 -04:00
ricky 01925c60fd Add status legend to calendar view and refactor status retrieval in appointment show 2026-08-10 16:44:49 -04:00
ricky c3064c75f9 Update appointment duration and estimated hours labels for localization 2026-08-10 16:33:01 -04:00
ricky 4c93e19c19 Only show appointments if thye exist 2026-08-10 16:16:39 -04:00
ricky 3c65700b52 Add customer show hook to display upcoming appointments and refactor appointment list rendering 2026-08-10 15:50:23 -04:00
ricky 048b7d4198 Enhance event sorting by time of day in chronological order 2026-08-10 15:28:16 -04:00
ricky b4be49816c Normalize subject field by stripping whitespace and titleizing 2026-08-10 15:13:04 -04:00
ricky 8d4d9238dc Refactor tooltip labels to remove default text for localization 2026-08-10 15:06:53 -04:00
ricky 71bd6c787e Add toggle for displaying only customer appointments and update localization 2026-08-10 15:06:44 -04:00
ricky a028bfd87f put vehicle on new line 2026-08-10 15:06:13 -04:00
ricky c7d8486e00 Add appointment time display in tooltip and show view 2026-08-09 22:06:44 -04:00
ricky ddb16cd4bf Enhance calendar view to display total estimated hours for appointments and issues 2026-08-09 21:52:21 -04:00
ricky 68425e690a Add create_issues action and route for customer appointments 2026-08-09 21:45:11 -04:00
ricky 78d1986493 Fixed comment 2026-08-09 21:33:17 -04:00
ricky 9961ae9b03 Add customer actions hook and appointment creation functionality
- Implement customer ID assignment in the appointment creation process.
- Create a new partial for customer actions to render appointment links.
- Add localization for the "Add Appointment" label.
- Introduce CustomerActionsHookListener to manage customer actions rendering.
2026-08-09 21:31:28 -04:00
ricky 8d2779cd3b Deleted unused helper 2026-08-09 21:30:34 -04:00
ricky 45fcdeebd7 Add method to create issues from labor lines in QBO estimates 2026-08-09 20:46:19 -04:00
ricky 11bc1f1d57 Increased avatar size to 25x25 2026-08-08 11:21:31 -04:00
ricky 42f6ec0e41 Add styling for cancelled appointments with strikethrough effect 2026-08-08 11:16:22 -04:00
ricky d33e430c75 Enhance customer appointments view with localization, improved links, and additional actions 2026-08-08 11:11:34 -04:00
ricky f3583528ea only show furture appointments 2026-08-08 11:10:49 -04:00
ricky 5960127b26 Added to_s 2026-08-08 11:10:08 -04:00
ricky ba16d88659 only show add link for today and future dates 2026-08-08 11:09:50 -04:00
ricky 802db23048 Added quick status action buttons 2026-08-07 22:40:08 -04:00
ricky 94e5b95257 Refactor upcoming appointments view for improved accessibility and styling; add status badge styles and localization labels 2026-08-07 22:25:31 -04:00
ricky d19deb658b Fix query to filter appointments by date instead of start_date 2026-08-07 21:54:39 -04:00
ricky 6077b2cb0b Refactor appointment status styles and enhance tooltip alignment for improved UI consistency 2026-08-07 21:40:25 -04:00
ricky 3e791a64b6 Update tooltip to link technician name and conditionally display end date based on duration 2026-08-07 21:26:33 -04:00
ricky 86533981bc Refactor appointment model and views to use a single date field; update tooltip and calendar display for improved functionality 2026-08-07 21:20:46 -04:00
ricky 88a40b356c Added my page upcoming appointment block 2026-08-07 12:38:50 -04:00
ricky b8b94ad8e2 Enhance appointment layout with responsive styles and multi-line support for titles and details 2026-08-07 08:05:21 -04:00
ricky c481879dd8 Add duration field to appointments and enhance calendar tooltip functionality 2026-08-06 21:24:54 -04:00
ricky 83cdbe7c7c Refactor appointment display and styles for improved layout and tooltip functionality 2026-08-06 20:58:10 -04:00
ricky a0dac795f1 Use the start date for the due date is the end date is nil 2026-08-06 20:40:33 -04:00
ricky d17f58fb62 Fixed various issues with the new appointment form 2026-08-06 20:36:35 -04:00
ricky 10fdfba032 Removed new appointment link 2026-08-06 20:20:33 -04:00
ricky 1babb8b946 Preload the start date 2026-08-06 20:20:18 -04:00
ricky 054e833939 Add CustomerPatch to extend Customer model with appointments association 2026-08-06 19:58:37 -04:00
ricky 7f8038d085 New appointment link 2026-08-06 16:40:06 -04:00
ricky c31a8c7ce6 added translation for duration 2026-08-06 16:39:47 -04:00
ricky bc7c4e26c6 Added style to show and form 2026-08-06 16:32:13 -04:00
ricky 51010758c6 Added tooltip box 2026-08-06 16:05:33 -04:00
ricky 42ddb46e8e Removed test message 2026-08-06 15:49:42 -04:00
ricky 790cefdcfe Initial Commit with basic functionality 2026-08-06 13:12:19 -04:00