Commit Graph
9 Commits
Author SHA1 Message Date
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 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
ricky 7807e5a1e7 Tweaked layout for avatar & days 2026-08-19 13:56:51 -04:00
ricky d529c99a02 Add day count calculation to appointment display in calendar 2026-08-12 08:37:28 -04:00
ricky fbe3eb7382 Enhance appointment card layout with improved styling and structure 2026-08-11 14:46:50 -04:00
ricky a028bfd87f put vehicle on new line 2026-08-10 15:06:13 -04:00
ricky 83cdbe7c7c Refactor appointment display and styles for improved layout and tooltip functionality 2026-08-06 20:58:10 -04:00
ricky 51010758c6 Added tooltip box 2026-08-06 16:05:33 -04:00
ricky 790cefdcfe Initial Commit with basic functionality 2026-08-06 13:12:19 -04:00