--- name: ui-patterns description: UI/UX patterns and guidelines derived from official Frappe apps (CRM, Helpdesk, HRMS). Use when designing interfaces for custom Frappe applications to ensure consistency with the ecosystem. --- # Frappe UI Patterns UI/UX patterns and design guidelines extracted from official Frappe applications. ## When to use - Designing UI for a new Frappe app - Building CRUD interfaces with Frappe UI - Implementing list views, detail panels, or forms - Ensuring consistent UX with CRM, Helpdesk, HRMS - Choosing component patterns and layouts ## Inputs required - App type (CRM-like, Helpdesk-like, data management) - Key entities and their relationships - Primary user workflows ## Reference apps Study these official apps for patterns: | App | Repo | Key Patterns | |-----|------|--------------| | Frappe CRM | [github.com/frappe/crm](https://github.com/frappe/crm) | Lead/Deal pipelines, Kanban, activity feeds | | Frappe Helpdesk | [github.com/frappe/helpdesk](https://github.com/frappe/helpdesk) | Ticket queues, SLA indicators, agent views | | Frappe HRMS | [github.com/frappe/hrms](https://github.com/frappe/hrms) | Employee self-service, approvals, dashboards | | Frappe Insights | [github.com/frappe/insights](https://github.com/frappe/insights) | Query builders, visualizations, dashboards | | Frappe Builder | [github.com/frappe/builder](https://github.com/frappe/builder) | Drag-drop interfaces, property panels | ## Procedure ### 0) App shell structure All Frappe apps follow a consistent shell: ``` ┌─────────────────────────────────────────────────────────────┐ │ Header (App title, search, user menu) │ ├──────────────┬──────────────────────────────────────────────┤ │ │ │ │ Sidebar │ Main Content │ │ │ │ │ - Nav items │ ┌─────────────────┬──────────────────────┐ │ │ - Filters │ │ List View │ Detail Panel │ │ │ - Actions │ │ │ │ │ │ │ │ │ │ │ │ │ └─────────────────┴──────────────────────┘ │ │ │ │ └──────────────┴──────────────────────────────────────────────┘ ``` **Implementation:** ```vue ``` ### 1) Sidebar patterns **Standard structure:** ```vue ``` **CRM example nav items:** - Leads (with count badge) - Deals (with count badge) - Contacts - Organizations - Activities - --- - Settings ### 2) List view patterns **Standard list with filters:** ```vue ``` **List row structure:** ```vue ``` ### 3) Kanban view patterns **Used in:** CRM (Deals), Helpdesk (Tickets by status) ```vue ``` **Kanban card structure:** ```vue ``` ### 4) Detail panel / side panel **Split view pattern (CRM/Helpdesk style):** ```vue ``` ### 5) Form patterns **Standard form layout:** ```vue ``` **FormSection component:** ```vue ``` ### 6) Activity feed pattern **Used across all apps for tracking changes:** ```vue