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.
|
||
|---|---|---|
| .. | ||
| assets | ||
| i18n | ||
| templates | ||
| apply-branding.mjs | ||
| branding.config.json | ||