-
Notifications
You must be signed in to change notification settings - Fork 482
First iteration of a dedicated UI and communication for the Redap server/catalog/collection browser #9018
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
Conversation
Web viewer built successfully. If applicable, you should also test it:
Note: This comment is updated whenever you push a commit. |
5fc2a02
to
e1547d7
Compare
### Related * Related to #9034 * Required for #9018 ### What This PR introduce the `ComponentDescriptorRef` type to `re_sorbet`. It's like `ComponentDescriptor` but: - It has refs instead of owned copies. - It has a `RowId` enum (which would be difficult to add to `ComponentDescriptor` because of the ramifications on the dataframe API—let's wait for the RowID <-> Index column merge for that).
e1547d7
to
778edd8
Compare
# Conflicts: # crates/viewer/re_component_ui/src/recording_uri.rs # crates/viewer/re_viewer_context/src/lib.rs
# Conflicts: # crates/store/re_grpc_client/src/redap/address.rs # crates/store/re_grpc_client/src/redap/mod.rs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM—only minor comments.
let datastore_view_active = datastore_ui.ui(&ctx, ui, app_options.time_zone); | ||
if !datastore_view_active { | ||
*display_mode = DisplayMode::Viewer; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This took me a while to figure out (see comment above)—mostly because of the &mut bool
in chunk_store_ui
. Wonder if we should propagate the change of just returning a bool
to that method as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've named/commented stuff to be more explicit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This chunk store ui could benefit from a refactor based on a command queue. But that's for another day.
# Conflicts: # crates/store/re_grpc_client/src/redap/mod.rs
### Related - Follow-up to #9018 ### What So far, clicking on a recording URI in the redap browser would silently load the recording in the background. With this PR, the UI switches back to viewer mode whenever a new recording is loaded, unless the user cmd/ctrl- or middle-clicked the link, in which case the UI remains in redap browser mode (mimicking the load tab in the background behaviour of browser). This involved a number of changes: - `RecordingUri` is now removed, because the default `arrow_ui` handling of links is sufficient. - `rerun://` links are globally handled by the viewer, taking into account the same-tab/new-tab behaviour in egui `OpenUrl` event. - `ui.re_hyperlink` can now be specified is the new-tab behaviour is forced or not. It is the case for our documentation link, but not for generic urls (e.g. from `arrow_ui()` - Some cleanup around `redap::Scheme` happened.
Related
What
Implement a whole new Redap server/catalog/collection UI.