Skip to content

Anthony/Warning-Tracker-Followup#4502

Merged
one-community merged 9 commits intodevelopmentfrom
Anthony/Warning-Tracker-Followup
Dec 16, 2025
Merged

Anthony/Warning-Tracker-Followup#4502
one-community merged 9 commits intodevelopmentfrom
Anthony/Warning-Tracker-Followup

Conversation

@AnthonyWeathers
Copy link
Copy Markdown
Contributor

@AnthonyWeathers AnthonyWeathers commented Dec 5, 2025

Description

Follow up to PR#3978, adding the feature to add a blue square to a user, through choosing to issue a blue square through the warning trackers, both on the dashboard and on the user profile.

Related PRS (if any):

This PR is related to PR#1938 backend PR.

Main changes explained:

  • Updated PermissionsConst.jsx to rearrange some permissions and remove a no longer used one by request.
  • Updated UserProfile.jsx and Warnings.jsx mostly to add ability to create a new bluesquare through the Issue Blue Square option on the warning trackers introduced by PR#3978
  • Updated UserProfileModal, added a space between Created Date and the date the blue square was created, assuming a created date if it was manually made. Then commented out the disabled value for the Both button for the special warning trackers on the Profile page when clicking on a bluesquare.
  • Updated PermissionListItem with additional values to allow users with Owner role, to add or remove the Blue Square Email Management permission to other users

How to test:

  1. check into current branch

  2. do npm install and ... to run this PR locally

  3. Clear site data/cache

  4. log as admin user (owner needed to test being able to add or remove the Blue Square Email Management permission though)

Issue Warnings On Dashboard

  1. Find your account or an account you own, that you'll be testing with

  2. Click on the Tracking Button (yellow button that should change to show Hide, and display the warnings list below it)

  3. Click on the circles of any warning, to simulate adding a warning of that kind for the user

  4. Check if you get a success toast with this message: 'Successfully logged and tracked'

  5. Repeat for same warning so that when attempting to add a 3rd warning (after having added 2 blue circles), you'd get the modal pop up asking if you'd like to issue another warning or a blue square

  6. Issue a warning and verify you get this success toast message: 'Warning successfully logged and sent by email.'

  7. Repeat step 10 but issue a bluesquare and verify you get the success toast message: 'Successfully logged and Blue Square issued on profile and by email.' if nothing goes wrong.

User Profile Blue Square Check, Issue Special Warnings, and Test Both Button Blue Squares and Mixed Cases

  1. Go to a user profile (preferably yours or another account you made that you can access the email for)

  2. Check the blue squares and locate added blue square from the dashboard steps, should look like what's shown in the image. (Note: Only difference between blue squares issued from dashboard will be the name of the warning tracker, indicated by the ""s)

Updated summary text for issued blue square through warning trackers on dashboard page
  1. Next, click any blue square and remove it by clicking the RBS4NS (Remove Blue Square for No Summary) yellow button, and click Issue Blue Square

  2. Verify it removes the bluesquare you chose, then adds a new bluesquare with text explaining it. (This will be different than the blue squares issued from dashboard, so don't mind it)

  3. Test with repeating the same step but with the RBS4HCE (Remove Blue Square for Hours Close Enough), ensure the text has the right warning name mentioned

  4. Test using the Both, and verify if the summary text accurately describes what you chose. (Ex. If you chose to issue blue square for both warnings, then the summary text should say blue square for both. If you chose blue square for no summary, and warning for hours close enough, then the text will say blue square for no summary, and a warning for hours close enough.

  5. Also, verify if the number of times listed in the summary text, matches the Occurrence number of the respective warning

Check Blue Square Email Management permission (Owner users only)

  1. Go to Permissions Management

  2. Click on a role, or Manage User Permissions and select a user

  3. Scroll down to Misc/Unsorted, and find Blue Square Email Management

  4. Verify if you can click on it, and change it between Add/Delete

Note

If you have setup email functionality for your local end by following Email sending instructions, then if you issue blue squares or warnings, you will have to modify emailSender function calls, otherwise you may end up emailing other people than just yourself. So adjust them to only be your own emails before testing those features directly. Or you could just set sendEmail to false in the backend env file, as I think that would ensure no email gets sent either.

If you haven't setup your environment for email functionality, then you shouldn't have to worry about accidentally sending emails to people, but double check though incase I forgot something.

…d bluesquare email assignment, and implement issue blue square action through warning trackers
…on restriction works, and modified toast messages
@netlify
Copy link
Copy Markdown

netlify Bot commented Dec 5, 2025

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 70fcded
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/693dfbbd982ff90008a61592
😎 Deploy Preview https://deploy-preview-4502--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.

@one-community one-community added the High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible label Dec 11, 2025
Anusha-Gali
Anusha-Gali previously approved these changes Dec 12, 2025
Copy link
Copy Markdown

@Anusha-Gali Anusha-Gali left a comment

Choose a reason for hiding this comment

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

Hi Anthony,

I have reviwed your PR and followed all the steps mentioned and they are function as per requirement.
Screenshot 2025-12-12 at 1 22 42 AM
Screenshot 2025-12-12 at 1 23 03 AM
Screenshot 2025-12-12 at 1 23 07 AM
Screenshot 2025-12-12 at 1 23 22 AM
Screenshot 2025-12-12 at 1 23 40 AM
Screenshot 2025-12-12 at 1 23 45 AM
Screenshot 2025-12-12 at 1 25 09 AM
Screenshot 2025-12-12 at 1 25 27 AM
Screenshot 2025-12-12 at 1 25 51 AM
Screenshot 2025-12-12 at 1 29 03 AM
Screenshot 2025-12-12 at 1 30 01 AM
Screenshot 2025-12-12 at 1 30 23 AM
Screenshot 2025-12-12 at 1 31 28 AM
Screenshot 2025-12-12 at 1 31 32 AM

@sonarqubecloud
Copy link
Copy Markdown

@one-community
Copy link
Copy Markdown
Member

Thank you all, merging!

@one-community one-community merged commit 3b44e3b into development Dec 16, 2025
10 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants