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
b3e6c9aef6
refactor: Separate public pages from authenticated Command Center
...
STRUCTURE:
- Public pages: /auctions, /intelligence (with Header/Footer, no login needed)
- Command Center: /command/* (with Sidebar, login required)
- /command/dashboard
- /command/watchlist
- /command/portfolio
- /command/auctions
- /command/intelligence
- /command/settings
CHANGES:
- Created new /command directory structure
- Public auctions page: shows all auction data, CTA for login
- Public intelligence page: shows TLD data, CTA for login
- Updated Sidebar navigation to point to /command/*
- Updated all internal links (Header, Footer, AdminLayout)
- Updated login redirect to /command/dashboard
- Updated keyboard shortcuts to use /command paths
- Added /command redirect to /command/dashboard
2025-12-10 11:02:27 +01:00