Repository navigation
fix(brand): keep institution marks out of the public fork; load branding at runtime - #26
Merged
Merged
Conversation
…ing at runtime
The fork is public (AGPL), so Vanderbilt/CCC logos, the wordmark, branded favicons,
and the institution name must not ship in its source — a clone would otherwise be
turnkey-branded. Branding is now runtime data served by the platform's /brand
bundle (see cccvu/wiki-v2 services/platform/assets/brand).
- Delete features/brand/assets/ and revert public/icons/* to their upstream
bytes (removes the byte-replacement seams from the wiki-v2 ledger).
- Neutral index.html / manifest.json ("Wiki"), neutral theme token naming, and
neutralize remaining institution strings/test fixtures.
- features/brand/ is now a generic loader: fetch + validate /brand/manifest.json
(same-origin only), fail CLOSED to a neutral identity (missing bundle, non-JSON
SPA fallback, error, or timeout), and render the lockup only when one exists.
- main.tsx awaits the bounded load before the first render so every getAppName()
title is correct (new documented seam in cccvu/wiki-v2 UPSTREAM_MODIFICATIONS.md).
- Unit tests cover the loader contract and branded/neutral rendering.
Refs: cccvu/wiki-v2#284
Co-Authored-By: Claude Opus 4.8 <[email protected]>
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.
What
Keep Vanderbilt/CCC marks out of this public (AGPL) fork and load institution branding at runtime instead.
The fork is redistributable, so shipping the wordmark, brand favicons, and institution name means a clone is a turnkey branded lookalike. Branding is now runtime data served by the platform's
/brandbundle (incccvu/wiki-v2); the fork itself renders a neutral "Wiki" with no artwork when no bundle is served.Changes
apps/client/src/features/brand/assets/; revertapps/client/public/icons/*to upstream bytes (removes the byte-replacement seams tracked incccvu/wiki-v2'sUPSTREAM_MODIFICATIONS.md).index.html/public/manifest.json("Wiki"), neutral theme token naming, and neutralize remaining institution strings/test fixtures.features/brand/is now a generic loader: fetch + validate/brand/manifest.json(same-origin only), fail closed to a neutral identity on a missing bundle, non-JSON SPA fallback, network error, or timeout; render the lockup only when one exists.main.tsxawaits the bounded load before first render (documented as a seam incccvu/wiki-v2), so everygetAppName()title is correct.Verification
pnpm testinapps/client: 28 files / 178 tests green (includes the new loader/component tests).pnpm exec tsc --noEmitclean (after buildingpackages/editor-ext).Vanderbilt,vu-wordmark,Dimensional V,CCC Wikicontent andv-icon/vu-*asset files return nothing under the tree.Refs: cccvu/wiki-v2#284