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
This commit is contained in:
Claude committed 2026-10-28 15:43:25 -04:00
1 parent a4095b947f
commit 78fe22f004
6 files changed
+93 -61

No files matched your search

+10
View File
@@ -120,6 +120,16 @@
<!-- Toggle Bar -->
<div class="calendar-filter-toolbar" style="margin-bottom: 12px; display: flex; align-items: center; justify-content: flex-end; gap: 16px;">
<% if User.current.allowed_to?(:view_customer_appointments, nil, global: true) %>
<%= link_to history_customer_appointments_path,
class: 'button-small',
style: 'display: inline-flex; align-items: center; gap: 5px; text-decoration: none; font-weight: 600; font-size: 0.9em; padding: 4px 10px; border-radius: 3px;',
title: l(:label_appointment_history) do %>
<i class="fa-solid fa-clock-rotate-left" aria-hidden="true"></i>
<%= l(:label_appointment_history) %>
<% end %>
<% end %>
<% if is_current_month %>
<button type="button"
onclick="scrollToToday()"