Skip to content

Vamsi krishna impl a permission to view task extension count - #3402

Merged
one-community merged 9 commits into
developmentfrom
Vamsi_Krishna_Impl_a_permission_to_view_task_extension_count
Aug 22, 2025
Merged

Vamsi krishna impl a permission to view task extension count#3402
one-community merged 9 commits into
developmentfrom
Vamsi_Krishna_Impl_a_permission_to_view_task_extension_count

Conversation

@vamsikrishna1704

@vamsikrishna1704 vamsikrishna1704 commented Apr 11, 2025

Copy link
Copy Markdown
Contributor

Description

PR

Related PRS (if any):

This frontend PR is related to the #1326 backend PR.
To test this frontend PR you need to checkout the #1326 backend PR.

Main changes explained:

  • Added the permission into permissions list.
  • Displaying the task extension count to users with 'viewTaskExtensionCount' or Owner role.

How to test:

  1. check into current branch
  2. do npm install and npm run start:local to run this PR locally
  3. Clear site data/cache
  4. log as admin user
  5. go to Other links-> PermissionManagement->ManageUserPermissions->Select user -> Add permission See # times time added to task.
  6. Able to see the task deadline extension count.
  7. verify this new feature works in dark mode

Screenshots or videos of changes:

FrontendDemo.mp4

Without_Permission
With_Permission

@netlify

netlify Bot commented Apr 11, 2025

Copy link
Copy Markdown

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 86ef7ff
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/68a68ac076e9bd0007c1bcf3
😎 Deploy Preview https://deploy-preview-3402--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@palankigreeshma1109 palankigreeshma1109 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I have reviewed this PR and followed all the steps mentioned in the PR and navigated to Other links-> PermissionManagement->ManageUserPermissions->Select user -> Add permission See # times time added to task.
i icon in owner login page
Screenshot (149)

verified the permission for owner and admin role
Screenshot (150)

Screenshot (151)

Added the permission to volunteer
Screenshot (152)

After login in as volunteer the small i icon is not shown
Screenshot (154)

Screenshot (155)

Please let me know if you need any further reviewing of this PR.

@vamsikrishna1704

Copy link
Copy Markdown
Contributor Author

Hi @palankigreeshma1109, this PR is about the task extension count, not about the icon. I can see the task extension count spanning next to time progress in your screenshot as expected. I would request you to go through the PR once again to find any other problems in it. Thank you.

karnati007
karnati007 previously approved these changes Apr 16, 2025

@karnati007 karnati007 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.

Checked out the current branch, ran npm install and npm run start:local, and cleared site data/cache. Logged in as an admin user and navigated to Other Links → Permission Management → Manage User Permissions. Selected a user and added the “See # times time added to task” permission. Verified that the user is now able to see the task deadline extension count. Also confirmed that the feature works correctly in dark mode with no UI issues. Approving this PR. ✅

VamiPR
VamsiPR2

JuliaHa0902
JuliaHa0902 previously approved these changes Apr 23, 2025

@JuliaHa0902 JuliaHa0902 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.

I have checked out and tested the branch. I logged in as Owner and was able to see the Task Extension count. I am able to give "See Task Extension Count" to other roles and users. Tested in both light and dark mode. I changed the task time and can see that the count is updated. I logged in as a Volunteer with the permission and confirmed that Task Extension Count is visible. I approved the PR.
Screenshot 2025-04-22 183721
Screenshot 2025-04-22 184056
Screenshot 2025-04-22 185952

@vamsikrishna1704
vamsikrishna1704 dismissed palankigreeshma1109’s stale review April 24, 2025 20:20

Requested changes for another feature.

gopikalakshmia
gopikalakshmia previously approved these changes Apr 25, 2025

@gopikalakshmia gopikalakshmia 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.

Checkout the branch. In the application, go to Other Links → Permissions Management → Select the Owner/Admin role → Added "see # of times Time Added to Task" for the Volunteer role.
image
logged in as a Volunteer and verified that the Task Extension count is visible in both Light and Dark themes.
image
image
Removed the "See # of Times Time Added to Task"
image
Task Extension count is not visible
image

Working as expected ,Approving the PR

@AnthonyWeathers AnthonyWeathers 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.

Followed instructions, and added the permission to my admin account and after relogin, was able to see the red circle containing the task deadline extension count for members. Also tested and verified the count is displayed in both light and dark mode.
PR #3402 See time added in user permissions
PR #3402 See times time was added for a member

PR is approved.

mvreddy13
mvreddy13 previously approved these changes May 15, 2025

@mvreddy13 mvreddy13 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.

  1. Added the permission to the volunteer user account

image
The task extension count can be seen after the user got the permission

Comment thread src/components/PermissionsManagement/PermissionsConst.js
Comment thread src/components/TeamMemberTasks/TeamMemberTask.jsx Outdated
@Deekshith010905

Copy link
Copy Markdown
Contributor

When logged in as an admin and navigating to Permission Management, the "See # of Times Time Added to Task" permission is showing as disabled,
Screenshot 2025-06-30 225149
Screenshot 2025-06-30 225207
Screenshot 2025-06-30 225228

nathanah
nathanah previously approved these changes Jul 3, 2025

@nathanah nathanah 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

Comment thread src/components/PermissionsManagement/PermissionsConst.js
@vamsikrishna1704
vamsikrishna1704 requested review from karnati007 and nathanah and removed request for palankigreeshma1109 July 4, 2025 21:54
karnati007
karnati007 previously approved these changes Jul 5, 2025

@karnati007 karnati007 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.

Hi @vamsikrishna1704, I have tested out the updated code and it is working as intended. Now that you have only allowed users with permission to view task extension deadline, it eliminated unnecessary role based check. Nice work.

…ighestGoodNetworkApp into Vamsi_Krishna_Impl_a_permission_to_view_task_extension_count

@karnati007 karnati007 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.

Hi @vamsikrishna1704, As the changes you have made resolved the merge conflicts with development branch by keeping the functionalities stay unchanged. I am satisfied with the code and approving to be merged into development. Thank you.
Before permission:
image
After permission:
image

@one-community

Copy link
Copy Markdown
Member

Thank you all, merging!

@one-community
one-community merged commit f4a04df into development Aug 22, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible High Priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants