From f986b51b2d83cccf9fc8f0c776354d1e679662b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Fri, 24 Jul 2026 21:10:31 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=97=93=EF=B8=8F=20distinguish=20de?= =?UTF-8?q?lete-slot=20from=20delete-series=20in=20the=20row=20menu=20-=20?= =?UTF-8?q?series=20delete=20now=20uses=20a=20calendar-=E2=9C=95=20glyph?= =?UTF-8?q?=20(distinct=20silhouette=20from=20=20=20the=20single-slot=20tr?= =?UTF-8?q?ash)=20so=20the=20two=20red=20menu=20items=20aren't=20identical?= =?UTF-8?q?=20-=20add=20IconCalendarX;=20drop=20the=20cramped=20trash-in-r?= =?UTF-8?q?ing=20attempt=20-=20relabel=20for=20explicit=20scope:=20"Delete?= =?UTF-8?q?=20this=20time"=20/=20"Bu=20saati=20sil"=20=20=20vs=20"Delete?= =?UTF-8?q?=20whole=20series"=20/=20"T=C3=BCm=20seriyi=20sil"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ui/icons.tsx | 15 +++++++++++++++ src/i18n/messages.ts | 8 ++++---- src/pages/appointments-page.tsx | 7 +++++-- 3 files changed, 24 insertions(+), 6 deletions(-) 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!)), });