Skip to content

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

Merged
Wumpf merged 12 commits intomainfrom
andreas/visibility-property
Mar 15, 2024
Merged

Allow hiding/showing entity subtrees under shown/hidden parent tree#5508
Wumpf merged 12 commits intomainfrom
andreas/visibility-property

Conversation

@Wumpf
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
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
Copy Markdown
Contributor

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
Copy Markdown
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!

@github-actions
Copy link
Copy Markdown
Contributor

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
@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

Development

Successfully merging this pull request may close these issues.

Implement 3-state visibility control Visibility control broken for some data results Improve show/hide behaviour in the Blueprint Tree UI

2 participants