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

luigiAfterInit lifecycle hook + app loading indicator #787

Merged
merged 50 commits into from
Sep 12, 2019

Conversation

maxmarkus
Copy link
Contributor

@maxmarkus maxmarkus commented Aug 30, 2019

  • Add possibility to show an app loading indicator:
    • until configuration is ready
    • until the Luigi Core app does it explicitly by itself, by calling Luigi.ux().hideAppLoadingIndicator()
  • Introduce luigiAfterInit lifecycle hook.

…oading-indicator

# Conflicts:
#	client/src/lifecycleManager.js
#	client/src/luigi-client.js
#	docs/luigi-client-api.md
@maxmarkus maxmarkus requested a review from zarkosimic as a code owner August 30, 2019 10:29
@jesusreal jesusreal added the WIP Work in progress label Aug 30, 2019
@maxmarkus maxmarkus removed the WIP Work in progress label Sep 5, 2019
docs/README.md Outdated Show resolved Hide resolved
docs/general-settings.md Outdated Show resolved Hide resolved
docs/luigi-ux-features.md Outdated Show resolved Hide resolved
docs/luigi-ux-features.md Outdated Show resolved Hide resolved
docs/luigi-ux-features.md Outdated Show resolved Hide resolved
pekura and others added 4 commits September 6, 2019 11:26
Co-Authored-By: Alexandra Simeonova <[email protected]>
Co-Authored-By: Alexandra Simeonova <[email protected]>
Co-Authored-By: Alexandra Simeonova <[email protected]>
Co-Authored-By: Alexandra Simeonova <[email protected]>
@alexandra-simeonova alexandra-simeonova self-assigned this Sep 6, 2019
@pekura pekura self-assigned this Sep 6, 2019
* @since 0.6.4
*/
hideAppLoadingIndicator() {
const appLoadingIndicator = document.querySelector(
Copy link
Contributor

Choose a reason for hiding this comment

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

Why don't we just render the loading spinner and overlay in the place where luigi itself is rendered?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because Luigi itself is not rendered yet when we already show the loading spinner. We would need to create and set the spinner programmatically, which might take a while under some circumstances - we had it in place initially, but Philipp wanted to have it the way it is implemented now - simplification.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

At least we are consistent with the naming luigi-app-* selectors.

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@JohannesDoberer JohannesDoberer added this to the Sprint 5 milestone Sep 9, 2019
@zarkosimic zarkosimic self-assigned this Sep 11, 2019
Copy link
Contributor

@zarkosimic zarkosimic left a comment

Choose a reason for hiding this comment

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

Looks fine, good job!

@maxmarkus maxmarkus merged commit 0845730 into SAP:master Sep 12, 2019
@maxmarkus maxmarkus deleted the 757-initial-app-loading-indicator branch September 12, 2019 10:01
stanleychh pushed a commit to stanleychh/luigi that referenced this pull request Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants