From 443c8b6a37e52d982d20f8d27db855762bf378e1 Mon Sep 17 00:00:00 2001 From: Padreug Date: Wed, 10 Jun 2026 18:29:39 +0200 Subject: [PATCH] feat(activities): brand-kit logo + app name in the events page header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace the bare "Events" h1 with the brand-kit logo paired with the standalone's localized name. Deployers get per-standalone logo control via branding//icons/events/logo.{svg,png}; the component itself stays brand-agnostic. Brand-kit plumbing: - `resolveAppLogo(app?)` in vite-branding.ts mirrors the resolution chain pwa-assets.config.ts already uses for PWA icons (per-standalone svg → png → global svg → png). - `brandAppLogoAliasEntry(app)` returns a vite alias array entry. A regex matches `@brand-app-logo` with or without a `?url` query so the file resolves cleanly under either form. - vite.events.config.ts switches its resolve.alias to the array form so the per-standalone regex doesn't clash with the bare `@brand` string alias. Component side: a single `import brandAppLogoUrl from '@brand-app-logo?url'` gives EventsPage the best-resolved logo without any fallback chain in the component. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/modules/events/views/EventsPage.vue | 13 +++++- src/vite-env.d.ts | 9 +++++ vite-branding.ts | 53 ++++++++++++++++++++++++- vite.events.config.ts | 20 +++++++--- 4 files changed, 86 insertions(+), 9 deletions(-) diff --git a/src/modules/events/views/EventsPage.vue b/src/modules/events/views/EventsPage.vue index baa9b92..7760087 100644 --- a/src/modules/events/views/EventsPage.vue +++ b/src/modules/events/views/EventsPage.vue @@ -9,6 +9,7 @@ import { CollapsibleTrigger, } from '@/components/ui/collapsible' import { SlidersHorizontal, CalendarDays, Plus } from 'lucide-vue-next' +import brandAppLogoUrl from '@brand-app-logo?url' import { useEvents } from '../composables/useEvents' import { useEventsStore } from '../stores/events' import EventSearchOverlay from '../components/EventSearchOverlay.vue' @@ -75,8 +76,16 @@ function openCalendar() {