Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Visning av annen forelders uttaksplan #1300

Draft
wants to merge 103 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
efd6d63
Init
AndreasDybdahl Oct 13, 2022
ed5af33
Skjelett oppe og går
AndreasDybdahl Oct 13, 2022
edef00d
Plan mock
AndreasDybdahl Oct 18, 2022
5afb7d4
Changes
AndreasDybdahl Oct 20, 2022
a2dbc14
Login
AndreasDybdahl Oct 21, 2022
852f01b
Rework side
AndreasDybdahl Oct 21, 2022
d636160
Legacy peer deps for now
AndreasDybdahl Oct 21, 2022
f2fcf15
Ikke test gammel kode
AndreasDybdahl Oct 21, 2022
6195766
Ikke feil tester hvis ingen tester
AndreasDybdahl Oct 21, 2022
d85a837
Terser plugin options
AndreasDybdahl Oct 21, 2022
7ac5b1f
Tidslinje
AndreasDybdahl Oct 25, 2022
9c203f5
Sidelinje på tidslinje
AndreasDybdahl Oct 25, 2022
05c20b0
Gjort sidelinjen litt gråere
AndreasDybdahl Oct 25, 2022
6f09f16
Fetch ny saksmodell
AndreasDybdahl Oct 27, 2022
0f4a630
Ting og tang
AndreasDybdahl Nov 3, 2022
92ab220
Tester å hente ut dokumenter forbundet med søknaden
AndreasDybdahl Nov 4, 2022
b6123c7
Skriveleif
AndreasDybdahl Nov 4, 2022
12bd4e8
Oppdateringer i forbindelse med dokumenter
AndreasDybdahl Nov 8, 2022
137a300
Bruker mer data fra sak og søkerinfo
AndreasDybdahl Nov 9, 2022
995266e
Mindre hardkodet data i dokumentoversikt
AndreasDybdahl Nov 9, 2022
2002f92
Lagt til nye sider og routing pluss litt moro
AndreasDybdahl Nov 10, 2022
5a8839c
Fikset litt ting
AndreasDybdahl Nov 10, 2022
3b78f61
Henter opp historikk
AndreasDybdahl Nov 11, 2022
76af4ee
Litt UU pussing
AndreasDybdahl Nov 11, 2022
a318428
Patch version updates
AndreasDybdahl Nov 11, 2022
1edb95e
Minor version updates
AndreasDybdahl Nov 11, 2022
f068476
Major version updates
AndreasDybdahl Nov 11, 2022
e2f37a8
Headerhierarki
AndreasDybdahl Nov 11, 2022
4b3b06c
Flere endringer ifm uttaksplan
AndreasDybdahl Nov 15, 2022
f7689a6
Routing på saksnummer
AndreasDybdahl Nov 18, 2022
9488243
Endringer i routing og api
AndreasDybdahl Nov 23, 2022
a358aff
Tester å legge inn tidslinje hendelser
AndreasDybdahl Nov 23, 2022
c2bb6d7
Fiks kall for å hente tidslinje
AndreasDybdahl Nov 23, 2022
0bbbede
Litt endringer i tidslinjehendelse UI
AndreasDybdahl Nov 23, 2022
ac6cbf5
Oppdatert til siste versjon av designsystem. Videre endringer
AndreasDybdahl Jan 6, 2023
f1dd3bf
Forsidejobb
AndreasDybdahl Jan 11, 2023
28be5dd
Link i header
AndreasDybdahl Jan 16, 2023
5fa2c25
Endringer i tidslinje
AndreasDybdahl Jan 16, 2023
1b035a9
Fargeendringer
AndreasDybdahl Jan 17, 2023
b491063
Border color
AndreasDybdahl Jan 17, 2023
f0b519a
Refaktorering
AndreasDybdahl Jan 19, 2023
5a4fa85
Use jotai for simple state management
AndreasDybdahl Jan 20, 2023
fffa5fe
Dokumentvisning
AndreasDybdahl Jan 23, 2023
222f89f
Set background color state fix
AndreasDybdahl Jan 23, 2023
ba0be51
Flere dokumentendringer
AndreasDybdahl Jan 25, 2023
7a6b1b8
Legger til VEDTAK type
dijjal Jan 27, 2023
8d405bd
Støtte for flere ytelsetyper
AndreasDybdahl Jan 27, 2023
36cb78b
Legger til tittel ettersending
dijjal Jan 27, 2023
87cdb57
Forhindre useEffect til å gå i evig loop
AndreasDybdahl Jan 27, 2023
92d701d
Litt fikser på ting
AndreasDybdahl Feb 1, 2023
e91622b
Velg riktig sak
AndreasDybdahl Feb 1, 2023
47d56dd
Velg riktig sak
AndreasDybdahl Feb 1, 2023
4aeb737
Refaktorering
AndreasDybdahl Feb 1, 2023
abcf17d
Fjern utkommentert kode
AndreasDybdahl Feb 1, 2023
dfd382e
Refaktorering
AndreasDybdahl Feb 1, 2023
bb7792d
Dokumentvisning styling
AndreasDybdahl Feb 1, 2023
836b506
Fjernet unødvendig dependency
AndreasDybdahl Feb 1, 2023
20a7156
Ta hensyn til alle typer ytelser
AndreasDybdahl Feb 2, 2023
ec63a24
Legger til hendelse utgående brev (innhenting av opplysninger)
dijjal Feb 3, 2023
ee39a53
Klage på manglende intl nøkkel
AndreasDybdahl Feb 6, 2023
8b52113
Tittel for svangerskapspenger
AndreasDybdahl Feb 7, 2023
0ac7d64
Utvidet sakstyper. Label på saklink
AndreasDybdahl Feb 7, 2023
72ec536
Borderfarge
AndreasDybdahl Feb 7, 2023
68739aa
Ny look and feel på DokumenterPage
AndreasDybdahl Feb 7, 2023
2570387
Style endringer og tekst i dokumenterpage endret
AndreasDybdahl Feb 8, 2023
7ab2740
Diverse endringer
AndreasDybdahl Feb 8, 2023
3c15a2e
Vedleggskomponent
AndreasDybdahl Feb 10, 2023
d22b8f0
Bugfiks i attachment api
AndreasDybdahl Feb 10, 2023
f1607c0
Flere endringer på vedlegg
AndreasDybdahl Feb 10, 2023
81821c2
Minidialog tilbakekreving (#1269)
grutkowska Feb 10, 2023
5e95ee2
validering på input i minidialogens fritekst felt, flytter tekster ti…
grutkowska Feb 13, 2023
a2f4e5e
Merge
AndreasDybdahl Feb 13, 2023
c7b6574
Sleng med fnr i ettersending
AndreasDybdahl Feb 13, 2023
a60451d
Endring i visning av vedlegg
AndreasDybdahl Feb 13, 2023
3235e16
Ettersending ferdig kvittering
AndreasDybdahl Feb 13, 2023
0a0a3a4
Legg til autorouting hvis kun en sak
AndreasDybdahl Feb 14, 2023
3cec0ac
Lagt til statuser for under behandling label
AndreasDybdahl Feb 14, 2023
e0a92c1
Sync på status
AndreasDybdahl Feb 14, 2023
2388f31
Sync på status
AndreasDybdahl Feb 14, 2023
1a4df8a
Flere behandlingstilstand endringer
AndreasDybdahl Feb 14, 2023
ae835a9
Simpel visning av søkte perioder
AndreasDybdahl Feb 14, 2023
772e898
Simpel visning av søkte perioder
AndreasDybdahl Feb 14, 2023
353135b
Tekstendring
AndreasDybdahl Feb 15, 2023
c8fe8e9
Fikse logikk for sammenslåing av perioder
AndreasDybdahl Feb 15, 2023
3a119ae
Style endringer
AndreasDybdahl Feb 15, 2023
0421ed6
Renaming
AndreasDybdahl Feb 15, 2023
1b7f573
Oppdatert link for har ikke saker
AndreasDybdahl Feb 15, 2023
b5e9112
Start på dynamisk header
AndreasDybdahl Feb 15, 2023
977c6cf
Snarveier og kontakt oss (#1275)
grutkowska Feb 16, 2023
75064cb
Route changes
AndreasDybdahl Feb 16, 2023
c031233
Renamet Sak til Foreldrepengesak
AndreasDybdahl Feb 16, 2023
2d35360
Renamet Sak til Foreldrepengesak
AndreasDybdahl Feb 16, 2023
5162526
Opprettet Saktype for alle saker
AndreasDybdahl Feb 16, 2023
b5e2579
Init header for saksoversikt
AndreasDybdahl Feb 16, 2023
57b901f
Økt heading mellom status og resten av innholdet for saksoversikt header
AndreasDybdahl Feb 16, 2023
52a602e
Fjernet ubrukt skjemanummer
AndreasDybdahl Feb 17, 2023
ee2f7e0
implementerer venteårsaker i tidslinjen (#1276)
grutkowska Feb 17, 2023
199ab87
Minidialogskjema skal ikke validere på antall vedlegg
grutkowska Feb 20, 2023
7b478b3
la til manglende tekst endringssøknad
grutkowska Feb 20, 2023
3695492
Endringer for visning av manglende dokumentasjon i tidslinjen (#1277)
grutkowska Feb 20, 2023
2d0cc80
lese inn annen parts vedtak, startet på visning i planen
grutkowska Feb 20, 2023
3e36422
refaktorering
grutkowska Feb 20, 2023
da5b692
added todo for videre arbeid
grutkowska Feb 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
47 changes: 47 additions & 0 deletions .deploy/naiserator_rework.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
apiVersion: 'nais.io/v1alpha1'
kind: 'Application'
metadata:
name: foreldrepengeoversikt-rework
namespace: teamforeldrepenger
labels:
team: teamforeldrepenger
spec:
accessPolicy:
outbound:
external:
- host: dekoratoren.dev.nav.no
image: {{image}}
port: 8080
replicas:
min: 2
max: 2
disableAutoScaling: true
liveness:
path: /health/isAlive
initialDelay: 60
readiness:
path: /health/isReady
initialDelay: 60
prometheus:
enabled: false
path: /internal/actuator/prometheus
ingresses:
- "https://foreldrepenger-rework.dev.nav.no"
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 200m
memory: 256Mi
env:
- name: APPRES_CMS_URL
value: "https://dekoratoren.dev.nav.no"
- name: FORELDREPENGESOKNAD_API_URL
value: "https://foreldrepengesoknad-api.dev.nav.no/rest"
- name: LOGINSERVICE_URL
value: "https://loginservice-testing.dev.nav.no/login"
- name: FP_UTTAK_SERVICE_URL
value: "https://foreldrepengesoknad-api.dev.nav.no"
- name: KLAGE_URL
value: "https://klage-dittnav.dev.nav.no"
6 changes: 3 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
APPRES_CMS_URL=https://www.nav.no/dekoratoren
FORELDREPENGESOKNAD_API_URL=http://localhost:8888/rest
LOGINSERVICE_URL=http://localhost:8888/local/cookie
FP_UTTAK_SERVICE_URL=https://foreldrepengesoknad-api.nav.no
FORELDREPENGESOKNAD_API_URL=http://localhost:9002/rest
LOGINSERVICE_URL=http://localhost:8060/rest/loginservice/login
FP_UTTAK_SERVICE_URL=http://localhost:9002
KLAGE_URL=https://klage-dittnav.dev.nav.no
14 changes: 11 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
module.exports = {
parser: '@typescript-eslint/parser',
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended', 'plugin:react/recommended'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:jest-dom/recommended',
'plugin:testing-library/react',
],
plugins: ['jest-dom', 'testing-library', 'typescript-sort-keys'],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
rules: {
'@typescript-eslint/array-type': ['error', { default: 'array' }],
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
'typescript-sort-keys/interface': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{ vars: 'all', args: 'all', ignoreRestSiblings: true, varsIgnorePattern: '^_', argsIgnorePattern: '^_' },
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-

- run: npm install
- run: npm install --legacy-peer-deps
- run: npm run jest
- run: npm run build
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-

- run: npm install
- run: npm install --legacy-peer-deps
- run: npm run jest
- run: |
npm run build
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/rework-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Build, push og deploy til q1 for innsyn-redesign branch

on:
push:
branches:
- innsyn-redesign
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IMAGE_BASE: ghcr.io/navikt/foreldrepengeoversikt-rework
SHOULD_DEPLOY: true

jobs:
kompiler:
runs-on: ubuntu-latest
steps:
- name: Sjekk ut kode
uses: actions/checkout@v3
- run: git fetch --prune --unshallow

- name: Hent tag
run: |
echo 'TAG<<EOF' >> $GITHUB_ENV
git log -1 --pretty=%ad --date=format:%Y%m%d%H%M%S-`echo $GITHUB_SHA | cut -c1-7` >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV

- name: Cache node modules
uses: actions/cache@v3.0.8
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-

- run: npm install --legacy-peer-deps
- run: npm run jest
- run: |
npm run build
echo "IMAGE=$IMAGE_BASE:$TAG" >> $GITHUB_ENV

- name: Login to GitHub Packages Docker Registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 # Use commit-sha1 instead of tag for security concerns
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Bygg, tag og push Docker image
run: |
docker build --pull --tag ${IMAGE_BASE}:${TAG} .
docker push ${IMAGE_BASE} --all-tags

- name: Deploy
if: success() && env.SHOULD_DEPLOY == 'true'
uses: nais/deploy/actions/deploy@v1
env:
PRINT_PAYLOAD: true
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: .deploy/naiserator_rework.yaml
10 changes: 0 additions & 10 deletions jest/__mocks__/History.ts

This file was deleted.

19 changes: 0 additions & 19 deletions jest/__mocks__/Perioder.ts

This file was deleted.

102 changes: 0 additions & 102 deletions jest/__mocks__/Sak.ts

This file was deleted.

13 changes: 0 additions & 13 deletions jest/__mocks__/Søker.ts

This file was deleted.

1 change: 1 addition & 0 deletions jest/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = {
},
},
rootDir: '../',
roots: ['<rootDir>/src/app/'],
coverageReporters: ['text-summary'],
preset: 'ts-jest/presets/js-with-babel',
testMatch: null,
Expand Down
4 changes: 0 additions & 4 deletions jest/setup.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import { JSDOM } from 'jsdom';

Enzyme.configure({ adapter: new Adapter() });

const dom = new JSDOM('<!doctype html><html><body><div id="app"></div></body></html>');
(global as any).document = dom.window.document;
(global as any).window = dom.window;
Expand Down
21 changes: 19 additions & 2 deletions mock-api/mock-api-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ const morgan = require('morgan');
require('dotenv').config();

const allowCrossDomain = function (req, res, next) {
res.setHeader('Access-Control-Allow-Origin', 'http://localhost:8880');
const corsWhiteList = ['http://localhost:8080', 'http://localhost:8880']; // 8080 dev server with decorator, 8880 dev server without decorator

if (corsWhiteList.includes(req.headers.origin)) {
res.header('Access-Control-Allow-Origin', req.headers.origin);
}

res.setHeader('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE,OPTIONS');
res.setHeader('Access-Control-Allow-Headers', 'Content-Type,X-XSRF-TOKEN,Location');
res.setHeader('Access-Control-Expose-Headers', 'Location');
Expand All @@ -30,9 +35,17 @@ router.get(['/rest/sokerinfo'], (req, res) => {
res.send(MockStorage.getSokerinfo());
});

router.get(['/rest/dokument/alle'], (req, res) => {
res.send(MockStorage.getDokumenter());
});

router.get(['/rest/innsyn/v2/annenPartVedtak'], (req, res) => {
res.send(MockStorage.getAnnenPartsVedtak());
});

router.post('/rest/engangsstonad', (req, res) => res.sendStatus(200));

router.get('/rest/innsyn/saker', (req, res) => {
router.get('/rest/innsyn/v2/saker', (req, res) => {
res.send(MockStorage.getSaker());
});

Expand Down Expand Up @@ -60,6 +73,10 @@ router.get('/rest/innsyn/uttaksplan', (req, res) => {
res.send(MockStorage.getUttaksplan());
});

router.get('/rest/innsyn/tidslinje', (req, res) => {
res.send(MockStorage.getTidslinjeHendelser());
});

const vedleggUpload = multer({ dest: './dist/vedlegg/' });
router.post('/rest/storage/vedlegg', vedleggUpload.single('vedlegg'), (req, res) => {
res.setHeader('Location', `http://localhost:8080/foreldrepengesoknad/dist/vedlegg/${req.body.id}`);
Expand Down
Loading