Bluewoo HRMS

Analytics Dashboard Use Cases

Use cases for company metrics, team dashboards, approvals, and AI insights

Analytics Dashboard Use Cases

This document describes use cases for viewing company and team metrics, managing pending approvals, analyzing trends, and receiving AI-generated insights.

Actors

ActorDescription
Tenant AdminViews company-wide metrics and all data
HR ManagerViews HR analytics and employee trends
ManagerViews team-specific metrics and dashboards
EmployeeViews personal dashboard and limited metrics

UC-DASH-01: Tenant Admin Views Company Dashboard

Primary Actor: Tenant Admin

Preconditions

  • Tenant Admin is authenticated
  • Company has employees and activity data

Main Flow

  1. Tenant Admin logs in and sees main dashboard
  2. Views company overview widgets:
    • Headcount Summary:
      • Total employees
      • Active vs On Leave vs Terminated
      • New hires this month
      • Departures this month
    • Department Breakdown:
      • Pie chart of employees by department
      • Largest/smallest departments
    • Pending Actions:
      • Leave requests awaiting approval
      • Document access requests
      • Onboarding tasks incomplete
    • Recent Activity:
      • Last 10 system events
      • New employees added
      • Documents uploaded
  3. Can click any widget to drill down
  4. Can customize dashboard layout (widget arrangement)

Alternative Flows

A1: New Tenant (No Data)

  1. Dashboard shows onboarding prompts
  2. Suggests: Add first employee, upload policies, invite users

A2: Export Dashboard

  1. Admin clicks Export
  2. Downloads PDF or CSV of current metrics

Postconditions

  • Admin has company-wide visibility
  • No data is modified (read-only view)

Dashboard Layout Example

┌────────────────────────────────────────────────────────────┐
│                    Company Dashboard                        │
├───────────────────────────┬────────────────────────────────┤
│ Headcount: 156            │ Department Distribution        │
│ ┌─────────────────────┐   │ ┌────────────────────────┐     │
│ │ Active     │ 148    │   │ │ Engineering  ████ 45  │     │
│ │ On Leave   │   5    │   │ │ Sales        ███  32  │     │
│ │ Terminated │   3    │   │ │ Marketing    ██   21  │     │
│ └─────────────────────┘   │ │ Operations   ██   28  │     │
│                           │ │ HR           █    12  │     │
│ This Month:               │ │ Finance      █    18  │     │
│ +8 New Hires              │ └────────────────────────┘     │
│ -2 Departures             │                                │
├───────────────────────────┼────────────────────────────────┤
│ Pending Actions           │ Recent Activity                │
│ 🔴 5 Leave Requests       │ • John Smith added (2h ago)    │
│ 🟡 2 Doc Requests         │ • Policy doc uploaded (5h ago) │
│ 🔵 3 Onboarding Tasks     │ • Mary's leave approved (1d)   │
└───────────────────────────┴────────────────────────────────┘

UC-DASH-02: Manager Views Team Dashboard

Primary Actor: Manager

Preconditions

  • Manager is authenticated
  • Manager has direct reports

