Preserve nested architecture during authoring and distinguish allocation summaries

This commit is contained in:
2026-09-05 17:58:46 +03:00
parent c20a2073d7
commit c7101b970a
13 changed files with 2719 additions and 1653 deletions
+17
View File
@@ -599,6 +599,23 @@ fn inspector(app: &App) -> View<'_, Message> {
.width(Fill),
);
}
if !p
.relations
.values()
.any(|r| r.kind() == RelationKind::Allocation && r.target() == e.id)
&& let Some(performer) = oa_core::validation::allocation_summary(p, e.id)
{
body = body.push(label(
"Allocation summary: all leaf activities or functions belong to the same performer. The parent has no direct allocation.",
));
body = body.push(
action(
&format!("Leaf performer: {}", short(p.named(performer), 24)),
Message::Select(performer),
)
.width(Fill),
);
}
if e.kind() == Kind::Port {
body = body.push(label(
"Shown automatically on the boundary of its visible owner.",