yves.gugger
c2062f6573
perf: Optimize all Command Center pages for performance
LAYOUT CONSISTENCY:
- Header and content now use same max-width (max-w-7xl)
- All pages use consistent PageContainer wrapper
- Unified spacing and padding
NEW REUSABLE COMPONENTS (PremiumTable.tsx):
- SearchInput: Consistent search box styling
- TabBar: Consistent tabs with counts and icons
- FilterBar: Flex container for filter rows
- SelectDropdown: Consistent dropdown styling
- ActionButton: Consistent button (primary/secondary/ghost)
PERFORMANCE OPTIMIZATIONS:
1. Watchlist Page:
- useMemo for stats, filtered domains, columns
- useCallback for all handlers
- memo() for HealthReportModal
2. Auctions Page:
- useMemo for tabs, sorted auctions
- useCallback for handlers
- Pure functions for calculations
3. TLD Pricing Page:
- useMemo for filtered data, stats, columns
- useCallback for data loading
- memo() for Sparkline component
4. Portfolio Page:
- useMemo for expiringSoonCount, subtitle
- useCallback for all CRUD handlers
- Uses new ActionButton
5. Alerts Page:
- useMemo for stats
- useCallback for all handlers
- Uses new ActionButton
6. Marketplace/Listings Pages:
- useMemo for filtered/sorted listings, stats
- useCallback for data loading
- Uses new components
7. Dashboard Page:
- useMemo for computed values (greeting, subtitle, etc.)
- useCallback for data loading
8. Settings Page:
- Added TabBar import for future use
- Added useCallback, useMemo imports
RESULT:
- Reduced unnecessary re-renders
- Memoized expensive calculations
- Consistent visual styling across all pages
- Better mobile responsiveness
2025-12-10 16:47:38 +01:00
..
2025-12-08 16:38:41 +01:00
2025-12-10 14:51:49 +01:00
2025-12-10 14:51:49 +01:00
2025-12-10 09:22:29 +01:00
2025-12-10 11:44:56 +01:00
2025-12-10 16:47:38 +01:00
2025-12-08 16:38:41 +01:00
2025-12-08 10:41:28 +01:00
2025-12-08 16:48:36 +01:00
2025-12-08 10:41:28 +01:00
2025-12-10 13:50:21 +01:00
2025-12-10 16:23:16 +01:00
2025-12-10 08:37:29 +01:00
2025-12-10 16:23:16 +01:00
2025-12-10 16:23:16 +01:00
2025-12-08 10:41:28 +01:00
2025-12-10 16:23:16 +01:00
2025-12-10 09:22:29 +01:00
2025-12-08 10:41:28 +01:00
2025-12-10 16:00:34 +01:00
2025-12-08 15:07:12 +01:00
2025-12-09 16:52:54 +01:00
2025-12-08 15:27:42 +01:00
2025-12-09 17:35:59 +01:00
2025-12-08 10:32:30 +01:00
2025-12-10 16:23:16 +01:00
2025-12-08 13:57:06 +01:00