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

Sachdevavaibhav/#4945 #5551

Conversation

sachdevavaibhav
Copy link
Contributor

@sachdevavaibhav sachdevavaibhav commented May 27, 2023

WHAT

Working on #4945

🤖 Generated by Copilot at 5739e28

Improved date input component by closing popover after selection. Updated setDateValue function and DateInputV2.tsx file.

Proposed Changes

  • Fixes #issue?
  • Change 1
  • Change 2
  • More?

@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

🤖 Generated by Copilot at 5739e28

  • Import MutableRefObject type from react to use as parameter type for close function (link)
  • Modify setDateValue function to accept close function as second parameter and invoke it after onChange callback (link, link)
  • Destructure close function from Popover component props and pass it to setDateValue function (link)
  • Pass close function to setDateValue function inside onClick handler of div element that renders each date in calendar (link)
  • Close popover component after user selects or clicks on a date from DateInputV2 component (link, link, link)

@vercel
Copy link

vercel bot commented May 27, 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 May 27, 2023 9:03pm

@netlify
Copy link

netlify bot commented May 27, 2023

Deploy Preview for care-egov-staging ready!

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

@sonarcloud
Copy link

sonarcloud bot commented May 27, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
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

@sachdevavaibhav
Copy link
Contributor Author

@rithviknishad Could you please check if I am moving in the right direction?

Also did I mess up with the branches?

@rithviknishad
Copy link
Member

Yes you did mess up your branches ig.

You've branched out from your previous PR's branch I assume.

When working on a new PR, you can simply do the following:

git checkout develop
git pull upstream develop # if you've added upstream remote, you can do this to fetch latest develop so that you always branch from latest develop (or you can simply go to your github repo and fetch latesst changes and do a git pull)
git checkout -b "your-new-branch-name"

@sachdevavaibhav
Copy link
Contributor Author

@rithviknishad
Yes, I didn't checkout to develop. I pulled develop into the previous branch and then created a new branch. Sorry for the mess.

Any suggestions on how I can fix it?

@rithviknishad
Copy link
Member

rithviknishad commented May 28, 2023

You could create a fresh new branch and re-open another PR and close this.

@sachdevavaibhav
Copy link
Contributor Author

@rithviknishad
I have reverted changes in the previous branch and force pushed it (since I merged develop into it). Closing this PR and creating new one.

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.

None yet

2 participants