Commit Graph
21 Commits
Author SHA1 Message Date
Claude 184c1e2464 Add preview page for creating issues from an estimate
- "Create Issues from Estimate" now opens a preview listing each
  matching estimate line: include checkbox, subject (from the line
  description), tracker dropdown, template dropdown and estimated
  hours (from the line quantity)
- Admins set which QBO item codes to look for (e.g. Labor, Alignments)
  and a default tracker in the plugin settings
- Optional redmine_issue_templates support: templates supply the issue
  description; titles still come from the line description
- New appointment_estimate_issues table records which issue came from
  which estimate line, so a line can't be turned into an issue twice;
  deleting the issue frees the line again
- Creation is all-or-nothing; errors are shown on the preview page
- Removes the old Labor-only create_issues_from_labor_lines code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
2026-10-28 20:34:06 -04:00
Claude 73115da2b9 Fix permissions, holiday, hours, visibility and scheduling bugs
- customer_options is now covered by the add/edit permissions, so
  non-admin staff get the vehicle/estimate dropdowns
- create_issues is now a POST member route with its own permission,
  checks add_issues on the target project, no longer redirects to a
  missing route, and has a button on the appointment page
- "Last" week-of-month holidays (e.g. Memorial Day) now match every year
- Cancelled and Call Out appointments no longer count toward hours
- Calendar only shows appointments to users with View customer
  appointments, and only loads those near the displayed month
- due_date skips weekends and holidays, matching the calendar layout
- Subjects keep their casing; only the first letter is capitalized

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
2026-10-28 17:14:13 -04:00
Claude 78fe22f004 Link appointment history from customer page and calendar
- Customer page list now shows a History link and a 'View all N past
  appointments' link; it also renders when a customer has history but
  nothing upcoming
- Calendar toolbar gets an Appointment History button
- Calendar tooltip gets a history icon next to the customer

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
2026-10-28 15:43:25 -04:00
Claude a4095b947f Add customer appointment history page
Adds a history page listing past customer appointments with customer,
status and date-range filters and pagination, linked from the customer
page, the appointments index and each appointment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
2026-10-28 15:20:40 -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 46784cff44 Added a today button to bring the calendar to the current day 2026-08-25 14:30:06 -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 62985e9ca2 Added header for simple appointments partial 2026-08-10 19:51:58 -04:00
ricky c3064c75f9 Update appointment duration and estimated hours labels for localization 2026-08-10 16:33:01 -04:00
ricky 71bd6c787e Add toggle for displaying only customer appointments and update localization 2026-08-10 15:06:44 -04:00
ricky c7d8486e00 Add appointment time display in tooltip and show view 2026-08-09 22:06:44 -04:00
ricky 68425e690a Add create_issues action and route for customer appointments 2026-08-09 21:45:11 -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 d33e430c75 Enhance customer appointments view with localization, improved links, and additional actions 2026-08-08 11:11:34 -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 88a40b356c Added my page upcoming appointment block 2026-08-07 12:38:50 -04:00
ricky c481879dd8 Add duration field to appointments and enhance calendar tooltip functionality 2026-08-06 21:24:54 -04:00
ricky d17f58fb62 Fixed various issues with the new appointment form 2026-08-06 20:36:35 -04:00
ricky c31a8c7ce6 added translation for duration 2026-08-06 16:39:47 -04:00
ricky 790cefdcfe Initial Commit with basic functionality 2026-08-06 13:12:19 -04:00