Find in Browser finds the body; Find in Timeline opens the feature's folders (#3883) (#3884)

* claim: #3883

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Find in Browser finds the body; Find in Timeline opens the feature's folders (#3883)

A right-click on a body in the viewport picks a face, and the face menu's
Find in Browser selected the face's creating feature in the Features folder
instead of the body. It now reveals and selects the body, as the edge and
body menus already did.

Find in Timeline now opens any collapsed history folders around the feature,
and opens the Browser's Features folder for the picked occurrence, scrolled
to the feature (the reveal formerly behind Find in Browser).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Find in Browser opens collapsed rows above the body and finds later placements (#3883)

Open the document, placement, Bodies and group rows when the command runs, not while the
Bodies folder is drawn, so a collapsed ancestor no longer hides the body. Match the scroll
target by the placed body's world name, and fix the group row key ({scope}/g{id}).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Find in Browser picks the body's own placement; Find in Timeline leaves the Browser alone from rows (#3883)

Every component's first placement keeps the definition's body name, so the root placement
matched before the body's own one and Find in Browser on a first copy opened nothing above it:
the placement must belong to the body's component too.

Find in Timeline from a sketch, construction plane or feature row has no body to say which copy
was meant, so it opened the Features folder of whichever placement came first (the other copy),
or one that never lists sketches. From those rows it now only reveals the feature in the
History; from a face, edge or body it still opens that body's copy's Features folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
N3MI-DG
2026-10-24 21:53:27 +00:00
committed by GitHub
parent 22190e703c
commit 582e6097be
6 changed files with 218 additions and 42 deletions
+35 -2
View File
@@ -24,6 +24,39 @@ pub(crate) fn reveal_feature(app: &mut SolveApp, id: u64, body: &str) {
features::reveal(app, id, body);
}
/// Find in Browser for a body: open every row that holds it (the document, the placements down
/// to it, its Bodies folder and any group around it) and scroll its row into view. The rows
/// are opened here, not while drawing, because a collapsed ancestor never draws its children.
pub(crate) fn reveal_body(app: &mut SolveApp, body: &str) {
app.ui.show_browser = true;
app.preferences.timeline_left_browser_collapsed = false;
app.tree.reveal_feature = None;
app.tree.reveal = Some(body.to_string());
let state = app.session.model.state();
let Some(source) = app.session.world_state().body(body).map(|selected| selected.definition_name().to_string()) else { return };
let Some(component) = state.body(&source).map(|definition| definition.component) else { return };
// Every component's first placement keeps the definition's name, so the owner must match too.
let Some((_, path, _)) = app
.session
.doc
.placements()
.into_iter()
.find(|(owner, path, _)| *owner == component && app.session.doc.world_body_name(&state, &source, *owner, path) == body)
else {
return;
};
app.tree.collapsed.remove("c0");
for depth in 1..=path.len() {
app.tree.collapsed.remove(&occurrence_key(&path[..depth]));
}
let scope = if path.is_empty() { format!("c{component}") } else { occurrence_key(&path) };
app.tree.collapsed.remove(&scope);
app.tree.collapsed.remove(&format!("{scope}/bodies"));
for g in app.session.doc.browser_groups.iter().filter(|g| g.component == component && g.folder == "bodies" && g.items.contains(&source)) {
app.tree.collapsed.remove(&format!("{scope}/g{}", g.id));
}
}
#[cfg(test)]
#[path = "browser_model_tests.rs"]
mod model_tests;
@@ -72,7 +105,7 @@ pub struct TreeState {
/// of a part apart) and open the components, placements and folders above it: Find in
/// Browser, and a body picked in the viewport (#3005).
pub reveal: Option<String>,
/// A native feature to reveal in its placed component's Features folder.
/// A native feature to reveal in its placed component's Features folder (Find in Timeline).
pub(super) reveal_feature: Option<features::Reveal>,
/// The Move/Copy panel of an occurrence.
pub occurrence_move: Option<OccMove>,
@@ -265,7 +298,7 @@ pub fn group_action(app: &mut SolveApp, action: &str, p: &Value) {
&& let Some(g) = r.get("group").and_then(Value::as_u64)
{
app.tree.collapsed.remove(&format!("c{comp}/{folder}"));
app.tree.collapsed.remove(&format!("g{g}"));
app.tree.collapsed.remove(&format!("c{comp}/g{g}"));
}
}
"ui.ungroup" => {
+126 -20
View File
@@ -8,14 +8,18 @@ pub(crate) struct Reveal {
pub path: Vec<u64>,
}
/// Reveal the actual creating feature without changing the active component or history marker.
/// Open the Features folder that lists this feature and scroll to its row, without changing the
/// active component or history marker. The folder is the one of the placement `body` belongs to:
/// without a body there is no telling which copy of a component was meant.
pub(crate) fn reveal(app: &mut SolveApp, id: u64, body: &str) {
let Some(feature) = app.session.doc.feature(id) else { return };
if matches!(feature.kind, FeatureKind::Sketch { .. }) {
return; // Sketches are listed in Sketches, not Features.
}
let component = feature.component;
let state = app.session.model.state();
let world = app.session.world_state();
let Some(selected) = world.body(body) else { return };
let source = selected.definition_name();
let Some(source) = world.body(body).map(|selected| selected.definition_name()) else { return };
let Some((_, path, _)) = app
.session
.doc
@@ -33,9 +37,9 @@ pub(crate) fn reveal(app: &mut SolveApp, id: u64, body: &str) {
app.tree.collapsed.remove(&occurrence_key(&path[..depth]));
}
let scope = if path.is_empty() { format!("c{component}") } else { occurrence_key(&path) };
app.tree.collapsed.remove(&scope);
app.tree.expanded.insert(format!("{scope}/features"));
app.tree.reveal_feature = Some(Reveal { id, path });
let _ = app.run("select.set", json!({"items":[Sel::Feature { id }]}));
}
pub(super) fn rows(app: &mut SolveApp, ui: &mut egui::Ui, component: u64, path: &[u64], depth: usize, acts: &mut Actions) {
@@ -149,7 +153,7 @@ mod tests {
let labels: Vec<_> = drawn_rows().into_iter().map(|(label, ..)| label).collect();
assert_eq!(labels.iter().filter(|label| *label == "Profile").count(), 1, "{labels:?}");
assert!(labels.contains(&name), "{labels:?}");
find(&mut h.app, extrude, "Plate");
find_in_timeline(&mut h.app, extrude, "Plate");
h.frames(2);
assert!(h.app.tree.reveal_feature.is_none(), "the creator row was drawn and scrolled to");
let at = h.call("ui.at", json!({"handle":format!("row:browser-feature:c0:{extrude}")}));
@@ -189,20 +193,45 @@ mod tests {
assert_eq!(sorted(&h.app.session.selection), sorted(&all), "Shift+click below the anchor");
}
fn find(app: &mut SolveApp, feature: u64, body: &str) {
fn find_in_timeline(app: &mut SolveApp, feature: u64, body: &str) {
let state = app.session.world_state();
let model_body = state.body(body).unwrap();
let names = solidcraft_engine::doc::naming::face_names(model_body);
let index = names.iter().position(|name| name.starts_with(&format!("F{feature}:"))).unwrap();
app.session.selection = vec![Sel::Face { body: body.into(), index, point: solidcraft_engine::geom::Vec3::ZERO }];
let item = crate::context_menu::items(app, &Target::Viewport).into_iter().find(|item| item.id == "ui.findBrowser").unwrap();
let item = crate::context_menu::items(app, &Target::Viewport).into_iter().find(|item| item.id == "ui.findTimeline").unwrap();
assert!(item.enabled);
crate::context_menu::run_item(app, &item, pos2(0.0, 0.0));
assert_eq!(app.session.selection, [Sel::Feature { id: feature }]);
}
#[test]
fn browser_feature_reveal_opens_the_picked_placement_and_survives_reopen() {
fn find_in_timeline_from_a_sketch_or_plane_row_leaves_the_browser_alone() {
let mut h = Harness::new();
let assembly = h.app.run("component.create", json!({"name":"Assembly"})).unwrap();
h.app.run("component.create", json!({"name":"Part"})).unwrap();
h.app.run("solid.box", json!({"length":40,"width":30,"height":20,"body_name":"Plate"})).unwrap();
h.app.run("sketch.create", json!({"plane":"XZ","name":"PartSketch"})).unwrap();
h.app.run("sketch.rectangle.two_point", json!({"p0":[5,25],"p1":[15,32]})).unwrap();
h.app.run("sketch.finish", json!({})).unwrap();
let sketch = h.app.session.doc.find_feature("PartSketch").unwrap().id;
let plane = h.app.run("construct.plane.offset", json!({"base":"XY","offset":30,"name":"PartPlane"})).unwrap()["feature"].as_u64().unwrap();
h.app.run("occurrence.copy", json!({"occurrence":assembly["occurrence"],"translate":[90,0,0]})).unwrap();
h.app.run("component.activate", json!({"component":0})).unwrap();
h.frames(2);
let (collapsed, expanded) = (h.app.tree.collapsed.clone(), h.app.tree.expanded.clone());
// Neither row says which copy it was in: revealing in "the first placement" picked the other copy.
for (target, id) in [(Target::Sketch { id: sketch }, sketch), (Target::Plane { id: plane }, plane)] {
let item = crate::context_menu::items(&h.app, &target).into_iter().find(|item| item.id == "ui.findTimeline").unwrap();
crate::context_menu::run_item(&mut h.app, &item, pos2(0.0, 0.0));
assert_eq!(h.app.session.selection, [Sel::Feature { id }]);
assert!(h.app.tree.reveal_feature.is_none(), "{target:?}");
assert_eq!((&h.app.tree.collapsed, &h.app.tree.expanded), (&collapsed, &expanded), "{target:?}");
}
}
#[test]
fn find_in_timeline_opens_the_picked_placements_features_folder_and_survives_reopen() {
let mut h = Harness::new();
let assembly = h.app.run("component.create", json!({"name":"Assembly"})).unwrap();
let component = h.app.run("component.create", json!({"name":"Part"})).unwrap();
@@ -222,7 +251,7 @@ mod tests {
h.app.preferences.timeline_left_browser_collapsed = true;
let undo = h.app.session.undo.len();
for id in [base, hole, fillet] {
find(&mut h.app, id, &world_body);
find_in_timeline(&mut h.app, id, &world_body);
assert_eq!(h.app.tree.reveal_feature.as_ref().unwrap().path, path);
assert!(!h.app.tree.collapsed.contains("c0"));
assert!(!h.app.tree.collapsed.contains(&occurrence_key(&path)));
@@ -238,18 +267,95 @@ mod tests {
}
#[test]
fn browser_feature_body_only_and_stale_targets_keep_their_meaning() {
fn find_in_timeline_from_a_root_body_opens_the_root_features_folder() {
let mut h = Harness::new();
let base = h.app.run("solid.box", json!({"length":10,"width":10,"height":10,"body_name":"Plate"})).unwrap()["feature"].as_u64().unwrap();
h.frames(2);
assert!(
h.call("ui.at", json!({"handle":format!("row:browser-feature:c0:{base}")}))["ok"].as_bool() != Some(true),
"the folder starts closed"
);
let item =
crate::context_menu::items(&h.app, &Target::Body { name: "Plate".into() }).into_iter().find(|item| item.id == "ui.findTimeline").unwrap();
crate::context_menu::run_item(&mut h.app, &item, pos2(0.0, 0.0));
assert!(h.app.tree.expanded.contains("c0/features"));
h.frames(2);
let at = h.call("ui.at", json!({"handle":format!("row:browser-feature:c0:{base}")}));
assert!(at["ok"].as_bool().unwrap_or(false), "{at}");
assert_eq!(h.app.session.selection, [Sel::Feature { id: base }]);
}
#[test]
fn browser_find_from_a_body_or_its_face_reveals_the_body() {
let mut h = Harness::new();
h.app.run("solid.box", json!({"length":10,"width":10,"height":10,"body_name":"Plate"})).unwrap();
h.app.session.selection = vec![Sel::Body { name: "Plate".into() }];
let item = crate::context_menu::items(&h.app, &Target::Viewport).into_iter().find(|item| item.id == "ui.findBrowser").unwrap();
crate::context_menu::run_item(&mut h.app, &item, pos2(0.0, 0.0));
assert_eq!(h.app.tree.reveal.as_deref(), Some("Plate"));
assert!(h.app.tree.reveal_feature.is_none());
let before = h.app.session.selection.clone();
reveal(&mut h.app, u64::MAX, "Plate");
reveal(&mut h.app, 1, "Missing");
assert_eq!(h.app.session.selection, before);
for pick in [Sel::Body { name: "Plate".into() }, Sel::Face { body: "Plate".into(), index: 0, point: solidcraft_engine::geom::Vec3::ZERO }] {
h.app.tree.reveal = None;
h.app.session.selection = vec![pick.clone()];
let item = crate::context_menu::items(&h.app, &Target::Viewport).into_iter().find(|item| item.id == "ui.findBrowser").unwrap();
assert!(item.enabled, "{pick:?}");
crate::context_menu::run_item(&mut h.app, &item, pos2(0.0, 0.0));
assert_eq!(h.app.tree.reveal.as_deref(), Some("Plate"), "{pick:?}");
assert_eq!(h.app.session.selection, [Sel::Body { name: "Plate".into() }], "{pick:?}");
}
}
fn find_in_browser(app: &mut SolveApp, pick: Sel) {
app.session.selection = vec![pick];
let item = crate::context_menu::items(app, &Target::Viewport).into_iter().find(|item| item.id == "ui.findBrowser").unwrap();
crate::context_menu::run_item(app, &item, pos2(0.0, 0.0));
}
fn face(body: &str) -> Sel {
Sel::Face { body: body.into(), index: 0, point: solidcraft_engine::geom::Vec3::ZERO }
}
#[test]
fn browser_find_opens_the_collapsed_rows_above_the_body() {
let mut h = Harness::new();
h.app.run("solid.box", json!({"length":10,"width":10,"height":10,"body_name":"Plate"})).unwrap();
let group = h.app.run("browser.group", json!({"component":0,"folder":"bodies","items":["Plate"]})).unwrap()["group"].as_u64().unwrap();
for key in ["c0".to_string(), "c0/bodies".to_string(), format!("c0/g{group}")] {
h.app.tree.collapsed.insert(key);
}
h.frames(2);
assert!(!drawn_rows().iter().any(|(label, ..)| label == "Plate"), "the body starts hidden");
find_in_browser(&mut h.app, face("Plate"));
h.frames(2);
assert!(drawn_rows().iter().any(|(label, ..)| label == "Plate"), "{:?}", drawn_rows());
assert!(h.app.tree.reveal.is_none(), "the body row was drawn and scrolled to");
assert_eq!(h.app.session.selection, [Sel::Body { name: "Plate".into() }]);
}
#[test]
fn browser_find_reveals_a_body_in_its_own_nested_placement() {
let mut h = Harness::new();
let assembly = h.app.run("component.create", json!({"name":"Assembly"})).unwrap();
let component = h.app.run("component.create", json!({"name":"Part"})).unwrap();
h.app.run("solid.box", json!({"length":40,"width":30,"height":20,"body_name":"Plate"})).unwrap();
let copy = h.app.run("occurrence.copy", json!({"occurrence":assembly["occurrence"],"translate":[70,25,10]})).unwrap();
let first = vec![assembly["occurrence"].as_u64().unwrap(), component["occurrence"].as_u64().unwrap()];
let later = vec![copy["occurrence"].as_u64().unwrap(), component["occurrence"].as_u64().unwrap()];
h.app.run("component.activate", json!({"component":0})).unwrap();
// The first placement's body keeps the definition's name, which every component's first
// placement (the root's too) would also give; a later one has its own world name.
for (path, named_plate) in [(first, true), (later, false)] {
let world_body = h.app.session.occurrence_bodies(&path, false).unwrap()[0].clone();
assert_eq!(world_body == "Plate", named_plate);
h.app.tree.collapsed.insert("c0".into());
for depth in 1..=path.len() {
h.app.tree.collapsed.insert(occurrence_key(&path[..depth]));
}
h.app.tree.collapsed.insert(format!("{}/bodies", occurrence_key(&path)));
find_in_browser(&mut h.app, face(&world_body));
for depth in 1..=path.len() {
assert!(!h.app.tree.collapsed.contains(&occurrence_key(&path[..depth])), "{world_body}: {:?}", &path[..depth]);
}
assert!(!h.app.tree.collapsed.contains(&format!("{}/bodies", occurrence_key(&path))), "{world_body}");
h.frames(2);
assert!(h.app.tree.reveal.is_none(), "{world_body}: the placed body row was drawn and scrolled to");
assert_eq!(h.app.session.selection, [Sel::Body { name: world_body }]);
}
}
#[test]
@@ -274,7 +380,7 @@ mod tests {
let owner = state.body(&name).unwrap().feature;
assert_ne!(owner, base);
h.app.session.selection = vec![Sel::Face { body: name, index: 0, point: solidcraft_engine::geom::Vec3::ZERO }];
for id in ["ui.findBrowser", "ui.findTimeline", "ui.editFeature"] {
for id in ["ui.findTimeline", "ui.editFeature"] {
let item = crate::context_menu::items(&h.app, &Target::Viewport).into_iter().find(|item| item.id == id).unwrap();
assert!(!item.enabled || item.params.as_ref().unwrap()["feature"] == json!(owner), "{id}: {item:?}");
}
+11 -13
View File
@@ -530,8 +530,8 @@ fn viewport_items(app: &SolveApp) -> Vec<Item> {
v.push(act("ui.delete", "Delete", "delete").key("Del"));
v.push(act(if hidden { "ui.show" } else { "ui.hide" }, "Show/Hide", "eye").key("V").with(json!({ "bodies": [face] })));
v.push(Item::sep());
v.push(act("ui.findBrowser", "Find in Browser", "list").with(json!({ "body": face, "feature": feature })).on(feature.is_some()));
v.push(act("ui.findTimeline", "Find in Timeline", "rollback").with(json!({ "feature": feature })).on(feature.is_some()));
v.push(act("ui.findBrowser", "Find in Browser", "list").with(json!({ "body": face })));
v.push(act("ui.findTimeline", "Find in Timeline", "rollback").with(json!({ "feature": feature, "body": face })).on(feature.is_some()));
v.push(Item::sep());
v.push(cmd(app, "solid.press_pull", "Press Pull"));
v.push(cmd(app, "inspect.measure", "Measure"));
@@ -1152,24 +1152,22 @@ pub fn run_item(app: &mut SolveApp, item: &Item, at: Pos2) {
app.pick_save_command(&format!("{name}.step"), &["step", "stp", "igs", "stl", "3mf", "obj"], "file.export", json!({"bodies": bodies}));
}
"ui.findBrowser" => {
if let Some(feature) = id_of(&p, "feature") {
if let Some(body) = p.get("body").and_then(Value::as_str) {
crate::browser::reveal_feature(app, feature, body);
}
return;
}
if let Some(b) = p.get("body").and_then(Value::as_str) {
app.ui.show_browser = true;
app.preferences.timeline_left_browser_collapsed = false;
app.tree.reveal_feature = None;
app.tree.reveal = Some(b.to_string());
crate::browser::reveal_body(app, b);
let _ = app.run("select.set", json!({"items": [{"type": "body", "name": b}]}));
}
}
"ui.findTimeline" => {
let f = id_of(&p, "feature").or_else(|| p.get("body").and_then(Value::as_str).and_then(|b| body_feature(app, b)));
let body = p.get("body").and_then(Value::as_str);
let f = id_of(&p, "feature").or_else(|| body.and_then(|b| body_feature(app, b)));
if let Some(f) = f {
app.ui.show_timeline = true;
crate::timeline_left::reveal_feature(app, f);
// From a face or body, the Browser shows the feature in that body's copy. From a
// sketch, plane or feature row there is no body: that row is the Browser's view.
if let Some(body) = body {
crate::browser::reveal_feature(app, f, body);
}
let _ = app.run("select.set", json!({"items": [{"type": "feature", "id": f}]}));
}
}
+5 -4
View File
@@ -1117,17 +1117,18 @@ fn contribution_picked_faces_open_their_own_feature_after_later_modifiers() {
let pick = Sel::Face { body: "Plate".into(), index, point };
app.session.selection = vec![pick.clone()];
let items = context_menu::items(&app, &Target::Viewport);
for label in ["Edit Feature", "Find in Timeline", "Find in Browser"] {
for label in ["Edit Feature", "Find in Timeline"] {
let item = find(&items, label);
assert!(item.enabled, "{label}, {expected}: {names:?}");
assert_eq!(item.params.as_ref().unwrap()["feature"], json!(expected));
}
act(&mut app, &Target::Viewport, "Find in Timeline");
assert_eq!(app.session.selection, vec![Sel::Feature { id: expected }]);
// The browser lists bodies: a picked face finds its body there, whichever feature made the face.
app.session.selection = vec![pick.clone()];
act(&mut app, &Target::Viewport, "Find in Browser");
assert_eq!(app.session.selection, vec![Sel::Feature { id: expected }]);
assert_eq!(app.tree.reveal_feature.as_ref().unwrap().id, expected);
assert_eq!(app.session.selection, vec![Sel::Body { name: "Plate".into() }]);
assert_eq!(app.tree.reveal.as_deref(), Some("Plate"));
app.session.selection = vec![pick];
act(&mut app, &Target::Viewport, "Edit Feature");
assert_eq!(app.dialog.as_ref().unwrap().editing.unwrap().0, expected);
@@ -1143,7 +1144,7 @@ fn contribution_unresolvable_face_does_not_edit_the_body_creator() {
let items = context_menu::items(&app, &Target::Viewport);
assert!(!find(&items, "Edit Feature").enabled);
assert!(!find(&items, "Find in Timeline").enabled);
assert!(!find(&items, "Find in Browser").enabled);
assert!(find(&items, "Find in Browser").enabled, "the body is still known");
}
#[test]
+36
View File
@@ -662,6 +662,21 @@ pub fn delete_selected_folders(app: &mut SolveApp) -> bool {
true
}
/// Open the folder holding this feature and every folder above it, so its row is shown.
pub fn reveal_feature(app: &mut SolveApp, feature: u64) {
let groups = &app.session.doc.timeline_groups;
let mut current = group_for(groups, feature);
let mut steps = 0usize;
while let Some(id) = current {
app.tree.collapsed.remove(&format!("timeline_group:{id}"));
steps += 1;
if steps > groups.len() {
break;
}
current = groups.iter().find(|group| group.id == id).and_then(|group| group.parent);
}
}
fn group_is_descendant(groups: &[solidcraft_engine::doc::TimelineGroup], group: u64, ancestor: u64) -> bool {
let mut current = groups.iter().find(|candidate| candidate.id == group).and_then(|candidate| candidate.parent);
let mut steps = 0usize;
@@ -1654,6 +1669,27 @@ mod tests {
}
}
#[test]
fn find_in_timeline_opens_the_collapsed_folders_around_the_feature() {
let mut harness = Harness::new();
harness.app.preferences.timeline_left = true;
harness.app.run("solid.box", json!({"length": 20, "width": 15, "height": 10, "name": "Base", "body_name": "Plate"})).unwrap();
let inner = harness.app.run("timeline.group", json!({"name": "Inner", "features": ["Base"]})).unwrap()["group"].as_u64().unwrap();
let outer = harness.app.run("timeline.group", json!({"name": "Outer", "groups": [inner]})).unwrap()["group"].as_u64().unwrap();
harness.app.tree.collapsed.insert(format!("timeline_group:{inner}"));
harness.app.tree.collapsed.insert(format!("timeline_group:{outer}"));
harness.frames(4);
assert!(handle_at("timeline:Base").is_none(), "the feature starts hidden in its folders");
let menu = crate::context_menu::items(&harness.app, &crate::context_menu::Target::Body { name: "Plate".into() });
let item = menu.into_iter().find(|item| item.id == "ui.findTimeline").unwrap();
crate::context_menu::run_item(&mut harness.app, &item, pos2(0.0, 0.0));
harness.frames(4);
assert!(handle_at("timeline:Base").is_some(), "Find in Timeline must open the folders holding the feature");
let base = harness.app.session.doc.find_feature("Base").unwrap().id;
assert_eq!(harness.app.session.selection, vec![solidcraft_engine::Sel::Feature { id: base }]);
}
#[test]
fn rollback_bar_above_last_feature_can_be_dragged_to_the_end() {
let mut harness = Harness::new();
+5 -3
View File
@@ -1,7 +1,9 @@
# Picked-face navigation
A face selected in the viewport uses its persistent creating feature for **Edit Feature**, **Find in Timeline** and **Find in Browser**. Later holes, blends and trims do not redirect the action to the feature that originally created the whole body.
A face selected in the viewport uses its persistent creating feature for **Edit Feature** and **Find in Timeline**. Later holes, blends and trims do not redirect the action to the feature that originally created the whole body.
The Browser contains a **Features** folder for each native component with non-sketch history. Sketches appear only in **Sketches**, and a sketch-only component has no Features folder. Find in Browser opens the ancestors and the Features folder in the selected body's actual occurrence, selects the creating feature and scrolls its row into view. Double-clicking the row opens its editor. This leaves the timeline layout, active component and history marker unchanged until an edit is requested.
**Find in Browser** finds the body, whether the menu was opened on a face, an edge or the body itself: it opens the body's folders, selects the body and scrolls its row into view.
Selecting a whole body keeps the existing body navigation. A face with an unavailable creator does not fall back to the body's base feature. Imported source identifiers do not acquire an unrelated editable native history.
**Find in Timeline** selects the feature and opens any collapsed history folders around it. It also opens the **Features** folder that the Browser keeps for each native component with history, in the selected body's actual occurrence, and scrolls the feature's row there into view. Started from a sketch, construction plane or feature row in the Browser, there is no body to tell which copy of a component was meant, so the Browser is left as it is. Sketches appear only in **Sketches**, and a sketch-only component has no Features folder. Double-clicking the row opens its editor. This leaves the timeline layout, active component and history marker unchanged until an edit is requested.
A face with an unavailable creator does not fall back to the body's base feature. Imported source identifiers do not acquire an unrelated editable native history.