Skip to content

fix(brand): keep institution marks out of the public fork; load branding at runtime - #26

Merged
PMQ9 merged 1 commit into
wiki-v2from
fix/284-runtime-brand
Sep 11, 2026
Merged

PMQ9 merged 1 commit into
wiki-v2from
fix/284-runtime-brand

Conversation

@PMQ9

@PMQ9 PMQ9 commented Sep 11, 2026

Copy link
Copy Markdown

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 /brand bundle (in cccvu/wiki-v2); the fork itself renders a neutral "Wiki" with no artwork when no bundle is served.

Changes

  • Delete apps/client/src/features/brand/assets/; revert apps/client/public/icons/* to upstream bytes (removes the byte-replacement seams tracked in cccvu/wiki-v2's UPSTREAM_MODIFICATIONS.md).
  • Neutral 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.tsx awaits the bounded load before first render (documented as a seam in cccvu/wiki-v2), so every getAppName() title is correct.
  • Unit tests: loader contract + branded/neutral rendering.

Verification

  • pnpm test in apps/client: 28 files / 178 tests green (includes the new loader/component tests).
  • pnpm exec tsc --noEmit clean (after building packages/editor-ext).
  • Vanderbilt, vu-wordmark, Dimensional V, CCC Wiki content and v-icon/vu-* asset files return nothing under the tree.

Refs: cccvu/wiki-v2#284

…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]>
@PMQ9
PMQ9 merged commit f6de43a into wiki-v2 Sep 11, 2026
@PMQ9
PMQ9 deleted the fix/284-runtime-brand branch September 11, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant