Skip to content

Conversation

grtlr
Copy link
Contributor

@grtlr grtlr commented Jul 21, 2025

What

This adds a TestView mock to re_viewport_context that uses the example types from re_types where appropriate. For now it does not display anything (and probably never should). Right now it's only used to test write image comparison tests for the selection panel.

TODO

@grtlr grtlr added 🔨 testing testing and benchmarks exclude from changelog PRs with this won't show up in CHANGELOG.md labels Jul 21, 2025
Copy link

github-actions bot commented Jul 21, 2025

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

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

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

@grtlr grtlr force-pushed the grtlr/selection-panel-view branch from 9cbb674 to 758915b Compare July 21, 2025 14:26
@emilk
Copy link
Member

emilk commented Aug 5, 2025

@Wumpf Wumpf self-requested a review August 6, 2025 06:51
@@ -1322,4 +1327,156 @@ mod tests {
harness.run();
harness.snapshot("selection_panel_component_hybrid_overwrite");
}

#[test]
fn selection_panel_view_snapshot() {
Copy link
Member

Choose a reason for hiding this comment

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

I think I would have made those three all call the same parameterized function, but this is fine too I figure; the boilerplate isn't that crazy

@Wumpf
Copy link
Member

Wumpf commented Aug 11, 2025

not sure what artifact your TODO is referring too

@Wumpf
Copy link
Member

Wumpf commented Aug 11, 2025

oh, I see. Weird!
image

@grtlr grtlr merged commit 1944126 into main Aug 12, 2025
40 checks passed
@grtlr grtlr deleted the grtlr/selection-panel-view branch August 12, 2025 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exclude from changelog PRs with this won't show up in CHANGELOG.md 🔨 testing testing and benchmarks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants