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

CareUI: Adds a higher-order Form component (not used anywhere) #4633

Merged
merged 9 commits into from
Feb 3, 2023

Conversation

rithviknishad
Copy link
Member

@rithviknishad rithviknishad commented Jan 18, 2023

Proposed Changes

  • Removes reducerProps from FormFieldBaseProps to simplify the potentially complex and confusing component API interface.
  • Adds a higher order Form component to abstract away the form state handling logic.
  • Field validators now function inside a function to support custom messages

@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

@vercel
Copy link

vercel bot commented Jan 18, 2023

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

Name Status Preview Comments Updated
care-storybook ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 31, 2023 at 0:40AM (UTC)

@netlify
Copy link

netlify bot commented Jan 18, 2023

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit e0b1737
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/63d90b96e7f4d100084ea37e
😎 Deploy Preview https://deploy-preview-4633--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 settings.

@netlify
Copy link

netlify bot commented Jan 18, 2023

Deploy Preview for care-net failed.

Name Link
🔨 Latest commit d79c6d0
🔍 Latest deploy log https://app.netlify.com/sites/care-net/deploys/63d904ded4b6b60009190d82

@github-actions github-actions bot added the Deploy-Failed Deplyment is not showing preview label Jan 18, 2023
@rithviknishad rithviknishad removed the Deploy-Failed Deplyment is not showing preview label Jan 18, 2023
@github-actions github-actions bot added the cypress failed pull request with cypress test failure label Jan 18, 2023
@github-actions
Copy link

Hi, This pr has been automatically marked as stale because it has not had any recent activity. It will be automatically closed if no further activity occurs for 7 more days. Thank you for your contributions.

@github-actions github-actions bot added the stale label Jan 26, 2023
@rithviknishad rithviknishad added work-in-progress and removed stale cypress failed pull request with cypress test failure labels Jan 27, 2023
@github-actions github-actions bot added the merge conflict pull requests with merge conflict label Jan 28, 2023
@github-actions
Copy link

👋 Hi, @rithviknishad,
Conflicts have been detected against the base branch. Please rebase your branch against the base branch.


This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there.

@rithviknishad rithviknishad changed the title CareUI: Adds a higher-order Form component CareUI: Adds a higher-order Form component (for Facility Create Page) Jan 31, 2023
@github-actions github-actions bot removed the merge conflict pull requests with merge conflict label Jan 31, 2023
@github-actions github-actions bot added the Deploy-Failed Deplyment is not showing preview label Jan 31, 2023
@sonarcloud
Copy link

sonarcloud bot commented Jan 31, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 1 Bug
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions github-actions bot added the cypress failed pull request with cypress test failure label Jan 31, 2023
@rithviknishad rithviknishad removed Deploy-Failed Deplyment is not showing preview cypress failed pull request with cypress test failure work-in-progress labels Jan 31, 2023
@rithviknishad rithviknishad marked this pull request as ready for review January 31, 2023 14:38
@rithviknishad rithviknishad requested a review from a team January 31, 2023 14:38
@rithviknishad rithviknishad requested a review from a team as a code owner January 31, 2023 14:38
@rithviknishad rithviknishad changed the title CareUI: Adds a higher-order Form component (for Facility Create Page) CareUI: Adds a higher-order Form component (not used anywhere) Jan 31, 2023
@khavinshankar khavinshankar merged commit 958cf3d into develop Feb 3, 2023
rabilrbl pushed a commit that referenced this pull request Feb 6, 2023
* remove `reducerProps` to make things simpler

* Implements `Form` HOC and `FormContext`

* removes unused reducer props from search input

* RequiredFieldValidator to support custom message

* consume form context and resolve props internally

* rename 'props' to 'field' to strictly break if incorrect migration

* migrate existing fields

* fix month form field
@rithviknishad rithviknishad mentioned this pull request Feb 7, 2023
41 tasks
@rithviknishad rithviknishad deleted the careui/forms branch July 26, 2023 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants