Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
d967ea4
Enable `babel-plugin-react-compiler` and update dependencies
stigus Apr 25, 2025
16bca42
Merge branch 'master' into feature/react-compiler-migration
stigus Apr 29, 2025
b73b723
- Fikser lås funksjonalitet som ikke oppdaterte gruppe etter sending,…
stigus Apr 29, 2025
692790f
Merge branch 'master' into feature/react-compiler-migration
stigus Apr 29, 2025
ebda102
- Testing for the Laas functionality in GruppeHeader, some refactorings
stigus Apr 30, 2025
244c681
- Refactored enkelInntektsmeldingVisning to fix a bug with virksomhet…
stigus May 6, 2025
10b1e81
Merge branch 'master' into feature/react-compiler-migration
stigus May 6, 2025
4e41acd
deploy
stigus May 6, 2025
c49b2a1
Mindre endringer og fix for test
stigus May 6, 2025
f70281e
Merge branch 'master' into feature/react-compiler-migration
stigus Aug 14, 2025
eea64c2
- Remove deprecated `FormFieldInput` component and replace with `Doll…
stigus Aug 14, 2025
d972364
- Refactor `stateModifier.tsx` to improve readability and performance…
stigus Aug 15, 2025
8410d22
- Refactor `Attributt` and `AttributtKategori` components to improve …
stigus Aug 15, 2025
af9f586
Fjernet en haug av AI generert tull (prøvde GPT-5 for å refaktorere m…
stigus Aug 15, 2025
4009bd9
- Refactor `Attributt` and `AttributtKategori` components with improv…
stigus Aug 18, 2025
023768e
Merge branch 'master' into feature/react-compiler-migration
stigus Aug 18, 2025
c9801c5
- Replace imports from `SoekForm` to `SoekFormWrapper` across compone…
stigus Aug 20, 2025
44cfcdf
Merge branch 'master' into feature/react-compiler-migration
stigus Sep 9, 2025
ebf93d7
Merge branch 'master' into feature/react-compiler-migration
stigus Sep 9, 2025
0e6dea6
Merge branch 'master' into feature/react-compiler-migration
stigus Sep 9, 2025
4b789d3
- Bump project version to `3.2.0` in `package.json` and `package-lock…
stigus Sep 9, 2025
ba35cb6
- Update `mockServiceWorker.js` for latest `msw` version `2.11.2` cha…
stigus Sep 11, 2025
6828473
Merge branch 'master' into feature/react-compiler-migration
stigus Oct 3, 2025
e619788
- Merge master, update, fix conflicts
stigus Oct 3, 2025
7d07ab8
Merge branch 'master' into feature/react-compiler-migration
stigus Oct 3, 2025
ffa8a88
- Add `useControlled` prop to multiple `DollyTextInput` components fo…
stigus Oct 3, 2025
5accb88
- Refactor `CreateInfostripeForm` to use a function for default value…
stigus Oct 3, 2025
e59a5f6
- Update `hentAlle` method in `InfostripeController` to include an op…
stigus Oct 3, 2025
5949732
- Update `useDollyInfostriper` to accept an optional parameter for in…
stigus Oct 3, 2025
44688dc
- Add `useControlled` prop to `FormTextInput` for consistent controll…
stigus Oct 3, 2025
2effaf9
Merge branch 'master' into feature/react-compiler-migration
stigus Oct 6, 2025
c85fb48
- Update `@asamuzakjp/dom-selector` to version 6.6.1
stigus Oct 6, 2025
88cdd87
Merge branch 'master' into feature/react-compiler-migration
stigus Oct 7, 2025
dca667d
- Update `@navikt/aksel-icons`, `@navikt/ds-css`, `@navikt/ds-react`,…
stigus Oct 7, 2025
0d5645a
- Add `BestillingsveilederContextType` import to `Bestillingsveileder…
stigus Oct 7, 2025
d2f178f
- Refactor `mapBestillingData` to remove duplicate context usage.
stigus Oct 7, 2025
3903fdc
- Refactor `mapBestillingData` to utilize `buildBestillingData` for i…
stigus Oct 7, 2025
8e123bd
Merge branch 'master' into feature/react-compiler-migration
stigus Oct 13, 2025
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 @@ -19,11 +19,14 @@
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

import static org.apache.commons.lang3.BooleanUtils.isTrue;

@Slf4j
@RestController
@RequiredArgsConstructor
Expand All @@ -34,11 +37,14 @@ public class InfostripeController {
private final MapperFacade mapperFacade;

@GetMapping
@Operation(description = "Hent alle gyldige informasjonsmeldinger")
public Flux<InfostripeMelding> hentAlle() {
@Operation(description = "Hent alle gjeldende informasjonsmeldinger")
public Flux<InfostripeMelding> hentAlle(@RequestParam(required = false, defaultValue = "false", name = "inkluderFremtidige") boolean inkluderFremtidige) {

return informasjonsmeldingRepository.findGyldigMeldinger()
.map(melding -> mapperFacade.map(melding, InfostripeMelding.class));
return isTrue(inkluderFremtidige) ?
informasjonsmeldingRepository.findGjeldendeOgFremtidigeMeldinger()
.map(melding -> mapperFacade.map(melding, InfostripeMelding.class)) :
informasjonsmeldingRepository.findGjeldendeMeldinger()
.map(melding -> mapperFacade.map(melding, InfostripeMelding.class));
}

@PostMapping
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,12 @@ public interface InformasjonsmeldingRepository extends ReactiveCrudRepository<In
(i.expires is null or i.expires >= current_timestamp)
order by i.id desc
""")
Flux<InfoStripe> findGyldigMeldinger();
Flux<InfoStripe> findGjeldendeMeldinger();

@Query("""
select * from info_stripe i where
(i.expires is null or i.expires >= current_timestamp)
order by i.id desc
""")
Flux<InfoStripe> findGjeldendeOgFremtidigeMeldinger();
}
570 changes: 292 additions & 278 deletions apps/dolly-frontend/src/main/js/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/dolly-frontend/src/main/js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dolly",
"version": "3.1.13",
"version": "3.2.0",
"type": "module",
"description": "",
"main": "index.js",
Expand Down
5 changes: 0 additions & 5 deletions apps/dolly-frontend/src/main/js/playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,11 @@ export default defineConfig({
},
},

/* Configure projects for major browsers */
projects: [
{
name: 'Google Chrome',
use: { ...devices['Desktop Chrome'], channel: 'chrome' },
},
{
name: 'Microsoft Edge',
use: { ...devices['Desktop Edge'], channel: 'msedge' },
},
],

/* Run the local dev server before starting the tests */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ test('Åpne bestilt ident med knytning mot alle fagsystem', async ({ page }) =>
})
await page.getByTestId(TestComponentSelectors.TOGGLE_VISNING_PERSONER).click()
await page.getByTestId(TestComponentSelectors.TOGGLE_PERSON_IBRUK).click()
await expect(page.getByTestId(TestComponentSelectors.TOGGLE_PERSON_IBRUK)).toBeEnabled()
await expect(page.getByTestId(TestComponentSelectors.TOGGLE_PERSON_IBRUK)).toBeChecked()
await page.getByTestId(TestComponentSelectors.TOGGLE_PERSON_IBRUK).click()
await expect(page.getByTestId(TestComponentSelectors.TOGGLE_PERSON_IBRUK)).not.toBeChecked()

await page.getByTestId(TestComponentSelectors.BUTTON_OPEN_IDENT).click()
await page.getByTestId(TestComponentSelectors.BUTTON_OPEN_BESTILLINGSDETALJER).click()
await page.waitForTimeout(300)
Expand All @@ -40,6 +42,7 @@ test('Åpne bestilt ident med knytning mot alle fagsystem', async ({ page }) =>

for (const hover_miljoe of await page.getByTestId(TestComponentSelectors.HOVER_MILJOE).all()) {
await hover_miljoe.click()
await page.waitForTimeout(200)
await page.getByTestId(TestComponentSelectors.BUTTON_OPEN_KONTAKTINFO).hover()
// Hover over kontaktinfo for å lukke gjeldende åpne miljø hover
await page.waitForTimeout(200)
Expand Down
2 changes: 0 additions & 2 deletions apps/dolly-frontend/src/main/js/src/allRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const NyansettelserPage = lazyWithPreload(() => import('@/pages/nyansettelser/Ny
const GruppeOversikt = lazyWithPreload(() => import('@/pages/gruppeOversikt/GruppeOversikt'))
const Organisasjon = lazyWithPreload(() => import('@/pages/organisasjoner/Organisasjoner'))
const MinSide = lazyWithPreload(() => import('@/pages/minSide/MinSide'))
const UI = lazyWithPreload(() => import('@/pages/ui/index'))
const Endringsmelding = lazyWithPreload(() => import('@/pages/endringsmelding/Endringsmelding'))
const DollySoekPage = lazyWithPreload(() => import('@/pages/dollySoek/DollySoekPage'))
const TenorSoekPage = lazyWithPreload(() => import('@/pages/tenorSoek/TenorSoekPage'))
Expand Down Expand Up @@ -85,7 +84,6 @@ const allRoutes = [
element: Bestillingsveileder,
},
{ path: '/minside', handle: { crumb: () => 'Min side' }, element: MinSide },
{ path: '/ui', handle: { crumb: () => 'UI demo' }, element: UI },
{
path: '/dollysoek',
handle: { crumb: () => 'Søk i Dolly' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,9 @@ import {
oversettBoolean,
showLabel,
toTitleCase,
uppercaseAndUnderscoreToCapitalized,
uppercaseAndUnderscoreToCapitalized
} from '@/utils/DataFormatter'
import {
AdresseKodeverk,
ArbeidKodeverk,
PersoninformasjonKodeverk,
VergemaalKodeverk,
} from '@/config/kodeverk'
import { AdresseKodeverk, ArbeidKodeverk, PersoninformasjonKodeverk, VergemaalKodeverk } from '@/config/kodeverk'
import { isEmpty } from '@/components/fagsystem/pdlf/form/partials/utils'
import { SelectOptionsManager as Options } from '@/service/SelectOptions'
import { MedlKodeverk } from '@/components/fagsystem/medl/MedlConstants'
Expand All @@ -26,14 +21,14 @@ import { kodeverkKeyToLabel } from '@/components/fagsystem/sigrunstubPensjonsgiv
import { useContext } from 'react'
import {
BestillingsveilederContext,
BestillingsveilederContextType,
BestillingsveilederContextType
} from '@/components/bestillingsveileder/BestillingsveilederContext'
import { showKodeverkLabel } from '@/components/fagsystem/skattekort/visning/Visning'
import { showTpNavn } from '@/components/fagsystem/afpOffentlig/visning/AfpOffentligVisning'
import { showTyperLabel } from '@/components/fagsystem/arbeidssoekerregisteret/visning/ArbeidssoekerregisteretVisning'
import {
kategoriKodeverk,
tekniskNavnKodeverk,
tekniskNavnKodeverk
} from '@/components/fagsystem/sigrunstubSummertSkattegrunnlag/form/GrunnlagArrayForm'
import { useTpOrdningKodeverk } from '@/utils/hooks/usePensjon' // TODO: Flytte til selector?

Expand Down Expand Up @@ -2438,17 +2433,20 @@ const mapOrganisasjon = (bestillingData, data) => {
}
}

export function mapBestillingData(bestillingData, bestillingsinformasjon, firstIdent) {
function buildBestillingData(
bestillingData: any,
bestillingsinformasjon?: any,
firstIdent?: string,
bestilling?: BestillingsveilederContextType,
navEnheter?: any,
) {
if (!bestillingData) {
return null
}

const data: any[] = []
const identtype = bestillingData.pdldata?.opprettNyPerson?.identtype

const bestilling = useContext(BestillingsveilederContext) as BestillingsveilederContextType
const { navEnheter } = useNavEnheter()

mapBestillingsinformasjon(bestillingsinformasjon, data, identtype, firstIdent)
mapPdlNyPerson(bestillingData, data, bestilling)

Expand Down Expand Up @@ -2538,3 +2536,35 @@ export function mapBestillingData(bestillingData, bestillingsinformasjon, firstI

return data
}

export function useBestillingData(
bestillingData: any,
bestillingsinformasjon?: any,
firstIdent?: string,
) {
const bestilling = useContext(BestillingsveilederContext) as BestillingsveilederContextType
const { navEnheter } = useNavEnheter()
return buildBestillingData(
bestillingData,
bestillingsinformasjon,
firstIdent,
bestilling,
navEnheter,
)
}

export function mapBestillingData(
bestillingData: any,
bestillingsinformasjon?: any,
firstIdent?: string,
bestilling?: BestillingsveilederContextType,
navEnheter?: any,
) {
return buildBestillingData(
bestillingData,
bestillingsinformasjon,
firstIdent,
bestilling,
navEnheter,
)
}
Loading