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

Do not display login form while loading #2802

Merged
merged 3 commits into from
Sep 12, 2016
Merged

Do not display login form while loading #2802

merged 3 commits into from
Sep 12, 2016

Conversation

edmundoa
Copy link
Contributor

@edmundoa edmundoa commented Sep 9, 2016

When loading Graylog, we currently display the login form while waiting for some resources to load, namely:

  • Validate user session
  • Load the current logged-in user

Those resources sometimes take a bit to load, and seeing the login form is confusing, as seen in #2770. This PR introduces a loading page that will avoid the confusion of seeing the login form on the screen.

I decided to use the same design used in our login page, as this provides a good transition between the loading and log-in page, which may be show directly before and/or after each other.

Fixes #2770.

Edmundo Alvarez added 2 commits September 9, 2016 13:15
This displays a loading page while we validate the user session, instead
of showing the login form.

Refs #2770
@edmundoa edmundoa added this to the 2.1.1 milestone Sep 9, 2016
@dennisoelkers dennisoelkers self-assigned this Sep 9, 2016

render() {
return (
<div>
Copy link
Member

Choose a reason for hiding this comment

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

Minor nitpick, do we need this div?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so, must be a leftover from some test. Will take a look 👍

@dennisoelkers
Copy link
Member

Tested it in different scenarios, LGTM. I also like the way it improves logging in/full page refreshes a lot. Good work @edmundoa!

@dennisoelkers dennisoelkers merged commit a1c337b into 2.1 Sep 12, 2016
@dennisoelkers dennisoelkers deleted the issue-2770 branch September 12, 2016 10:43
dennisoelkers pushed a commit that referenced this pull request Sep 12, 2016
* Display loading page while loading user information

Refs #2770

* Show loading page while validating session

This displays a loading page while we validate the user session, instead
of showing the login form.

Refs #2770

* Remove unnecessary div

(cherry picked from commit a1c337b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants