Add exact Process selection and atomic column-slot group reorder
Preserve the full-desktop-1 captured source. Qualified previews inspect their exact subject read-only; group movement preserves source order and other columns. Native acceptance and strict-lint payload-size corrections follow separately.
This commit is contained in:
@@ -689,6 +689,34 @@ fn diagram(app: &App) -> View<'_, Message> {
|
||||
|
||||
fn inspector(app: &App) -> View<'_, Message> {
|
||||
let p = app.project();
|
||||
if let Some(target) = app.process_preview_primary() {
|
||||
let endpoint = match target {
|
||||
crate::diagram_usage::Target::ProcessOccurrence(endpoint) => endpoint.clone(),
|
||||
crate::diagram_usage::Target::ProcessPreviewLink { source, .. } => source.clone(),
|
||||
_ => unreachable!(),
|
||||
};
|
||||
let context = app.topology_context().unwrap();
|
||||
return container(
|
||||
column![
|
||||
text(p.named(app.selected)).size(17),
|
||||
label("Reused contents · read-only here"),
|
||||
label("Open the referenced definition to edit this contribution or connection."),
|
||||
action(
|
||||
"Open referenced definition",
|
||||
Message::TopologyCanvas(crate::behavior::topology::CanvasEvent::OpenQualified(
|
||||
context, endpoint
|
||||
))
|
||||
),
|
||||
crate::model_menu::trigger(app),
|
||||
]
|
||||
.spacing(12),
|
||||
)
|
||||
.padding(14)
|
||||
.width(320)
|
||||
.height(Fill)
|
||||
.style(style::panel)
|
||||
.into();
|
||||
}
|
||||
if app.source_dirty() {
|
||||
let mut notice = column![
|
||||
text("Source drafts pending").size(17),
|
||||
|
||||
Reference in New Issue
Block a user