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

Replace Material UI components in src/Components/Shifting/ListFilter.tsx. Fixes #4996 #5572

Merged
merged 25 commits into from
Jun 21, 2023

Conversation

JahnabDutta
Copy link
Contributor

WHAT

Replacing of the Material UI CircularProgress present in src/Components/Shifting/ListFilter.tsx with the Care common component CircularProgress.

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

  • Remove MUI CircularProgress component
  • Import CircularProgress from src/Commom/Components/CircularProgress and replace it where MUI component was used.
  • Change size of CircularProgress to be similar to the MUI component.

@JahnabDutta JahnabDutta requested a review from a team May 31, 2023 10:07
@JahnabDutta JahnabDutta requested a review from a team as a code owner May 31, 2023 10:07
@JahnabDutta JahnabDutta requested a review from bodhish May 31, 2023 10:07
@vercel
Copy link

vercel bot commented May 31, 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 Jun 13, 2023 11:15am

@netlify
Copy link

netlify bot commented May 31, 2023

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit 65761b2
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/64884f85c08c1f0008f0c023
😎 Deploy Preview https://deploy-preview-5572--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.

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.

You've not changed LegacySelectField to SelectFormField

@JahnabDutta
Copy link
Contributor Author

Hey, could you let me know where do I have to go to on my localserver website to view the changes being made in the form.

@rithviknishad
Copy link
Member

Open the filters in the shifting page.

@JahnabDutta
Copy link
Contributor Author

I have tried changing the LegacySelectField to SelectFormField. Could you please review again?

@khavinshankar
Copy link
Member

@JahnabDutta can you also fix the cypress tests
image

check this action for the failing tests
https://github.com/coronasafe/care_fe/actions/runs/5142676229/jobs/9263088413?pr=5572

@khavinshankar khavinshankar added the cypress failed pull request with cypress test failure label Jun 2, 2023
@JahnabDutta
Copy link
Contributor Author

I tried to modify some functions to match the code in development but it appears that there is some kind of problem with the original code too because of which the filters are not working properly. There are some things which are not clear to me? Some fields have the value "--". Is this a type of valid option or is it just supposed to mean "Show all". The way this has been configured is not clear to me.

@rithviknishad
Copy link
Member

Consider refactoring '--' away.
'--' as of now means 'Filter not applied'

You may make the filters behaviour / value consistent with other filters like Patient Filters / Asset Filter / Facility Filter.

@JahnabDutta
Copy link
Contributor Author

@rithviknishad I have merged #5626 and made the requested changes. I have modified the cypress tests as well. Please review it if possible and let me know if it the changes are okay.
Thanks!!

src/Components/Shifting/ListFilter.tsx Outdated Show resolved Hide resolved
src/Components/Shifting/ListFilter.tsx Outdated Show resolved Hide resolved
src/Components/Shifting/ListFilter.tsx Outdated Show resolved Hide resolved
src/Components/Shifting/ListFilter.tsx Outdated Show resolved Hide resolved
src/Components/Shifting/ListFilter.tsx Outdated Show resolved Hide resolved
src/Components/Shifting/ListFilter.tsx Outdated Show resolved Hide resolved
src/Components/Shifting/ListFilter.tsx Outdated Show resolved Hide resolved
src/Components/Shifting/ListFilter.tsx Outdated Show resolved Hide resolved
@JahnabDutta
Copy link
Contributor Author

Hey @rithviknishad, I've made the requested changes. LMK if there's anything else as well.

@github-actions github-actions bot added the merge conflict pull requests with merge conflict label Jun 13, 2023
@github-actions
Copy link

👋 Hi, @JahnabDutta,
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.

@JahnabDutta
Copy link
Contributor Author

I tried using the following command to rebase-
image
However, I did not have any success. How do I solve the conflicts?

@rithviknishad
Copy link
Member

rithviknishad commented Jun 13, 2023

I do it without rebase.

git merge develop
git checkout <pr-branch>
git merge develop

# Resolve conflicts in editor
# continue merge with merge commit

@rithviknishad
Copy link
Member

Its a small conflict so you can just use github's editor itself if you want

@rithviknishad rithviknishad added needs testing and removed changes required merge conflict pull requests with merge conflict labels Jun 13, 2023
@nihal467
Copy link
Member

LGTM

@khavinshankar khavinshankar merged commit b200a67 into ohcnetwork:develop Jun 21, 2023
1 check failed
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.

Replace Material UI components in src/Components/Shifting/ListFilter.tsx:
4 participants