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

Fixed update button in bed management. #6841

Merged
merged 6 commits into from
Dec 14, 2023

Conversation

AshrafMd-1
Copy link
Contributor

@AshrafMd-1 AshrafMd-1 commented Dec 11, 2023

WHAT

🤖[deprecated] Generated by Copilot at 7d85ef0

This pull request enhances the AddBedForm component to support both adding and updating beds in a facility. It also fixes the number_of_beds property to match the API expectations.

Proposed Changes

@coronasafe/care-fe-code-reviewers @coronasafe/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 issue.
  • Request for Peer Reviews
  • Completion of QA

HOW

🤖[deprecated] Generated by Copilot at 7d85ef0

  • Pass headerText prop from BedTypeCard to AddBedForm to indicate whether the form is for adding or updating a bed (link)
  • Use headerText prop to conditionally render the label and placeholder of the TextInputField for numberOfBeds (link)
  • Set number_of_beds in the API payload to 1 if updating an existing bed, otherwise use the value of numberOfBeds state variable (link)

@AshrafMd-1 AshrafMd-1 requested a review from a team as a code owner December 11, 2023 06:58
Copy link

vercel bot commented Dec 11, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
care-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 14, 2023 9:17am

Copy link

netlify bot commented Dec 11, 2023

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit acf2901
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/657ac7ea3a6df500084ba3a6
😎 Deploy Preview https://deploy-preview-6841--care-egov-staging.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.

src/Components/Facility/AddBedForm.tsx Outdated Show resolved Hide resolved
@nihal467
Copy link
Member

LGTM

@khavinshankar khavinshankar merged commit 27e19cc into ohcnetwork:develop Dec 14, 2023
36 checks passed
@AshrafMd-1 AshrafMd-1 deleted the Fix-#6837 branch December 14, 2023 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need to click on update button twice when updating bed in Bed Management.
4 participants