Skip to content

OUT-2542 | Client home action items should only count tasks where CU is assignee - #114

Merged
arpandhakal merged 1 commit into
mainfrom
OUT-2542
Nov 3, 2025
Merged

OUT-2542 | Client home action items should only count tasks where CU is assignee#114
arpandhakal merged 1 commit into
mainfrom
OUT-2542

Conversation

@arpandhakal

@arpandhakal arpandhakal commented Nov 3, 2025

Copy link
Copy Markdown
Collaborator

The main changes are

  • appended a param of companyId of the logged in client while fetching task count. This causes the tasks api to return only those tasks that are assigned to the logged in client/company.
  • Adding a companyId param to the getAllTasks api call ensures that only those tasks having clientId and companyId same as the logged in client's clientId and companyId will be fetched. This makes sure that we don't fetch any other tasks that are accessible to the client like shared tasks.

Testing

Before:
image
image

After:
image

- appended a param of companyId of the logged in client while fetching task count. This causes the tasks api to return only those tasks that are assigned to the logged in client/company.
@arpandhakal
arpandhakal requested a review from rrojan November 3, 2025 09:26
@arpandhakal arpandhakal self-assigned this Nov 3, 2025
@linear

linear Bot commented Nov 3, 2025

Copy link
Copy Markdown

@vercel

vercel Bot commented Nov 3, 2025

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
client-home Ready Ready Preview Comment Nov 3, 2025 9:26am

@rrojan rrojan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 🎖️

@arpandhakal
arpandhakal merged commit 495c5aa into main Nov 3, 2025
3 checks passed
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