Frontend overlay (folds into the white-label apply step). Documents synced from SMB shares (source=ingestion_api) have no browsable file, so Onyx's preview click was a dead end. openDocument now, for ingestion_api docs, copies the logical network path (semantic_identifier, e.g. \\company\share\file) to the clipboard with a toast instead of attempting a broken preview. Single change at the shared click chokepoint, so it covers the document sidebar + citations. - branding/smb/smb-ui.patch: the utils.ts change (applies clean to v4.5.2 and on top of the i18n patch; order-independent). - apply-branding.mjs: new step 0b applies it (gated by smbUi.enabled, idempotent via a marker), before the codemod. - branding.config.json: smbUi block. Verified: full apply green (i18n + SMB + branding), idempotent re-apply, no conflict markers. Compile build in progress. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
96 lines
6.6 KiB
JSON
96 lines
6.6 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.5.2), not a raw commit. The i18n patch below is re-synced against this exact tag, so it applies cleanly (see i18n). To move to a newer Onyx: re-sync the i18n patch onto the new tag, then bump this. When Onyx ships official i18n, bump this and set i18n.enabled=false.",
|
|
"repo": "https://github.com/onyx-dot-app/onyx",
|
|
"pinnedCommit": "v4.5.2",
|
|
"webSrcRoot": "web"
|
|
},
|
|
"i18n": {
|
|
"$comment": "TEMPORARY end-user internationalization, backported from Onyx PR #12558 (react-i18next; user UI only, Admin stays English) until the official feature ships. apply-branding.mjs git-applies `patch` onto the pinned checkout BEFORE the branding string codemod, then the codemod also rebrands Onyx->AIDO inside the bundled locale dictionaries. Fill/refine translations in web/public/locales/<lang>/common.json. Set enabled=false to drop it once official i18n lands.",
|
|
"enabled": true,
|
|
"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": "Phase 2 of the SMB connector (smb-connector/): a tiny frontend overlay so documents synced from SMB/network shares (source=ingestion_api) don't present a broken, dead file-preview. Clicking a cited SMB document copies its logical network path (\\\\company\\share\\...) to the clipboard instead, so the user can open it on the share. Applied on top of the i18n patch, before the branding codemod. Independent of the connector itself; set enabled=false to drop it.",
|
|
"enabled": true,
|
|
"patch": "branding/smb/smb-ui.patch"
|
|
},
|
|
|
|
"build": {
|
|
"$comment": "As of 2026-07, Onyx's web Dockerfile bases on Docker Hardened Images (dhi.io/node:*), a paid Docker offering that requires a DHI subscription + `docker login dhi.io` — so `make build` fails with a registry login error for anyone without DHI access. The apply step rewrites those FROM lines to the equivalent PUBLIC Docker Hub node images (Debian 13 / glibc, matching the DHI variant the Dockerfile targets), so the branded image builds with no login. Keys = the dhi.io image ref (the trailing @sha256 digest, if any, is stripped automatically); values = the public replacement. No-op (with a warning) if the DHI lines are absent, so this stays safe across upstream changes.",
|
|
"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 now admin-only (hidden for non-admins via the i18n patch). Admins want full, unmodified visibility, so 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": []
|
|
}
|
|
}
|