Skip to content

Commit

Permalink
embedd undo/redo video
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Dec 17, 2024
1 parent 7f32de6 commit 1130c5c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ All the nitty gritty details in https://github.com/rerun-io/rerun/pull/8230 and
### Undo/Redo support in the viewer

You can now undo/redo blueprint changes in the viewer!
This video shows it in action and explains how it works:

TODO: embed somehow emil's loom about it
<video src="https://storage.googleapis.com/rerun-static-img/changelog_0.21_undoredo.mp4" width="600" controls></video>

### More UI/UX improvements

Expand Down
10 changes: 8 additions & 2 deletions crates/viewer/re_data_ui/src/instance_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl DataUi for InstancePath {
.filter(|c| c.is_indicator_component())
.count();

let components = latest_at(db, query, entity_path, &components);
let mut components = latest_at(db, query, entity_path, &components);

if components.is_empty() {
ui_layout.label(
Expand All @@ -89,13 +89,19 @@ impl DataUi for InstancePath {
ui,
format!(
"{} component{} (including {} indicator component{})",
components.len(),
components.len(
if components.len() > 1 { "s" } else { "" },
indicator_count,
if indicator_count > 1 { "s" } else { "" }
),
);
} else {
if ui_layout == UiLayout::Tooltip {
// Niko. nooooooo.
components
.retain(|(component, _chunk)| component != &components::GraphEdge::name());
}

component_list_ui(
ctx,
ui,
Expand Down

0 comments on commit 1130c5c

Please sign in to comment.