Skip to main content

RBAC UI/UX Specification by Business Level (L0โ€“L4)

Dokumentasi lengkap spesifikasi UI/UX untuk semua role di setiap business level, dari Micro/Solo hingga MNC/Global.

๐ŸŽฏ Shared Design Principles

Prinsip desain yang konsisten di semua level:

Mobile-First

Semua elemen optimized untuk tap jempol kanan

Offline-Ready

SQLite local + auto-sync saat online

Zero Training

Icon intuitif, max 3 klik per transaksi

Minimal UI

Konsisten color system & typography

๐ŸŽจ Visual Design System (All Levels)

Color Palette

Typography

Spacing


๐Ÿงฉ L0 โ€” Micro / Solo

Target Bisnis: Warung, freelancer, usaha solo (1-3 orang)
Fokus: Simplicity, offline-first, zero training needed
Setup Time: < 5 menit

L0_OWNER Role

Akses: Full (CRUD semua modul)
Navigation: Bottom Navigation Bar (5 ikon)
Route: /dashboard
Icon: ๐Ÿ 

Components:

  • Penjualan Hari Ini (Card besar, warna hijau)
    • Total transaksi (angka besar)
    • Jumlah item terjual
    • Mini line chart 7 hari terakhir
  • Saldo Kas (Card sedang, warna biru)
    • Kas tunai
    • Kas bank/e-wallet
    • Icon alert jika < threshold
  • Laba Harian (Card sedang, warna ungu)
    • Profit margin %
    • Bandingkan vs kemarin
    • Icon trend (โ†‘/โ†“)

Quick Actions (FAB):

  • โž• Transaksi Baru
  • ๐Ÿ“ฆ Tambah Produk
  • ๐Ÿ“Š Lihat Laporan

L0_CASHIER Role

Akses: Write (hanya transaksi & shift)
Navigation: Bottom Navigation Bar (4 ikon)
Route: /pos
Icon: ๐Ÿ’ต

Perbedaan dari Owner:

  • Tidak bisa edit harga produk
  • Tidak bisa delete transaksi
  • Tidak bisa lihat total laba (hanya pendapatan)

L0_VIEWER Role

Akses: Read-only (semua modul)
Navigation: Bottom Navigation Bar (3 ikon)
Route: /dashboard
Icon: ๐Ÿ“Š

Perbedaan:

  • Semua tombol โ€œEditโ€ disabled
  • Tidak ada FAB (Quick Actions)
  • Badge ๐Ÿ”’ di pojok kanan atas

๐Ÿงฉ L1 โ€” SME

Target Bisnis: Toko retail, cafe, restaurant (5-20 orang)
Fokus: Department-based, basic approval
Setup Time: 15-30 menit

Key Differences from L0:

  • Multi-user dashboard: Lihat aktivitas team
  • Department views: Finance, Inventory, HR tabs
  • Basic approval: Approval untuk PO, SO
  • Audit trail: Log aktivitas per user
  • More reports: Laporan per departemen
L1_OWN-MGR: 6 tabs (Dashboard, Finance, Inventory, HR, Reports, Settings)
L1_FIN-MGR: 4 tabs (Dashboard, Finance, Reports, Export)
L1_INV-MGR: 4 tabs (Dashboard, Inventory, Reports, Export)
L1_HR-MGR: 4 tabs (Dashboard, HR, Payroll, Reports)
L1_CSH: 4 tabs (POS, Quick Products, History, Close Shift)
L1_AUD: 3 tabs (Dashboard, Audit Logs, Reports)

๐Ÿงฉ L2 โ€” Enterprise

Target Bisnis: Manufaktur, distribusi, multi-branch (20-100 orang)
Fokus: Multi-department, approval flow, SoD enforcement
Setup Time: 1-2 jam

