Skip to content

Anthony/feature-reorder-warning-trackers#5146

Open
AnthonyWeathers wants to merge 1 commit intodevelopmentfrom
Anthony/feature-reorder-warning-trackers
Open

Anthony/feature-reorder-warning-trackers#5146
AnthonyWeathers wants to merge 1 commit intodevelopmentfrom
Anthony/feature-reorder-warning-trackers

Conversation

@AnthonyWeathers
Copy link
Copy Markdown
Contributor

@AnthonyWeathers AnthonyWeathers commented Apr 14, 2026

feature: added ability to reorder warning trackers, and fixed warning list not displaying updated name for trackers when renamed through tracker modal

Description

Added ability to reorder the warning trackers through the modal, also fixed issue where renaming a tracker wasn't being properly reflected in the warning list for a user after clicking 'Tracking'.

Related PRS (if any):

This frontend PR is related to the PR#2167 backend PR.

Main changes explained:

  • Update Warnings.jsx to order the list of warnings based off the order value of the warning trackers
  • Updated WarningTrackerModal.jsx to implement the reorder trackers feature

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 or above user
  5. go to dashboard→ go to a user (can use any of my Anthony accounts to test) → click 'Tracking' to open list of warnings→ Then click +/- to open tracker modal, and reorder the trackers → Save changes
  6. Verified that the tracker order in the warning list are reordered to match your changes
  7. Reopen the +/- modal if you closed it, and rename one of the trackers you are able to → Save the changes
  8. verify the tracker you renamed, matches the new name, and the warnings linked to the tracker are still retained

Screenshots or videos of changes:

Demo (Also shows edge cases I noted below except for one)

Note:

When viewing the modal opened by +/-, you can not rename a warning tracker, and reorder the list of trackers and save both changes. It will prioritize the renaming and not do the reordering. I did not look into trying to allow multiple changes to be saved, so this is just to let you know to do only one change at a time before saving.

Also, very fringe edge case, if you click 'Tracking' for multiple users, opening their individual list of warnings, then click the +/- to open the modal, and make a change, it will reflect properly in the user's list that you opened the modal from, but not the others. This is due to me having made it return the changes for the specific user only. Not all users in general, so to verify if the other lists are updated properly, you'd need to click the 'Hide' button, to hide the lists and change it to 'Tracking', then reopen their lists, and the warning lists for those users should be reflecting the updated version.

If you rename a tracker, and have kept the list of a separate user open, then added a warning to the outdated version of the tracker, it'll get the new name, but lost the new warning. To retrieve the missing warning, you'd need to rename the tracker back to how it was, get the new warning to appear, then rename it again, and it should have all of the warnings plus the new one.

Last note: On the backend, I made it so one of the functions that'd update old warnings (primarily ones made outside of this PR), only target my accounts, containing 'Anthony', I'll change it before the merge, I limited its scope to avoid updating all warnings without more testing first.

… list not displaying updated name for trackers when renamed through tracker modal
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 14, 2026

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 680930d
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/69dd9b5325676000088be840
😎 Deploy Preview https://deploy-preview-5146--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.

@sonarqubecloud
Copy link
Copy Markdown

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