-
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 #140 in WALTZ/waltz from WALTZ/waltz-jws:CTCTOWALT…
…Z-2451-report-grids-support-app-groups-5962 to db-feature/waltz-5962-report-grids-app-group-columns * commit '3d3abdf08dabaf9de4e0f2fa2a75b1144564e75f': Removing comment Pull out method for determining query App group columns for CIs Extractor supports app group columns Org unit select Allow addition of app group columns to grid Report grids can display group involvement
- Loading branch information
Showing
8 changed files
with
201 additions
and
4 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
56 changes: 56 additions & 0 deletions
56
waltz-ng/client/report-grid/components/svelte/pickers/AppGroupPicker.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,56 @@ | ||
<script> | ||
import Icon from "../../../../common/svelte/Icon.svelte"; | ||
import EntitySearchSelector from "../../../../common/svelte/EntitySearchSelector.svelte"; | ||
export let onSelect = () => console.log("Selecting involvement kind"); | ||
export let selectionFilter = () => true; | ||
function onSelectGroup(e) { | ||
if (e.detail == null) { | ||
return; | ||
} | ||
const column = { | ||
columnEntityId: e.detail.id, | ||
columnEntityKind: e.detail.kind, | ||
entityFieldReference: null, | ||
columnName: e.detail.name, | ||
displayName: null | ||
} | ||
onSelect(column); | ||
} | ||
$: canBeAdded = (d) => { | ||
if (d === null) { | ||
return true; | ||
} else { | ||
const column = { | ||
columnEntityId: d.id, | ||
columnEntityKind: d.kind, | ||
entityFieldReference: null, | ||
columnName: d.name, | ||
displayName: null | ||
} | ||
return selectionFilter(column); | ||
} | ||
} | ||
</script> | ||
|
||
<div class="help-block small"> | ||
<Icon name="info-circle"/> | ||
Select an app group using the search below. | ||
</div> | ||
<br> | ||
<EntitySearchSelector on:select={onSelectGroup} | ||
placeholder="Search for app group" | ||
entityKinds={['APP_GROUP']} | ||
selectionFilter={canBeAdded}> | ||
</EntitySearchSelector> |
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