Skip to content

Add loading indicator to improve UX during initial data load#414

Open
Jayashree-coder wants to merge 1 commit intohatnote:masterfrom
Jayashree-coder:add-loading-indicator
Open

Add loading indicator to improve UX during initial data load#414
Jayashree-coder wants to merge 1 commit intohatnote:masterfrom
Jayashree-coder:add-loading-indicator

Conversation

@Jayashree-coder
Copy link

PROBLEM :

Currently the application shows a blank screen while the router view initializes. Although loading-related styles exist in App.vue, they are not used in the template, so users do not receive feedback while the page is loading.

SOLUTION :

            Added a loading state using Vue's Composition API and conditionally render a loading 

indicator before displaying the router-view.

The changes were implemented in:

frontend/src/App.vue

-->A loading state (ref) is introduced and the template now uses a conditional rendering (v-if / v-else) to display a loading indicator while the application initializes. This also makes use of the existing loading-container and loading-bar styles already defined in the component.

--> Utilized the existing loading-container and loading-bar styles that were previously defined but unused.

-->Ensured that once the component is mounted, the loading state switches to false and the main application content is displayed.

IMPACT :

Improves user experience by showing a loading indicator instead of a blank page while the application initializes. This provides immediate visual feedback to
users and makes the application feel more responsive.

PROBLEM : 

Currently the application shows a blank screen while the router view initializes. 
Although loading-related styles exist in App.vue, they are not used in the template,
so users do not receive feedback while the page is loading.

SOLUTION : 

                Added a loading state using Vue's Composition API and conditionally render a loading 
indicator before displaying the router-view.

The changes were implemented in:

frontend/src/App.vue

-->A loading state (ref) is introduced and the template now uses a conditional  rendering (v-if / v-else) to display a loading indicator while the application  initializes. This also makes use of the existing loading-container and 
loading-bar styles already defined in the component.

-->   Utilized the existing loading-container and loading-bar styles that were previously defined but unused.

-->Ensured that once the component is mounted, the loading state switches to false and the main application content is displayed.


IMPACT : 

  Improves user experience by showing a loading indicator instead of a blank page  while the application initializes.  This provides immediate visual feedback to 
users and makes the application feel more responsive.
@Jayashree-coder Jayashree-coder changed the title Implement loading state in App.vue Add loading indicator to improve UX during initial data load Mar 19, 2026
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