Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

feat: highlight rows in analysis with the review flag #1186

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions app/analysis/index/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,12 @@
{{#each reports as |report|}}
{{! template-lint-disable}}
<tr
class="{{if
(includes report.id this.selectedReportIds)
'selected'
class="{{concat
(if
(includes report.id this.selectedReportIds)
'selected'
)
(if report.review ' needs-review')
}}
{{if
(or this.canBill (can 'edit report' report))
Expand Down Expand Up @@ -476,4 +479,4 @@
</div>
{{/if}}
</PagePermission>
{{/if}}
{{/if}}
6 changes: 6 additions & 0 deletions app/styles/analysis.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@
.table--analysis tr.selected {
background-color: lighten($color-primary, 20%) !important;
}
.table--analysis tr.needs-review {
background-color: lighten($color-warning, 30%) !important;
}
.table--analysis tr.needs-review.selected {
background-color: #c4afed !important;
}

.table--analysis tr.selected + tr td,
.table--analysis tr.selected td {
Expand Down
Loading