microsoft-graph-toolkit
microsoft-graph-toolkit copied to clipboard
[file-list] mgt-file-list should have spinner/Shimmer when loading content content when query changes
Describe the bug As follow up from #954 also would like to recommend to have a loading when query is changed. Using the mgt-file-list control with dynamic queries there are some milliseconds "SharePoint Context" of loading, could be important to include a loading action for slower environments.
To Reproduce Steps to reproduce the behavior: Include "<FileList" with fileListQuery property that will be change during the applications such us "/me/drive/root/search(q='" + SearchQuery + "')"
This behavior can be seen in the following example when making a search in Drive Library: https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-onedrive-finder
Expected behavior When control has dynamic queries, control will refresh content to display, the loading of content could be slower using different environment and no information regarding loading is displayed. Could create questions to User such us "If he already clicked?".
Screenshots
Using graph Drive "search" parameter to find documents but no loading
Mgt-file-list loading expectation between changing of queries
Environment (please complete the following information):
- OS: Windows 10
- Browser [edge, chrome]
- Framework [reac]
- Context [SharePoint]
- Version [2.2.0-next.file.0e80deb]
Hello aaclage, thank you for opening an issue with us!
I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌
I think this is a great feature request, I agree. We should update the file picker for the next release to support shimmer.
To investigate: Shimmer in Fluent UI @yyiinnggzz