Skip to content

Commit 6217c01

Browse files
committed
Merge branch 'main' into OSDEV-1789-search-result-scrolls-from-bottom
# Conflicts: # doc/release/RELEASE-NOTES.md
2 parents e7a9ee0 + f808348 commit 6217c01

4 files changed

Lines changed: 7 additions & 27 deletions

File tree

doc/release/RELEASE-NOTES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ All notable changes to this project will be documented in this file.
33

44
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). The format is based on the `RELEASE-NOTES-TEMPLATE.md` file.
55

6-
## Release 1.32
76

7+
## Release 1.32.0
88
## Introduction
99
* Product name: Open Supply Hub
1010
* Release date: March 22, 2025
1111

1212
### Bugfix
1313
* [OSDEV-1806](https://opensupplyhub.atlassian.net/browse/OSDEV-1806) - Refactored the Parent Company field validation. The field is now validated as a regular character field.
14+
* [OSDEV-1787](https://opensupplyhub.atlassian.net/browse/OSDEV-1787) - The tooltip messages for the Claim button have been removed for all statuses of moderation events on the `Contribution Record` page and changed according to the design on `Thanks for adding data for this production location` pop-up.
1415
* [OSDEV-1789](https://opensupplyhub.atlassian.net/browse/OSDEV-1789) - Fixed an issue where the scroll position was not resetting to the top when navigating through SLC workflow pages.
1516

1617
### Release instructions:

src/react/src/__tests__/components/DashboardContributionRecord.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ describe('DashboardContributionRecord component', () => {
277277
},
278278
],
279279
};
280-
280+
281281
const { reduxStore } = renderComponent();
282282
reduxStore.dispatch(completeFetchPotentialMatches(matches));
283283

src/react/src/components/Contribute/ProductionLocationDialog.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,10 @@ const getTooltipText = claimStatus => {
7676
return 'Production location has been claimed already.';
7777
}
7878
if (claimStatus === PRODUCTION_LOCATION_CLAIM_STATUSES_ENUM.PENDING) {
79-
return "You'll be able to claim the location after the moderation is done";
79+
return 'There is a pending claim for this production location.';
8080
}
81-
return 'Claim is not available.';
81+
82+
return "You'll be able to claim the location after the moderation is done.";
8283
};
8384

8485
const ProductionLocationDialog = ({

src/react/src/components/Dashboard/DashboardContributionRecord.jsx

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -180,24 +180,6 @@ const DashboardContributionRecord = ({
180180
const isDisabled =
181181
moderationEventStatus === MODERATION_STATUSES_ENUM.REJECTED ||
182182
moderationEventStatus === MODERATION_STATUSES_ENUM.APPROVED;
183-
let claimButtonTooltipText = '';
184-
185-
switch (moderationEventStatus) {
186-
case MODERATION_STATUSES_ENUM.PENDING:
187-
claimButtonTooltipText =
188-
'A production location must be created before it can receive a claim request.';
189-
break;
190-
case MODERATION_STATUSES_ENUM.APPROVED:
191-
claimButtonTooltipText =
192-
"Production location hasn't received a claim yet.";
193-
break;
194-
case MODERATION_STATUSES_ENUM.REJECTED:
195-
claimButtonTooltipText =
196-
'Moderation event has been rejected, no claim request available.';
197-
break;
198-
default:
199-
break;
200-
}
201183

202184
return (
203185
<>
@@ -433,11 +415,7 @@ const DashboardContributionRecord = ({
433415
{claimButtonTitle}
434416
</Button>
435417
) : (
436-
<DialogTooltip
437-
text={claimButtonTooltipText}
438-
aria-label="Claim button tooltip"
439-
childComponent={claimButtonDisabled(classes)}
440-
/>
418+
claimButtonDisabled(classes)
441419
)}
442420
</Grid>
443421
</Grid>

0 commit comments

Comments
 (0)