-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 #11820 from hashicorp/f-ui/alloc-legend
feat: add links to legend items in `allocation-summary`
- Loading branch information
Showing
9 changed files
with
173 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:improvement | ||
ui: add links to legend items in allocation-summary | ||
``` |
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
14 changes: 10 additions & 4 deletions
14
ui/app/templates/components/job-page/parts/summary-legend-item.hbs
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 |
---|---|---|
@@ -1,12 +1,18 @@ | ||
<div class="legend-item"> | ||
<span class="color-swatch {{if @datum.className @datum.className (concat "swatch-" @index)}}" /> | ||
<span | ||
class="color-swatch {{if @datum.className @datum.className (concat "swatch-" @index)}}" | ||
></span> | ||
<span class="text"> | ||
<span class="value" data-test-legend-value="{{@datum.className}}">{{@datum.value}}</span> | ||
<span class="label">{{@datum.label}}</span> | ||
<span class="value" data-test-legend-value="{{@datum.className}}"> | ||
{{@datum.value}} | ||
</span> | ||
<span> | ||
{{@datum.label}} | ||
</span> | ||
</span> | ||
{{#if @datum.help}} | ||
<span class="tooltip multiline" role="tooltip" aria-label="{{@datum.help}}"> | ||
{{x-icon "info-circle-outline" class="is-faded"}} | ||
</span> | ||
{{/if}} | ||
</div> | ||
</div> |
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