Skip to content

[refactor] remove loading skeleton for dynamic popover#14043

Merged
sfc-gh-lwilby merged 1 commit intodevelopfrom
02-20-_refactor_remove_loading_skeleton_for_dynamic_popover
Feb 23, 2026
Merged

[refactor] remove loading skeleton for dynamic popover#14043
sfc-gh-lwilby merged 1 commit intodevelopfrom
02-20-_refactor_remove_loading_skeleton_for_dynamic_popover

Conversation

@sfc-gh-lwilby
Copy link
Copy Markdown
Collaborator

@sfc-gh-lwilby sfc-gh-lwilby commented Feb 20, 2026

Describe your changes

Removes the loading skeleton from the dynamic popover widget. The skeleton was shown while waiting for content to arrive after a user-triggered rerun, but PM decided it's not needed.

  • Removes isLoadingContent derivation, loadingStartScriptRunId tracking, and SquareSkeleton render from Popover.tsx
  • Simplifies handleToggle/handleClose by removing loading state management

Testing Plan

  • Unit Tests (JS) — removed skeleton-specific test that is no longer applicable

Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@snyk-io
Copy link
Copy Markdown
Contributor

snyk-io bot commented Feb 20, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 20, 2026

✅ PR preview is ready!

Name Link
📦 Wheel file https://core-previews.s3-us-west-2.amazonaws.com/pr-14043/streamlit-1.54.0-py3-none-any.whl
📦 @streamlit/component-v2-lib Download from artifacts
🕹️ Preview app pr-14043.streamlit.app (☁️ Deploy here if not accessible)

Copy link
Copy Markdown
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@sfc-gh-lwilby sfc-gh-lwilby added change:refactor PR contains code refactoring without behavior change impact:users PR changes affect end users labels Feb 20, 2026
@sfc-gh-lwilby
Copy link
Copy Markdown
Collaborator Author

@sfc-gh-dmatthews just marked this as "users" because it modifies the user facing behaviour slightly from the original PR. I don't think it impacts the docs, but just so you see the full user facing changes.

@sfc-gh-lwilby sfc-gh-lwilby marked this pull request as ready for review February 23, 2026 14:47
Copilot AI review requested due to automatic review settings February 23, 2026 14:47
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

This PR removes the loading skeleton feature from the dynamic popover widget based on a product management decision. When users triggered a rerun by opening an empty popover, a skeleton was previously displayed while waiting for content to arrive. This complexity is no longer needed.

Changes:

  • Removed loading skeleton state management (loadingStartScriptRunId, isLoadingContent derivation)
  • Simplified handleToggle and handleClose callbacks by removing loading-related logic
  • Cleaned up unused imports (ScriptRunContext, ScriptRunState, SquareSkeleton)
  • Removed the skeleton-specific test that validated the removed feature

Reviewed changes

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

File Description
frontend/lib/src/components/elements/Popover/Popover.tsx Removed loading skeleton state, simplified callbacks, cleaned up imports, and updated dependency arrays
frontend/lib/src/components/elements/Popover/Popover.test.tsx Removed test validating skeleton behavior during script runs, cleaned up unused imports

@sfc-gh-lwilby sfc-gh-lwilby merged commit f395045 into develop Feb 23, 2026
81 of 86 checks passed
@sfc-gh-lwilby sfc-gh-lwilby deleted the 02-20-_refactor_remove_loading_skeleton_for_dynamic_popover branch February 23, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:refactor PR contains code refactoring without behavior change impact:users PR changes affect end users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants