Skip to content

Fix sharing selection as a fragment#11161

Merged
IsseW merged 3 commits intomainfrom
isse/fix-loading-selection-fragment
Sep 11, 2025
Merged

Fix sharing selection as a fragment#11161
IsseW merged 3 commits intomainfrom
isse/fix-loading-selection-fragment

Conversation

@IsseW
Copy link
Member

@IsseW IsseW commented Sep 10, 2025

Related

What

Fixes selection sharing, which before this was only applied too early to actually affect the selection.

This adds the variant SetUrlFragment to UiCommand in crates/store/re_redap_client/src/grpc.rs, which I'm pretty sure is a breaking change (according to semver).

Also adds a system command SetUrlFragment, which creates other system commands when invoked. Which might be the first system command which does that? The system command loop looks like it's made to handle that though.

@IsseW IsseW added 🪳 bug Something isn't working 📺 re_viewer affects re_viewer itself include in changelog labels Sep 10, 2025
@github-actions
Copy link

github-actions bot commented Sep 10, 2025

Web viewer built successfully.

Result Commit Link Manifest
93e8c60 https://rerun.io/viewer/pr/11161 +nightly +main

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

@Wumpf Wumpf self-requested a review September 11, 2025 09:27
/// True if this fragment doesn't contain any information.
pub fn is_empty(&self) -> bool {
// Keep this as a destruction so there is a compile error if a new field isn't handled here.
let Self { selection, when } = self;
Copy link
Member

Choose a reason for hiding this comment

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

👍👍

Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

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

tested the change cross web browsers & native. works smoothly now ✨
code looks great as well!

This adds the variant SetFragment to UiCommand in crates/store/re_redap_client/src/grpc.rs, which I'm pretty sure is a breaking change (according to semver).

correct, struggling with this fact a lot on wgpu...
But no worries we bump the version number of all crates in the workspace on every release regardless of changes

Also adds a system command SetFragment, which creates other system commands when invoked. Which might be the first system command which does that? The system command loop looks like it's made to handle that though

ack, should be fine. But also I don't think it's the first :)

@IsseW IsseW added the do-not-merge Do not merge this PR label Sep 11, 2025
Base automatically changed from isse/update-web-address to main September 11, 2025 10:57
@IsseW IsseW force-pushed the isse/fix-loading-selection-fragment branch from 1168924 to 93e8c60 Compare September 11, 2025 10:59
@IsseW IsseW removed the do-not-merge Do not merge this PR label Sep 11, 2025
@IsseW IsseW merged commit 20753b2 into main Sep 11, 2025
42 of 43 checks passed
@IsseW IsseW deleted the isse/fix-loading-selection-fragment branch September 11, 2025 14:25
Wumpf pushed a commit that referenced this pull request Sep 12, 2025
### Related

 - Closes RR-2222
- Based on #11153 because I made some changes there that would conflict
with this otherwise.

### What

Fixes selection sharing, which before this was only applied too early to
actually affect the selection.

This adds the variant `SetUrlFragment` to `UiCommand` in
`crates/store/re_redap_client/src/grpc.rs`, which I'm pretty sure is a
breaking change (according to semver).

Also adds a system command `SetUrlFragment`, which creates other system
commands when invoked. Which might be the first system command which
does that? The system command loop looks like it's made to handle that
though.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🪳 bug Something isn't working include in changelog 📺 re_viewer affects re_viewer itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants