-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6685 from davidwatkins73/waltz-6677-apps-list
All applications list view
- Loading branch information
Showing
25 changed files
with
210 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
waltz-ng/client/applications/components/app-list-page-header/AppListPageHeader.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<script> | ||
import ViewLink from "../../../common/svelte/ViewLink.svelte"; | ||
import PageHeader from "../../../common/svelte/PageHeader.svelte"; | ||
</script> | ||
|
||
<PageHeader icon="cubes" | ||
name="Applications" | ||
small="All"> | ||
<div slot="breadcrumbs"> | ||
<ol class="waltz-breadcrumbs"> | ||
<li> | ||
<ViewLink state="main">Home</ViewLink> | ||
</li> | ||
<li> | ||
<span>Application</span> | ||
</li> | ||
</ol> | ||
</div> | ||
</PageHeader> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<div ng-if="$ctrl.parentEntityRef"> | ||
<waltz-svelte-component component="$ctrl.AppListPageHeader"> | ||
</waltz-svelte-component> | ||
</div> | ||
|
||
<div class="waltz-page-summary waltz-page-summary-attach"> | ||
<div class="help-block">This page contains details about all active applications</div> | ||
|
||
|
||
<div class="row row-mini-gutters"> | ||
<div class="col-sm-4"> | ||
<waltz-apps-by-investment-pie applications="$ctrl.apps" | ||
waltz-jump-to="apps-section" | ||
class="clickable" | ||
size="70"> | ||
</waltz-apps-by-investment-pie> | ||
</div> | ||
|
||
<div class="col-sm-4"> | ||
<waltz-apps-by-lifecycle-phase-pie applications="$ctrl.apps" | ||
waltz-jump-to="apps-section" | ||
class="clickable" | ||
size="70"> | ||
</waltz-apps-by-lifecycle-phase-pie> | ||
</div> | ||
|
||
<div class="col-sm-4"> | ||
<waltz-complexity-basic-info-tile parent-entity-ref="$ctrl.parentEntityRef" | ||
filters="$ctrl.filters"> | ||
</waltz-complexity-basic-info-tile> | ||
</div> | ||
|
||
</div> | ||
|
||
<div class="row row-mini-gutters"> | ||
<div class="col-sm-4"> | ||
<waltz-server-basic-info-tile parent-entity-ref="$ctrl.parentEntityRef" | ||
filters="$ctrl.filters"> | ||
</waltz-server-basic-info-tile> | ||
</div> | ||
<div class="col-sm-8"> | ||
<waltz-assessment-info-tile parent-entity-ref="$ctrl.parentEntityRef" | ||
filters="$ctrl.filters"> | ||
</waltz-assessment-info-tile> | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
</div> | ||
<!-- Non visual control to watch for filter changes --> | ||
<waltz-filter-change-watcher on-filters-changed="$ctrl.filtersChanged"> | ||
</waltz-filter-change-watcher> | ||
|
||
|
||
<br> | ||
|
||
<waltz-dynamic-sections-view ng-if="$ctrl.parentEntityRef" | ||
parent-entity-ref="$ctrl.parentEntityRef" | ||
filters="$ctrl.filters"> | ||
</waltz-dynamic-sections-view> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import template from "./app-list.html"; | ||
import AppListPageHeader from "../../components/app-list-page-header/AppListPageHeader.svelte"; | ||
import {showGridSelector} from "../../../report-grid/components/svelte/report-grid-ui-service"; | ||
import namedSettings from "../../../system/named-settings"; | ||
import {CORE_API} from "../../../common/services/core-api-utils"; | ||
import {mkSelectionOptions} from "../../../common/selector-utils"; | ||
import {hierarchyQueryScope} from "../../../common/services/enums/hierarchy-query-scope"; | ||
import {entityLifecycleStatus} from "../../../common/services/enums/entity-lifecycle-status"; | ||
|
||
|
||
const initialState = { | ||
AppListPageHeader, | ||
parentEntityRef: { kind: "ALL", id: 1}, | ||
apps: [] | ||
}; | ||
|
||
|
||
function controller(serviceBroker) { | ||
const vm = Object.assign(this, initialState); | ||
|
||
const selector = mkSelectionOptions( | ||
vm.parentEntityRef, | ||
hierarchyQueryScope.CHILDREN.key, | ||
[entityLifecycleStatus.ACTIVE.key], | ||
vm.filters); | ||
|
||
serviceBroker | ||
.loadViewData( | ||
CORE_API.ApplicationStore.findBySelector, | ||
[ selector] ) | ||
.then(r => vm.apps = r.data); | ||
|
||
vm.filtersChanged = (filters) => { | ||
vm.filters = filters; | ||
}; | ||
} | ||
|
||
|
||
|
||
controller.$inject = [ | ||
"ServiceBroker" | ||
]; | ||
|
||
|
||
export default { | ||
template, | ||
controller, | ||
controllerAs: "$ctrl" | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.