Skip to content

feat: add agent landing page#2796

Open
pratikb64 wants to merge 40 commits intofrappe:developfrom
pratikb64:feat/agent-landing-page
Open

feat: add agent landing page#2796
pratikb64 wants to merge 40 commits intofrappe:developfrom
pratikb64:feat/agent-landing-page

Conversation

@pratikb64
Copy link
Contributor

@pratikb64 pratikb64 commented Dec 3, 2025

Description

This PR introduces a dedicated Agent Dashboard (Home Page) designed to provide agents with a centralized view of their workload and performance metrics immediately upon logging in.

To improve the user experience, the dashboard is fully customizable, allowing agents to organize their workspace according to their specific needs.

Key Features

  • Customizable Widgets: Agents can resize and move chart widgets using a drag-and-drop interface.
  • Personalized Views: Users can add specific charts or remove irrelevant ones to declutter their view.
  • Layout Persistence: The dashboard configuration is saved per user, ensuring their layout remains consistent across sessions.

These are the available charts in the dashboard

  1. Average Time Metrics - Agent's average time to respond and resolve the tickets
  2. My Tickets card - Total tickets assigned to the agent
  3. Avg. First Response card
  4. Avg. Resolution card
  5. Recently assigned tickets
  6. Your rating - Agent's average rating given by customers
  7. Upcoming SLA Violations - List of tickets whose SLAs are about to breach
  8. Pending Tickets - Agent's pending tickets that are in Open category state

Changelog

  • Add a new page for agent's dashboard
  • Add HD Field Layout doctype to store user-specific dashboard layouts

2025-12-04.17-06-37.mp4

@pratikb64 pratikb64 marked this pull request as ready for review December 4, 2025 12:28
Comment on lines +263 to +273
todo = DocType("ToDo")
assigned_tickets = (
frappe.qb.from_(todo)
.select(todo.reference_name)
.distinct()
.where(todo.reference_type == "HD Ticket")
.where(todo.allocated_to == frappe.session.user)
.where(todo.creation >= one_week_ago)
.run(as_dict=False)
)
ticket_names = [row[0] for row in assigned_tickets]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will get Cancelled todos as well

@codecov
Copy link

codecov bot commented Jan 30, 2026

Codecov Report

❌ Patch coverage is 89.13043% with 60 lines in your changes missing coverage. Please review.
✅ Project coverage is 54.90%. Comparing base (4979045) to head (2f19479).
⚠️ Report is 58 commits behind head on develop.

Files with missing lines Patch % Lines
helpdesk/api/doc.py 4.54% 42 Missing ⚠️
helpdesk/api/agent_home/agent_home.py 96.66% 8 Missing ⚠️
helpdesk/helpdesk/doctype/hd_view/hd_view.py 0.00% 5 Missing ⚠️
helpdesk/utils.py 78.94% 4 Missing ⚠️
helpdesk/helpdesk/doctype/hd_ticket/api.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2796      +/-   ##
===========================================
+ Coverage    51.21%   54.90%   +3.68%     
===========================================
  Files          122      126       +4     
  Lines         5420     5972     +552     
===========================================
+ Hits          2776     3279     +503     
- Misses        2644     2693      +49     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants