Preserve nested architecture during authoring and distinguish allocation summaries
This commit is contained in:
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user