Main Flow

  1. Manager logs in and sees personalized dashboard
  2. Dashboard has two main sections:
    • My Profile (as employee):
      • Own leave balance
      • Own pending requests
      • Own manager info
    • My Team (as manager):
      • Team size and composition
      • Team members on leave today/this week
      • Pending approvals requiring action
      • Team activity summary
  3. Team metrics include:
    • Current team capacity (who's available)
    • Upcoming time off
    • Recent team changes
  4. Can click "View Full Team" for detailed list

Alternative Flows

A1: No Direct Reports

  1. My Team section not shown
  2. Dashboard focuses on personal info only

A2: Multiple Teams (Matrix Management)

  1. If manager has multiple teams
  2. Dropdown to switch team view

Postconditions

  • Manager has team overview
  • Can quickly see action items

Key Scenario: Dual-Role Dashboard

Development Manager sees:

┌────────────────────────────────────────────────────────────┐
│                    My Dashboard                             │
├────────────────────────────┬───────────────────────────────┤
│ My Profile                 │ My Team (5 members)           │
│                            │                               │
│ Name: Alex Johnson         │ ┌─────────────────────────┐   │
│ Title: Development Manager │ │ Today                   │   │
│ Reports to: Sarah (CTO)    │ │ 4 available, 1 on leave │   │
│                            │ └─────────────────────────┘   │
│ My Leave Balance:          │                               │
│ Vacation: 12 days          │ Pending Approvals: 2          │
│ Sick: 8 days               │ • Bob: Vacation (Dec 15-20)   │
│                            │ • Jane: Sick (Dec 6)          │
│ My Pending Requests: 0     │                               │
│                            │ This Week Out:                │
│                            │ • Mike (returns Dec 8)        │
└────────────────────────────┴───────────────────────────────┘

UC-DASH-03: View Pending Approvals

Primary Actor: Manager, Tenant Admin

Preconditions

  • Actor is authenticated
  • Actor has approval permissions
  • Pending items exist

Main Flow

  1. Actor sees pending approval count on dashboard
  2. Clicks to view pending approvals list
  3. Sees list organized by type:
    • Leave Requests
    • Document Access Requests
    • Other workflow approvals
  4. Each item shows:
    • Requester name
    • Request type and details
    • Submitted date
    • Age of request (days pending)
  5. Actor selects item to review
  6. Can approve or reject with comments
  7. Returns to list for next item

Alternative Flows

A1: Bulk Approval

  1. Actor selects multiple similar items
  2. Approves all at once
  3. Same comment applied to all

A2: Reassign Approval

  1. Actor cannot make decision
  2. Reassigns to another approver
  3. Reason for reassignment recorded

A3: Stale Requests

  1. Request pending > 7 days
  2. Highlighted as overdue
  3. Reminder sent to approver

Postconditions

  • Requests processed
  • Requesters notified
  • Audit trail updated

Pending Approvals View

┌────────────────────────────────────────────────────────────┐
│ Pending Approvals (7)                                      │
├────────────────────────────────────────────────────────────┤
│ Leave Requests (5)                                         │
│ ┌──────────────────────────────────────────────────────┐   │
│ │ □ Bob Smith - Vacation Dec 15-20 (5 days)  ⏱ 2 days │   │
│ │ □ Jane Doe - Sick Leave Dec 6 (1 day)      ⏱ Today  │   │
│ │ □ Mike Lee - Personal Dec 10 (1 day)       ⏱ 1 day  │   │
│ │ □ Sara Kim - Vacation Dec 22-31 (6 days)   ⏱ 3 days │   │
│ │ □ Tom Chen - Vacation Jan 2-5 (3 days)     ⏱ 5 days │   │
│ └──────────────────────────────────────────────────────┘   │
│                                                            │
│ Document Access Requests (2)                               │
│ ┌──────────────────────────────────────────────────────┐   │
│ │ □ New Hire - Access to Engineering Docs    ⏱ 1 day  │   │
│ │ □ Intern - Access to Training Materials    ⏱ Today  │   │
│ └──────────────────────────────────────────────────────┘   │
│                                                            │
│ [Approve Selected] [Reject Selected]                       │
└────────────────────────────────────────────────────────────┘

UC-DASH-04: View Department Breakdown

Primary Actor: Tenant Admin, HR Manager

Preconditions

  • Actor is authenticated
  • Multiple departments exist
  • Employees are assigned to departments

Main Flow

  1. Actor navigates to Analytics → Departments
  2. Views department overview:
    • List of all departments
    • Headcount per department
    • Department heads
  3. Selects department for details:
    • Employee list
    • Sub-teams (if hierarchical)
    • Headcount trend over time
    • Current vs budgeted headcount
  4. Can view charts:
    • Pie chart: Department distribution
    • Bar chart: Headcount by department
    • Line chart: Headcount trend

Alternative Flows

A1: Compare Departments

  1. Select multiple departments
  2. View side-by-side comparison
  3. Metrics: Size, growth rate, leave usage

A2: Export Report

  1. Actor clicks Export
  2. Generates PDF/Excel report
  3. Includes all visible metrics and charts

Postconditions

  • Actor understands org structure
  • Can identify trends and imbalances

Department Analytics View

┌────────────────────────────────────────────────────────────┐
│ Department Analytics                                        │
├───────────────────────────────┬────────────────────────────┤
│ Department Distribution       │ Headcount Trend            │
│                               │                            │
│    Engineering ████████ 45    │     50 ┤    ╭──────        │
│    Sales       █████    32    │     40 ┤  ╭─╯              │
│    Operations  ████     28    │     30 ┤╭─╯                │
│    Marketing   ███      21    │     20 ┤                   │
│    Finance     ███      18    │        └─────────────      │
│    HR          ██       12    │        J F M A M J         │
│                               │                            │
├───────────────────────────────┴────────────────────────────┤
│ Department Details: Engineering                             │
├────────────────────────────────────────────────────────────┤
│ Head: Sarah Chen (CTO)                                     │
│ Total: 45 employees                                         │
│ Teams: Frontend (12), Backend (15), QA (10), DevOps (8)    │
│ Growth: +5 this quarter (+12.5%)                           │
└────────────────────────────────────────────────────────────┘

UC-DASH-05: View Recent Activity

Primary Actor: Tenant Admin, HR Manager

Preconditions

  • Actor is authenticated
  • System has activity data

Main Flow

  1. Actor navigates to Analytics → Activity
  2. Views activity feed showing:
    • Timestamp
    • Action type
    • Actor (who did it)
    • Target (what was affected)
    • Details
  3. Can filter by:
    • Date range
    • Activity type (new hire, leave, document, etc.)
    • Department
    • User
  4. Can search for specific activities

Alternative Flows

A1: Audit Trail

  1. Actor needs detailed audit for compliance
  2. Switches to Audit Log view
  3. Shows all system changes with before/after values

A2: Export Activity Log

  1. Filtered to date range
  2. Export to CSV for external analysis

Postconditions

  • Actor has visibility into system activity
  • Can track changes for compliance

Activity Types

TypeExample
Employee Added"John Smith was added by HR Admin"
Employee Terminated"Jane Doe was terminated"
Leave Approved"Bob's vacation was approved by Manager"
Document Uploaded"Policy v2.pdf was uploaded by HR"
Role Changed"Mike was promoted to Manager"
Login"Admin logged in from new device"

Activity Feed Example

┌────────────────────────────────────────────────────────────┐
│ Recent Activity                           [Filter] [Export]│
├────────────────────────────────────────────────────────────┤
│ Today                                                      │
│ ├─ 10:30 AM  New employee added                           │
│ │            John Smith joined Engineering                 │
│ │            Added by: HR Admin                            │
│ │                                                          │
│ ├─ 09:15 AM  Leave approved                               │
│ │            Bob's vacation (Dec 15-20) approved           │
│ │            Approved by: Dev Manager                      │
│ │                                                          │
│ Yesterday                                                  │
│ ├─ 04:45 PM  Document uploaded                            │
│ │            "2024 Benefits Guide.pdf"                     │
│ │            Uploaded by: HR Manager                       │
│ │                                                          │
│ ├─ 02:30 PM  Employee terminated                          │
│ │            Jane Doe's last day was Dec 3                 │
│ │            Processed by: HR Admin                        │
└────────────────────────────────────────────────────────────┘

UC-DASH-06: AI-Generated Insights

Primary Actor: Tenant Admin, HR Manager

Preconditions

  • Actor is authenticated
  • Sufficient data exists for analysis
  • AI service is available

Main Flow

  1. Actor navigates to Analytics → AI Insights
  2. System displays AI-generated observations:
    • Trends detected
    • Anomalies identified
    • Recommendations
  3. Each insight includes:
    • Observation (what was noticed)
    • Data supporting it
    • Suggested action (if applicable)
    • Confidence level
  4. Actor can:
    • Dismiss insights (won't show again)
    • Mark as "Investigating"
    • Share with team
  5. Insights refresh weekly or on-demand

Alternative Flows

A1: No Insights Available

  1. Insufficient data for meaningful analysis
  2. System displays: "Keep using the system to generate insights"
  3. Suggests what data would help (more employees, longer history)

A2: Custom Analysis Request

  1. Actor asks AI a specific question
  2. AI analyzes data and provides custom insight
  3. "What's our average tenure by department?"

Postconditions

  • Actor receives proactive insights
  • Can take data-driven actions

AI Insight Examples

CategoryInsightSuggested Action
Leave Patterns"Engineering team has 30% more sick leave than company average""Consider wellness program for Engineering"
Turnover Risk"3 employees haven't updated profiles in 6+ months""Send profile update reminder"
Onboarding"New hires in Sales complete onboarding 2 days faster than others""Review Sales onboarding for best practices"
Headcount"Marketing grew 40% this quarter, fastest in company""Ensure management capacity keeps pace"
Engagement"Document access dropped 25% last month""Check if key documents need updates"

AI Insights View

┌────────────────────────────────────────────────────────────┐
│ AI Insights                               Last updated: Now│
├────────────────────────────────────────────────────────────┤
│ 🔴 High Priority                                           │
│ ┌──────────────────────────────────────────────────────┐   │
│ │ Engineering team leave patterns unusual              │   │
│ │                                                      │   │
│ │ Observation: Engineering has 30% higher sick leave   │   │
│ │ usage compared to company average over last 3 months │   │
│ │                                                      │   │
│ │ Data: Eng avg 3.2 days, Company avg 2.4 days        │   │
│ │                                                      │   │
│ │ Suggestion: Consider team wellness check-in         │   │
│ │                                                      │   │
│ │ Confidence: High (based on 45 employees, 3 months)  │   │
│ │                                                      │   │
│ │ [Dismiss] [Investigate] [Share with HR]             │   │
│ └──────────────────────────────────────────────────────┘   │
│                                                            │
│ 🟡 Medium Priority                                         │
│ ┌──────────────────────────────────────────────────────┐   │
│ │ Onboarding completion rates vary by department       │   │
│ │                                                      │   │
│ │ Sales: 95% complete within 7 days                   │   │
│ │ Engineering: 72% complete within 7 days              │   │
│ │                                                      │   │
│ │ Suggestion: Review Engineering onboarding workflow  │   │
│ └──────────────────────────────────────────────────────┘   │
└────────────────────────────────────────────────────────────┘

UC-DASH-07: User Creates Custom Dashboard

Primary Actor: Employee, Manager, HR Manager, Tenant Admin

Preconditions

  • User is authenticated
  • User has dashboard creation permission (based on role limits)
  • User has not exceeded dashboard limit for their role

Main Flow

  1. User clicks "New Dashboard" button
  2. System shows dashboard creation form:
    • Name (required)
    • Description (optional)
    • Visibility: Personal (default) or Shared
  3. User enters dashboard details
  4. System creates empty dashboard canvas
  5. User is redirected to new dashboard in edit mode
  6. User can immediately start adding widgets

Alternative Flows

A1: Dashboard Limit Reached

  1. User has reached max dashboards for their role
  2. System displays: "Dashboard limit reached (X of X)"
  3. Offers to delete existing dashboard or upgrade

A2: Duplicate Name

  1. User enters name that already exists
  2. System suggests unique name (e.g., "My Dashboard (2)")

Postconditions

  • New dashboard created
  • Dashboard saved in user's dashboard list
  • User is in edit mode on new dashboard

Permission Limits by Role

RoleMax Custom DashboardsCan Share
Employee3No (personal only)
Manager5Team members
HR Manager10Department
Tenant AdminUnlimitedCompany-wide

UC-DASH-08: User Adds Widget to Dashboard

Primary Actor: Dashboard owner or editor

Preconditions

  • User is authenticated
  • User has edit access to dashboard
  • Dashboard is in edit mode

Main Flow

  1. User clicks "+ Add Widget" button
  2. System displays Widget Gallery modal:
    • Categories: Metrics, Charts, Lists, AI, Quick Actions
    • Widgets filtered by user's permissions
    • Search functionality
  3. User browses/searches widgets
  4. Hovers over widget to see preview:
    • Widget thumbnail
    • Description
    • Size requirements
  5. Clicks widget to add
  6. Widget appears on dashboard with default size
  7. Widget loads data automatically

Alternative Flows

A1: Widget Requires Configuration

  1. Widget has required settings
  2. Configuration modal opens immediately
  3. User configures widget before it displays

A2: No Available Space

  1. Dashboard is full at current layout
  2. System auto-expands canvas
  3. New widget added at bottom

Postconditions

  • Widget instance added to dashboard
  • Widget displays live data
  • Layout auto-saved

Widget Categories

CategoryExample WidgetsDescription
MetricsHeadcount Summary, Leave Balance, Pending Approvals CountSingle-value or summary displays
ChartsDepartment Distribution, Headcount Trend, Leave CalendarVisual data representations
ListsRecent Activity, Team Members, My Tasks, DocumentsScrollable item lists
AIAI Insights, AI Chat Quick AccessAI-powered features
Quick ActionsSubmit Leave, View Profile, Team DirectoryAction shortcuts
┌────────────────────────────────────────────────────────────┐
│ Add Widget                                        [X Close]│
├────────────────────────────────────────────────────────────┤
│ 🔍 Search widgets...                                       │
├────────────────────────────────────────────────────────────┤
│ Categories: [All] [Metrics] [Charts] [Lists] [AI] [Quick]  │
├────────────────────────────────────────────────────────────┤
│                                                            │
│ Metrics                                                    │
│ ┌───────────┐ ┌───────────┐ ┌───────────┐ ┌───────────┐   │
│ │ Headcount │ │   Leave   │ │  Pending  │ │   Team    │   │
│ │  Summary  │ │  Balance  │ │ Approvals │ │   Size    │   │
│ │    📊     │ │    📅     │ │    🔔     │ │    👥     │   │
│ └───────────┘ └───────────┘ └───────────┘ └───────────┘   │
│                                                            │
│ Charts                                                     │
│ ┌───────────┐ ┌───────────┐ ┌───────────┐                 │
│ │Department │ │ Headcount │ │   Leave   │                 │
│ │   Pie     │ │   Trend   │ │  Calendar │                 │
│ │    🥧     │ │    📈     │ │    📆     │                 │
│ └───────────┘ └───────────┘ └───────────┘                 │
│                                                            │
└────────────────────────────────────────────────────────────┘

UC-DASH-09: User Customizes Dashboard Layout

Primary Actor: Dashboard owner or editor

Preconditions

  • User is authenticated
  • User has edit access to dashboard

Main Flow

  1. User clicks "Edit Layout" button
  2. Dashboard enters edit mode:
    • Edit mode indicator shown
    • Widgets show drag handles
    • Resize handles appear on widgets
  3. User customizes layout:
    • Drag: Click and hold widget header to reposition
    • Resize: Drag corner/edge handles to resize
    • Grid snap: Widgets snap to grid for alignment
  4. System auto-saves changes (debounced 500ms)
  5. User clicks "Done Editing" to exit edit mode
  6. Layout is locked

Alternative Flows

A1: Widget Size Constraints

  1. User tries to resize below minimum
  2. Widget snaps to minimum size
  3. Tooltip shows: "Minimum size reached"

A2: Undo Change

  1. User makes unwanted change
  2. Clicks Undo or Ctrl+Z
  3. Previous layout restored

A3: Reset to Default

  1. User clicks "Reset Layout"
  2. Confirmation dialog shown
  3. Dashboard returns to system default layout

Postconditions

  • Layout changes persisted
  • All users with access see updated layout (if shared)

Layout Grid System

┌────────────────────────────────────────────────────────────┐
│                    RESPONSIVE BREAKPOINTS                   │
├────────────────────────────────────────────────────────────┤
│                                                            │
│  XL (>1920px)    12 columns    Full desktop               │
│  LG (>1200px)    12 columns    Desktop                    │
│  MD (>996px)      8 columns    Tablet landscape           │
│  SM (>768px)      4 columns    Tablet portrait            │
│  XS (>480px)      1 column     Mobile (stacked)           │
│                                                            │
└────────────────────────────────────────────────────────────┘

Edit Mode View

┌────────────────────────────────────────────────────────────┐
│ My Dashboard            [+ Add Widget] [Undo] [Done Editing]│
├────────────────────────────────────────────────────────────┤
│ ⚡ Edit Mode Active - Drag widgets to reposition           │
├────────────────────────────────────────────────────────────┤
│                                                            │
│ ┌─────────────────[:::]─────────────────┬────────────────┐ │
│ │ ⠿ Headcount Summary                   │ ⠿ Leave Balance│ │
│ │ ═══════════════════════════════════   │ ═══════════════│ │
│ │         [Widget Content]              │ [Widget Content]│ │
│ │                                       │                 │ │
│ │                              [↘ resize]│        [↘ resize]│
│ └───────────────────────────────────────┴────────────────┘ │
│                                                            │
│ ┌───────────────────────────────────────────────────────┐ │
│ │ ⠿ Recent Activity                                     │ │
│ │ ═════════════════════════════════════════════════════ │ │
│ │                    [Widget Content]                   │ │
│ │                                                [↘ resize]│
│ └───────────────────────────────────────────────────────┘ │
└────────────────────────────────────────────────────────────┘

UC-DASH-10: User Manages Dashboard Layouts

Primary Actor: Dashboard owner

Preconditions

  • User is authenticated
  • User owns or has edit access to dashboard
  • Dashboard has been customized

Main Flow

  1. User clicks "Manage Layouts" button
  2. System shows Layout Manager modal:
    • List of saved layouts
    • Current layout indicator
    • Save/Load/Delete options
  3. User can:
    • Save Current: Save current layout with name
    • Load: Switch to a saved layout
    • Set Default: Mark layout as default
    • Delete: Remove saved layout
    • Export: Download layout as JSON
    • Import: Upload layout JSON file

Alternative Flows

A1: Save Layout

  1. User clicks "Save Current Layout"
  2. Enters layout name and optional description
  3. Optionally sets as default
  4. Layout saved

A2: Load Layout

  1. User selects saved layout
  2. Confirmation: "Load this layout? Current changes will be lost"
  3. Dashboard updates to selected layout

A3: Import Layout

  1. User clicks "Import"
  2. Selects JSON file
  3. System validates layout
  4. Layout applied or error shown

Postconditions

  • Layouts managed successfully
  • Current layout persisted

Layout Manager Modal

┌────────────────────────────────────────────────────────────┐
│ Manage Layouts                                    [X Close]│
├────────────────────────────────────────────────────────────┤
│ Current: "Q4 Review Layout"                                │
│                                                            │
│ [💾 Save Current] [📥 Import]                              │
├────────────────────────────────────────────────────────────┤
│ Saved Layouts                                              │
│                                                            │
│ ┌──────────────────────────────────────────────────────┐   │
│ │ ⭐ Default Layout                            [Default]│   │
│ │    4 widgets • Last modified: Dec 1, 2024            │   │
│ │    [Load] [Export] [Delete]                          │   │
│ └──────────────────────────────────────────────────────┘   │
│                                                            │
│ ┌──────────────────────────────────────────────────────┐   │
│ │ 📊 Q4 Review Layout                          [Active]│   │
│ │    6 widgets • Last modified: Dec 5, 2024            │   │
│ │    [Set as Default] [Export] [Delete]                │   │
│ └──────────────────────────────────────────────────────┘   │
│                                                            │
│ ┌──────────────────────────────────────────────────────┐   │
│ │ 📋 Team Overview                                     │   │
│ │    3 widgets • Last modified: Nov 15, 2024           │   │
│ │    [Load] [Set as Default] [Export] [Delete]         │   │
│ └──────────────────────────────────────────────────────┘   │
│                                                            │
└────────────────────────────────────────────────────────────┘

UC-DASH-11: Tenant Admin Configures System Dashboards

Primary Actor: Tenant Admin

Preconditions

  • Tenant Admin is authenticated
  • System dashboards exist

Main Flow

  1. Tenant Admin navigates to Settings → System Dashboards
  2. Views list of system dashboards:
    • Company Dashboard (for Admins)
    • Team Dashboard (for Managers)
    • Employee Dashboard (for all users)
    • HR Dashboard (for HR roles)
  3. Selects dashboard to configure
  4. Enters admin edit mode:
    • Add/remove widgets
    • Rearrange layout
    • Configure default widget settings
  5. Saves changes
  6. Changes apply to all users with access to that dashboard

Alternative Flows

A1: Reset to Factory Default

  1. Admin clicks "Reset to Default"
  2. Confirmation dialog
  3. Dashboard returns to platform default configuration

A2: Preview as Role

  1. Admin clicks "Preview as..."
  2. Selects role (Manager, Employee, etc.)
  3. Sees dashboard as that role would see it
  4. Returns to admin view

Postconditions

  • System dashboard configuration updated
  • All affected users see new layout on next visit
  • Changes logged in audit trail

System Dashboard Types

DashboardTarget UsersDefault Widgets
Company DashboardTenant AdminHeadcount, Dept Distribution, Activity, AI Insights
Team DashboardManagersMy Profile, My Team, Pending Approvals, Team Calendar
Employee DashboardAllMy Profile, Leave Balance, My Tasks, Quick Actions
HR DashboardHR RolesHeadcount, Onboarding Progress, Leave Overview, Compliance

Admin Configuration View

┌────────────────────────────────────────────────────────────┐
│ System Dashboard Configuration              [Back to List] │
├────────────────────────────────────────────────────────────┤
│ Editing: Employee Dashboard                                │
│ Applies to: All employees (156 users)                      │
│                                                            │
│ [+ Add Widget] [Preview as Employee] [Reset to Default]    │
├────────────────────────────────────────────────────────────┤
│ ⚠️ Admin Edit Mode - Changes affect ALL employees          │
├────────────────────────────────────────────────────────────┤
│                                                            │
│ ┌─────────────────────────┬────────────────────────────┐   │
│ │ ⠿ My Profile            │ ⠿ Leave Balance            │   │
│ │ [Required - Cannot Remove]│ [⚙️ Configure] [🗑 Remove]  │   │
│ └─────────────────────────┴────────────────────────────┘   │
│                                                            │
│ ┌────────────────────────────────────────────────────────┐ │
│ │ ⠿ My Tasks                              [⚙️] [🗑]      │ │
│ └────────────────────────────────────────────────────────┘ │
│                                                            │
│ [Cancel] [Save Changes]                                    │
└────────────────────────────────────────────────────────────┘

UC-DASH-12: User Shares Custom Dashboard

Primary Actor: Manager, HR Manager, Tenant Admin

Preconditions

  • User is authenticated
  • User owns a custom dashboard
  • User has sharing permissions (Manager+ role)

Main Flow

  1. User opens dashboard settings
  2. Clicks "Share Dashboard"
  3. System shows sharing modal:
    • Current sharing status
    • Share options based on user's role
  4. User selects sharing scope:
    • Team: All direct reports
    • Department: All department members
    • Specific Users: Select individuals
    • Company-wide: All employees (Admin only)
  5. Sets permission level:
    • View: Recipients can view but not edit
    • Edit: Recipients can customize layout
  6. Confirms sharing
  7. Recipients see shared dashboard in their dashboard list

Alternative Flows

A1: Revoke Access

  1. User clicks "Manage Access"
  2. Sees list of current shares
  3. Clicks "Remove" next to recipient
  4. Access revoked immediately

A2: Cannot Share (Employee Role)

  1. Employee tries to share
  2. System shows: "Sharing requires Manager or higher role"
  3. Dashboard remains personal

A3: Recipient Edits Shared Dashboard

  1. Recipient has edit permission
  2. Makes layout changes
  3. Changes saved to their personal version
  4. Original dashboard unaffected

Postconditions

  • Dashboard shared with selected recipients
  • Recipients notified (optional)
  • Share recorded in audit log

Sharing Permission by Role

RoleCan Share WithMax Scope
EmployeeNonePersonal only
ManagerTeam membersTeam
HR ManagerDepartmentDepartment
Tenant AdminAnyoneCompany-wide

Share Dashboard Modal

┌────────────────────────────────────────────────────────────┐
│ Share Dashboard: "Q4 Review"                      [X Close]│
├────────────────────────────────────────────────────────────┤
│ Current Access                                             │
│ 🔒 Private (only you)                                      │
├────────────────────────────────────────────────────────────┤
│ Share With                                                 │
│                                                            │
│ ○ My Team (5 members)                                      │
│   All your direct reports                                  │
│                                                            │
│ ○ Specific People                                          │
│   🔍 Search users...                                       │
│                                                            │
│ ○ My Department (Engineering - 45 people)                  │
│   All members of your department                           │
│                                                            │
├────────────────────────────────────────────────────────────┤
│ Permission Level                                           │
│                                                            │
│ ○ View Only - Recipients can view but not modify           │
│ ● Can Edit - Recipients can customize their own copy       │
│                                                            │
├────────────────────────────────────────────────────────────┤
│ □ Notify recipients via email                              │
│                                                            │
│ [Cancel]                                    [Share]        │
└────────────────────────────────────────────────────────────┘

Summary

Use CasePrimary ActorPurpose
UC-DASH-01Tenant AdminView company-wide dashboard
UC-DASH-02ManagerView personal and team dashboard
UC-DASH-03Manager, AdminProcess pending approvals
UC-DASH-04Admin, HRAnalyze department structure
UC-DASH-05Admin, HRTrack recent system activity
UC-DASH-06Admin, HRReceive AI-generated insights
UC-DASH-07All usersCreate custom dashboard
UC-DASH-08Dashboard editorsAdd widget to dashboard
UC-DASH-09Dashboard editorsCustomize dashboard layout
UC-DASH-10Dashboard ownersManage saved layouts
UC-DASH-11Tenant AdminConfigure system dashboards
UC-DASH-12Manager+Share custom dashboard

Dashboard System Architecture

Dashboard Types

TypeDescriptionWho Can Edit
System DashboardsPre-defined by platform, consistent for all users of a roleTenant Admin only
Personal DashboardsUser-created, private by defaultOwner only
Shared DashboardsUser-created, shared with team/departmentOwner and editors

System Dashboards

DashboardTarget AudiencePurpose
Company DashboardTenant AdminCompany-wide metrics and activity
Team DashboardManagersTeam overview and pending actions
Employee DashboardAll employeesPersonal info and quick actions
HR DashboardHR rolesHR-specific metrics and compliance

Widget Registry

The system uses a centralized Widget Registry pattern. Each widget is registered with:

  • Metadata: ID, title, description, category
  • Size constraints: Default, minimum, maximum dimensions
  • Permissions: Required roles/permissions to access
  • Configuration: Whether configurable and default settings

See Dashboard System Implementation for technical details.


Dashboard Access Matrix

Dashboard FeatureEmployeeManagerHR ManagerTenant Admin
Personal metrics
Team metrics✅ Own team✅ All✅ All
Company headcount
Department analytics
Activity log✅ Limited✅ Full
AI Insights
Pending approvals✅ Own✅ All✅ All
Create custom dashboard✅ (3 max)✅ (5 max)✅ (10 max)✅ (unlimited)
Edit system dashboards
Share dashboards✅ Team✅ Department✅ Company
Manage layouts✅ Own✅ Own✅ Own✅ All

AI Chat Integration

The following dashboard use cases can be triggered via AI Chat. See AI Chat Specification for full implementation details.

AI Chat-Enabled Actions

Use CaseAI ToolRequires Confirmation
UC-DASH-01dashboard_metricsNo (read-only)
UC-DASH-02dashboard_metricsNo (read-only)
UC-DASH-03dashboard_pending_approvalsNo (read-only)
UC-DASH-04dashboard_metricsNo (read-only)
UC-DASH-06dashboard_insightsNo (read-only)

UC-DASH-01: View Company Metrics via AI Chat

Example prompts:

  • "What's our current headcount?"
  • "Show me company dashboard"
  • "How many employees do we have?"
  • "What's our headcount by department?"

AI Chat Flow:

User: "What's our current headcount?"

AI: Shows Info Card
┌─────────────────────────────────────────────┐
│ Company Overview                            │
│                                             │
│ Total Employees: 156                        │
│ Active: 152 | On Leave: 4                   │
│                                             │
│ By Department:                              │
│ Engineering: 45 (29%)                       │
│ Sales: 32 (21%)                             │
│ Operations: 28 (18%)                        │
│ Marketing: 21 (13%)                         │
│ Other: 30 (19%)                             │
│                                             │
│ [View Full Dashboard]                       │
└─────────────────────────────────────────────┘

UC-DASH-03: View Pending Approvals via AI Chat

Example prompts:

  • "What's pending my approval?"
  • "Show my action items"
  • "Any leave requests to approve?"
  • "What needs my attention?"

AI Chat Flow:

User: "What's pending my approval?"

AI: Shows Info Card
┌─────────────────────────────────────────────┐
│ Pending Approvals (7)                       │
│                                             │
│ Leave Requests (5):                         │
│ - Bob Smith: Vacation Dec 15-20 (5 days)    │
│ - Jane Doe: Sick Leave Dec 6 (1 day)        │
│ - Mike Lee: Personal Dec 10 (1 day)         │
│ + 2 more                                    │
│                                             │
│ Document Access (2):                        │
│ - New Hire: Engineering Docs                │
│ - Intern: Training Materials                │
│                                             │
│ [View All] [Approve Leave Requests]         │
└─────────────────────────────────────────────┘

UC-DASH-06: Get AI Insights via AI Chat

Example prompts:

  • "What are the trends in time-off usage?"
  • "Any unusual patterns this month?"
  • "Give me HR insights for Q4"
  • "What should I know about my team?"

AI Chat Flow:

User: "Any insights about my team?"

AI: Shows Insights Card
┌─────────────────────────────────────────────┐
│ AI Insights for Engineering Team            │
│                                             │
│ [!] High Priority:                          │
│ "Engineering has 30% higher sick leave      │
│ than company average this quarter"          │
│ Suggestion: Consider wellness check-in      │
│                                             │
│ [i] Observation:                            │
│ "2 team members haven't updated profiles    │
│ in 6+ months"                               │
│ Suggestion: Send profile update reminder    │
│                                             │
│ [ok] Positive:                              │
│ "Onboarding completion improved by 15%"     │
│                                             │
│ [Ask Another Question]                      │
└─────────────────────────────────────────────┘

Business Rules for AI Chat Dashboard Actions

RuleDescription
Permission BasedUsers only see metrics they have access to
Scope FilteringManagers see team data, Admins see company data
Real-time DataMetrics reflect current database state
Insight RefreshAI insights refresh weekly or on-demand

On this page

Analytics Dashboard Use CasesActorsUC-DASH-01: Tenant Admin Views Company DashboardPreconditionsMain FlowAlternative FlowsPostconditionsDashboard Layout ExampleUC-DASH-02: Manager Views Team DashboardPreconditionsMain FlowAlternative FlowsPostconditionsKey Scenario: Dual-Role DashboardUC-DASH-03: View Pending ApprovalsPreconditionsMain FlowAlternative FlowsPostconditionsPending Approvals ViewUC-DASH-04: View Department BreakdownPreconditionsMain FlowAlternative FlowsPostconditionsDepartment Analytics ViewUC-DASH-05: View Recent ActivityPreconditionsMain FlowAlternative FlowsPostconditionsActivity TypesActivity Feed ExampleUC-DASH-06: AI-Generated InsightsPreconditionsMain FlowAlternative FlowsPostconditionsAI Insight ExamplesAI Insights ViewUC-DASH-07: User Creates Custom DashboardPreconditionsMain FlowAlternative FlowsPostconditionsPermission Limits by RoleUC-DASH-08: User Adds Widget to DashboardPreconditionsMain FlowAlternative FlowsPostconditionsWidget CategoriesWidget Gallery ViewUC-DASH-09: User Customizes Dashboard LayoutPreconditionsMain FlowAlternative FlowsPostconditionsLayout Grid SystemEdit Mode ViewUC-DASH-10: User Manages Dashboard LayoutsPreconditionsMain FlowAlternative FlowsPostconditionsLayout Manager ModalUC-DASH-11: Tenant Admin Configures System DashboardsPreconditionsMain FlowAlternative FlowsPostconditionsSystem Dashboard TypesAdmin Configuration ViewUC-DASH-12: User Shares Custom DashboardPreconditionsMain FlowAlternative FlowsPostconditionsSharing Permission by RoleShare Dashboard ModalSummaryDashboard System ArchitectureDashboard TypesSystem DashboardsWidget RegistryDashboard Access MatrixAI Chat IntegrationAI Chat-Enabled ActionsUC-DASH-01: View Company Metrics via AI ChatUC-DASH-03: View Pending Approvals via AI ChatUC-DASH-06: Get AI Insights via AI ChatBusiness Rules for AI Chat Dashboard Actions