Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Display User Details for Task Progress Updates #1292

Conversation

AnujChhikara
Copy link
Contributor

@AnujChhikara AnujChhikara commented Dec 6, 2024

Date: 10 Dec 2024

Developer Name: @AnujChhikara


Issue Ticket Number

Description

This PR implementing a feature to display the details of the user who made the task progress update. The user image will be shown as a clickable link that leads to their user management page, ensuring accountability and transparency in task progress updates. When you hover over the user image it also show their username.

Documentation Updated?

  • Yes
  • No

Under Feature Flag

  • Yes
  • No

Database Changes

  • Yes
  • No

Breaking Changes

  • Yes
  • No

Development Tested?

  • Yes
  • No

Screenshots

Updated UI
Mobile UI
Dev Flag Working

Test Coverage

Screenshot 1

image
image

Additional Notes

  • Currently, the progress data does not include the userData field. After discussing with Ankush, we decided to proceed with the frontend changes behind a feature flag. Once this is complete, I will work on the backend implementation.

  • To handle the ?dev=true query parameter, I utilized useRouter in the code. In the tests, I mocked useRouter to simulate scenarios where the dev query parameter is set to true or false.

  • Additionally, I wrote extra tests to improve the overall test coverage.

Copy link

vercel bot commented Dec 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
status-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 3:29pm

Copy link

vercel bot commented Dec 6, 2024

@AnujChhikara is attempting to deploy a commit to the RDS-Team Team on Vercel.

A member of the Team first needs to authorize it.

@AnujChhikara
Copy link
Contributor Author

Design Doc

@VinuB-Dev
Copy link
Contributor

Can you please add mobile UI changes recording also.

@AnujChhikara
Copy link
Contributor Author

Can you please add mobile UI changes recording also.

added

@Achintya-Chatterjee Achintya-Chatterjee changed the title Display User Details for Task Progress Updates Feature: Display User Details for Task Progress Updates Dec 17, 2024
@@ -37,6 +45,7 @@ export default function ProgressUpdateCardPresentation({
className={
styles['progress-update-card__more-less-button']
}
data-testid="progress-update-card-read-more-completed"
Copy link
Member

Choose a reason for hiding this comment

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

Give this a better name

styles['progress-update-card__date-container']
<Tooltip
tooltipPosition={
isDevMode
Copy link
Member

Choose a reason for hiding this comment

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

Why do you define the CSS here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am passing the css as props as to set the Tooltip position. We are already doing this in the repo with tooltip component.

Copy link
Member

Choose a reason for hiding this comment

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

Refactor this file as you used too much nesting

@iamitprakash iamitprakash merged commit 00c6bcc into Real-Dev-Squad:develop Dec 27, 2024
1 of 2 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.

Implement User Attribution for Task Progress Updates
7 participants