wulf-pulse/components/ui
lorentz e1427b62d7 feat(admin): DB-backed integration toggles + sticky cols + dark contrast
Builds on the env-var INTEGRATIONS_DISABLED shipped with the nav-design
overhaul.  Adds a DB-backed admin UI so operators can flip integrations
without editing .env and restarting the container, plus the remaining
visual cleanup items from the design backlog.

Integration toggles
- Migration 081 — integration_settings table (key PK, disabled flag,
  reason, disabled_by audit, disabled_at).  Seeded with all 13 known
  integrations as enabled.
- GET / PATCH /api/admin/integrations — gated by requirePermission
  (admin, access).  PATCH clears the in-process integration-health
  cache so toggles take effect within seconds.
- /admin/integrations admin page with a Switch per integration, optional
  reason input, audit-info subtitle (disabled by, when, why), live
  status light from /api/dashboard/integration-health.
- integration-health service merges env-var disable list with DB rows;
  degrades gracefully if migration unapplied / DB unreachable.
- Wired into the Admin nav dropdown (eight items now).
- CLAUDE.md describes both env + DB sources.

Sticky first column on tables
- Table primitive accepts stickyFirstColumn?: boolean.  When true, TH
  and TD :first-child stay pinned during horizontal scroll, with
  background inheritance preserving hover and selected row tints.
- DataTable exposes the prop too — on by default for paginated tables.
- /addigy-devices opts in.

Dark-mode contrast
- --border lifted from 10% to 14% in .dark; --input from 15% to 18%;
  --sidebar-border to 14%.
- StatusLight outline ring lifted from /10 to /15 (light) and /20 (dark).
- DetailModal empty-cell em-dash lifted from /40 to /70 so missing
  values are legible on dark surfaces.

DESIGN.md
- Closed sticky-first-column, dark-mode contrast, and palette-audit
  items (palette deprioritized — most uses are semantic).
- Skeleton helpers documented as preferred for new code; existing
  ad-hoc patterns left in place.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 09:55:22 -04:00
..
accordion.tsx Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
alert-dialog.tsx Restructure: rename to Pulse and move app to root 2025-10-28 23:08:54 -04:00
alert.tsx feat: add scheduled sync system with admin UI 2026-01-26 10:24:58 -05:00
badge.tsx Restructure: rename to Pulse and move app to root 2025-10-28 23:08:54 -04:00
button.tsx Restructure: rename to Pulse and move app to root 2025-10-28 23:08:54 -04:00
calendar.tsx Restructure: rename to Pulse and move app to root 2025-10-28 23:08:54 -04:00
card.tsx Restructure: rename to Pulse and move app to root 2025-10-28 23:08:54 -04:00
checkbox.tsx Restructure: rename to Pulse and move app to root 2025-10-28 23:08:54 -04:00
collapsible.tsx Restructure: rename to Pulse and move app to root 2025-10-28 23:08:54 -04:00
dialog.tsx fix: remove hardcoded sm:max-w-lg from DialogContent so className overrides work 2026-02-19 20:51:57 -05:00
dropdown-menu.tsx Restructure: rename to Pulse and move app to root 2025-10-28 23:08:54 -04:00
empty-state.tsx feat(design): nav/visual overhaul — brand layer, /status route, KPI dashboard, TanStack DataTable 2026-05-03 09:33:13 -04:00
form.tsx Restructure: rename to Pulse and move app to root 2025-10-28 23:08:54 -04:00
input.tsx Restructure: rename to Pulse and move app to root 2025-10-28 23:08:54 -04:00
label.tsx Restructure: rename to Pulse and move app to root 2025-10-28 23:08:54 -04:00
multi-select.tsx feat(design): nav/visual overhaul — brand layer, /status route, KPI dashboard, TanStack DataTable 2026-05-03 09:33:13 -04:00
navigation-menu.tsx Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
popover.tsx Restructure: rename to Pulse and move app to root 2025-10-28 23:08:54 -04:00
progress.tsx Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
scroll-area.tsx Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
select.tsx Restructure: rename to Pulse and move app to root 2025-10-28 23:08:54 -04:00
separator.tsx Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
sheet.tsx feat(design): nav/visual overhaul — brand layer, /status route, KPI dashboard, TanStack DataTable 2026-05-03 09:33:13 -04:00
skeleton-helpers.tsx feat(design): nav/visual overhaul — brand layer, /status route, KPI dashboard, TanStack DataTable 2026-05-03 09:33:13 -04:00
skeleton.tsx Restructure: rename to Pulse and move app to root 2025-10-28 23:08:54 -04:00
slider.tsx fix: replace Radix UI slider with custom implementation to avoid dependency 2026-02-02 23:39:24 -05:00
sonner.tsx Restructure: rename to Pulse and move app to root 2025-10-28 23:08:54 -04:00
status-badge.tsx feat(design): nav/visual overhaul — brand layer, /status route, KPI dashboard, TanStack DataTable 2026-05-03 09:33:13 -04:00
status-light.tsx feat(admin): DB-backed integration toggles + sticky cols + dark contrast 2026-05-03 09:55:22 -04:00
switch.tsx Restructure: rename to Pulse and move app to root 2025-10-28 23:08:54 -04:00
table.tsx feat(admin): DB-backed integration toggles + sticky cols + dark contrast 2026-05-03 09:55:22 -04:00
tabs.tsx Restructure: rename to Pulse and move app to root 2025-10-28 23:08:54 -04:00
textarea.tsx Restructure: rename to Pulse and move app to root 2025-10-28 23:08:54 -04:00