AcadeDoc/apps/server/src/integrations
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
..
audit noop audit module (#1994) 2026-03-05 09:29:39 +00:00
environment refactor(acadedoc): move branding from .env to UI-only — Patch 020 2026-05-08 11:49:49 +02:00
export fix(server): make package.json require resilient to dist mode 2026-05-08 11:15:06 +02:00
health feat: cloud and ee (#805) 2025-03-06 13:38:37 +00:00
import feat(ee): PDF import (#2142) 2026-05-01 14:56:39 +01:00
mail mail 2026-05-07 18:13:24 +01:00
queue feat(ee): PDF export api (#2112) 2026-04-14 16:26:54 +01:00
redis feat: Typesense search driver (EE) (#1664) 2025-10-07 17:34:32 +01:00
security fix(server): make package.json require resilient to dist mode 2026-05-08 11:15:06 +02:00
static feat: user session management (#2056) 2026-03-26 20:00:04 +00:00
storage fix: local storage, and package overrides 2026-04-22 14:13:25 +01:00
telemetry fix(server): make package.json require resilient to dist mode 2026-05-08 11:15:06 +02:00
throttle feat(ee): ai chat (#2098) 2026-04-10 19:23:47 +01:00
transactional feat(acadedoc): add AcadeDoc branding, Brevo SMTP preset, UI customization — R4.4 2026-05-08 11:36:38 +02:00