Skip to content

Basic ability to show components that only differ by archetype/field name on same entity#9877

Merged
Wumpf merged 7 commits into
mainfrom
andreas/tagged-component-path
May 5, 2025
Merged

Basic ability to show components that only differ by archetype/field name on same entity#9877
Wumpf merged 7 commits into
mainfrom
andreas/tagged-component-path

Conversation

@Wumpf
Copy link
Copy Markdown
Member

@Wumpf Wumpf commented May 5, 2025

Related

What

Or in more technical terms: ComponentPath is now uses ComponentDescriptor rather than ComponentName

This makes this the first PR in the new series of tagged component PRs that has a clear visual & functionality impact on the Viewer (besides ~hidden features like the chunk browser)

image

image

@Wumpf Wumpf added 📺 re_viewer affects re_viewer itself include in changelog labels May 5, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2025

Web viewer built successfully. If applicable, you should also test it:

  • I have tested the web viewer
Result Commit Link Manifest
307e1c9 https://rerun.io/viewer/pr/9877 +nightly +main

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

Base automatically changed from andreas/semi-tagged-re_query to main May 5, 2025 10:31
@Wumpf Wumpf force-pushed the andreas/tagged-component-path branch from 982a5af to 0ce966d Compare May 5, 2025 10:35
@Wumpf Wumpf marked this pull request as ready for review May 5, 2025 13:54
.show_hierarchical(
ui,
list_item::LabelContent::new(short_component_name)
list_item::LabelContent::new(component_descr.syntax_highlighted(ui.style()))
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.

this is new, gives it a bit of a touch and a good entry point for more re-usable improvement

@grtlr grtlr self-requested a review May 5, 2025 14:06
Copy link
Copy Markdown
Member

@grtlr grtlr left a comment

Choose a reason for hiding this comment

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

Wonder if it makes sense to add snapshot test that logs the same component multiple times to the same entity in re_time_panel already?

Unfortunately, I don't think we have snapshot tests for the selection panel yet.

Other than that, LGTM!

/// Identifies in what context this smart channel was created, and who/what is holding its
/// receiving end.
#[derive(Clone, Debug, PartialEq, Eq, Hash, serde::Deserialize, serde::Serialize)]
#[expect(clippy::large_enum_variant)]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why is this large all of a sudden? Ah, because re_uri.

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.

yeah looks like I tripped a treshhold. Something in there should probably be a separate alloc, but didn't want to go there right now

Comment thread crates/viewer/re_data_ui/src/instance_path.rs Outdated
Comment thread crates/viewer/re_selection_panel/src/visualizer_ui.rs Outdated
Comment thread crates/viewer/re_selection_panel/src/visualizer_ui.rs Outdated
@Wumpf Wumpf merged commit cb652ab into main May 5, 2025
36 checks passed
@Wumpf Wumpf deleted the andreas/tagged-component-path branch May 5, 2025 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants