Allow configuring color for ProgressColumn#12738
Merged
lukasmasuch merged 8 commits intodevelopfrom Oct 15, 2025
Merged
Conversation
Contributor
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Contributor
✅ PR preview is ready!
|
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds a new color parameter to ProgressColumn configuration, allowing users to customize the color of progress bars in dataframes. This enhances the visual customization capabilities of the progress column widget.
- Adds
colorparameter toProgressColumnfunction with support for named colors, CSS colors, and auto color modes - Implements color validation and mapping logic for both backend and frontend
- Updates test coverage for new color functionality
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
lib/streamlit/elements/lib/column_types.py |
Adds color parameter to ProgressColumn function and ProgressColumnConfig type definition with validation |
frontend/lib/src/components/widgets/DataFrame/columns/ProgressColumn.ts |
Implements color mapping logic and auto-color functionality in the frontend component |
frontend/lib/src/components/widgets/DataFrame/columns/ProgressColumn.test.ts |
Adds comprehensive test coverage for color functionality including named colors, custom colors, and auto modes |
lib/tests/streamlit/elements/lib/column_types_test.py |
Updates existing test to include color parameter verification |
e2e_playwright/st_dataframe_config.py |
Updates E2E test configuration to demonstrate color usage |
Contributor
📈 Python coverage change detectedThe Python unit test coverage has increased by 0.0011%
✅ Coverage change is within normal range. Coverage by files
|
mayagbarnes
approved these changes
Oct 15, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes
Adds an
colorparameter toProgressColumnto allow configuring a custom color (similar to chart columns).GitHub Issue Link (if applicable)
Testing Plan
Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.