Repository navigation
feat: add business branding to directory pages - #128
Open
KitKat31337 wants to merge 2 commits into
Open
KitKat31337 wants to merge 2 commits into
KitKat31337 wants to merge 2 commits into
Conversation
Contributor
|
Run failed. View the logs →
|
This was
linked to
issues
Oct 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Bring public person and team directories into line with booking and manage pages by displaying the configured business branding and applying the existing head-code injection, Content Security Policy, and analytics-consent behavior.
This fixes two public-page inconsistencies:
/u/{handle}and/team/{slug}.Related issues:
Problem
Booking and manage pages already display the instance’s business identity. Public directories instead show only the person or team identity, leaving visitors without the same business branding as the rest of the booking flow.
The directory handler also loads tracking settings and supplies
HeadHTMLto its template, but the template does not render that content. Additionally, directory responses do not usepublicCSP(track), and the template omits the shared consent banner required by native GA4/GTM tracking.These omissions mean the same instance-wide settings behave differently depending on which public page a visitor opens.
Changes
Shared business header
Extract the duplicated business-header markup from booking and manage templates into a shared
businessHeaderpartial, then use it on all four public surfaces:The header:
Business logowhen the name is empty.Person and team avatars remain inside their directory cards, keeping the business identity separate from the person or team identity.
Configured logo sizing and opacity
Extend directory view data with
LogoHeightandLogoOpacity, populated through the existingpageLogoHeightandopacityCSShelpers.Directories therefore use the same normalized sizing and opacity behavior as booking and manage pages, rather than introducing a separate hard-coded logo size.
Head HTML and public CSP
Render the existing admin-configured
HeadHTMLexactly once in the directory’s<head>, after the shared tracking partial and before the booking stylesheet.Set the directory response’s
Content-Security-PolicyusingpublicCSP(track), matching booking and manage pages.This preserves the existing policy rules:
The trusted-HTML boundary remains the authenticated tracking-settings configuration. Directory URL parameters cannot supply injected HTML.
Analytics consent
Include the shared
consentBannerpartial on directory pages so native GA4/GTM tracking uses the existing consent flow, including restoration of stored consent.Documentation
Update
docs/ARCHITECTURE.mdand related comments to describe:Compatibility and scope
The change reuses existing branding and tracking settings. It requires no database migration, new configuration, or API changes.
Booking and manage pages retain their existing logo/name selection and configured appearance through the shared partial, with an added fallback for logo alternative text.
Directory event filtering, ordering, booking links, team-member links, and person/team avatars remain intact. Banner images remain on their existing booking and manage surfaces.
Regression coverage
Added handler tests cover:
<head>