diff --git a/src/components/ui/icons.tsx b/src/components/ui/icons.tsx index 01efb93..611e974 100644 --- a/src/components/ui/icons.tsx +++ b/src/components/ui/icons.tsx @@ -45,6 +45,21 @@ export function IconTrash(props: IconProps) { ); } +/** Delete-whole-series: a calendar with an ✕ — distinct silhouette from the + * single-slot trash, signalling "remove these recurring dated slots". */ +export function IconCalendarX(props: IconProps) { + return ( + + + + + + + + + ); +} + export function IconArchive(props: IconProps) { return ( diff --git a/src/i18n/messages.ts b/src/i18n/messages.ts index c0f4c65..03ad706 100644 --- a/src/i18n/messages.ts +++ b/src/i18n/messages.ts @@ -1245,8 +1245,8 @@ const en: Dict = { "appointments.reschedule": "Propose new time", "appointments.acceptReschedule": "Accept new time", "appointments.declineReschedule": "Decline new time", - "appointments.deleteSlot": "Delete time", - "appointments.deleteSeries": "Delete series", + "appointments.deleteSlot": "Delete this time", + "appointments.deleteSeries": "Delete whole series", "appointments.note": "Note", "appointments.reason": "Reason", "appointments.repeatWeekly": "Repeat weekly", @@ -2142,8 +2142,8 @@ const tr: Dict = { "appointments.reschedule": "Yeni saat öner", "appointments.acceptReschedule": "Yeni saati kabul et", "appointments.declineReschedule": "Yeni saati reddet", - "appointments.deleteSlot": "Saati sil", - "appointments.deleteSeries": "Seriyi sil", + "appointments.deleteSlot": "Bu saati sil", + "appointments.deleteSeries": "Tüm seriyi sil", "appointments.note": "Not", "appointments.reason": "Sebep", "appointments.repeatWeekly": "Haftalık tekrarla", diff --git a/src/pages/appointments-page.tsx b/src/pages/appointments-page.tsx index 08289d6..724f97c 100644 --- a/src/pages/appointments-page.tsx +++ b/src/pages/appointments-page.tsx @@ -28,7 +28,7 @@ import { Button } from "@/components/ui/button"; import { ConfirmDialog } from "@/components/ui/confirm-dialog"; import { DataTable, DataTableSkeleton } from "@/components/ui/data-table"; import { Dialog, DialogBody, DialogContent, DialogHeader, DialogTitle } from "@/components/ui/dialog"; -import { IconCheck, IconEye, IconPlus, IconRefresh, IconTrash, IconX } from "@/components/ui/icons"; +import { IconCalendarX, IconCheck, IconEye, IconPlus, IconRefresh, IconTrash, IconX } from "@/components/ui/icons"; import { SidePanel } from "@/components/ui/side-panel"; import { TableRowActions } from "@/components/ui/table-row-actions"; import { appointmentStatusClass, appointmentStatusDotClass, appointmentStatusLabelKey } from "@/lib/appointment-status"; @@ -200,9 +200,12 @@ function AppointmentsContent() { onSelect: () => askConfirm(t("appointments.confirmDeleteSlot"), () => deleteSlotById(slot.id)), }]; if (slot.series) { + // Distinct silhouette from the single-slot trash: a calendar-✕ signals + // this removes the WHOLE recurring series, not just this one time — the + // two menu items must not look identical. actions.push({ label: t("appointments.deleteSeries"), - icon: , + icon: , destructive: true, onSelect: () => askConfirm(t("appointments.confirmDeleteSeries"), () => deleteSlotSeries(slot.series!)), });