aido-onyx/branding
livdebus 145725b6b1 Fix v5.0.3 build: type-safe notification gate + robust SMB overlay
Two issues from the client's make rebrand on v5.0.3:

1. TypeScript build failed (implicit-any in AccountPopover): the
   conditional-spread notification item lost contextual typing. Reworked
   to leave useSettingsItems untouched (compiles as upstream) and instead
   drop the "notifications" row in the component for non-admins:
   const items = isAdmin ? rawItems : rawItems.map(group =>
     filter out row.id === "notifications"). Uses only standard narrowing
   (item.kind, row.id), so no fragile typing. Still gates on isAdmin.

2. SMB UI patch did not apply: git-apply is brittle about context lines
   and re-runs (make rebrand does not re-clone). Converted the SMB
   overlay from a git-apply .patch to string-anchored patchFile edits
   (same mechanism as the other overlays) — idempotent and tolerant of
   context drift. Removed the now-unused branding/smb/smb-ui.patch.

Verified every anchor against the real v5.0.3 sources; v5's own SearchCard
already reads document.metadata, confirming the metadata access type-checks.
2026-11-10 16:34:42 +01:00
..
assets AIDO white-label overlay for Onyx Community Edition 2026-06-27 08:06:58 +05:00
i18n i18n: system-prompt desc, search-filter/model/files labels, hide notif badge for users 2026-08-19 23:07:31 +05:00
templates Fix remaining branding leaks: error-page logo/links + notification bell 2026-06-29 22:57:50 +05:00
apply-branding.mjs Fix v5.0.3 build: type-safe notification gate + robust SMB overlay 2026-11-10 16:34:42 +01:00
branding.config.json Fix v5.0.3 build: type-safe notification gate + robust SMB overlay 2026-11-10 16:34:42 +01:00