-
Notifications
You must be signed in to change notification settings - Fork 4
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 #1064 from gemini-hlsw/unify-tables
Unify sequence table logic
- Loading branch information
Showing
11 changed files
with
366 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) 2016-2023 Association of Universities for Research in Astronomy, Inc. (AURA) | ||
// For license information see LICENSE or https://opensource.org/licenses/BSD-3-Clause | ||
|
||
package lucuma.ui | ||
|
||
import lucuma.react.fa.* | ||
|
||
import scala.scalajs.js | ||
import scala.scalajs.js.annotation.* | ||
|
||
object LucumaIcons: | ||
@js.native | ||
@JSImport("@fortawesome/pro-regular-svg-icons", "faCircle") | ||
private val faCircle: FAIcon = js.native | ||
|
||
FontAwesome.library.add( | ||
faCircle | ||
) | ||
|
||
inline def Circle = FontAwesomeIcon(faCircle) |
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,16 @@ | ||
// Copyright (c) 2016-2023 Association of Universities for Research in Astronomy, Inc. (AURA) | ||
// For license information see LICENSE or https://opensource.org/licenses/BSD-3-Clause | ||
|
||
package lucuma.ui.react | ||
|
||
import cats.Monoid | ||
import japgolly.scalajs.react.React | ||
import japgolly.scalajs.react.vdom.html_<^.* | ||
|
||
given Monoid[VdomNode] = new Monoid[VdomNode]: | ||
val empty: VdomNode = EmptyVdom | ||
def combine(x: VdomNode, y: VdomNode): VdomNode = React.Fragment(x, y) | ||
|
||
given Monoid[TagMod] = new Monoid[TagMod]: | ||
val empty: TagMod = TagMod.empty | ||
def combine(x: TagMod, y: TagMod): TagMod = TagMod(x, y) |
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
6 changes: 6 additions & 0 deletions
6
modules/ui/src/main/scala/lucuma/ui/sequence/SequenceIndexedRow.scala
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,6 @@ | ||
// Copyright (c) 2016-2023 Association of Universities for Research in Astronomy, Inc. (AURA) | ||
// For license information see LICENSE or https://opensource.org/licenses/BSD-3-Clause | ||
|
||
package lucuma.ui.sequence | ||
|
||
case class SequenceIndexedRow[+D](step: SequenceRow[D], index: StepIndex) |
Oops, something went wrong.