Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: modified bed creation notification to show proper action-related message #8627 #8631

Conversation

syedfardeenjeelani
Copy link
Contributor

fix: modify bed creation notification to show proper action-related message #8627

Proposed Changes

@ohcnetwork/care-fe-code-reviewers

Merge Checklist

  • Add specs that demonstrate bug / test a new feature.
  • Update product documentation.
  • Ensure that UI text is kept in I18n files.
  • Prep screenshot or demo video for changelog entry, and attach it to the issue.
  • Request for Peer Reviews.
  • Completion of QA.

Here is a screenshot of the fix:

care_fe bed Bug fix

@syedfardeenjeelani syedfardeenjeelani requested a review from a team as a code owner September 26, 2024 01:36
Copy link

netlify bot commented Sep 26, 2024

Deploy Preview for care-ohc ready!

Name Link
🔨 Latest commit e10ba1a
🔍 Latest deploy log https://app.netlify.com/sites/care-ohc/deploys/66f4cc831f776b0008090f2a
😎 Deploy Preview https://deploy-preview-8631--care-ohc.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 site configuration.

@syedfardeenjeelani syedfardeenjeelani changed the title fix: modied bed creation notification to show proper action-related message #8627 fix: modified bed creation notification to show proper action-related message #8627 Sep 26, 2024
Removed console.log from the file
Copy link
Member

@rithviknishad rithviknishad left a comment

Choose a reason for hiding this comment

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

@syedfardeenjeelani Kindly request for issues to be assigned before working on them, so that it can be assigned to you and others who are trying to pick them up knows that someone else is already working on it.

Please do comment on the issue now too, so that it can be assigned.

Comment on lines +131 to +133
res?.ok && numberOfBeds > 1
? onSuccess("Bed(s) created successfully")
: onSuccess("Bed created successfully");
Copy link
Member

Choose a reason for hiding this comment

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

Let's keep representable texts in en locale files using useTranslations.

Also check-out the proper expected behaviour. Show "Beds" instead of "Bed(s)" for multiple bed creation.

@rithviknishad
Copy link
Member

Closing as duplicate of #8632

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.

Modify bed creation notification to show proper action related notification
2 participants