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

Mdct 2000 #4236

Merged
merged 9 commits into from
Oct 6, 2022
Merged

Mdct 2000 #4236

merged 9 commits into from
Oct 6, 2022

Conversation

scwambach
Copy link
Contributor

Description

Added a loading state for hydrating field values

How to test

Click through a form that's been filled out and watch the spinner spin!

Changed Dependencies

Code author checklist

  • I have performed a self-review of my code
  • I have added thorough tests
  • I have added analytics, if necessary
  • I have updated the documentation, if necessary

Reviewer checklist (two different people)

  • I have done the deep review and verified the items in the above checklist are g2g
  • I have done the lgtm review

@@ -24,6 +25,7 @@ export const Form = ({
...props
}: Props) => {
const { fields, options } = formJson;
const selectedReport = localStorage.getItem("selectedReport");
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is gonna be a problem for non-report forms, like the admin banner page.

Copy link
Contributor Author

@scwambach scwambach Oct 5, 2022

Choose a reason for hiding this comment

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

@gmrabian I got a solution added in for the admin banner, let me know what you think

Copy link
Contributor

@gmrabian gmrabian left a comment

Choose a reason for hiding this comment

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

See comment - need solution for admin banner form

Copy link
Contributor

@gmrabian gmrabian left a comment

Choose a reason for hiding this comment

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

I think you could even abstract this one level further and put it in the ReportPageWrapper, which renders each of the StandardReportPage, DrawerReportPage, and ModalDrawerReportPage

Wrap this in a spinner: https://github.com/CMSgov/mdct-mcr/blob/main/services/ui-src/src/components/reports/ReportPageWrapper.tsx#L77 ?

That's what I understood from the slack thread

Copy link
Contributor

@gmrabian gmrabian left a comment

Choose a reason for hiding this comment

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

Now we're talking! That's clean as Mr. Clean

Copy link
Contributor

@braxex braxex left a comment

Choose a reason for hiding this comment

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

Cool! 👍

@scwambach scwambach merged commit 61c6876 into main Oct 6, 2022
@scwambach scwambach deleted the mdct-2000 branch October 6, 2022 14:25
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.

3 participants