feat(admin): draggable dashboard panels + business KPI redesign

- Dashboard: 16 business-focused panels (KPIs, charts, tables, feeds)
- New data queries: AOV, conversion rate, revenue by category, top spenders,
  purchase funnel, 30-day trend, geography, wallet totals
- ApexCharts: 30-day revenue line, category bar, funnel bar, geo bar,
  conversion mini-donut, revenue sparkline
- SortableJS: draggable panels within rows, layout saved to localStorage
- Theme persistence: body classes (nav-dark, header-fixed, etc.) saved to
  localStorage and restored on load, MutationObserver syncs all toggles
- Panel data-panel-id attributes for layout persistence
- All panels use existing SmartAdmin panel-icon/card styling
This commit is contained in:
NW
2026-07-06 19:13:05 +01:00
parent 2a34b40411
commit bc48334269
5 changed files with 491 additions and 191 deletions

View File

@@ -75,6 +75,10 @@
justify-content: center;
gap: 0.4rem;
}
/* Draggable panel cursor */
.panel-hdr { cursor: grab; }
.panel-hdr:active { cursor: grabbing; }
.sortable-ghost { opacity: 0.4; }
</style>
</head>