[feat] Add rendering logic for st.space elements in frontend.#12735
[feat] Add rendering logic for st.space elements in frontend.#12735sfc-gh-lwilby merged 1 commit intodevelopfrom
st.space elements in frontend.#12735Conversation
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) |
✅ PR preview is ready!
|
st.space elements in frontend.
2c6f33a to
e9b913d
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR adds frontend rendering support for st.space elements by implementing the necessary React component and styling. The change enables the frontend to properly display space elements that are created using Streamlit's st.space API.
- Adds a new styled component
StyledSpacefor rendering space elements - Implements the "space" case in the element renderer switch statement
- Includes proper CSS class and test ID attributes for styling and testing
lukasmasuch
left a comment
There was a problem hiding this comment.
LGTM 👍 but it might be good to move it to styled-components.ts
| const StyledSpace = styled.div({ | ||
| // Styling is handled in StyledElementContainerLayoutWrapper. | ||
| // Space component should fill the container. | ||
| width: "100%", | ||
| height: "100%", | ||
| }) |
There was a problem hiding this comment.
since this is a styled component it might be better to move it to styled-components.ts
da2b27f to
b012240
Compare
e9b913d to
6fd43aa
Compare
📉 Frontend coverage change detectedThe frontend unit test (vitest) coverage has decreased by 0.0000%
✅ Coverage change is within normal range. |
6fd43aa to
9b066d1
Compare
b012240 to
9853884
Compare
0999747 to
f1606bc
Compare
9853884 to
3d732cd
Compare
f1606bc to
3622f59
Compare

Describe your changes
Rendering for
st.spacetype elements in the frontend.GitHub Issue Link (if applicable)
Testing Plan
E2E tests will cover this in last PR.
Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.