Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kmcgrady
Copy link
Collaborator

@kmcgrady kmcgrady commented Oct 19, 2025

Describe your changes

Implemented a new transient element system to improve the spinner component. This change:

  • Adds a TransientNode to the render tree to handle temporary UI elements
  • Refactors the spinner implementation to use the new transient system instead of empty placeholders
  • Ensures spinners are properly ordered and cleaned up when their context exits
  • Moves spinner from a standalone import to a mixin on DeltaGenerator

This approach provides a more robust way to handle temporary UI elements like spinners, preventing stale elements and ensuring proper cleanup.

GitHub Issue Link (if applicable)

Testing Plan

  • Unit Tests: Added comprehensive tests for the new TransientNode and updated AppRoot functionality in AppRoot.test.ts
  • Updated existing spinner tests to work with the new transient implementation
  • Manual testing of spinner behavior in various contexts (regular, nested, caching)

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
Contributor

snyk-io bot commented Oct 19, 2025

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
Contributor

github-actions bot commented Oct 19, 2025

✅ PR preview is ready!

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

@kmcgrady kmcgrady added the impact:users PR changes affect end users label Oct 19, 2025 — with Graphite App
@kmcgrady kmcgrady force-pushed the 10-19-implement_transient_spinners branch from 18c4f1f to 8e86cca Compare October 19, 2025 20:44
@github-actions
Copy link
Contributor

github-actions bot commented Oct 19, 2025

📈 Frontend coverage change detected

The frontend unit test (vitest) coverage has increased by 0.0200%

  • Current PR: 85.9300% (12445 lines, 1751 missed)
  • Latest develop: 85.9100% (12421 lines, 1750 missed)

✅ Coverage change is within normal range.

📊 View detailed coverage comparison

@kmcgrady kmcgrady changed the base branch from 10-19-implement_visittransientnode_on_rendernodevisitor to graphite-base/12826 October 20, 2025 14:42
@kmcgrady kmcgrady force-pushed the 10-19-implement_transient_spinners branch from 8e86cca to 9158c17 Compare October 20, 2025 14:42
@kmcgrady kmcgrady changed the base branch from graphite-base/12826 to 10-20-migrate_spinner_to_a_mixin October 20, 2025 14:42
@kmcgrady kmcgrady force-pushed the 10-19-implement_transient_spinners branch 4 times, most recently from d9b33ab to dfcd3bc Compare October 24, 2025 15:05
@kmcgrady kmcgrady force-pushed the 10-20-migrate_spinner_to_a_mixin branch from 1af2b5d to cd702ac Compare October 24, 2025 15:05
@kmcgrady kmcgrady force-pushed the 10-19-implement_transient_spinners branch from bc67db4 to ff0535a Compare December 2, 2025 02:06
@kmcgrady kmcgrady changed the base branch from graphite-base/12826 to develop December 2, 2025 02:07
@kmcgrady kmcgrady force-pushed the 10-19-implement_transient_spinners branch from ff0535a to efb44c4 Compare December 4, 2025 03:23
@kmcgrady kmcgrady force-pushed the 10-19-implement_transient_spinners branch 2 times, most recently from e1c6670 to 3fea9c0 Compare December 4, 2025 15:21
@kmcgrady kmcgrady force-pushed the 10-19-implement_transient_spinners branch from 3fea9c0 to 7e8e837 Compare December 4, 2025 15:30
@sfc-gh-kmcgrady sfc-gh-kmcgrady added the flaky-verify If applied to PR will run flaky test verification workflow label Dec 4, 2025
@github-actions github-actions bot removed the flaky-verify If applied to PR will run flaky test verification workflow label Dec 4, 2025
@kmcgrady kmcgrady force-pushed the 10-19-implement_transient_spinners branch 2 times, most recently from aa8bf80 to 70b1351 Compare December 4, 2025 17:12
@lukasmasuch lukasmasuch requested a review from Copilot December 8, 2025 14:50
Copy link
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

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

@kmcgrady kmcgrady force-pushed the 10-19-implement_transient_spinners branch 3 times, most recently from 3ec60af to 9484285 Compare December 8, 2025 16:18
@kmcgrady kmcgrady force-pushed the 10-19-implement_transient_spinners branch from 9484285 to df0d3ed Compare December 8, 2025 16:25
Copy link
Collaborator

@lukasmasuch lukasmasuch left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@kmcgrady kmcgrady force-pushed the 10-19-implement_transient_spinners branch from df0d3ed to e6b4f56 Compare December 8, 2025 17:50
@kmcgrady kmcgrady force-pushed the 10-19-implement_transient_spinners branch from e6b4f56 to 75bb6e7 Compare December 8, 2025 17:52
@kmcgrady kmcgrady merged commit 349d1f1 into develop Dec 8, 2025
44 checks passed
@kmcgrady kmcgrady deleted the 10-19-implement_transient_spinners branch December 8, 2025 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:bugfix PR contains bug fix implementation impact:users PR changes affect end users security-assessment-completed Security assessment has been completed for PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Page Reload on Cache Miss Old AI response duplicating (faded)

5 participants