Key Differences from L1:

  • Advanced dashboard: KPI per departemen, drill-down analytics
  • Approval workflow: Multi-level approval (L1, L2)
  • SoD enforcement: UI blocks invalid role combinations
  • Advanced reports: Pivot tables, custom reports
  • Audit trail: Detailed logging dengan SoD validation
  • Multi-branch: Branch selector, consolidation view
L2_OWN-MGR: 8 tabs (Dashboard, Finance, Operations, Marketing, Reports, Audit, Settings, Admin)
L2_ADM-BIZ: 5 tabs (Business Config, Branches, Roles, Workflows, Audit)
L2_ADM-SYS: 5 tabs (System Health, Users, Backup, Logs, Settings)
L2_FIN-AP/AR/CASH: 4 tabs (Dashboard, Transactions, Approval Queue, Reports)
L2_ACC-MGR: 4 tabs (Dashboard, Journal, Approval, Reports)
L2_APV-L1/L2: 3 tabs (Approval Queue, History, Reports)

๐Ÿงฉ L3 โ€” Holding

Target Bisnis: Multi-entity, holding company (100-500 orang)
Fokus: Multi-entity consolidation, domain isolation
Setup Time: 2-4 jam

Key Differences from L2:

  • Entity selector: Switch between entities
  • Consolidation dashboard: Group-level KPI
  • Intercompany transactions: Track cross-entity flows
  • Multi-currency: Currency conversion, FX management
  • Group reporting: Consolidated P&L, balance sheet
  • Domain isolation: Role access per entity
L3_OWN-MGR-HLD: 8 tabs (Group Dashboard, Entities, Finance, Consolidation, Reports, Audit, Settings, Admin)
L3_CONS-MGR: 4 tabs (Consolidation, Intercompany, Reports, Export)
L3_AUD-GRP: 4 tabs (Group Audit, Entity Audit, Logs, Reports)
L3_BI-MGR: 4 tabs (Dashboards, KPI Design, Reports, Export)

๐Ÿงฉ L4 โ€” MNC / Global

Target Bisnis: Multi-country, public company (500+ orang)
Fokus: Global governance, compliance, SSO
Setup Time: 4-8 jam

Key Differences from L3:

  • Region selector: Switch between regions/countries
  • Executive dashboard: C-level strategic view
  • Compliance dashboard: SOX, ISO, GDPR compliance status
  • Global reporting: Multi-currency, multi-country consolidation
  • SSO integration: Single sign-on, MFA
  • Advanced audit: Detailed SoD validation, anomaly detection
L4_BOARD-CXO: 6 tabs (Executive Dashboard, Strategy, Compliance, Global Reports, Audit, Settings)
L4_GOV-COMP: 5 tabs (Compliance Dashboard, Audit Trail, SoD Validation, Reports, Export)
L4_IT-SYS-GLB: 5 tabs (System Monitor, IAM, Security, Logs, Settings)
L4_FIN-GLB: 4 tabs (Global Finance, Consolidation, Reports, Export)

๐Ÿ“ฑ Navigation Patterns by Level

L0 Bottom Navigation

L1 Bottom Navigation (Owner)

L2 Top Navigation (Tabbed)

L3 Sidebar Navigation

L4 Sidebar Navigation (Advanced)


๐Ÿงช Component Library (All Levels)

Core Components


๐Ÿ”„ Offline-First Strategy (All Levels)

Local Database (SQLite/Isar)

Sync Indicator


โœ… Feature Matrix by Level


๐Ÿ“ฑ Mobile Implementation by Role (mstore_mobile)

Setiap role memiliki implementasi spesifik di Flutter mobile app. Berikut mapping antara role dan features yang accessible:

L0 Roles

L0_OWNER

Features di mstore_mobile:
  • โœ… Dashboard (full metrics)
  • โœ… Cashier (POS transactions)
  • โœ… Inventory (product CRUD)
  • โœ… Reports (all reports)
  • โœ… Settings (full configuration)
