AcadeDoc/apps/client/src/lib
Corentin 8e717401bd refactor(acadedoc): move branding from .env to UI-only — Patch 020
Per Corentin's feedback (2026-05-08): .env should be reserved for
server-side config (SMTP, DB, OIDC). Branding (name, colors, logo)
is admin/UI territory.

Changes:
- Remove BRAND_NAME / BRAND_LOGO_URL / BRAND_PRIMARY_COLOR /
  BRAND_ACCENT_COLOR from .env.example, vite.config.ts define block
- Hardcode "AcadeDoc" + #2563eb / #7c3aed as defaults in
  apps/client/src/lib/config.ts and brand-theme.ts
- getBrandTheme() now takes optional runtime overrides instead of
  reading process.env (used by per-workspace branding hook to apply
  DB-stored colors)
- Server getMailFromName() defaults to "AcadeDoc" hardcoded; only
  MAIL_FROM_NAME env var can override
- Fix workspace-branding.spec.ts (was importing vitest in jest project,
  R4.4 leftover bug, similar to Patch 017 scope)
- Fix environment.service.spec.ts (was missing ConfigService provider
  in TestingModule, pre-existing upstream bug surfaced by jest run)

Tests: 13 brand-theme + 13 workspace-branding + 2 environment = 28
green. Per-workspace UI override via /settings/branding (R4.4) works
unchanged.

Patch 020.
2026-05-08 11:49:49 +02:00
..
api-client.ts feat: auth pages layout (#2042) 2026-03-22 16:40:50 +00:00
app-route.ts feat: favorites (#2103) 2026-04-12 22:06:25 +01:00
config.ts refactor(acadedoc): move branding from .env to UI-only — Patch 020 2026-05-08 11:49:49 +02:00
constants.ts feat: anchor links (#1765) 2025-12-06 14:46:54 +00:00
get-initials-color.ts fix: UI improvements 2026-01-19 21:05:34 +00:00
index.ts refactor layout 2024-05-31 21:51:44 +01:00
jotai-helper.ts feat: resizable sidebar (#452) 2024-11-01 10:05:03 +00:00
local-emitter.ts fix: page title editor bugs (#892) 2025-03-14 22:41:34 +00:00
time.ts fix translation 2025-01-16 15:29:09 +00:00
types.ts feat: switch to cursor pagination (#1884) 2026-01-30 19:28:54 +00:00
utils.tsx fix: ctrl-k behavior on macOS (#2052) 2026-05-01 00:36:40 +01:00