Files
WooNooW/admin-spa/src/components/ui/tokens.css
dwindown 232059e928 feat: Complete Dashboard API Integration with Analytics Controller
 Features:
- Implemented API integration for all 7 dashboard pages
- Added Analytics REST API controller with 7 endpoints
- Full loading and error states with retry functionality
- Seamless dummy data toggle for development

📊 Dashboard Pages:
- Customers Analytics (complete)
- Revenue Analytics (complete)
- Orders Analytics (complete)
- Products Analytics (complete)
- Coupons Analytics (complete)
- Taxes Analytics (complete)
- Dashboard Overview (complete)

🔌 Backend:
- Created AnalyticsController.php with REST endpoints
- All endpoints return 501 (Not Implemented) for now
- Ready for HPOS-based implementation
- Proper permission checks

🎨 Frontend:
- useAnalytics hook for data fetching
- React Query caching
- ErrorCard with retry functionality
- TypeScript type safety
- Zero build errors

📝 Documentation:
- DASHBOARD_API_IMPLEMENTATION.md guide
- Backend implementation roadmap
- Testing strategy

🔧 Build:
- All pages compile successfully
- Production-ready with dummy data fallback
- Zero TypeScript errors
2025-11-04 11:19:00 +07:00

34 lines
816 B
CSS

/* Design tokens and control defaults */
@layer base {
:root {
--ctrl-h: 2.75rem; /* 44px — good touch target */
--ctrl-h-md: 2.25rem;/* 36px */
--ctrl-px: 0.75rem; /* 12px */
--ctrl-radius: 0.5rem;
--ctrl-text: 0.95rem;
--ctrl-text-md: 0.9rem;
}
}
@layer utilities {
/* Generic utility for interactive controls */
.ui-ctrl {
height: var(--ctrl-h);
padding-left: var(--ctrl-px);
padding-right: var(--ctrl-px);
border-radius: var(--ctrl-radius);
font-size: var(--ctrl-text);
}
@media (min-width: 768px) {
.ui-ctrl {
height: var(--ctrl-h-md);
font-size: var(--ctrl-text-md);
}
}
/* Nuke default focus rings/shadows; rely on bg/color changes */
.ui-ctrl:focus {
outline: none !important;
box-shadow: none !important;
}
}