-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Action Request updates + misc fixes (#2818)
* fix web manifest format error * fix setting optional dependencies * rework dependency actions to be nested * fix styling * fix styles * combine action requests into same component * only display actions header if they exist * fix storing polyfill dependencies * fix styling and button propagation * fixes for setting polyfill dependencies * revert to test * revert required deps setting logic * add logs and adjust logic * test * fix deps logic when changing config * remove logs; deps working as expected
- Loading branch information
Showing
14 changed files
with
326 additions
and
137 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
83 changes: 40 additions & 43 deletions
83
...utes/app-show/components/app-show-action-requests/app-show-action-requests.component.html
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,45 +1,42 @@ | ||
<ng-container *ngIf="actionRequests.critical.length"> | ||
<ion-item-divider>Required Actions</ion-item-divider> | ||
<ion-item | ||
*ngFor="let request of actionRequests.critical" | ||
button | ||
(click)="handleAction(request)" | ||
<ng-container *ngIf="actionRequests[pkgId]?.length"> | ||
<ion-item-divider | ||
*ngIf="!dep" | ||
style="--background: unset; z-index: 11; position: relative" | ||
> | ||
<ion-icon slot="start" name="warning-outline" color="warning"></ion-icon> | ||
<ion-label> | ||
<h2 class="highlighted">{{ request.actionName }}</h2> | ||
<p *ngIf="request.dependency" class="dependency"> | ||
<span class="light">Service:</span> | ||
<img [src]="request.dependency.icon" alt="" /> | ||
{{ request.dependency.title }} | ||
</p> | ||
<p> | ||
<span class="light">Reason:</span> | ||
{{ request.reason || 'no reason provided' }} | ||
</p> | ||
</ion-label> | ||
</ion-item> | ||
</ng-container> | ||
|
||
<ng-container *ngIf="actionRequests.important.length"> | ||
<ion-item-divider>Requested Actions</ion-item-divider> | ||
<ion-item | ||
*ngFor="let request of actionRequests.important" | ||
button | ||
(click)="handleAction(request)" | ||
> | ||
<ion-icon slot="start" name="play-outline" color="warning"></ion-icon> | ||
<ion-label> | ||
<h2 class="highlighted">{{ request.actionName }}</h2> | ||
<p *ngIf="request.dependency" class="dependency"> | ||
<span class="light">Service:</span> | ||
<img [src]="request.dependency.icon" alt="" /> | ||
{{ request.dependency.title }} | ||
</p> | ||
<p> | ||
<span class="light">Reason:</span> | ||
{{ request.reason || 'no reason provided' }} | ||
</p> | ||
</ion-label> | ||
</ion-item> | ||
Action Requests | ||
</ion-item-divider> | ||
<div class="indent"> | ||
<ion-item | ||
class="line" | ||
lines="none" | ||
*ngFor="let request of actionRequests[pkgId]" | ||
button | ||
(click)="handleAction(request, $event)" | ||
> | ||
<ion-icon | ||
slot="start" | ||
[name]=" | ||
request.severity === 'critical' ? 'warning-outline' : 'play-outline' | ||
" | ||
[color]="request.severity === 'critical' ? 'warning' : 'dark'" | ||
></ion-icon> | ||
<ion-label> | ||
<h2 class="highlighted">{{ request.actionName }}</h2> | ||
<p> | ||
{{ request.reason || 'no reason provided' }} | | ||
<span | ||
class="severity" | ||
[ngStyle]="{ | ||
color: | ||
request.severity === 'critical' | ||
? 'var(--ion-color-warning)' | ||
: 'var(--ion-color-dark)' | ||
}" | ||
> | ||
{{ request.severity === 'critical' ? 'Required' : 'Requested' }} | ||
</span> | ||
</p> | ||
</ion-label> | ||
</ion-item> | ||
</div> | ||
</ng-container> |
37 changes: 30 additions & 7 deletions
37
...utes/app-show/components/app-show-action-requests/app-show-action-requests.component.scss
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,16 +1,39 @@ | ||
.light { | ||
color: var(--ion-color-dark); | ||
ion-icon { | ||
margin-right: 32px; | ||
} | ||
|
||
.highlighted { | ||
color: var(--ion-color-dark); | ||
font-weight: bold; | ||
} | ||
|
||
.dependency { | ||
display: inline-flex; | ||
img { | ||
max-width: 16px; | ||
margin: 0 2px 0 5px; | ||
.severity { | ||
font-variant-caps: all-small-caps; | ||
font-weight: bold; | ||
letter-spacing: 0.2px; | ||
font-size: 16px; | ||
} | ||
|
||
.line { | ||
|
||
&:after { | ||
content: ''; | ||
display: block; | ||
border-left: 1px solid var(--border-color); | ||
border-bottom: 1px solid var(--border-color); | ||
height: 100%; | ||
width: 24px; | ||
position: absolute; | ||
left: -20px; | ||
top: -33px; | ||
} | ||
} | ||
|
||
.indent { | ||
margin-left: 41px | ||
} | ||
|
||
:host ::ng-deep ion-item { | ||
display: table-row; | ||
width: fit-content; | ||
} |
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.