Skip to content

[OSDEV-1787] Fix tooltip messages for claim button#540

Merged
Innavin369 merged 17 commits intomainfrom
OSDEV-1787-fix-tooltip
Mar 5, 2025
Merged

[OSDEV-1787] Fix tooltip messages for claim button#540
Innavin369 merged 17 commits intomainfrom
OSDEV-1787-fix-tooltip

Conversation

@Innavin369
Copy link
Contributor

@Innavin369 Innavin369 commented Feb 27, 2025

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.
For pending status to "There is a pending claim for this production location."
In the rest of the cases (exclude pending and claimed statuses - "You'll be able to claim the location after the moderation is done."

Screenshot 2025-02-27 at 11 32 27 Screenshot 2025-02-27 at 11 34 45

@Innavin369 Innavin369 temporarily deployed to Quality Environment February 27, 2025 10:30 — with GitHub Actions Inactive
@Innavin369 Innavin369 temporarily deployed to Quality Environment February 27, 2025 10:30 — with GitHub Actions Inactive
@Innavin369 Innavin369 temporarily deployed to Quality Environment February 27, 2025 10:30 — with GitHub Actions Inactive
@Innavin369 Innavin369 temporarily deployed to Quality Environment February 27, 2025 10:30 — with GitHub Actions Inactive
@Innavin369 Innavin369 temporarily deployed to Quality Environment February 27, 2025 10:30 — with GitHub Actions Inactive
@Innavin369 Innavin369 temporarily deployed to Quality Environment February 27, 2025 10:30 — with GitHub Actions Inactive
@Innavin369 Innavin369 temporarily deployed to Quality Environment February 27, 2025 10:30 — with GitHub Actions Inactive
@Innavin369 Innavin369 temporarily deployed to Quality Environment February 27, 2025 10:30 — with GitHub Actions Inactive
@Innavin369 Innavin369 temporarily deployed to Quality Environment February 27, 2025 10:30 — with GitHub Actions Inactive
@Innavin369 Innavin369 temporarily deployed to Quality Environment February 27, 2025 10:30 — with GitHub Actions Inactive
@Innavin369 Innavin369 temporarily deployed to Quality Environment February 27, 2025 10:30 — with GitHub Actions Inactive
@Innavin369 Innavin369 temporarily deployed to Quality Environment February 27, 2025 10:30 — with GitHub Actions Inactive
@Innavin369 Innavin369 temporarily deployed to Quality Environment February 27, 2025 10:30 — with GitHub Actions Inactive
@Innavin369 Innavin369 temporarily deployed to Quality Environment February 27, 2025 10:32 — with GitHub Actions Inactive
@barecheck
Copy link

barecheck bot commented Feb 27, 2025

React App | Jest test suite - Code coverage report

Total: 31.6%

Your code coverage diff: -0.01% ▾

✅ All code changes are covered

@Innavin369 Innavin369 temporarily deployed to Quality Environment February 27, 2025 10:37 — with GitHub Actions Inactive
@barecheck
Copy link

barecheck bot commented Feb 27, 2025

Dedupe Hub App | Unittest test suite - Code coverage report

Total: 56.14%

Your code coverage diff: 0.00% ▴

✅ All code changes are covered

@Innavin369 Innavin369 temporarily deployed to Quality Environment February 27, 2025 10:38 — with GitHub Actions Inactive
@Innavin369 Innavin369 temporarily deployed to Quality Environment February 27, 2025 10:38 — with GitHub Actions Inactive
@barecheck
Copy link

barecheck bot commented Feb 27, 2025

Contricleaner App | Unittest test suite - Code coverage report

Total: 98.91%

Your code coverage diff: 0.00% ▴

✅ All code changes are covered

@barecheck
Copy link

barecheck bot commented Feb 27, 2025

Countries App | Unittest test suite - Code coverage report

Total: 100%

Your code coverage diff: 0.00% ▴

✅ All code changes are covered

@Innavin369 Innavin369 temporarily deployed to Quality Environment February 27, 2025 11:52 — with GitHub Actions Inactive
@Innavin369 Innavin369 temporarily deployed to Quality Environment February 27, 2025 11:52 — with GitHub Actions Inactive
@Innavin369 Innavin369 temporarily deployed to Quality Environment February 27, 2025 11:52 — with GitHub Actions Inactive
@Innavin369 Innavin369 temporarily deployed to Quality Environment February 27, 2025 11:52 — with GitHub Actions Inactive
@coderabbitai
Copy link

coderabbitai bot commented Feb 28, 2025

📝 Walkthrough

Walkthrough

The pull request updates the release notes for the Open Supply Hub project to reflect version 1.32.0, including a new bug fix related to tooltip messages for the Claim button. It modifies the tooltip logic in ProductionLocationDialog.jsx to provide clearer feedback based on claim status and removes the switch-case structure in DashboardContributionRecord.jsx, simplifying the tooltip display. Additionally, a minor formatting change is made in a test file.

Changes

File(s) Change Summary
doc/release/RELEASE-NOTES.md Updated the release version from 1.32 to 1.32.0 and added a bug fix entry related to tooltip messages for the Claim button.
src/react/.../DashboardContributionRecord.test.js Removed an extraneous blank line; no functional impact on test logic.
src/react/.../Contribute/ProductionLocationDialog.jsx
src/react/.../Dashboard/DashboardContributionRecord.jsx
Modified getTooltipText function for clarity on claim status and removed switch-case logic along with the DialogTooltip component, streamlining tooltip display logic.

Possibly related PRs

Suggested reviewers

  • roman-stolar
  • VadimKovalenkoSNF
  • mazursasha1990
  • vladsha-dev

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7aa6009 and 1bb8254.

📒 Files selected for processing (1)
  • doc/release/RELEASE-NOTES.md (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • doc/release/RELEASE-NOTES.md
⏰ Context from checks skipped due to timeout of 90000ms (12)
  • GitHub Check: run-flake8-linter
  • GitHub Check: run-integration-test-code-quality
  • GitHub Check: run-dd-code-quality
  • GitHub Check: run-contricleaner-code-quality
  • GitHub Check: get-base-branch-dd-cov
  • GitHub Check: run-django-code-quality
  • GitHub Check: run-countries-code-quality
  • GitHub Check: get-base-branch-countries-cov
  • GitHub Check: get-base-branch-contricleaner-cov
  • GitHub Check: get-base-branch-fe-cov
  • GitHub Check: get-base-branch-django-cov
  • GitHub Check: run-fe-code-quality

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@VadimKovalenkoSNF VadimKovalenkoSNF left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
doc/release/RELEASE-NOTES.md (2)

15-17: Markdown Style: Remove Trailing Punctuation in "Migrations:" Heading
The heading on line 15, "#### Migrations:", ends with a colon. According to Markdown lint guidelines (MD026), trailing punctuation in headings is discouraged. Consider changing it to "#### Migrations".

🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

15-15: Trailing punctuation in heading
Punctuation: ':'

(MD026, no-trailing-punctuation)


34-36: Markdown Style: Remove Trailing Punctuation in "Release instructions:" Heading
Similarly, the heading on line 34, "### Release instructions:", contains a trailing colon. Please remove the colon to comply with the markdown style guidelines (MD026) (e.g., change it to "### Release instructions").

🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

34-34: Trailing punctuation in heading
Punctuation: ':'

(MD026, no-trailing-punctuation)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6ebd363 and 336fc02.

📒 Files selected for processing (2)
  • doc/release/RELEASE-NOTES.md (1 hunks)
  • src/react/src/components/Contribute/ProductionLocationDialog.jsx (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/react/src/components/Contribute/ProductionLocationDialog.jsx
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
doc/release/RELEASE-NOTES.md

15-15: Trailing punctuation in heading
Punctuation: ':'

(MD026, no-trailing-punctuation)


34-34: Trailing punctuation in heading
Punctuation: ':'

(MD026, no-trailing-punctuation)

🔇 Additional comments (2)
doc/release/RELEASE-NOTES.md (2)

6-37: New Release Section for Version 1.32.0 Added
A comprehensive release section has been introduced for version 1.32.0. This section includes the Introduction, Database changes, Migrations, Schema changes, Code/API changes, Architecture/Environment changes, Bugfix, What's new, and Release instructions. It clearly documents that the tooltip messages for the Claim button have been removed (OSDEV-1787) in accordance with the new design.
Please ensure that all placeholder text (e.g., "Describe high-level database changes.") is replaced with the finalized details before release.

🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

15-15: Trailing punctuation in heading
Punctuation: ':'

(MD026, no-trailing-punctuation)


34-34: Trailing punctuation in heading
Punctuation: ':'

(MD026, no-trailing-punctuation)


27-29: Bugfix Detail Verification for Tooltip Update
The bugfix entry for [OSDEV-1787] explicitly states that the tooltip messages for the Claim button on the Contribution Record page have been removed and updated to align with the new pop-up design ("Thanks for adding data for this production location"). This description accurately reflects the PR objective.

Inessa Druzhkova added 2 commits March 5, 2025 10:56
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
doc/release/RELEASE-NOTES.md (1)

1-5: Style Note: Verify Heading Formatting

Please ensure that all headings conform to the markdown style guidelines (e.g., avoid trailing punctuation). Although no obvious issues were found, double-check that none of the headings (such as those for sections and subsections) end with a colon or any other trailing punctuation, per MD026 recommendations.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 336fc02 and d2ab4b3.

📒 Files selected for processing (2)
  • doc/release/RELEASE-NOTES.md (1 hunks)
  • src/react/src/components/Contribute/ProductionLocationDialog.jsx (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/react/src/components/Contribute/ProductionLocationDialog.jsx
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
doc/release/RELEASE-NOTES.md

17-17: Trailing punctuation in heading
Punctuation: ':'

(MD026, no-trailing-punctuation)

⏰ Context from checks skipped due to timeout of 90000ms (13)
  • GitHub Check: run-integration-test-code-quality
  • GitHub Check: run-flake8-linter
  • GitHub Check: run-fe-code-quality
  • GitHub Check: run-eslint-linter-and-prettier-formatter
  • GitHub Check: run-django-code-quality
  • GitHub Check: run-dd-code-quality
  • GitHub Check: run-countries-code-quality
  • GitHub Check: run-contricleaner-code-quality
  • GitHub Check: get-base-branch-fe-cov
  • GitHub Check: get-base-branch-dd-cov
  • GitHub Check: get-base-branch-contricleaner-cov
  • GitHub Check: get-base-branch-countries-cov
  • GitHub Check: get-base-branch-django-cov
🔇 Additional comments (3)
doc/release/RELEASE-NOTES.md (3)

6-8: New Release Section for Version 1.32.0 Added

A new section for "Release 1.32.0" has been introduced with an introduction that specifies the product name ("Open Supply Hub") and the release date (March 22, 2025). Please verify that all placeholder sections (Database changes, Code/API changes, and Architecture/Environment changes) are updated with the final details before release.


29-32: Bugfix Entry for Tooltip Message Update

The bugfix entry for [OSDEV-1787] accurately states that the tooltip messages for the Claim button have been removed for all statuses of moderation events on the Contribution Record page and now conform to the design used in the "Thanks for adding data for this production location" pop-up. This entry looks correct; please confirm that it reflects the final implementation details.


33-37: Release Instructions Check

The release instructions list the necessary post-deployment commands (migrate and reindex_database). Ensure these commands are indeed sufficient for the deployment of release 1.32.0. If any additional steps are required (especially related to other infrastructure changes in this release), please update this section accordingly.

🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

33-33: Trailing punctuation in heading
Punctuation: ':'

(MD026, no-trailing-punctuation)


35-35: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)


36-36: Unordered list indentation
Expected: 2; Actual: 4

(MD007, ul-indent)

vladsha-dev
vladsha-dev previously approved these changes Mar 5, 2025
Copy link
Contributor

@vladsha-dev vladsha-dev left a comment

Choose a reason for hiding this comment

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

LGTM

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 5, 2025

Copy link
Contributor

@VadimKovalenkoSNF VadimKovalenkoSNF left a comment

Choose a reason for hiding this comment

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

Lgtm

Copy link
Contributor

@vladsha-dev vladsha-dev left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants