fix(events): resolve the ticket QR logo through @brand-app-logo #151
No reviewers
Labels
No labels
app:activities
app:chat
app:chatelet
app:events
app:forum
app:libra
app:market
app:restaurant
app:tasks
app:wallet
app:webapp
bug
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aiolabs/webapp!151
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/events-ticket-qr-brand-logo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
src/modules/events/lib/ticketQr.ts(from #146's guest-checkout work) imports the brand logo by literal filename:Any brand kit that ships its logo as SVG only fails the events standalone build with
ENOENT … /logo.png. cfaun's kit (hosts/cfaun/branding/in server-deploy) haslogo.svgand no PNG, so./deploy.sh cfaunbroke on theaio-webapp-eventsderivation.Fix
Use the
@brand-app-logo?urlalias like every other logo consumer (EventsPage.vue,MobileDrawer.vue,AppSidebar.vue). It resolves the per-app override or the brand's primary logo in SVG-then-PNG order viaresolveAppLogo('events'), so the import is satisfied by any valid kit. CanvasdrawImagehandles an SVG<img>fine given the explicit size we already pass (cfaun's SVG also declareswidth/height).Verification
Built
nixosConfigurations.cfaun.config.system.build.toplevelin server-deploy with--override-input webapp-devpointing at this branch: the events standalone and the full system build succeed. Follow-up in server-deploy after merge: bump thewebapp-devlock input and redeploy cfaun.🤖 Generated with Claude Code
https://claude.ai/code/session_01Nx87UjQtd1HS5u4DwCMve8