wulf-pulse/app/api/admin
lorentz db375fb0e6 feat(admin): client scope — filter analytics to recurring-revenue companies
Adds company-level opt-out scoping so white-label / subcontract clients
(TTG, LEC, PER, VCF, Trivium Packaging, TNT Pizza, etc.) can be excluded
from Wulf's own dashboard KPIs and ticket analytics without affecting
per-company drill-down views.

- migration 082: company_scope table (opt-out; absent row = in scope)
- GET/PATCH /api/admin/company-scope[/companyId] — list + upsert
- /admin/client-scope — searchable company list with Switch per row,
  type filter, and in/out scope filter; excluded rows are dimmed
- dashboard overview KPIs now exclude out-of-scope company tickets
- analyzer /tickets query excludes out-of-scope when no specific
  client is selected (explicit per-company selection still works)
- "Client Scope" tile added to admin Tools & Data section

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 11:40:47 -04:00
..
audit-log feat: add authentication, user management, and admin features 2026-01-31 12:43:14 -05:00
company-scope feat(admin): client scope — filter analytics to recurring-revenue companies 2026-05-03 11:40:47 -04:00
device-link-conflicts feat: RMM Overshell, IT Glue audit/write-back, LogLift, link-aware bundles, dashboard overhaul 2026-05-03 07:13:18 -04:00
display-settings feat: Display Settings UI + Company Category/Type sync 2026-04-06 09:03:19 -04:00
integrations feat(admin): DB-backed integration toggles + sticky cols + dark contrast 2026-05-03 09:55:22 -04:00
openclaw-instances feat: repo commit tracking and OpenClaw notification 2026-03-21 18:52:22 -04:00
rmm/settings feat: RMM Overshell, IT Glue audit/write-back, LogLift, link-aware bundles, dashboard overhaul 2026-05-03 07:13:18 -04:00
roles feat: add authentication, user management, and admin features 2026-01-31 12:43:14 -05:00
settings feat: add authentication, user management, and admin features 2026-01-31 12:43:14 -05:00
users feat: add authentication, user management, and admin features 2026-01-31 12:43:14 -05:00