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

[ui] Show a delayed loading spinner on Overview search inputs #16607

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

hellendag
Copy link
Member

@hellendag hellendag commented Sep 18, 2023

Summary & Motivation

Show a delayed loading spinner on Overview search inputs to inform the user that the workspace is still loading. This way, when they attempt a search that comes up empty, there will be an obvious reason for it: the workspace isn't ready yet.

Screenshot 2023-09-18 at 4 59 43 PM

I added a utility hook to ui-components for a delayed state update, which will allow us to wait briefly before showing the spinner. This prevents a quick flash of the spinner in cases where the workspace loads fairly quickly. I'll use the utility in a couple of places in Cloud that I've done this in recently.

How I Tested These Changes

View Overview, verify that spinners appear after a brief delay when the loading state is forced to be true.

Storybook example for the utility hook.

@hellendag
Copy link
Member Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@github-actions
Copy link

Deploy preview for dagit-storybook ready!

✅ Preview
https://dagit-storybook-omx3e5ebt-elementl.vercel.app
https://dish-workspace-loading.components-storybook.dagster-docs.io

Built with commit a99a54f.
This pull request is being automatically deployed with vercel-action

@github-actions
Copy link

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-ku4y5f0eq-elementl.vercel.app
https://dish-workspace-loading.core-storybook.dagster-docs.io

Built with commit a99a54f.
This pull request is being automatically deployed with vercel-action

@hellendag hellendag merged commit 04692d1 into master Sep 19, 2023
2 checks passed
@hellendag hellendag deleted the dish/workspace-loading branch September 19, 2023 20:56
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