Skip to content

Added Loading State for ListView Component#15681

Open
rahulprasad00 wants to merge 4 commits intolts-3.16from
feat/loading-state-listview
Open

Added Loading State for ListView Component#15681
rahulprasad00 wants to merge 4 commits intolts-3.16from
feat/loading-state-listview

Conversation

@rahulprasad00
Copy link
Copy Markdown
Collaborator

Solves: Issue

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a configurable loading state to the Listview widget so apps can display a spinner while data is being fetched, and backfills defaults for existing saved components to preserve compatibility.

Changes:

  • Added loadingState toggle to Listview widget config (server + frontend) with default {{false}}.
  • Updated Listview widget rendering to show a Spinner when loadingState is enabled.
  • Added backfill logic via import/export migration code and a DB data migration for existing components rows.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
server/src/modules/apps/services/widget-config/listview.js Adds loadingState property + default definition for Listview (server-side config).
frontend/src/AppBuilder/WidgetManager/widgets/listview.js Mirrors server config change for Listview (frontend widget config).
frontend/src/AppBuilder/Widgets/Listview/Listview.jsx Renders spinner + applies loading class when loadingState is true.
server/src/modules/apps/services/app-import-export.service.ts Adds Listview to revamped component list and backfills loadingState during import migrations.
server/data-migrations/1774412653881-BackfillLoadingStateListView.ts Backfills properties.loadingState for existing Listview components in DB.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

3 participants