[OSDEV-1831] Fix tooltip message for pending badge#563
[OSDEV-1831] Fix tooltip message for pending badge#563VadimKovalenkoSNF merged 3 commits intomainfrom
Conversation
React App | Jest test suite - Code coverage reportTotal: 33.12%Your code coverage diff: 0.03% ▴ ✅ All code changes are covered |
📝 WalkthroughWalkthroughThis pull request updates the tooltip messages associated with the Claim button on the Contribution Record page and refines related testing. The release notes document now reflects enhanced descriptions for tooltip text changes. In the production dialog component, the tooltip determination logic has been adjusted to handle multiple claim statuses. The tests for the ProductionLocationDialog have been expanded with a new mock and additional mouse event simulations, while minor formatting refinements were made in the RejectModerationEventDialog tests. Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant D as ProductionLocationDialog
participant T as Tooltip Component
U->>D: Hover over Claim button
D->>D: Evaluate claimStatus via getPendingTooltipText
D->>T: Pass computed tooltip message
T->>U: Display updated tooltip message
Possibly related PRs
Suggested reviewers
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (13)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Dedupe Hub App | Unittest test suite - Code coverage reportTotal: 56.14%Your code coverage diff: 0.00% ▴ ✅ All code changes are covered |
|
Follow-up fix for [OSDEV-1831](https://opensupplyhub.atlassian.net/browse/OSDEV-1831) Changed tooltip text for pending badge if existing production location has pending claim status or has been claimed already. [OSDEV-1831]: https://opensupplyhub.atlassian.net/browse/OSDEV-1831?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ



Follow-up fix for OSDEV-1831
Changed tooltip text for pending badge if existing production location has pending claim status or has been claimed already.