Introducing a new way to review your PRs.

Read the announcement

frappe / crm

Fully featured, open source CRM

View on GitHub

24 documents · Updated Nov 23, 2026

docs / dashboards-and-workspaces

Dashboards and workspaces

Dashboards and workspaces give CRM users two ways to orient their work. The dashboard combines sales reporting with role-aware operational widgets. Configurable views and the CRM workspace shape the records and links that each user sees as a daily work surface. See CRM client application, client shell and navigation, and client record views for the wider client model.

Operational dashboard

The CRM dashboard provides a sales overview and a personalized home surface. Reporting cards and charts show business direction, while the home layout brings the user’s next actions, follow-up work, and team signals into one place.

Metric scope

The dashboard covers both sales results and the work that drives them. Reporting measures include lead flow, deal progress, value, conversion, sales sources, territory, salesperson activity, and time to close. The home surface adds work signals that help a user act on those results.

The available operational signals fall into these groups:

  • Work queue: open, due, upcoming, and unlinked tasks.
  • Calendar: meetings that the user hosts or attends today.
  • Record follow-up: new leads, replies waiting, open deals, and records with no next step.
  • Sales outlook: funnel conversion, won results, expected revenue, and top open deals.
  • Team control: team workload, waiting replies, and overdue or unassigned records for managers.

The user view normally covers owned or assigned records. A manager view can cover the manager’s team. A widget can also select Lead, Deal, or both record types when that setting applies. Period-based widgets compare a selected rolling period with the period before it. These rules keep personal work signals separate from team oversight.

References: crm/…/home_widgets.py• L19-35 crm/…/home_widgets.py• L52-120 crm/…/home_widgets.py• L123-188 crm/…/home_widgets.py• L190-267 crm/…/home_widgets.py• L269-331 crm/…/home_scope.py• L14-54

Dashboard layout

The dashboard layout is the user-facing arrangement of dashboard items. It supports number charts, axis charts, donut charts, and spacers in a responsive grid. An authorized editor can add an item, drag or resize items, remove an item, save the arrangement, or restore the manager default.

The personalized home surface uses the same dashboard record as a saved layout for one user. If no personal layout exists, the system supplies a role default. Agents start with tasks and today’s meetings. Managers start with team overview and today’s meetings. A saved layout can choose supported widget settings such as record type, reporting period, and team filters. Manager-only widgets stay out of agent layouts.

The server checks the layout before it is saved. It keeps widget names known and unique, preserves valid grid positions, and enforces the minimum size needed by each widget. Resetting removes the personal layout so the role default becomes active again.

References: crm/…/home_layout.py• L12-46 crm/…/home_layout.py• L61-97 crm/…/home_layout.py• L99-169 crm/…/home_layout.py• L179-246 frontend/…/Dashboard.vue• L120-133 frontend/…/Dashboard.vue• L241-305 frontend/…/DashboardGrid.vue• L1-93 crm/…/crm_dashboard.py• L12-32 crm/…/crm_dashboard.json• L8-51

Chart selection

The add-chart surface turns the server’s current chart catalog into dashboard items. Users first choose a chart type, then choose an available metric for that type. The catalog combines built-in choices with valid chart contributions from other apps, so supported apps can extend number, axis, and donut charts without changing the dashboard’s top-level chart types. The catalog is loaded for the dashboard and cached for reuse; if it cannot load, the client still permits a spacer and reports the missing chart choices.

Adding a metric chart requests data with the dashboard’s current date and user context. The result becomes a new item in the unsaved layout. Number charts use a compact default size, while axis and donut charts receive a larger surface. A spacer needs no metric data and can be added directly.

References: crm/…/dashboard.py• L64-207 frontend/…/AddChartModal.vue• L1-31 frontend/…/AddChartModal.vue• L50-139 frontend/…/dashboard.js• L1-28

Dashboard filters

The reporting dashboard offers preset ranges for the last 7, 30, 60, or 90 days and a custom date range. Managers and administrators can also choose a CRM sales user. Any change reloads all reporting items with the same filter set, which keeps the cards and charts aligned to one reporting context.

The home surface applies context at the widget level. Its supported periods are last week, last month, and last 3 months. The team overview can receive record filters that are valid for every selected record type. A sales user remains limited to personal scope, while a manager can use team scope.

This flow is shown below.

flowchart LR
    A[User selects a reporting range or home setting] --> B[Dashboard page builds the active context]
    B --> C[Dashboard service loads the saved layout]
    C --> D[Each chart or widget applies its scope and settings]
    D --> E[Cards, charts, and work lists present the results]

References: frontend/…/Dashboard.vue• L44-118 frontend/…/Dashboard.vue• L169-250 crm/…/dashboard.py• L27-61 crm/…/home_layout.py• L15-17 crm/…/home_layout.py• L179-202 crm/…/home_scope.py• L35-54

Configurable record views

A CRM view is a named way to work with the records of one DocType. A DocType is the CRM record type behind a list, such as a lead or a deal. Views let users keep the same records while changing the way they find, sort, group, or move them.