Code Path: mstore_mobile/lib/features/
  • dashboard/ - Full dashboard dengan KPI
  • cashier/ - POS system
  • inventory/ - Product management
  • report/ - All reports
  • setting/ - Configuration

L0_CASHIER

Features di mstore_mobile:
  • โœ… Cashier (POS only)
  • โœ… Quick Products (favorites)
  • โœ… Transaction History (view only)
  • โœ… Shift Management (close shift)
  • โŒ Settings (disabled)
  • โŒ Reports (disabled)
Code Path: mstore_mobile/lib/features/
  • cashier/ - POS transactions
  • transaction_history/ - View only
  • shift/ - Shift management

L0_VIEWER

Features di mstore_mobile:
  • โœ… Dashboard (read-only)
  • โœ… Reports (view & export)
  • โŒ Cashier (disabled)
  • โŒ Inventory (disabled)
  • โŒ Settings (disabled)
Code Path: mstore_mobile/lib/features/
  • dashboard/ - Read-only view
  • report/ - View & export

L1 Roles

L1_OWN-MGR

Features di mstore_mobile:
  • โœ… Dashboard (team activity)
  • โœ… Finance (full access)
  • โœ… Inventory (full access)
  • โœ… HR (full access)
  • โœ… Reports (all reports)
  • โœ… Settings (full)
Code Path: mstore_mobile/lib/features/
  • dashboard/ - Team dashboard
  • approval/ - Approval queue
  • inventory/ - Full management
  • employee/ - HR management
  • report/ - All reports

L1_FIN-MGR

Features di mstore_mobile:
  • โœ… Dashboard (finance only)
  • โœ… Finance (transactions, approval)
  • โœ… Reports (finance reports)
  • โŒ Inventory (disabled)
  • โŒ HR (disabled)
Code Path: mstore_mobile/lib/features/
  • dashboard/ - Finance metrics
  • approval/ - Finance approvals
  • report/ - Finance reports

L1_CSH (Cashier)

Features di mstore_mobile:
  • โœ… Cashier (POS)
  • โœ… Quick Products
  • โœ… Transaction History
  • โœ… Shift Management
  • โŒ Reports (disabled)
  • โŒ Settings (disabled)

L2+ Roles

L2_OWN-MGR

Features di mstore_mobile:
  • โœ… Dashboard (enterprise KPI)
  • โœ… Finance (multi-department)
  • โœ… Operations (full)
  • โœ… Approval (multi-level)
  • โœ… Reports (consolidated)
  • โœ… Audit (full access)

L2_ADM-SYS

Features di mstore_mobile:
  • โœ… Settings (system config)
  • โœ… User Management
  • โœ… Backup/Restore
  • โœ… Audit Logs
  • โŒ Business features (disabled)

L2_APV-L1/L2 (Approver)

Features di mstore_mobile:
  • โœ… Approval Queue (priority)
  • โœ… Approval History
  • โœ… Reports (approval metrics)
  • โŒ Other features (disabled)

๐Ÿ” Role-Based Access Control Implementation

Feature Flag Pattern

Shared Features

Beberapa features digunakan oleh multiple roles dengan UI yang berbeda:

๐Ÿš€ Implementation Roadmap

  1. Design Phase:
    • Buat Figma mockup berdasarkan spec ini
    • Design system (colors, typography, components)
    • Prototype interactive flow per level
  2. Development Phase:
    • Implement UI components (Flutter)
    • Integrate dengan backend API
    • Implement offline-first logic
    • Role-based UI rendering
  3. Testing Phase:
    • User testing dengan stakeholder per level
    • Performance testing (offline mode)
    • Accessibility testing
    • SoD enforcement testing (L2+)

RBAC Architecture

Role definitions & architecture

Bruno API Collections

API endpoints by role

Approval Flow

Multi-level approval workflow

File ini siap digunakan sebagai referensi untuk Figma design dan Flutter implementation di semua business levels.