Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cquiroz committed Aug 16, 2024
1 parent d08d6e8 commit c44758c
Show file tree
Hide file tree
Showing 20 changed files with 39 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import japgolly.scalajs.react.vdom.html_<^.*
import lucuma.core.model.ObsAttachment as ObsAtt
import lucuma.core.model.Program
import lucuma.core.util.Enumerated
import lucuma.core.util.NewType
import lucuma.core.util.Timestamp
import lucuma.react.common.ReactFnProps
import lucuma.react.common.style.Css
Expand All @@ -58,7 +59,6 @@ import org.scalajs.dom.File as DomFile
import org.typelevel.log4cats.Logger

import scala.collection.immutable.SortedSet
import lucuma.core.util.NewType

object ObsAttachmentsTableTileState extends NewType[Action]:
def apply(): ObsAttachmentsTableTileState = ObsAttachmentsTableTileState(Action.None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

package explore.components

import crystal.react.View
import cats.syntax.all.*
import crystal.react.View
import explore.components.ui.ExploreStyles
import japgolly.scalajs.react.*
import japgolly.scalajs.react.vdom.html_<^.*
import lucuma.react.common.ReactFnProps
import lucuma.react.table.ColumnId
import lucuma.react.table.Table
import lucuma.ui.table.ColumnSelector
import lucuma.react.table.ColumnId

case class ColumnSelectorState[A, B](
table: Option[Table[A, B]] = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,33 @@ import crystal.react.*
import crystal.react.given
import crystal.react.hooks.*
import explore.*
import explore.components.HelpIcon
import explore.components.ui.ExploreStyles
import explore.model.AppContext
import explore.model.Execution
import explore.model.Observation
import explore.model.reusability.given
import explore.syntax.ui.*
import japgolly.scalajs.react.*
import japgolly.scalajs.react.vdom.html_<^.*
import lucuma.core.enums.ObserveClass
import lucuma.core.math.SignalToNoise
import lucuma.core.model.Program
import lucuma.core.model.Target
import lucuma.core.model.sequence.InstrumentExecutionConfig
import lucuma.core.util.TimeSpan
import lucuma.react.common.ReactFnProps
import lucuma.react.primereact.Message
import lucuma.refined.*
import lucuma.schemas.model.ExecutionVisits
import lucuma.schemas.odb.SequenceQueriesGQL.*
import lucuma.schemas.odb.input.*
import lucuma.ui.components.TimeSpanView
import lucuma.ui.syntax.all.*
import lucuma.ui.syntax.all.given
import queries.common.ObsQueriesGQL
import queries.common.TargetQueriesGQL
import queries.common.VisitQueriesGQL.*
import explore.model.Execution
import explore.syntax.ui.*
import lucuma.core.util.TimeSpan

import explore.components.HelpIcon
import lucuma.ui.components.TimeSpanView
import lucuma.refined.*

case class GeneratedSequenceBody(
programId: Program.Id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import crystal.react.*
import explore.Icons
import explore.common.UserPreferencesQueries
import explore.common.UserPreferencesQueries.TableStore
import explore.components.ui.ExploreStyles
import explore.components.ColumnSelectorState
import explore.components.ui.ExploreStyles
import explore.model.AppContext
import explore.model.ConstraintGroup
import explore.model.ConstraintGroupList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ import lucuma.ui.components.SolarProgress
import lucuma.ui.reusability.given
import lucuma.ui.syntax.all.given
import lucuma.ui.syntax.pot.*
import monocle.Focus

import scala.collection.immutable.SortedSet
import monocle.Focus

case class FinderChartsTileState(chartSelector: ChartSelector, selected: Option[ObsAtt.Id])

Expand Down
2 changes: 1 addition & 1 deletion explore/src/main/scala/explore/itc/ItcPanelTile.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import japgolly.scalajs.react.vdom.html_<^.*
import lucuma.core.model.User
import lucuma.react.common.ReactFnProps
import lucuma.ui.syntax.all.given
import monocle.Lens
import monocle.Focus
import monocle.Lens

case class ItcPanelTileState(
selectedTarget: Option[ItcTarget] = None
Expand Down
2 changes: 1 addition & 1 deletion explore/src/main/scala/explore/notes/NotesTile.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import explore.components.Tile
import explore.components.ui.ExploreStyles
import explore.model.ObsTabTilesIds
import explore.model.Observation
import explore.model.enums.TileSizeState
import japgolly.scalajs.react.*
import japgolly.scalajs.react.vdom.html_<^.*
import lucuma.core.util.NewType
Expand All @@ -27,7 +28,6 @@ import lucuma.ui.primereact.*
import lucuma.ui.primereact.given
import monocle.Focus
import monocle.Lens
import explore.model.enums.TileSizeState

object NotesTile:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import crystal.react.syntax.pot.given
import explore.Icons
import explore.common.UserPreferencesQueries
import explore.common.UserPreferencesQueries.TableStore
import explore.components.ColumnSelectorState
import explore.components.ui.ExploreStyles
import explore.model.AppContext
import explore.model.Asterism
Expand Down Expand Up @@ -58,7 +59,6 @@ import queries.schemas.odb.ObsQueries.ObservationList

import java.time.Instant
import java.util.UUID
import explore.components.ColumnSelectorState

final case class ObsSummaryTable(
userId: Option[User.Id],
Expand Down
2 changes: 1 addition & 1 deletion explore/src/main/scala/explore/proposal/ProgramUsers.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ import japgolly.scalajs.react.vdom.html_<^.*
import lucuma.core.enums.InvitationStatus
import lucuma.core.model.Program
import lucuma.core.util.Enumerated
import lucuma.core.util.NewType
import lucuma.react.common.ReactFnProps
import lucuma.react.primereact.Button
import lucuma.react.primereact.OverlayPanelRef
import lucuma.ui.primereact.*
import lucuma.ui.syntax.all.given
import org.typelevel.log4cats.Logger
import lucuma.core.util.NewType

enum CreateInviteProcess(private val tag: String) derives Enumerated:
case Idle extends CreateInviteProcess("idle")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ import explore.model.Proposal
import explore.model.ProposalType
import explore.model.ProposalType.*
import explore.model.display.given
import explore.model.reusability.given
import explore.model.enums.TileSizeState
import explore.model.enums.Visible
import explore.model.reusability.given
import explore.syntax.ui.*
import explore.undo.*
import japgolly.scalajs.react.*
Expand Down Expand Up @@ -62,7 +63,6 @@ import lucuma.ui.syntax.all.given
import lucuma.ui.syntax.pot.*
import org.typelevel.log4cats.Logger
import spire.std.any.*
import explore.model.enums.TileSizeState

case class ProposalDetailsBody(
proposal: View[Proposal],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ import crystal.react.hooks.*
import crystal.react.reuse.*
import explore.*
import explore.common.TimingWindowsQueries
import explore.components.ColumnSelectorInTitle
import explore.components.ColumnSelectorState
import explore.components.FocusedStatus
import explore.components.Tile
import explore.components.TileController
import explore.components.ColumnSelectorState
import explore.constraints.ConstraintsPanel
import explore.constraints.ConstraintsSummaryTableBody
import explore.data.KeyedIndexedList
Expand Down Expand Up @@ -53,7 +54,6 @@ import monocle.Iso

import scala.collection.immutable.SortedSet
import scala.scalajs.LinkingInfo
import explore.components.ColumnSelectorInTitle

case class ConstraintsTabContents(
userId: Option[User.Id],
Expand Down
2 changes: 1 addition & 1 deletion explore/src/main/scala/explore/tabs/FinderChartsTile.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import explore.components.Tile
import explore.components.ui.ExploreStyles
import explore.findercharts.ChartSelector
import explore.findercharts.FinderChartsBody
import explore.findercharts.FinderChartsTitle
import explore.findercharts.FinderChartsTileState
import explore.findercharts.FinderChartsTitle
import explore.model.ObsAttachmentList
import explore.model.ObsTabTilesIds
import explore.model.Observation
Expand Down
2 changes: 1 addition & 1 deletion explore/src/main/scala/explore/tabs/ItcTile.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import crystal.Pot
import crystal.react.View
import explore.components.Tile
import explore.itc.ItcPanelBody
import explore.itc.ItcPanelTitle
import explore.itc.ItcPanelTileState
import explore.itc.ItcPanelTitle
import explore.itc.ItcProps
import explore.model.GlobalPreferences
import explore.model.LoadingState
Expand Down
6 changes: 3 additions & 3 deletions explore/src/main/scala/explore/tabs/ObsTabContents.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import crystal.react.hooks.*
import eu.timepit.refined.types.numeric.NonNegInt
import explore.*
import explore.Icons
import explore.components.ColumnSelectorInTitle
import explore.components.ColumnSelectorState
import explore.components.Tile
import explore.components.ui.ExploreStyles
import explore.data.KeyedIndexedList
Expand Down Expand Up @@ -43,16 +45,14 @@ import lucuma.react.hotkeys.hooks.*
import lucuma.react.primereact.Button
import lucuma.react.resizeDetector.*
import lucuma.react.resizeDetector.hooks.*
import lucuma.react.table.Expandable
import lucuma.refined.*
import lucuma.ui.optics.*
import lucuma.ui.primereact.*
import lucuma.ui.reusability.given
import lucuma.ui.sso.UserVault
import lucuma.ui.syntax.all.given
import monocle.Iso
import lucuma.react.table.Expandable
import explore.components.ColumnSelectorState
import explore.components.ColumnSelectorInTitle

object DeckShown extends NewType[Boolean]:
inline def Shown: DeckShown = DeckShown(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import cats.effect.IO
import cats.syntax.all.*
import crystal.react.*
import explore.attachments.ObsAttachmentsTableBody
import explore.attachments.ObsAttachmentsTableTitle
import explore.attachments.ObsAttachmentsTableTileState
import explore.attachments.ObsAttachmentsTableTitle
import explore.components.Tile
import explore.components.TileController
import explore.model.AppContext
Expand Down
6 changes: 3 additions & 3 deletions explore/src/main/scala/explore/tabs/TargetTabContents.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import crystal.react.*
import crystal.react.hooks.*
import eu.timepit.refined.types.string.NonEmptyString
import explore.*
import explore.components.ColumnSelectorState
import explore.components.FocusedStatus
import explore.components.Tile
import explore.components.TileController
Expand All @@ -28,12 +29,12 @@ import explore.model.syntax.all.*
import explore.observationtree.AsterismGroupObsList
import explore.shortcuts.*
import explore.shortcuts.given
import explore.targets.ObservationPasteAction
import explore.targets.DeletingTargets
import explore.targets.ObservationPasteAction
import explore.targets.TargetPasteAction
import explore.targets.TargetSummaryBody
import explore.targets.TargetSummaryTitle
import explore.targets.TargetSummaryTileState
import explore.targets.TargetSummaryTitle
import explore.undo.*
import explore.utils.*
import japgolly.scalajs.react.*
Expand Down Expand Up @@ -62,7 +63,6 @@ import queries.schemas.odb.ObsQueries
import java.time.Instant
import scala.collection.immutable.SortedSet
import scala.scalajs.LinkingInfo
import explore.components.ColumnSelectorState

case class TargetTabContents(
userId: Option[User.Id],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ package explore.targeteditor
import cats.syntax.all.*
import crystal.react.*
import crystal.react.hooks.*
import explore.components.ColumnSelectorInTitle
import explore.components.ColumnSelectorState
import explore.components.ui.ExploreStyles
import explore.config.ObsTimeEditor
import explore.model.AladinFullScreen
Expand All @@ -30,16 +32,14 @@ import lucuma.core.model.Target
import lucuma.core.model.User
import lucuma.core.util.NewType
import lucuma.react.common.ReactFnProps
import lucuma.schemas.model.SiderealTargetWithId
import lucuma.ui.reusability.given
import lucuma.ui.syntax.all.given
import monocle.Focus
import monocle.Iso
import monocle.Lens

import java.time.Instant
import monocle.Lens
import monocle.Focus
import explore.components.ColumnSelectorInTitle
import explore.components.ColumnSelectorState
import lucuma.schemas.model.SiderealTargetWithId

case class AsterismTileState(
table: ColumnSelectorState[SiderealTargetWithId, TargetTable.TableMeta] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import crystal.react.*
import explore.Icons
import explore.common.UserPreferencesQueries
import explore.common.UserPreferencesQueries.TableStore
import explore.components.ColumnSelectorState
import explore.components.HelpIcon
import explore.components.ui.ExploreStyles
import explore.model.AppContext
Expand Down Expand Up @@ -45,11 +46,10 @@ import lucuma.ui.reusability.given
import lucuma.ui.syntax.all.given
import lucuma.ui.table.*
import lucuma.ui.table.hooks.*
import monocle.Focus
import org.scalajs.dom.File as DOMFile

import scala.collection.immutable.SortedSet
import monocle.Focus
import explore.components.ColumnSelectorState

case class TargetSummaryTileState(
filesToImport: List[DOMFile],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import explore.components.Tile
import explore.components.ui.ExploreStyles
import explore.model.Constants.BadTimingWindow
import explore.model.ObsTabTilesIds
import explore.model.enums.TileSizeState
import explore.model.formats.*
import explore.model.reusability.given
import explore.model.syntax.all.*
Expand Down Expand Up @@ -53,7 +54,6 @@ import java.time.Duration
import java.time.Instant
import java.time.ZoneOffset
import java.time.ZonedDateTime
import explore.model.enums.TileSizeState

case class TimingWindowsTileState(
setRowSelection: RowSelection => Callback = _ => Callback.empty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@

package explore.validations

import crystal.react.View
import cats.syntax.all.*
import crystal.react.View
import explore.Icons
import explore.components.ui.ExploreStyles
import explore.model.AppContext
import explore.model.Focused
import explore.model.Observation
import explore.model.ObservationList
import explore.model.enums.AppTab
import explore.model.enums.TileSizeState
import explore.model.reusability.given
import japgolly.scalajs.react.*
import japgolly.scalajs.react.ScalaFnComponent
Expand All @@ -20,6 +21,7 @@ import japgolly.scalajs.react.vdom.html_<^.*
import lucuma.core.enums.ObservationValidationCode
import lucuma.core.model.ObservationValidation
import lucuma.core.model.Program
import lucuma.core.util.NewType
import lucuma.react.common.ReactFnProps
import lucuma.react.primereact.*
import lucuma.react.primereact.tooltip.*
Expand All @@ -32,8 +34,6 @@ import lucuma.ui.primereact.*
import lucuma.ui.table.*

import scala.scalajs.js
import lucuma.core.util.NewType
import explore.model.enums.TileSizeState

object ObservationValidationsTableTileState extends NewType[Boolean => Callback]
type ObservationValidationsTableTileState = ObservationValidationsTableTileState.Type
Expand Down

0 comments on commit c44758c

Please sign in to comment.