View types

The client supports three view types:

View typeWork surface
ListA table of records with filters, sorting, and chosen columns.
Group ByRecords grouped by a field such as an owner.
KanbanRecords arranged in columns, with a title and a field that controls the columns.

Each view can carry filters, sort order, columns, row data, and type-specific settings. Standard views provide the base List, Group By, and Kanban surfaces. A user can create a saved view from the current settings instead of changing the underlying records.

References: crm/…/crm_view_settings.json• L7-35 crm/…/crm_view_settings.json• L121-187 frontend/…/ViewControls.vue• L386-417 frontend/…/ViewControls.vue• L469-521

View audience

Views can be standard, saved for a user, public, pinned, or the user’s default. The view menu separates these audiences so that a person can tell whether a view is a personal tool or a shared team surface. A Sales Manager can make a view public. Private views remain under their owner’s control, while system managers can manage any view.

The selected view is part of the route. This makes the view type and named configuration travel together when the user moves between record pages or shares a route within the allowed audience.

References: crm/…/views.py• L5-16 crm/…/crm_view_settings.py• L130-162 frontend/…/ViewControls.vue• L699-768 frontend/…/ViewControls.vue• L1125-1219

View changes

The view controls apply filters, sorting, grouping, column choices, and Kanban settings to the current record query. Changes to a named private view can be saved back to that view. Changes made without a named view update the user’s standard view for that record type and view type. Managers can also maintain the quick filters that appear above a record list.

Column settings are a related personal preference for child tables. They control which child fields appear and how much space each field uses. The preference is kept with the parent record type and child table type, so the same record surface can stay useful without changing the record schema.

References: frontend/…/ViewControls.vue• L798-929 frontend/…/ViewControls.vue• L961-1053 frontend/…/ViewControls.vue• L1074-1103 frontend/…/Grid.vue• L581-664 frontend/…/GridFieldsEditorModal.vue• L128-197

CRM workspace

The CRM workspace is the top-level portal work surface defined for Frappe CRM. It gives users a broad entry point to record areas, setup data, service tools, and the CRM portal instead of asking the dashboard to carry navigation duties.

The workspace is public and presents shortcuts in two groups. The first group opens daily CRM areas and service tools. The second group opens the status, source, industry, territory, and communication data that shape those areas. A shortcut can open a DocType list or a URL, and some record shortcuts include a starting filter.

The workspace therefore connects orientation to action: the dashboard answers “what is happening,” while the workspace answers “where do I go next.” The application sidebar also exposes Dashboard, Leads, Deals, Contacts, and related record routes as direct client navigation links.

References: crm/…/frappe_crm.json• L2-25 crm/…/frappe_crm.json• L27-130 frontend/…/AppSidebar.vue• L254-274

Frontend presentation

The frontend presents these systems as focused work surfaces rather than as separate data tools. Dashboard.vue owns reporting context and edit state. DashboardGrid and DashboardItem turn the saved layout into cards and charts. ViewControls and ViewBreadcrumbs let users switch and shape record views without leaving the current record area.

Insights dashboard surface

The insights dashboard surface provides a shared shell for a named dashboard that is rendered by the client framework. It places the dashboard in the standard CRM header, exposes actions supplied by the dashboard, and shows a clear error when the dashboard cannot load. Actions that leave CRM open in a separate browser tab so the work surface stays available.

References: frontend/…/InsightsDashboard.vue• L1-29 frontend/…/InsightsDashboard.vue• L33-60

Surface relationships

The main relationships are:

flowchart TD
    W[CRM workspace and client navigation] --> R[CRM record route]
    R --> V[Named record view]
    V --> L[List, Group By, or Kanban surface]
    W --> D[CRM dashboard route]
    D --> F[Reporting or home context]
    F --> M[Operational metrics and work signals]

The workspace and sidebar establish the destination. A record view defines how that destination is used. The dashboard provides a separate reporting and work surface with its own period, ownership, and role context, so record browsing and sales measurement do not compete for the same controls.

References: frontend/…/ViewBreadcrumbs.vue• L1-71 frontend/…/ViewControls.vue• L132-262 frontend/…/DashboardGrid.vue• L1-93 frontend/…/DashboardItem.vue• L1-45 frontend/…/InsightsDashboard.vue• L1-60

Change checklist

