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.
95 lines
No EOL
7.3 KiB
JSON
95 lines
No EOL
7.3 KiB
JSON
{
|
|
"$comment": "SINGLE SOURCE OF TRUTH for the Livtec / AIDO white-label of Onyx Community Edition. Edit values here, then run `node branding/apply-branding.mjs` and rebuild the web image. Values mirror the AIDO/Lobe white-label so the two products stay visually identical.",
|
|
"brand": {
|
|
"name": "AIDO",
|
|
"legalName": "Livtec AG",
|
|
"poweredByHtml": "Powered by Livtec",
|
|
"ogDescription": "Ein KI-Assistent, der genau auf Ihre Unternehmensdokumente abgestimmt ist."
|
|
},
|
|
"upstream": {
|
|
"$comment": "Pin the exact Onyx release tag this overlay is authored against. `make setup` checks this out. Locked to a release NUMBER (e.g. v4.7.2), not a raw commit. As of v4.7.2 Onyx ships OFFICIAL i18n (next-intl, incl. German), so the temporary i18n backport is disabled (i18n.enabled=false) and the codemod rebrands Onyx->AIDO inside the official message catalogs instead. To move to a newer Onyx: re-sync the smbUi patch onto the new tag (targeted patches in apply-branding.mjs are string-based and usually survive), then bump this.",
|
|
"repo": "https://github.com/onyx-dot-app/onyx",
|
|
"pinnedCommit": "v5.0.3",
|
|
"webSrcRoot": "web"
|
|
},
|
|
"i18n": {
|
|
"$comment": "DISABLED since the v4.7.2 upgrade. This was a TEMPORARY end-user i18n backport of Onyx PR #12558 (react-i18next) used on v4.5.2 before Onyx shipped official i18n. v4.7.2 has official next-intl i18n (German included), so this whole overlay is off. Kept here only for reference/rollback; the patch and dictionaries are no longer applied. Language limiting to de+en and the codemod rebrand of the official catalogs are handled directly in apply-branding.mjs (steps 2b + 3c-official). Do not re-enable against v4.7+. (Now pinned to v4.8.2.)",
|
|
"enabled": false,
|
|
"patch": "branding/i18n/end-user-i18n.patch",
|
|
"baseCommit": "v4.5.2",
|
|
"defaultLanguage": "de",
|
|
"rebrandLocales": true,
|
|
"languages": [
|
|
"de",
|
|
"en"
|
|
],
|
|
"$languages_comment": "Languages offered in the UI selector. Any of the PR's bundled languages NOT listed here (es/fr/pt) are stripped from i18n.ts + the Settings selector at apply time. To offer another language, add its code here AND a dictionary at dictionaries/<code>.json.",
|
|
"dictionaries": "branding/i18n/locales",
|
|
"$dictionaries_comment": "Client-editable source dictionaries. After the patch is applied, apply-branding.mjs copies dictionaries/<lang>.json over web/public/locales/<lang>/common.json — so edits here PERSIST across `make setup` (they're the source of truth, not the patch). Edit branding/i18n/locales/de.json to add/refine German (see MISSING-de.md for untranslated keys), then `make apply && make build`."
|
|
},
|
|
"smbUi": {
|
|
"$comment": "SMB connector UI overlay (smb-connector/): a tiny frontend overlay so documents synced from SMB/network shares don't present a broken, dead file-preview. SMB documents are detected by metadata.smb_source (they are ingested as the `file` source, so they show in Default Chat and the source filters). Clicking a cited SMB document copies its full logical network path (\\\\company\\share\\...) from metadata.logical_path to the clipboard instead, so the user can open it on the share. Covers both the chat citation view and the licensed Search view. (The earlier 'Initial Indexing' badge fix was dropped: File connectors report status correctly on their own.) As of the v5.0.3 upgrade this is applied via string-anchored patchFile edits in apply-branding.mjs (not a git-apply .patch), so it is idempotent and survives upstream context drift. Independent of the connector itself; set enabled=false to drop it.",
|
|
"enabled": true
|
|
},
|
|
|
|
"build": {
|
|
"$comment": "NO-OP on v4.7.2 (kept for older tags / safety). v4.5.2's web Dockerfile hardcoded Docker Hardened Images (dhi.io/node:*, paid, needs `docker login dhi.io`), so `make build` failed without DHI access; the apply step rewrote those FROM lines to public Docker Hub node images. v4.7.2 instead uses build ARGs (NODE_BUILDER_IMAGE / NODE_RUNTIME_IMAGE) that DEFAULT to public `docker.io/library/node:24-trixie-slim` — DHI is only a CI-time override — so a plain `docker build` needs no login and no swap. This map now matches nothing and logs a harmless 'nothing to swap'. Keys = the dhi.io image ref (trailing @sha256 digest stripped automatically); values = the public replacement.",
|
|
"baseImageReplacements": {
|
|
"dhi.io/node:24-debian13-dev": "docker.io/library/node:24-trixie",
|
|
"dhi.io/node:24-debian13": "docker.io/library/node:24-trixie-slim"
|
|
}
|
|
},
|
|
"assets": {
|
|
"$comment": "Remote source URLs are fetched at apply time into onyx/web/public/branding/. If a fetch fails (e.g. offline), the apply script keeps any existing committed file in branding/assets/ as a fallback.",
|
|
"mark": {
|
|
"url": "https://crm.livtec.cloud/hubfs/Logos/AIDO/favicon_aido_48x48_rand.png",
|
|
"dest": "branding/mark.png",
|
|
"note": "Square symbol used as the in-app logo icon (sidebar, loaders, compact placements)."
|
|
},
|
|
"wordmark": {
|
|
"url": "https://crm.livtec.cloud/hubfs/Logos/AIDO/aido_465x170.png",
|
|
"dest": "branding/wordmark.png",
|
|
"note": "Full lockup (symbol + AIDO text) used wherever the typed logo appears (auth screen, headers)."
|
|
},
|
|
"favicon": {
|
|
"url": "https://crm.livtec.cloud/hubfs/Logos/AIDO/favicon_aido.png",
|
|
"dest": "branding/favicon.png",
|
|
"note": "Browser tab icon. Replaces the default /onyx.ico reference."
|
|
}
|
|
},
|
|
"links": {
|
|
"$comment": "Maps Onyx's hardcoded link constants to Livtec destinations. DOCS_BASE_URL drives most in-app documentation links; deep sub-paths (e.g. /admins) consolidate to this root.",
|
|
"docsBaseUrl": "https://portal.livtec.cloud",
|
|
"website": "https://livtec.cloud/",
|
|
"help": "https://portal.livtec.cloud/",
|
|
"privacy": "https://livtec.cloud/terms/",
|
|
"terms": "https://livtec.cloud/terms/",
|
|
"blog": "https://livtec.cloud/blog/",
|
|
"changelog": "https://livtec.cloud/"
|
|
},
|
|
"emails": {
|
|
"business": "hello@livtec.cloud",
|
|
"support": "support@livtec.cloud"
|
|
},
|
|
"rename": {
|
|
"$comment": "Drives the user-visible string codemod. `word` replaces standalone, capitalised whole-word matches of \\bOnyx\\b only — camelCase identifiers (OnyxDocument, SvgOnyxLogo), lowercase package refs (@onyx, onyx.app, onyx.ico) are never touched. `literals` are exact-string replacements applied before the word pass for multi-word brand terms.",
|
|
"word": {
|
|
"Onyx": "AIDO"
|
|
},
|
|
"literals": {
|
|
"Open Source AI Platform": "Powered by Livtec",
|
|
"https://docs.onyx.app": "https://portal.livtec.cloud",
|
|
"https://www.onyx.app": "https://livtec.cloud",
|
|
"https://discord.gg/4NA5SbzrWb": "https://livtec.cloud/",
|
|
"support@onyx.app": "support@livtec.cloud",
|
|
"@onyx.app administrators": "@livtec.cloud administrators",
|
|
"ẞ": "SS",
|
|
"ß": "ss"
|
|
}
|
|
},
|
|
"notifications": {
|
|
"$comment": "Notification centre is admin-only. The bell, panel and unread badge are hidden for non-admins via a targeted patch in apply-branding.mjs (step 2b, AccountPopover.tsx, gated on hasAdminAccess). Admins want full, unmodified visibility, so content filtering is OFF: sanitize=false + empty suppressTypes => apply-branding.mjs skips patching useNotifications entirely and notifications render straight from the backend. To re-enable rebrand/suppression, set sanitize=true and/or list suppressTypes.",
|
|
"sanitize": false,
|
|
"suppressTypes": []
|
|
}
|
|
} |