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

noDataContent waits for pageLoading #823

Merged
merged 1 commit into from
Jan 23, 2023
Merged

Conversation

suelee0308
Copy link
Contributor

@suelee0308 suelee0308 commented Jan 13, 2023

Jira: AUTH-221

Overview:

Updating noDataContent prop to wait for data to be fully loaded before rendering the noDataContent, much like the default "NO DATA" that is returned if no noDataContent is passed.

Screenshots/GIFs:

Testing:

  • Unit tests
  • Manual tests:
    • Chrome
    • Safari
    • IE11

Roll Out:

  • Before merging:
    • Updated docs
    • Bumped version in package.json
      • Breaking change?
        • If it is a beta component run npm version minor
        • If the component is not in beta run npm version major
      • New component or backward-compatible component feature change? Run npm version minor
      • Only changing documentation? All good. Skip this step.
    • After creating a new component, make sure to add it to the Components List in ComponentsView.jsx. To do so:
      • Add a screenshot of the component in docs/assets/img with the format <COMPONENT URL LINK>.png
  • After merging:
    • Deployed updated docs (make deploy-docs)
    • Posted in #eng if I made a breaking change to a beta component

@divya-amb
Copy link

Can you please add some screenshots? And also test it out in Safari?

@suelee0308
Copy link
Contributor Author

suelee0308 commented Jan 23, 2023

(Both screenshots from Safari)
Preview step:
Screen Shot 2023-01-23 at 3 58 57 PM

Works the same on the MFA main page:
Screen Shot 2023-01-23 at 4 00 22 PM

@divya-amb
Copy link

(Both screenshots from Safari) Preview step: Screen Shot 2023-01-23 at 3 58 57 PM

Works the same on the MFA main page: Screen Shot 2023-01-23 at 4 00 22 PM

What is the "Before" like?

@suelee0308
Copy link
Contributor Author

It just says "NO DATA"
Screen Shot 2023-01-23 at 4 03 39 PM

@divya-amb
Copy link

Looking at how the code was before your change, I would expect that in the "Before" case, when you pass in noDataContent, the button would show up while the table content was loading as well as after the table content finished loading. Am I missing something here?

@suelee0308
Copy link
Contributor Author

Ah, yes. This might give some context https://clever.slack.com/archives/C0ERS5ABB/p1673560803891299

@divya-amb
Copy link

Thank you for sharing the slack link. So the "Before" is this image then?

Screen Shot 2023-01-23 at 2 12 22 PM

Before you made changes in this component, would the button keep appearing after the "Loading" overlay vanished?

@suelee0308
Copy link
Contributor Author

It would keep appearing if there was no data. But it would appear regardless while the "Loading" appeared.

Copy link

@divya-amb divya-amb left a comment

Choose a reason for hiding this comment

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

LGTM

@suelee0308 suelee0308 merged commit e18599a into master Jan 23, 2023
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.

2 participants