When these files or sections are changed, remember to consider these:

  • When a home widget is added or renamed, keep the widget registry, role defaults, saved layout validation, data provider, and frontend item renderer aligned.
  • When a home widget becomes manager-only or changes its scope, keep role filtering, team membership rules, and the visible client controls aligned.
  • When a widget setting changes, keep its allowed configuration, period or record-type validation, filter validation, and data query contract aligned.
  • When a widget response changes, keep the row fields, record titles, meeting attendees, reply channels, and the component that presents them aligned.
  • When task or meeting date rules change, keep user time zones, all-day events, due buckets, and displayed counts aligned.
  • When a dashboard metric name or chart contribution changes, keep the saved Manager Dashboard layout, the chart catalog, the data resolver, and the chart presentation aligned.
  • When chart options or chart types change, keep the built-in or contributed chart catalog, the add-chart selector, the metric request, and the returned chart data aligned. A catalog entry that has no usable data provider creates an item that cannot render useful results.
  • When a chart response shape changes, check the chart type configuration and the presentation component that consumes it. Number cards and axis or donut charts do not use the same response contract.
  • When dashboard layout behavior changes, keep the item model, responsive grid events, edit-mode controls, and save boundary aligned. Layout updates must reach the page before the user saves or removes an item.
  • When a view setting changes, keep the CRM View Settings fields, view create/update paths, route selection, and record query parameters aligned.
  • When view visibility rules change, update both the view menu conditions and the server permission checks. A hidden action in the client is not the access rule.
  • When a child-table column preference changes, keep the user-settings key, parent/child DocType mapping, field editor, and grid rendering in sync.
  • When a workspace shortcut changes, verify its target DocType or URL and its starting filter. Workspace links are entry points for the record and setup flows.

Important failure modes

TriggerConsequenceGuard
A saved home layout names an unknown or duplicate widgetThe layout is rejected instead of producing a stable home surfaceKeep the widget registry and saved layout names aligned.
An agent layout includes a manager-only widgetThe layout cannot be saved or the item is removed from the returned layoutEnforce the same role rule in layout validation and item filtering.
A widget setting names an unsupported record type, period, or filter fieldThe widget cannot produce a valid scoped resultKeep widget settings constrained to the supported record types, periods, and shared fields.
A home widget is smaller than its content requiresThe widget cannot render its work list clearlyKeep minimum sizes in the layout contract and the grid behavior.
A task or meeting crosses a user time-zone boundaryThe dashboard shows the item in the wrong due or meeting bucketApply the user’s time zone to timed and all-day date rules.
A dashboard item names a metric that has no matching providerThe item receives no data and its chart is not usefulKeep saved layout names and the chart catalog aligned with dashboard metric providers.
Chart options fail to load and the dashboard has no cached choicesUsers can add a spacer but cannot select a metric chartKeep the chart-options endpoint available and surface its error rather than presenting incomplete choices as valid metrics.
A contributed chart names a missing or failing data resolverThe chart can appear in the selector but cannot return useful dataValidate each chart contribution and keep its resolver available with the same date and user contract as built-in charts.
A Sales User sends a manager or another user as the dashboard filterThe server ignores that user value and returns the current user’s resultsTreat the user selector as a manager feature and rely on the server role rule.
A public view is edited by a user without manager or system-manager rightsThe view update is rejectedKeep public-view actions behind the same audience rule used by the server.
A user removes every child-table columnThe grid preference cannot be savedRetain at least one field in the child-table column editor.
A workspace shortcut points to a removed DocType or routeThe workspace shows an entry that cannot open its targetChange the shortcut and its target definition as one navigation contract.
A dashboard surface does not pass its action or error state to the shared shellUsers cannot reach dashboard actions or see why the surface failed to loadKeep dashboard-provided actions and load errors connected to the header and error message.

Key files

FileWhy to read it
frontend/…/Dashboard.vueShows the dashboard lifecycle, reporting filters, edit actions, and save boundary.
crm/…/home_layout.pyDefines role defaults, personal home layouts, widget settings, and layout validation.
crm/…/home_widgets.pyDefines the operational work signals returned to dashboard widgets.
crm/…/home_scope.pyDefines personal and team scope for records and tasks.
crm/…/reply_channel.pyShows how the channel for waiting replies is derived for dashboard rows.
crm/…/rules.pyDefines the shared due, overdue, upcoming, and time-zone rules used by task and meeting widgets.
crm/…/dashboard.pyDefines the dashboard data contract, chart catalog, extensibility boundary, and role-aware metric scope.
crm/…/crm_dashboard.pyDefines how dashboard records start and return to their default layout.
frontend/…/DashboardGrid.vueShows how dashboard items become a responsive, editable work surface.
frontend/…/InsightsDashboard.vueShows the shared shell for a named insights dashboard, its actions, and its load error state.
frontend/…/DashboardItem.vueShows the chart families presented by the dashboard.
frontend/…/AddChartModal.vueShows how users choose chart types and metrics and add them with the active dashboard context.
frontend/…/dashboard.jsShows how the dashboard receives and caches the available chart catalog.
crm/…/crm_view_settings.jsonDefines the business fields that describe a saved CRM view.
crm/…/crm_view_settings.pyDefines view ownership, sharing, defaults, and persistence rules.
frontend/…/views.jsProvides the client’s view lookup and audience groupings.
frontend/…/ViewControls.vueConnects view selection and changes to the record surface.
frontend/…/Grid.vueApplies personal child-table field and width preferences.
crm/…/frappe_crm.jsonDefines the CRM portal workspace and its entry links.
frontend/…/AppSidebar.vueDefines the direct client routes that complement the workspace.