Skip to content

Expose view container visibility in python blueprint api#11602

Merged
IsseW merged 2 commits intomainfrom
isse/blueprint-container-visibility
Oct 21, 2025
Merged

Expose view container visibility in python blueprint api#11602
IsseW merged 2 commits intomainfrom
isse/blueprint-container-visibility

Conversation

@IsseW
Copy link
Member

@IsseW IsseW commented Oct 21, 2025

What

Exposes the visibility option to containers (Horizontal, Vertical, …) in the python api.

@IsseW IsseW added sdk-python Python logging API 🟦 blueprint The data that defines our UI include in changelog labels Oct 21, 2025
@github-actions
Copy link

github-actions bot commented Oct 21, 2025

Web viewer built successfully.

Result Commit Link Manifest
c3925f2 https://rerun.io/viewer/pr/11602 +nightly +main

View image diff on kitdiff.

Note: This comment is updated whenever you push a commit.

@Wumpf Wumpf self-requested a review October 21, 2025 08:10
@Wumpf Wumpf changed the title Expose container visibility in python api Expose view container visibility in python blueprint api Oct 21, 2025
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

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

nice catch! Had no idea this was half-finished sitting around
Would be good to have some test coverage for container visibility, but I figure that's out of scope here 🤔

.with_icon(icon_for_container_kind(&container_data.kind))
.subdued(!container_data.visible)
.with_buttons(|ui| {
if !container_data.visible {
Copy link
Member

Choose a reason for hiding this comment

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

ohhh so if someone makes the root container invisible in blueprint, you make sure here to show that and give the user a way back? Would be good to comment the rationale here, took me a bit to understand what's going on

Copy link
Member Author

Choose a reason for hiding this comment

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

Was confused because I do remember commenting that, it was just a bit below 😄 but yeah makes more sense to have the comment here

Copy link
Member Author

Choose a reason for hiding this comment

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

ohhh so if someone makes the root container invisible in blueprint, you make sure here to show that and give the user a way back?

Exactly, I ran into this exact thing in my testing :D

@IsseW
Copy link
Member Author

IsseW commented Oct 21, 2025

Would be good to have some test coverage for container visibility, but I figure that's out of scope here

Yeah I agree, I tried looking and it doesn't seem we even have any snippets for view visibility.

Might also be nice to just have a snippet for just different containers in general?

@Wumpf
Copy link
Member

Wumpf commented Oct 21, 2025

We could extend

once it lands :)

@IsseW IsseW merged commit f61018e into main Oct 21, 2025
41 checks passed
@IsseW IsseW deleted the isse/blueprint-container-visibility branch October 21, 2025 11:08
@aedm
Copy link
Member

aedm commented Oct 24, 2025

We could extend

once it lands :)

It landed and it adds finding a view by label. Also adds some panel drag&drop and resize tests if that's relevant.

But I'd wait a bit until I implement #11628, the harness should be more convenient to use after that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🟦 blueprint The data that defines our UI include in changelog sdk-python Python logging API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants