mirror of
https://github.com/huge-dream/django-vue3-admin.git
synced 2026-10-03 00:41:11 +00:00
Backend: - Fix JWT auth header format (use "JWT " prefix) - Fix DashboardView to return data for superadmin users - Return empty structure when no business data exists - Use serializers for response validation Frontend: - Redesign BuyerDashboard with new UI matching design spec - Redesign SupplierDashboard with consistent styling - Add role switcher for users with both buyer/supplier roles - Fix FontAwesome icon class names (fa vs fas) - Update tagsView title when switching roles via mitt event - Add i18n translations for dashboard Auth fixes: - Fix token storage to use sessionStorage instead of Cookies - Add route initialization guard to prevent duplicate routing - Fix login flow for token handling Files: - Add BuyerDashboard, SupplierDashboard, KpiCard, TrendChart components - Add dashboard API and Pinia store - Add mitt event type for tagsView name update