Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style rows for completed steps as greyed out #4397

Merged
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,10 @@ object ExploreStyles:
val SequencesPanel = Css("explore-sequences-panel")
val SequencesPanelError = Css("explore-sequences-panel-error")
val CellHideBorder = Css("explore-table-cell-hide-border")
val SequenceRowDone = Css("explore-sequence-row-done")
val SequenceBracketCell = Css("explore-sequence-bracket-cell")
val SequenceTileTitle = Css("explore-sequence-tile-title")
val SequenceTileTitleItem = Css("explore-sequence-tile-title-item")
val VisitSection = Css("explore-visit-section")

val ButtonCopy: Css = Css("explore-button-copy")
val ButtonsUndo: Css = Css("explore-buttons-undo")
Expand Down
5 changes: 5 additions & 0 deletions common/src/main/webapp/sass/explore.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1337,6 +1337,11 @@ $search-preview-margin: 5px;
}
}
}

.p-datatable-tbody > tr.explore-sequence-row-done {
color: var(--disabled-row-color);
background: var(--disabled-row-background);
}
}

// -------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ private sealed trait GmosSequenceTableBuilder[S, D: Eq] extends SequenceRowBuild
.map: s =>
TagMod(
s match
case SequenceRow.Executed.ExecutedStep(_, _) => SequenceStyles.RowHasExtra
case SequenceRow.Executed.ExecutedStep(_, _) =>
SequenceStyles.RowHasExtra |+| ExploreStyles.SequenceRowDone
case _ => TagMod.empty,
if (LinkingInfo.developmentMode)
s.id.toOption.map(^.title := _.toString).whenDefined
Expand Down
2 changes: 1 addition & 1 deletion project/Versions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ object Versions {
val lucumaSchemas = "0.110.1"
val lucumaOdbSchema = "0.17.2"
val lucumaSSO = "0.7.1"
val lucumaUI = "0.124.6"
val lucumaUI = "0.124.7"
val monocle = "3.3.0"
val mouse = "1.3.2"
val mUnit = "1.0.3"
Expand Down
Loading