Skip to content

Fix Task Completed Data Not Populating Across - #5567

Open
roshini1212 wants to merge 1 commit into
developmentfrom
Roshini_Seelamsetty_Fix-Task-Completed-Data-Not-Populating-Across
Open

roshini1212 wants to merge 1 commit into
developmentfrom
Roshini_Seelamsetty_Fix-Task-Completed-Data-Not-Populating-Across

Conversation

@roshini1212

Copy link
Copy Markdown
Contributor

Description

Screenshot 2026-09-19 at 10 30 11 Screenshot 2026-09-19 at 10 30 48

Related PRS (if any):

This frontend PR is related to the (OneCommunityGlobal/HGNRest#2358) backend PR.

Main changes explained:

  • Updated task statistics aggregation to calculate Assigned and Completed task counts independently.
    -Added support for completed tasks identified by:
    completedDatetime
    terminal task statuses such as Completed, Closed, Complete, Done, and Finished
    resources.completedTask
  • Updated the weekly task trends endpoint to honor the selected start and end dates.
  • Added assigned and completed values to weekly chart responses.
  • Updated the task summary endpoint to use the same completion rules as the graph.
  • Normalized dashboard date ranges using the America/Los_Angeles timezone.
  • Preserved the existing YYYY-MM-DD date format for time-entry queries.
  • Added regression tests covering assigned/completed counts, date filtering, and comparison periods.

How to test:

  1. Checkout the backend branch
  2. Do npm install
    npm run build
    npm start
  3. Checkout the related frontend PR
  4. Clear browser site data/cache.
  5. Log in as a Manager, Admin, or Tester.
  6. Navigate to: Dashboard → Total Org Summary
  7. Verify that:
    The Task Completed summary card displays the correct value.
    The graph displays both Assigned and Completed labels.
    Assigned and Completed values are separate.
    The chart updates when the date-range filter changes.
    The behavior works on desktop and mobile layouts.

Screenshots or videos of changes:

Screen.Recording.2026-09-18.at.11.37.59.mov

@netlify

netlify Bot commented Sep 19, 2026

Copy link
Copy Markdown

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit fda8aa2
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/6aae9df1968c990008db74b4
😎 Deploy Preview https://deploy-preview-5567--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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.

1 participant