From 642a9d370bfdd094fe35fbf63b514d9e13f2fb6a Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 18 Apr 2026 23:36:57 +0000 Subject: [PATCH 1/3] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/calendar.index.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/routes/calendar.index.tsx b/src/routes/calendar.index.tsx index 9ff0a48..dc69a97 100644 --- a/src/routes/calendar.index.tsx +++ b/src/routes/calendar.index.tsx @@ -84,6 +84,14 @@ function typeMeta(key: string) { return EVENT_TYPE_MAP[key] ?? EVENT_TYPE_MAP.other; } +function ownerInitials(name: string | null): string { + if (!name) return ""; + const parts = name.trim().split(/\s+/).filter(Boolean); + if (parts.length === 0) return ""; + if (parts.length === 1) return parts[0].slice(0, 2).toUpperCase(); + return (parts[0][0] + parts[parts.length - 1][0]).toUpperCase(); +} + // ---- Unified event ---- interface Evt { id: string; From 06d31c2f86811d1ac4121c9fcbd98129c8ded60d Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 18 Apr 2026 23:37:09 +0000 Subject: [PATCH 2/3] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/calendar.index.tsx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/routes/calendar.index.tsx b/src/routes/calendar.index.tsx index dc69a97..3a62074 100644 --- a/src/routes/calendar.index.tsx +++ b/src/routes/calendar.index.tsx @@ -883,17 +883,25 @@ function MonthGrid({
{dayEvts.slice(0, 3).map((e) => { const meta = typeMeta(e.event_type); + const initials = ownerInitials(e.owner_name); return (
- {!e.all_day && formatInEST(e.start, "h:mma ")} - {e.title} + {initials && ( + + {initials} + + )} + + {!e.all_day && formatInEST(e.start, "h:mma ")} + {e.title} +
); })} From a4b626096f8f39bc01934a6dc6c4425780ef18c6 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 18 Apr 2026 23:37:17 +0000 Subject: [PATCH 3/3] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/calendar.index.tsx | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/routes/calendar.index.tsx b/src/routes/calendar.index.tsx index 3a62074..9d20d14 100644 --- a/src/routes/calendar.index.tsx +++ b/src/routes/calendar.index.tsx @@ -961,14 +961,25 @@ function WeekStrip({
{dayEvts.map((e) => { const meta = typeMeta(e.event_type); + const initials = ownerInitials(e.owner_name); return (
- {!e.all_day && formatInEST(e.start, "h:mma ")} - {e.title} + {initials && ( + + {initials} + + )} + + {!e.all_day && formatInEST(e.start, "h:mma ")} + {e.title} +
); })}