-
Notifications
You must be signed in to change notification settings - Fork 128
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 #6877 from davidwatkins73/waltz-6895-flow-details-…
…enhance flow details enhance
- Loading branch information
Showing
30 changed files
with
1,105 additions
and
779 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,9 @@ | |
</span> | ||
{/if} | ||
{/if} | ||
|
||
<style> | ||
button { | ||
font-size: inherit; | ||
} | ||
</style> |
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
75 changes: 75 additions & 0 deletions
75
waltz-ng/client/data-flow/components/svelte/flow-detail-tab/DataTypeMiniTable.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,75 @@ | ||
<script context="module"> | ||
import {writable} from "svelte/store"; | ||
let hideRatings = writable(true); | ||
</script> | ||
|
||
<script> | ||
import _ from "lodash"; | ||
import EntityLabel from "../../../../common/svelte/EntityLabel.svelte"; | ||
import Toggle from "../../../../common/svelte/Toggle.svelte"; | ||
export let decorators = []; | ||
export let flowClassifications = [] | ||
$: flowClassificationsByCode = _.keyBy(flowClassifications, d => d.code); | ||
$: hasRatings = !_.isEmpty(flowClassifications) | ||
$: showRatings = !$hideRatings && hasRatings; | ||
</script> | ||
|
||
<table class=""> | ||
<tbody class="small"> | ||
{#each _.orderBy(decorators, d => d.decoratorEntity.name) as type} | ||
<tr> | ||
<td> | ||
<div class="rating-icon" | ||
style={`background-color: ${flowClassificationsByCode[type.rating]?.color}`}> | ||
</div> | ||
<EntityLabel ref={type.decoratorEntity} | ||
showIcon={false}> | ||
</EntityLabel> | ||
</td> | ||
{#if showRatings} | ||
<td> | ||
{_.get(flowClassificationsByCode, [type.rating, "name"], "-")} | ||
</td> | ||
{/if} | ||
</tr> | ||
{/each} | ||
</tbody> | ||
</table> | ||
|
||
{#if hasRatings} | ||
<div class="smaller"> | ||
<Toggle state={showRatings} | ||
labelOn="Hide Ratings" | ||
onToggle={() => $hideRatings = !$hideRatings} | ||
labelOff="Show Ratings"/> | ||
</div> | ||
{/if} | ||
|
||
|
||
|
||
<style> | ||
.rating-icon { | ||
display: inline-block; | ||
height: 1em; | ||
width: 1em; | ||
border:1px solid #ccc; | ||
border-radius: 2px; | ||
} | ||
table { | ||
width: 100%; | ||
} | ||
table td { | ||
padding-bottom: 0.2em; | ||
padding-right: 0.6em; | ||
border-bottom: 1px solid #eee; | ||
vertical-align: top; | ||
} | ||
</style> |
40 changes: 0 additions & 40 deletions
40
waltz-ng/client/data-flow/components/svelte/flow-detail-tab/DataTypeTooltipContent.svelte
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.