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

Introduced a Loading Screen #2

Closed
wants to merge 10 commits into from

Conversation

MinuraPunchihewa
Copy link

This PR adds a loading screen to be displayed while the user is waiting for the MindsDB server to launch.

This implementation solves another existing issue; the current execution of the extension redirects the user directly to http://localhost:47334, which is where the MindsDB server runs. However, if the server has not yet started by the time the user clicks on the extension tab, until the user clicks out of it and clicks on it again (which is when the extension specific code, i.e. index.html runs), the server will not be launched in Docker Desktop.

The above issue is resolved by periodically checking (in 2 second intervals) if the server is running on http://localhost:47334 and redirecting the user only when it is up. The loading screen is displayed during the meantime.

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.

1 participant