Skip to content

fix: Fix standard view filter, UI bugs add My Replies card#3141

Open
pratikb64 wants to merge 9 commits intofrappe:developfrom
pratikb64:fix/agent-landing-page-bugs
Open

fix: Fix standard view filter, UI bugs add My Replies card#3141
pratikb64 wants to merge 9 commits intofrappe:developfrom
pratikb64:fix/agent-landing-page-bugs

Conversation

@pratikb64
Copy link
Copy Markdown
Contributor

  • Added My Replies card in the agent home page, which will show the number of replies the agent has sent in the given duration
  • Make padding/spacing of Home page consistent with Dashboard page
  • Update SLA Alerts and Pending Tickets standard view filters and added a patch for apply the same

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 24, 2026

Codecov Report

❌ Patch coverage is 75.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.09%. Comparing base (5002fde) to head (ee572e7).
⚠️ Report is 9 commits behind head on develop.

Files with missing lines Patch % Lines
helpdesk/api/agent_home/agent_home.py 75.00% 6 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3141      +/-   ##
===========================================
+ Coverage    55.02%   57.09%   +2.06%     
===========================================
  Files          128      128              
  Lines         6015     6114      +99     
===========================================
+ Hits          3310     3491     +181     
+ Misses        2705     2623      -82     

☔ 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.

Comment on lines +180 to +213
@@ -186,7 +191,12 @@ const masterData = createResource({
cache: ["Analytics", "MasterCharts"],
params: {
dashboard_type: "master",
filters,
filters: {
from_date: filters.period.split(",")[0],
to_date: filters.period.split(",")[1],
team: filters.team,
agent: filters.agent,
},
},
});

@@ -195,7 +205,12 @@ const trendData = createResource({
cache: ["Analytics", "TrendCharts"],
params: {
dashboard_type: "trend",
filters,
filters: {
from_date: filters.period.split(",")[0],
to_date: filters.period.split(",")[1],
team: filters.team,
agent: filters.agent,
},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

since this is being repeated 3 times
make a function
parseFilters and use that


function formatDateRange(date: string) {
const d = new Date(date);
return d.toLocaleDateString("en-US", {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why en-US?

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.

2 participants