diff --git a/doc/release/RELEASE-NOTES.md b/doc/release/RELEASE-NOTES.md index f71478318..dedc728b5 100644 --- a/doc/release/RELEASE-NOTES.md +++ b/doc/release/RELEASE-NOTES.md @@ -60,6 +60,7 @@ Also was added sanitization on the server side by using the `Django-Bleach` libr * [OSDEV-1803](https://opensupplyhub.atlassian.net/browse/OSDEV-1803) - Updated text from `Facility Type` to `Location Type` and `Facility Name` to `Location Name` on the SLC `Thank You for Your Submission` page. * [OSDEV-1838](https://opensupplyhub.atlassian.net/browse/OSDEV-1838) - Fixed an issue where the router redirected to an unsupported page when the OS ID contained a forward slash. The fix was implemented by encoding the OS ID value using the `encodeURIComponent()` function before passing it as a URL parameter. * [OSDEV-1840](https://opensupplyhub.atlassian.net/browse/OSDEV-1840) - Fixed the snapshot status checking procedure. This will prevent a crash when trying to restore a database from an inaccessible snapshot. +* [OSDEV-1831](https://opensupplyhub.atlassian.net/browse/OSDEV-1831) - Updated copies of tooltips on the “Thank you for adding data” pop-up. The texts vary depending on the claim status for a particular location. * [OSDEV-1827](https://opensupplyhub.atlassian.net/browse/OSDEV-1827) - Fixed the condition logic for the email template when approving a contribution to an existing production location that has either been claimed or has a pending claim request. ### What's new diff --git a/src/react/src/components/Contribute/ProductionLocationDialog.jsx b/src/react/src/components/Contribute/ProductionLocationDialog.jsx index d30ff692d..b272149a3 100644 --- a/src/react/src/components/Contribute/ProductionLocationDialog.jsx +++ b/src/react/src/components/Contribute/ProductionLocationDialog.jsx @@ -71,15 +71,22 @@ const getStatusBadgeClass = (classes, status) => { } }; -const getTooltipText = claimStatus => { - if (claimStatus === PRODUCTION_LOCATION_CLAIM_STATUSES_ENUM.CLAIMED) { - return 'Production location has been claimed already.'; - } - if (claimStatus === PRODUCTION_LOCATION_CLAIM_STATUSES_ENUM.PENDING) { - return 'There is a pending claim for this production location.'; +const getPendingTooltipText = claimStatus => { + if (claimStatus === PRODUCTION_LOCATION_CLAIM_STATUSES_ENUM.UNCLAIMED) { + return 'Your submission is under review. You will receive a notification once the production location is live on OS Hub. You can proceed to submit a claim while your request is pending.'; } + return 'Your submission is being reviewed. You will receive an email with your OS ID once the review is complete.'; +}; - return "You'll be able to claim the location after the moderation is done."; +const getClaimTooltipText = claimStatus => { + switch (claimStatus) { + case PRODUCTION_LOCATION_CLAIM_STATUSES_ENUM.CLAIMED: + return 'This location has already been claimed and therefore cannot be claimed again.'; + case PRODUCTION_LOCATION_CLAIM_STATUSES_ENUM.PENDING: + return 'This location cannot be claimed because a pending claim already exists.'; + default: + return 'You will be able to claim this location once the review is complete.'; + } }; const ProductionLocationDialog = ({ @@ -149,7 +156,8 @@ const ProductionLocationDialog = ({ const deleteIcon = moderationStatus === MODERATION_STATUSES_ENUM.PENDING ? ( ) : null; @@ -300,7 +308,7 @@ const ProductionLocationDialog = ({ ) : (