From f76d2783d9d08f0757df914774f5d3e94194f989 Mon Sep 17 00:00:00 2001 From: Scarriffle Date: Mon, 6 Jul 2026 14:41:31 +0200 Subject: [PATCH] feat(web): show shared calendars under the owner's name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A calendar shared with another person now appears to the recipient under the OWNER's name (Guido's "Persönlich" shows as "Guido"), matching the iOS filter sheet. The original calendar name moves to the sub-label / settings source column so it stays identifiable. Sidebar list + settings table. Co-Authored-By: Claude Opus 4.8 --- frontend/js/calendar.js | 11 +++++++---- frontend/js/version.js | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/frontend/js/calendar.js b/frontend/js/calendar.js index 8939139..cae15ea 100644 --- a/frontend/js/calendar.js +++ b/frontend/js/calendar.js @@ -729,9 +729,12 @@ function renderCalendarList() { }); state.localCalendars.filter(c => c.owned === false && !c.group).forEach(cal => { const readOnly = cal.permission !== 'read_write'; + // A shared calendar is shown to the recipient under the OWNER's name + // (e.g. Guido's "Persönlich" appears as "Guido"); the original calendar + // name stays in the sub-label so it's still identifiable. entries.push({ key: `local:${cal.id}`, source: 'local', dataId: `data-cal-id="${cal.id}"`, - name: cal.name, color: cal.color, enabled: cal.enabled, - sourceLabel: `${t('shared_with_me')} · ${cal.shared_by || ''}${readOnly ? ' · ' + t('perm_read') : ''}`, remove: null }); + name: cal.shared_by || cal.name, color: cal.color, enabled: cal.enabled, + sourceLabel: `${t('shared_with_me')} · ${cal.name}${readOnly ? ' · ' + t('perm_read') : ''}`, remove: null }); }); // Group calendars (owned by the creator or reached via membership) — shown so // they can be toggled/recoloured. Owned group calendars can also be muted @@ -3455,8 +3458,8 @@ function renderCalendarTable() { const canWrite = owned || cal.permission === 'read_write'; const pub = !!cal.caldav_published; rows += ` - ${dot(cal.color, '#34a853')}${escHtml(cal.name)} - Lokal + ${dot(cal.color, '#34a853')}${escHtml(owned ? cal.name : (cal.shared_by || cal.name))} + ${owned ? 'Lokal' : 'Geteilt · ' + escHtml(cal.name)} — ${owned ? rem('local', cal.id, cal.reminders_enabled !== false) : '—'} diff --git a/frontend/js/version.js b/frontend/js/version.js index 4888d28..ffa524b 100644 --- a/frontend/js/version.js +++ b/frontend/js/version.js @@ -1,2 +1,2 @@ // Increment APP_VERSION with every code change -export const APP_VERSION = 'v69'; +export const APP_VERSION = 'v70';