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

Updates to loading screen, check dashboard settings #484

Merged
merged 2 commits into from
Aug 25, 2023

Conversation

bakes82
Copy link
Contributor

@bakes82 bakes82 commented Aug 24, 2023

In app.razor checked for setting
Component updated to take in IsLoaded, so you can use to block long running tasks in other pages/elements.

The loader will now appear for "first render" duration based on the param setting. (frist render is full page loads)
I also added example for on navigation change so every page toggle you will see it for small duration.
Nav manager is injected so you could in first render check the page for your auth url and then not show it 2nd time.

I also left comments for a more "basic" screen fade (set the is loaded to true or remove the component from app.razor)
//transitionClass = "loadScreen-fade-out";
transitionClass = "";

@neozhu neozhu requested a review from Bram1903 August 25, 2023 05:39
@Bram1903 Bram1903 added the Enhancement New feature or request label Aug 25, 2023
This commit refactors the App.razor file to improve readability and ensures code standards consistency. Direct changes involve renaming the `transitionClass` variable to `_transitionClass`. The block conditions are spaced properly enhancing code readability. The `HandleLocationChanged` function has also been refactored for improved simplicity and readability. These changes do not alter the functionality of the code but intend to make the code cleaner, easier to read, and maintain.
@Bram1903
Copy link
Collaborator

@bakes82,

Thank you so much for this PR, this is exactly what I meant! I don't see any loading activity going on when the LoadingScreen component disappears. Great job!

The transition classes look really good as well.

Thanks a lot for your contribution!

Kind regards,
Bram

@Bram1903 Bram1903 merged commit 5890010 into neozhu:main Aug 25, 2023
2 checks passed
@neozhu
Copy link
Owner

neozhu commented Aug 25, 2023

@bakes82 @Bram1903
There's an issue with this PR. Every time I navigate to another page, the Loading animation appears, and the menu navigation will be reset. I believe the Loading animation should only be necessary when the page is refreshed(F5) or loaded for the first time. There's no need for this transition animation during page navigation. I've deployed the latest version at https://architecture.blazorserver.com/ for you to check out.

@neozhu
Copy link
Owner

neozhu commented Aug 25, 2023

@Bram1903 how can we reopen this PR so we can continue development until this issue is resolved?

@Bram1903
Copy link
Collaborator

@Bram1903 how can we reopen this PR so we can continue development until this issue is resolved?

You can't, a new PR needs to be opened for that, but that's fine. I'm not exactly sure, but I think it was his intention to make the loading screen appear on every page navigation. Besides that, something seems to be wrong when trying to disable the LoadingScreen in the settings now, since the entire application stays frozen when disabling the loading screen in the settings.

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.

None yet

3 participants