Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow hiding/showing entity subtrees under shown/hidden parent tree #5508

Merged
merged 12 commits into from
Mar 15, 2024

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Mar 14, 2024

What

The title describes the main effect this has on what Rerun can do compared to the previous release. But the real star of the show is that visible is now a component, not part of EntityProperties.

@ reviewer: Please take your time and explore the behavior both on blueprint panel and selection panel, there's a surprising amount of nuance in here.
For instance there's extra logic for allowing you to go back to a clean slate with ui interactions - for instance hiding & unhiding an item that doesn't receive any parent overrides will remove the visibility override completely as the default value for visibility is 'true'.

You can now hide/show under a shown/hidden parent tree:

nuance.mp4

We're able to keep track of where an override comes from, this is exposed in the selection panels' tooltip:
image

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested the web demo (if applicable):
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG
  • If applicable, add a new check to the release checklist!

@Wumpf Wumpf added 🟦 blueprint The data that defines our UI include in changelog labels Mar 14, 2024
@Wumpf
Copy link
Member Author

Wumpf commented Mar 14, 2024

as per slack conversation the selection panel should be simplified again:

  • don't do tristate
  • no hover
  • maybe show subdued "inherited" label

@Wumpf Wumpf added the do-not-merge Do not merge this PR label Mar 14, 2024
@jleibs jleibs self-requested a review March 14, 2024 15:11
@Wumpf
Copy link
Member Author

Wumpf commented Mar 14, 2024

done:
image

@Wumpf Wumpf removed the do-not-merge Do not merge this PR label Mar 14, 2024
crates/re_entity_db/src/entity_properties.rs Show resolved Hide resolved
let override_source =
data_result.component_override_source(&query_result.tree, &Visible::name());
let is_inherited =
override_source.is_some() && override_source.as_ref() != Some(entity_path);
Copy link
Member

Choose a reason for hiding this comment

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

Do you not consider no override source to be inherited? It's sort of "inherited from the default"

Copy link
Member Author

Choose a reason for hiding this comment

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

I was pondering that as well a bit but the mechanics are different in that far that we don't have a path to show for. Not sure!

crates/re_viewer_context/src/blueprint_helpers.rs Outdated Show resolved Hide resolved
crates/re_viewer_context/src/space_view/view_query.rs Outdated Show resolved Hide resolved
Copy link

Size changes

Name main 5508/merge Change
arkit_scenes.rrd 39.43 MiB 40.34 MiB +2.31%

@Wumpf Wumpf merged commit c8d6edf into main Mar 15, 2024
34 of 35 checks passed
@Wumpf Wumpf deleted the andreas/visibility-property branch March 15, 2024 09:33
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
Projects
None yet
2 participants