Skip to content

Commit

Permalink
scalafix, remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rpiaggio committed Sep 18, 2024
1 parent db220e0 commit 03e4d36
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import explore.model.Constants
import explore.model.ProgramDetails
import explore.model.ProgramTimes
import explore.model.ProgramUserWithRole
import lucuma.core.enums.ProgramUserRole
import japgolly.scalajs.react.*
import japgolly.scalajs.react.vdom.html_<^.*
import lucuma.core.enums.ProgramUserRole
import lucuma.core.model.Semester
import lucuma.core.syntax.display.*
import lucuma.react.common.ReactFnProps
Expand Down
2 changes: 1 addition & 1 deletion explore/src/main/scala/explore/programs/SupportUsers.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import explore.model.ProgramUserWithRole
import explore.users.ProgramUsersTable
import japgolly.scalajs.react.*
import japgolly.scalajs.react.vdom.html_<^.*
import lucuma.core.enums.ProgramUserRole
import lucuma.core.model.Program
import lucuma.react.common.ReactFnProps
import lucuma.core.enums.ProgramUserRole

case class SupportUsers(
programId: Program.Id,
Expand Down
4 changes: 2 additions & 2 deletions explore/src/main/scala/explore/proposal/ProgramUsers.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

package explore.proposal

import cats.data.NonEmptySet
import cats.data.NonEmptyList
import cats.data.NonEmptySet
import cats.syntax.all.*
import crystal.react.*
import explore.Icons
Expand All @@ -17,6 +17,7 @@ import explore.users.ProgramUsersTable
import japgolly.scalajs.react.*
import japgolly.scalajs.react.vdom.html_<^.*
import lucuma.core.enums.InvitationStatus
import lucuma.core.enums.ProgramUserRole
import lucuma.core.model.Program
import lucuma.core.util.Enumerated
import lucuma.core.util.NewType
Expand All @@ -25,7 +26,6 @@ import lucuma.react.primereact.Button
import lucuma.react.primereact.OverlayPanelRef
import lucuma.ui.primereact.*
import lucuma.ui.syntax.all.given
import lucuma.core.enums.ProgramUserRole

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 @@ -23,6 +23,7 @@ import japgolly.scalajs.react.vdom.html_<^.*
import lucuma.core.enums.EducationalStatus
import lucuma.core.enums.Gender
import lucuma.core.enums.Partner
import lucuma.core.enums.ProgramUserRole
import lucuma.core.model.PartnerLink
import lucuma.core.model.Program
import lucuma.core.model.User
Expand All @@ -43,7 +44,6 @@ import lucuma.ui.table.*
import lucuma.ui.utils.*
import monocle.function.Each.*
import queries.common.ProposalQueriesGQL.UnlinkUser
import lucuma.core.enums.ProgramUserRole

case class ProgramUsersTable(
programId: Program.Id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,18 @@ package explore.model
import cats.Eq
import cats.derived.*
import cats.syntax.all.*
import lucuma.core.enums.ProgramUserRole
import io.circe.Decoder
import lucuma.core.enums.EducationalStatus
import lucuma.core.enums.Gender
import lucuma.core.enums.ProgramUserRole
import lucuma.core.model.PartnerLink
import lucuma.odb.json.partnerlink.given
import monocle.Focus
import monocle.Lens

// an empty role implies PI
case class ProgramUserWithRole(
user: ProgramUser,
partnerLink: Option[PartnerLink],
// role: Option[ProgramUserRole],
role: ProgramUserRole,
educationalStatus: Option[EducationalStatus],
thesis: Option[Boolean],
Expand All @@ -28,9 +26,6 @@ case class ProgramUserWithRole(
export user.{name, nameWithEmail}

lazy val roleName: String = role.tag
// role match
// case None => "Pi"
// case Some(role) => role.tag

object ProgramUserWithRole:
val user: Lens[ProgramUserWithRole, ProgramUser] = Focus[ProgramUserWithRole](_.user)
Expand Down

0 comments on commit 03e4d36

Please sign in to comment.