-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into flytt-altinn-acl
- Loading branch information
Showing
34 changed files
with
299 additions
and
406 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
42 changes: 42 additions & 0 deletions
42
common/domain/src/main/kotlin/no/nav/mulighetsrommet/domain/dto/ArbeidsgiverAvtaleStatus.kt
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,42 @@ | ||
package no.nav.mulighetsrommet.domain.dto | ||
|
||
enum class ArbeidsgiverAvtaleStatus(val description: String) { | ||
/** | ||
* Tiltaket er påbegynt, men kan fortsatt mangle noe data som er påkrevd for at det skal kunne gjennomføres. | ||
* Kan anses som en "kladd". | ||
*/ | ||
PAABEGYNT("Påbegynt"), | ||
|
||
/** | ||
* Bl.a. når man mangler godkjenning av "controller", men kan muligens også være andre godkjenninger som | ||
* kreves. | ||
*/ | ||
MANGLER_GODKJENNING("Mangler godkjenning"), | ||
|
||
/** | ||
* Status er basert på startdato for avtale. Kan anta at avtalen er klar, men startdato er i fremtiden. | ||
*/ | ||
KLAR_FOR_OPPSTART("Klar for oppstart"), | ||
|
||
/** | ||
* Avtale gjennomføres. | ||
* Bruker deltar på tiltaket. | ||
*/ | ||
GJENNOMFORES("Gjennomføres"), | ||
|
||
/** | ||
* Avtale har blitt avsluttet. | ||
* Bruker har deltatt på tiltaket. | ||
*/ | ||
AVSLUTTET("Avsluttet"), | ||
|
||
/** | ||
* Avtale ble avbrutt. | ||
*/ | ||
AVBRUTT("Avbrutt"), | ||
|
||
/** | ||
* Tiltaket ble aldri noe av. | ||
*/ | ||
ANNULLERT("Annullert"), | ||
} |
19 changes: 19 additions & 0 deletions
19
common/domain/src/main/kotlin/no/nav/mulighetsrommet/domain/dto/ArenaDeltakerStatus.kt
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,19 @@ | ||
package no.nav.mulighetsrommet.domain.dto | ||
|
||
enum class ArenaDeltakerStatus(val description: String) { | ||
AKTUELL("Aktuell"), | ||
AVSLAG("Fått avslag"), | ||
DELTAKELSE_AVBRUTT("Deltakelse avbrutt"), | ||
FEILREGISTRERT("Feilregistrert"), | ||
FULLFORT("Fullført"), | ||
GJENNOMFORES("Gjennomføres"), | ||
GJENNOMFORING_AVBRUTT("Gjennomføring avbrutt"), | ||
GJENNOMFORING_AVLYST("Gjennomføring avlyst"), | ||
IKKE_AKTUELL("Ikke aktuell"), | ||
IKKE_MOTT("Ikke møtt"), | ||
INFORMASJONSMOTE("Informasjonsmøte"), | ||
TAKKET_JA_TIL_TILBUD("Takket ja til tilbud"), | ||
TAKKET_NEI_TIL_TILBUD("Takket nei til tilbud"), | ||
TILBUD("Godkjent tiltaksplass"), | ||
VENTELISTE("Venteliste"), | ||
} |
45 changes: 45 additions & 0 deletions
45
common/domain/src/main/kotlin/no/nav/mulighetsrommet/domain/dto/DeltakerStatus.kt
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,45 @@ | ||
package no.nav.mulighetsrommet.domain.dto | ||
|
||
import kotlinx.serialization.Serializable | ||
import no.nav.mulighetsrommet.domain.serializers.LocalDateTimeSerializer | ||
import java.time.LocalDateTime | ||
|
||
@Serializable | ||
data class DeltakerStatus( | ||
val type: Type, | ||
val aarsak: Aarsak?, | ||
@Serializable(with = LocalDateTimeSerializer::class) | ||
val opprettetDato: LocalDateTime, | ||
) { | ||
enum class Type(val description: String) { | ||
AVBRUTT("Avbrutt"), | ||
AVBRUTT_UTKAST("Avbrutt utkast"), | ||
DELTAR("Deltar"), | ||
FEILREGISTRERT("Feilregistrert"), | ||
FULLFORT("Fullført"), | ||
HAR_SLUTTET("Har sluttet"), | ||
IKKE_AKTUELL("Ikke aktuell"), | ||
KLADD("Kladd"), | ||
PABEGYNT_REGISTRERING("Påbegynt registrering"), | ||
SOKT_INN("Søkt om plass"), | ||
UTKAST_TIL_PAMELDING("Utkast til påmelding"), | ||
VENTELISTE("På venteliste"), | ||
VENTER_PA_OPPSTART("Venter på oppstart"), | ||
VURDERES("Vurderes"), | ||
} | ||
|
||
enum class Aarsak(val description: String) { | ||
ANNET("Annet"), | ||
AVLYST_KONTRAKT("Avlyst kontrakt"), | ||
FATT_JOBB("Fått jobb"), | ||
FEILREGISTRERT("Feilregistrert"), | ||
FERDIG("Ferdig"), | ||
FIKK_IKKE_PLASS("Fikk ikke plass"), | ||
IKKE_MOTT("Møter ikke opp"), | ||
OPPFYLLER_IKKE_KRAVENE("Oppfyller ikke kravene"), | ||
SAMARBEIDET_MED_ARRANGOREN_ER_AVBRUTT("Samarbeidet med arrangøren er avbrutt"), | ||
SYK("Syk"), | ||
TRENGER_ANNEN_STOTTE("Trenger annen støtte"), | ||
UTDANNING("Utdanning"), | ||
} | ||
} |
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
6 changes: 2 additions & 4 deletions
6
...end/mr-admin-flate/src/api/tiltaksgjennomforing/useTiltaksgjennomforingDeltakerSummary.ts
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 |
---|---|---|
@@ -1,16 +1,14 @@ | ||
import { useQuery } from "@tanstack/react-query"; | ||
import { useSuspenseQuery } from "@tanstack/react-query"; | ||
import { QueryKeys } from "@/api/QueryKeys"; | ||
import { TiltaksgjennomforingerService } from "@mr/api-client"; | ||
|
||
export function useTiltaksgjennomforingDeltakerSummary(id?: string) { | ||
return useQuery({ | ||
return useSuspenseQuery({ | ||
queryKey: QueryKeys.tiltaksgjennomforingDeltakerSummary(id!), | ||
queryFn() { | ||
return TiltaksgjennomforingerService.getTiltaksgjennomforingDeltakerSummary({ | ||
id: id!, | ||
}); | ||
}, | ||
throwOnError: false, | ||
enabled: !!id, | ||
}); | ||
} |
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
10 changes: 7 additions & 3 deletions
10
frontend/mr-admin-flate/src/components/skjema/InfoContainer.tsx
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 |
---|---|---|
@@ -1,13 +1,17 @@ | ||
import { PropsWithChildren } from "react"; | ||
import styles from "./InfoContainer.module.scss"; | ||
import React from "react"; | ||
import { Laster } from "../laster/Laster"; | ||
|
||
interface Props { | ||
dataTestId?: string; | ||
} | ||
export function InfoContainer({ dataTestId, children }: PropsWithChildren<Props>) { | ||
return ( | ||
<div className={styles.info_container} data-testid={dataTestId}> | ||
{children} | ||
</div> | ||
<React.Suspense fallback={<Laster tekst="Laster innhold..." />}> | ||
<div className={styles.info_container} data-testid={dataTestId}> | ||
{children} | ||
</div> | ||
</React.Suspense> | ||
); | ||
} |
33 changes: 15 additions & 18 deletions
33
frontend/mr-admin-flate/src/components/tiltaksgjennomforinger/NokkeltallDeltakere.tsx
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
Oops, something went wrong.