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

Automatically expand and scroll the blueprint tree when focusing on an item #5482

Merged
merged 7 commits into from
Mar 13, 2024

Conversation

abey79
Copy link
Member

@abey79 abey79 commented Mar 12, 2024

What

Double-clicking on an item, e.g. in a space views, focuses on that item. When that happens, the blueprint tree UI will uncollapse and scroll as needed to bring said item to view. When that item is an entity (e.g. double-clicked in the streams view), then all occurrences of that entity are uncollapsed, and the view scrolls to the first one.

Part of:

focus_blueprint_tree.mp4

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!

@abey79 abey79 added enhancement New feature or request ui concerns graphical user interface include in changelog labels Mar 12, 2024
Copy link

Size changes

Name main 5482/merge Change
incremental_logging.rrd 0 MiB 0 MiB +100.00%

@emilk emilk self-requested a review March 13, 2024 09:37
Copy link
Member

@emilk emilk left a comment

Choose a reason for hiding this comment

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

Nice!

Comment on lines 457 to 458
/// - `visitor`'s second argument contains the hierarchy leading to the visited contents, up to
/// (and including) the container passed in argument
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// - `visitor`'s second argument contains the hierarchy leading to the visited contents, up to
/// (and including) the container passed in argument
/// - `visitor`'s second argument contains the hierarchy leading to the visited contents, from
/// (and including) the container passed in argument

crates/re_viewport/src/viewport_blueprint_ui.rs Outdated Show resolved Hide resolved
@abey79 abey79 merged commit 25bb0f6 into main Mar 13, 2024
34 of 35 checks passed
@abey79 abey79 deleted the antoine/focus-all-blueprint-tree branch March 13, 2024 11:00
abey79 added a commit that referenced this pull request Mar 18, 2024
…item (#5494)

### What

- Follow up to #5482
- Fixes #5232 


This PR adds support for expanding and scrolling to the focus item in
the Streams view. It also adds expanding/scrolling the Blueprint tree
when focusing on a component.

- Blocked on emilk/egui#4174

TODO:
- [x] update egui commit once ☝🏻  is merged


https://github.com/rerun-io/rerun/assets/49431240/55c2959f-bb9b-4f67-b20b-06ba82175d71


### Checklist
* [x] I have read and agree to [Contributor
Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and
the [Code of
Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md)
* [x] I've included a screenshot or gif (if applicable)
* [x] I have tested the web demo (if applicable):
* Using newly built examples:
[app.rerun.io](https://app.rerun.io/pr/5494/index.html)
* Using examples from latest `main` build:
[app.rerun.io](https://app.rerun.io/pr/5494/index.html?manifest_url=https://app.rerun.io/version/main/examples_manifest.json)
* Using full set of examples from `nightly` build:
[app.rerun.io](https://app.rerun.io/pr/5494/index.html?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json)
* [x] The PR title and labels are set such as to maximize their
usefulness for the next release's CHANGELOG
* [x] If applicable, add a new check to the [release
checklist](https://github.com/rerun-io/rerun/blob/main/tests/python/release_checklist)!

- [PR Build Summary](https://build.rerun.io/pr/5494)
- [Docs
preview](https://rerun.io/preview/e879778c92dd2e50eb05bc6fdefee9ac79b93872/docs)
<!--DOCS-PREVIEW-->
- [Examples
preview](https://rerun.io/preview/e879778c92dd2e50eb05bc6fdefee9ac79b93872/examples)
<!--EXAMPLES-PREVIEW-->
- [Recent benchmark results](https://build.rerun.io/graphs/crates.html)
- [Wasm size tracking](https://build.rerun.io/graphs/sizes.html)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request include in changelog ui concerns graphical user interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants