# Task 023 — White Label & System Branding Foundation

**Status:** done  
**Phase:** 10 — Admin / Production  
**Doc:** [docs/28-white-label-branding.md](../docs/28-white-label-branding.md)

## Objective

Remove hardcoded product branding and make the platform fully configurable from Settings → Branding (single-instance white-label, not multi-tenant).

## Scope

1. Brand settings model + API + upload storage (`uploads/branding`)
2. `BrandProvider` / `useBrand()` for all UI branding
3. Dynamic sidebar, login, metadata, email defaults, AI context
4. Centralized email footer generator
5. Remove hardcoded Anwal / منصة أنوال references from application code
6. Brand preview in settings

## Acceptance criteria

- [x] No hardcoded Anwal references in `src/` UI/email/AI paths
- [x] Branding managed from Settings → Branding
- [x] Sidebar and login update from settings
- [x] Email templates and footers use branding variables
- [x] AI uses brand settings (company name via brand voice)
- [x] `npm run lint` passes
- [x] `npm run build` passes

## Documentation updates required

- [x] `docs/28-white-label-branding.md`
- [x] `docs/16-changelog.md`
- [x] `docs/03-api-specification.md`
- [x] `docs/01-architecture.md`
- [x] `docs/14-roadmap.md`
- [x] `docs/04-ui-pages.md`
- [x] `tasks/README.md`
