Integrate release recovery, semantic review, coverage and Windows packaging
This commit is contained in:
@@ -99,6 +99,7 @@ pub fn view(app: &App) -> View<'_, Message> {
|
||||
.spacing(8);
|
||||
let mut task_nav = row![].spacing(2);
|
||||
for (page, name) in [
|
||||
(Page::Home, "Home"),
|
||||
(Page::Diagram, "Architecture"),
|
||||
(Page::Catalog, "Model explorer"),
|
||||
(Page::Behavior, "Behavior & scenarios"),
|
||||
@@ -119,7 +120,7 @@ pub fn view(app: &App) -> View<'_, Message> {
|
||||
}),
|
||||
);
|
||||
}
|
||||
let task_nav = container(task_nav)
|
||||
let task_nav = container(task_nav.wrap())
|
||||
.width(Fill)
|
||||
.padding([4, 14])
|
||||
.style(style::panel);
|
||||
@@ -204,6 +205,16 @@ pub fn view(app: &App) -> View<'_, Message> {
|
||||
.height(Fill)
|
||||
.style(style::panel);
|
||||
let main = match app.page {
|
||||
Page::Home => crate::home::view(
|
||||
&app.home,
|
||||
(app.dirty()
|
||||
|| !p.elements.is_empty()
|
||||
|| app.path.is_some()
|
||||
|| app.hosted.session.is_some())
|
||||
.then_some((p.name.as_str(), app.dirty())),
|
||||
&app.recovery,
|
||||
)
|
||||
.map(Message::Home),
|
||||
Page::Diagram => diagram(app),
|
||||
Page::Catalog => crate::explorer_view::catalog(app),
|
||||
Page::Data => data_catalog(app),
|
||||
@@ -213,8 +224,12 @@ pub fn view(app: &App) -> View<'_, Message> {
|
||||
Page::Validation => checks(app),
|
||||
Page::Guide => crate::guide::view(&app.guide),
|
||||
};
|
||||
let mut body = row![sidebar, container(main).width(Fill).height(Fill)].height(Fill);
|
||||
if !matches!(app.page, Page::Text | Page::Guide) {
|
||||
let mut body = if app.page == Page::Home {
|
||||
row![container(main).width(Fill).height(Fill)].height(Fill)
|
||||
} else {
|
||||
row![sidebar, container(main).width(Fill).height(Fill)].height(Fill)
|
||||
};
|
||||
if !matches!(app.page, Page::Home | Page::Text | Page::Guide) {
|
||||
body = body.push(inspector(app));
|
||||
}
|
||||
let footer = container(
|
||||
|
||||
Reference in New Issue
Block a user