Files
tabungin/LAYOUT_UNIFICATION_STATUS.md
2025-10-11 20:19:57 +07:00

2.4 KiB

🎨 LAYOUT UNIFICATION - STATUS

Goal: Make Admin and Member layouts IDENTICAL except for content


COMPLETED

1. Layout Structure

  • Both use SidebarProvider
  • Both use same sidebar width (16rem)
  • Both use same header height (h-16)
  • Both use same container (max-w-7xl)
  • Both have breadcrumb
  • Both have date + theme toggle

2. Sidebar Components

  • AdminSidebar uses same structure as AppSidebar
  • Same footer style (full-width logout button)
  • Same header style (logo centered)
  • Same menu item styling
  • Same active state (bg-primary/10 text-primary)

3. Theme Colors

  • AdminLayout uses theme colors
  • AdminDashboard uses theme colors
  • Member layout already uses theme colors

4. Indonesian Text

  • AdminLayout: "Akses Ditolak", "Kembali ke Dashboard"
  • AdminDashboard: "Selamat datang", "Kelola Plans", etc.
  • Loading states: "Memuat..."

TODO

Admin Pages - Remaining Work:

AdminPlans.tsx:

  • Theme colors applied
  • Indonesian text
  • Create/Edit modal not implemented

AdminUsers.tsx:

  • Theme colors applied
  • Indonesian text

AdminPaymentMethods.tsx:

  • Implement full page (currently placeholder)
  • Use theme colors
  • Indonesian text

AdminPayments.tsx:

  • Implement full page (currently placeholder)
  • Use theme colors
  • Indonesian text

AdminSettings.tsx:

  • Implement full page (currently placeholder)
  • Use theme colors
  • Indonesian text

📋 CHECKLIST

Layout Parity:

  • Same sidebar component architecture
  • Same header structure
  • Same body container
  • Same responsive behavior
  • Same theme support

Visual Parity:

  • Same colors (theme variables)
  • Same spacing
  • Same typography
  • Same shadows
  • Same borders

Content Difference (Expected):

  • Different menu items
  • Different page content
  • Core pages use theme colors (Dashboard, Plans, Users)
  • Indonesian text with English tech terms

🎯 NEXT STEPS

  1. Update AdminPlans.tsx theme colors
  2. Update AdminUsers.tsx theme colors
  3. Implement AdminPaymentMethods page
  4. Implement AdminPayments page
  5. Implement AdminSettings page
  6. Add Create/Edit modals for Plans
  7. Test light/dark mode on all pages
  8. Test responsive on all pages

Last Updated: 2025-10-11