From 5e0de2c189b67454613501b9b29587fb787be2e6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 14 Mar 2023 18:17:28 +0000 Subject: [PATCH 1/7] Bump webpack from 5.65.0 to 5.76.1 Bumps [webpack](https://github.com/webpack/webpack) from 5.65.0 to 5.76.1. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](https://github.com/webpack/webpack/compare/v5.65.0...v5.76.1) --- updated-dependencies: - dependency-name: webpack dependency-type: indirect ... Signed-off-by: dependabot[bot] --- package-lock.json | 138 ++++++++++++++++++++++++---------------------- 1 file changed, 73 insertions(+), 65 deletions(-) diff --git a/package-lock.json b/package-lock.json index a5ac7299f..aaaf1df97 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,6 @@ "version": "0.4.2", "license": "MIT", "dependencies": { - "@navikt/ds-icons": "^2.0.1", "@navikt/fnrvalidator": "^1.1.3", "@navikt/navspa": "^4.0.0", "@navikt/tag-input": "^2.0.1", @@ -3608,9 +3607,9 @@ } }, "node_modules/@types/eslint-scope": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.1.tgz", - "integrity": "sha512-SCFeogqiptms4Fg29WpOTk5nHIzfpKCemSN63ksBQYKTcXoJEmJagV+DhVmbapZzY4/5YaOV1nZwrsU79fFm1g==", + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", + "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", "dev": true, "dependencies": { "@types/eslint": "*", @@ -3618,9 +3617,9 @@ } }, "node_modules/@types/estree": { - "version": "0.0.50", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.50.tgz", - "integrity": "sha512-C6N5s2ZFtuZRj54k2/zyRhNDjJwwcViAM3Nbm8zjBpbqAdZ00mr0CFxvSKeO8Y/e03WVFLpQMdHYVfUd6SB+Hw==", + "version": "0.0.51", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.51.tgz", + "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==", "dev": true }, "node_modules/@types/faker": { @@ -4530,9 +4529,9 @@ } }, "node_modules/acorn": { - "version": "8.6.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.6.0.tgz", - "integrity": "sha512-U1riIR+lBSNi3IbxtaHOIKdH8sLFv3NYfNv8sg7ZsNhcfl4HF2++BfqqrNAxoCLQW1iiylOj76ecnaUxz+z9yw==", + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -7797,9 +7796,9 @@ } }, "node_modules/enhanced-resolve": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.8.3.tgz", - "integrity": "sha512-EGAbGvH7j7Xt2nc0E7D99La1OiEs8LnyimkRgwExpUMScN6O+3x9tIWs7PLQZVNx4YD+00skHXPXi1yQHpAmZA==", + "version": "5.12.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.12.0.tgz", + "integrity": "sha512-QHTXI/sZQmko1cbDoNAa3mJ5qhWUUNAq3vR0/YiD379fWQrcfuoX1+HW2S0MTt7XmoPLapdaDKUtelUSPic7hQ==", "dev": true, "dependencies": { "graceful-fs": "^4.2.4", @@ -10107,9 +10106,9 @@ } }, "node_modules/graceful-fs": { - "version": "4.2.6", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz", - "integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==", + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", "dev": true }, "node_modules/gzip-size": { @@ -21691,9 +21690,9 @@ } }, "node_modules/watchpack": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.3.1.tgz", - "integrity": "sha512-x0t0JuydIo8qCNctdDrn1OzH/qDzk2+rdCOC3YzumZ42fiMqmQ7T3xQurykYMhYfHaPHTp4ZxAx2NfUo1K6QaA==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", + "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", "dev": true, "dependencies": { "glob-to-regexp": "^0.4.1", @@ -21722,41 +21721,50 @@ } }, "node_modules/webpack": { - "version": "5.65.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.65.0.tgz", - "integrity": "sha512-Q5or2o6EKs7+oKmJo7LaqZaMOlDWQse9Tm5l1WAfU/ujLGN5Pb0SqGeVkN/4bpPmEqEP5RnVhiqsOtWtUVwGRw==", + "version": "5.76.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.76.1.tgz", + "integrity": "sha512-4+YIK4Abzv8172/SGqObnUjaIHjLEuUasz9EwQj/9xmPPkYJy2Mh03Q/lJfSD3YLzbxy5FeTq5Uw0323Oh6SJQ==", "dev": true, "dependencies": { - "@types/eslint-scope": "^3.7.0", - "@types/estree": "^0.0.50", + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^0.0.51", "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/wasm-edit": "1.11.1", "@webassemblyjs/wasm-parser": "1.11.1", - "acorn": "^8.4.1", + "acorn": "^8.7.1", "acorn-import-assertions": "^1.7.6", "browserslist": "^4.14.5", "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.8.3", + "enhanced-resolve": "^5.10.0", "es-module-lexer": "^0.9.0", "eslint-scope": "5.1.1", "events": "^3.2.0", "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.4", - "json-parse-better-errors": "^1.0.2", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", "loader-runner": "^4.2.0", "mime-types": "^2.1.27", "neo-async": "^2.6.2", "schema-utils": "^3.1.0", "tapable": "^2.1.1", "terser-webpack-plugin": "^5.1.3", - "watchpack": "^2.3.1", - "webpack-sources": "^3.2.2" + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" }, "bin": { "webpack": "bin/webpack.js" }, "engines": { "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } } }, "node_modules/webpack-dev-middleware": { @@ -21964,9 +21972,9 @@ } }, "node_modules/webpack-sources": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.2.tgz", - "integrity": "sha512-cp5qdmHnu5T8wRg2G3vZZHoJPN14aqQ89SyQ11NpGH5zEMDCclt49rzo+MaRazk7/UeILhAI+/sEtcM+7Fr0nw==", + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", "dev": true, "engines": { "node": ">=10.13.0" @@ -25361,9 +25369,9 @@ } }, "@types/eslint-scope": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.1.tgz", - "integrity": "sha512-SCFeogqiptms4Fg29WpOTk5nHIzfpKCemSN63ksBQYKTcXoJEmJagV+DhVmbapZzY4/5YaOV1nZwrsU79fFm1g==", + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", + "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", "dev": true, "requires": { "@types/eslint": "*", @@ -25371,9 +25379,9 @@ } }, "@types/estree": { - "version": "0.0.50", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.50.tgz", - "integrity": "sha512-C6N5s2ZFtuZRj54k2/zyRhNDjJwwcViAM3Nbm8zjBpbqAdZ00mr0CFxvSKeO8Y/e03WVFLpQMdHYVfUd6SB+Hw==", + "version": "0.0.51", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.51.tgz", + "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==", "dev": true }, "@types/faker": { @@ -26138,9 +26146,9 @@ } }, "acorn": { - "version": "8.6.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.6.0.tgz", - "integrity": "sha512-U1riIR+lBSNi3IbxtaHOIKdH8sLFv3NYfNv8sg7ZsNhcfl4HF2++BfqqrNAxoCLQW1iiylOj76ecnaUxz+z9yw==", + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", "dev": true }, "acorn-globals": { @@ -28825,9 +28833,9 @@ } }, "enhanced-resolve": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.8.3.tgz", - "integrity": "sha512-EGAbGvH7j7Xt2nc0E7D99La1OiEs8LnyimkRgwExpUMScN6O+3x9tIWs7PLQZVNx4YD+00skHXPXi1yQHpAmZA==", + "version": "5.12.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.12.0.tgz", + "integrity": "sha512-QHTXI/sZQmko1cbDoNAa3mJ5qhWUUNAq3vR0/YiD379fWQrcfuoX1+HW2S0MTt7XmoPLapdaDKUtelUSPic7hQ==", "dev": true, "requires": { "graceful-fs": "^4.2.4", @@ -30658,9 +30666,9 @@ } }, "graceful-fs": { - "version": "4.2.6", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz", - "integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==", + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", "dev": true }, "gzip-size": { @@ -40075,9 +40083,9 @@ } }, "watchpack": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.3.1.tgz", - "integrity": "sha512-x0t0JuydIo8qCNctdDrn1OzH/qDzk2+rdCOC3YzumZ42fiMqmQ7T3xQurykYMhYfHaPHTp4ZxAx2NfUo1K6QaA==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", + "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", "dev": true, "requires": { "glob-to-regexp": "^0.4.1", @@ -40100,35 +40108,35 @@ "dev": true }, "webpack": { - "version": "5.65.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.65.0.tgz", - "integrity": "sha512-Q5or2o6EKs7+oKmJo7LaqZaMOlDWQse9Tm5l1WAfU/ujLGN5Pb0SqGeVkN/4bpPmEqEP5RnVhiqsOtWtUVwGRw==", + "version": "5.76.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.76.1.tgz", + "integrity": "sha512-4+YIK4Abzv8172/SGqObnUjaIHjLEuUasz9EwQj/9xmPPkYJy2Mh03Q/lJfSD3YLzbxy5FeTq5Uw0323Oh6SJQ==", "dev": true, "requires": { - "@types/eslint-scope": "^3.7.0", - "@types/estree": "^0.0.50", + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^0.0.51", "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/wasm-edit": "1.11.1", "@webassemblyjs/wasm-parser": "1.11.1", - "acorn": "^8.4.1", + "acorn": "^8.7.1", "acorn-import-assertions": "^1.7.6", "browserslist": "^4.14.5", "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.8.3", + "enhanced-resolve": "^5.10.0", "es-module-lexer": "^0.9.0", "eslint-scope": "5.1.1", "events": "^3.2.0", "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.4", - "json-parse-better-errors": "^1.0.2", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", "loader-runner": "^4.2.0", "mime-types": "^2.1.27", "neo-async": "^2.6.2", "schema-utils": "^3.1.0", "tapable": "^2.1.1", "terser-webpack-plugin": "^5.1.3", - "watchpack": "^2.3.1", - "webpack-sources": "^3.2.2" + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" }, "dependencies": { "eslint-scope": { @@ -40335,9 +40343,9 @@ } }, "webpack-sources": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.2.tgz", - "integrity": "sha512-cp5qdmHnu5T8wRg2G3vZZHoJPN14aqQ89SyQ11NpGH5zEMDCclt49rzo+MaRazk7/UeILhAI+/sEtcM+7Fr0nw==", + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", "dev": true }, "websocket-driver": { From 25ebc5a4d3ddefa2942f99b8d9e7f6426c222f3a Mon Sep 17 00:00:00 2001 From: abrha Date: Thu, 23 Feb 2023 15:44:11 +0100 Subject: [PATCH 2/7] [OPP-1532] ny meldingsvisning endringer - clean up --- src/app/personside/infotabs/InfoTabEnum.ts | 10 ---------- src/app/personside/infotabs/NyTabKnapper.tsx | 8 ++++---- .../infotabs/dyplenkeTest/meldingerDyplenker.test.tsx | 2 +- .../infotabs/meldinger/traadliste/TraadListe.tsx | 8 ++++---- .../traadliste/__snapshots__/TraadListe.test.tsx.snap | 10 +++++----- src/app/personside/infotabs/oversikt/Oversikt.tsx | 2 +- .../oversikt/__snapshots__/Oversikt.test.tsx.snap | 4 ++-- 7 files changed, 17 insertions(+), 27 deletions(-) diff --git a/src/app/personside/infotabs/InfoTabEnum.ts b/src/app/personside/infotabs/InfoTabEnum.ts index 4e15f72e8..4b34e982a 100644 --- a/src/app/personside/infotabs/InfoTabEnum.ts +++ b/src/app/personside/infotabs/InfoTabEnum.ts @@ -15,16 +15,6 @@ export interface InfotabConfig { export type Infotabs = Record; export const INFOTABS: Infotabs = { - OVERSIKT: { tittel: 'Oversikt', path: 'oversikt' }, - OPPFOLGING: { tittel: 'Oppfølging', path: 'oppfolging' }, - MELDINGER: { tittel: 'Meldinger', path: 'meldinger' }, - UTBETALING: { tittel: 'Utbetaling', path: 'utbetaling' }, - SAKER: { tittel: 'Saker', path: 'saker' }, - YTELSER: { tittel: 'Ytelser', path: 'ytelser' }, - VARSLER: { tittel: 'Varsler', path: 'varsler' } -}; - -export const NY_INFOTABS: Infotabs = { OVERSIKT: { tittel: 'Oversikt', path: 'oversikt' }, OPPFOLGING: { tittel: 'Oppfølging', path: 'oppfolging' }, MELDINGER: { tittel: 'Kommunikasjon', path: 'meldinger' }, diff --git a/src/app/personside/infotabs/NyTabKnapper.tsx b/src/app/personside/infotabs/NyTabKnapper.tsx index 7de891cfa..f83c6fde8 100644 --- a/src/app/personside/infotabs/NyTabKnapper.tsx +++ b/src/app/personside/infotabs/NyTabKnapper.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { InfotabConfig, NY_INFOTABS } from './InfoTabEnum'; +import { InfotabConfig, INFOTABS } from './InfoTabEnum'; import styled, { css } from 'styled-components/macro'; import theme, { pxToRem } from '../../../styles/personOversiktTheme'; @@ -63,12 +63,12 @@ const TabKnapp = styled.button` `; function NyTabKnapper(props: TabPanelProps) { - const knapper = Object.keys(NY_INFOTABS).map((key) => { - const erValgt = NY_INFOTABS[key] === props.openTab; + const knapper = Object.keys(INFOTABS).map((key) => { + const erValgt = INFOTABS[key] === props.openTab; return ( props.onTabChange(key)}> - {NY_INFOTABS[key].tittel} + {INFOTABS[key].tittel} ); diff --git a/src/app/personside/infotabs/dyplenkeTest/meldingerDyplenker.test.tsx b/src/app/personside/infotabs/dyplenkeTest/meldingerDyplenker.test.tsx index faf2b30cd..b79633db3 100644 --- a/src/app/personside/infotabs/dyplenkeTest/meldingerDyplenker.test.tsx +++ b/src/app/personside/infotabs/dyplenkeTest/meldingerDyplenker.test.tsx @@ -28,7 +28,7 @@ test('bytter til riktig tab og setter fokus på riktig melding ved bruk av dyple clickOnMeldingerIOversikt(infoTabs); - expect(getAktivTab(infoTabs).toLowerCase()).toContain(INFOTABS.MELDINGER.path); + expect(getAktivTab(infoTabs)).toContain(INFOTABS.MELDINGER.tittel); const checkedMelding = infoTabs.find('input[checked=true].' + meldingerTest.melding).html(); const expectedElement = infoTabs diff --git a/src/app/personside/infotabs/meldinger/traadliste/TraadListe.tsx b/src/app/personside/infotabs/meldinger/traadliste/TraadListe.tsx index dab9cb880..6ac2db707 100644 --- a/src/app/personside/infotabs/meldinger/traadliste/TraadListe.tsx +++ b/src/app/personside/infotabs/meldinger/traadliste/TraadListe.tsx @@ -82,7 +82,7 @@ function PrintAlleMeldinger({ traader }: { traader: Traad[] }) { return ( <> - printer?.triggerPrint()} /> + printer?.triggerPrint()} /> {traader.map((traad) => ( @@ -131,7 +131,7 @@ function TraadListe(props: Props) { ); - const meldingTekst = props.traader.length === 1 ? 'melding' : 'meldinger'; + const meldingTekst = props.traader.length === 1 ? 'kommunikasjon' : 'kommunikasjoner'; const soketreffTekst = props.traaderEtterSokOgFiltrering.length !== props.traader.length ? `Søket traff ${props.traaderEtterSokOgFiltrering.length} av ${props.traader.length} ${meldingTekst}` @@ -162,8 +162,8 @@ function TraadListe(props: Props) { } value={meldingsok.query} onChange={onMeldingerSok} - label={'Søk etter melding'} - placeholder={'Søk etter melding'} + label={'Søk etter kommunikasjon'} + placeholder={'Søk etter kommunikasjon'} className={'move-input-label'} /> diff --git a/src/app/personside/infotabs/meldinger/traadliste/__snapshots__/TraadListe.test.tsx.snap b/src/app/personside/infotabs/meldinger/traadliste/__snapshots__/TraadListe.test.tsx.snap index 46e5375c4..578436297 100644 --- a/src/app/personside/infotabs/meldinger/traadliste/__snapshots__/TraadListe.test.tsx.snap +++ b/src/app/personside/infotabs/meldinger/traadliste/__snapshots__/TraadListe.test.tsx.snap @@ -346,14 +346,14 @@ exports[`Viser Traadliste 1`] = ` className="skjemaelement__label" htmlFor="Helt tilfeldig ID" > - Søk etter melding + Søk etter kommunikasjon @@ -370,7 +370,7 @@ exports[`Viser Traadliste 1`] = ` - Skriv ut alle meldinger + Skriv ut all kommunikasjon - Totalt 1 melding + Totalt 1 kommunikasjon

@@ -701,7 +701,7 @@ exports[`Viser Traadliste 1`] = ` id="Helt tilfeldig ID" > Meldingsliste - - Totalt 1 melding + Totalt 1 kommunikasjon
    diff --git a/src/app/personside/infotabs/oversikt/__snapshots__/Oversikt.test.tsx.snap b/src/app/personside/infotabs/oversikt/__snapshots__/Oversikt.test.tsx.snap index 9aca748d0..5939d5506 100644 --- a/src/app/personside/infotabs/oversikt/__snapshots__/Oversikt.test.tsx.snap +++ b/src/app/personside/infotabs/oversikt/__snapshots__/Oversikt.test.tsx.snap @@ -907,7 +907,7 @@ exports[`Viser oversikt med alt innhold 1`] = ` className="typo-undertittel" id="Helt tilfeldig ID" > - Meldinger + Kommunikasjon
    Gå til - meldinger + kommunikasjon

    From f56870fd13b629687f0ea91f3b1cefce13cbd90a Mon Sep 17 00:00:00 2001 From: abrha Date: Thu, 23 Feb 2023 16:08:13 +0100 Subject: [PATCH 3/7] [OPP-1532] fjern feature toggle for ny meldingsvisning endringer --- package-lock.json | 17 +- .../personside/dialogpanel/DialogPanel.tsx | 35 +- .../__snapshots__/DialogPanel.test.tsx.snap | 198 +++++--- .../personside/dialogpanel/fellesStyling.tsx | 20 +- .../fortsettDialog/FortsettDialog.tsx | 101 ++-- .../FortsettDialogContainer.tsx | 65 +-- .../FortsettDialogKvittering.tsx | 3 +- .../fortsettDialog/FortsettDialogTypes.ts | 7 +- .../fortsettDialog/NyFortsettDialog.tsx | 150 ------ .../NyFortsettDialogContainer.tsx | 230 --------- .../NyFortsettDialogKvittering.tsx | 22 - .../fortsettDialog/NyFortsettDialogTypes.ts | 43 -- .../fortsettDialog/VelgDialogType.tsx | 56 -- .../fortsettDialog/nyValidatorer.ts | 21 - .../tidligereMeldinger/EnkeltMelding.tsx | 7 +- .../tidligereMeldinger/NyEnkeltMelding.tsx | 60 --- .../tidligereMeldinger/TidligereMeldinger.tsx | 28 +- .../dialogpanel/fortsettDialog/validatorer.ts | 25 +- .../sendMelding/NySendNyMelding.tsx | 192 ------- .../sendMelding/NySendNyMeldingContainer.tsx | 185 ------- .../sendMelding/NySendNyMeldingKvittering.tsx | 38 -- .../sendMelding/NyVelgDialogType.tsx | 37 -- .../dialogpanel/sendMelding/SendNyMelding.tsx | 95 ++-- .../sendMelding/SendNyMeldingContainer.tsx | 103 ++-- .../sendMelding/SendNyMeldingKvittering.tsx | 33 +- .../sendMelding/VelgDialogType.tsx | 28 +- .../__snapshots__/SendNyMelding.test.tsx.snap | 198 +++++--- .../dialogpanel/sendMelding/nyValidatorer.ts | 26 - .../dialogpanel/sendMelding/validatorer.ts | 20 +- src/app/personside/infotabs/InfoTabs.tsx | 11 +- src/app/personside/infotabs/NyTabKnapper.tsx | 85 ---- src/app/personside/infotabs/TabKnapper.tsx | 6 +- .../traadliste/NyTraadSammendrag.tsx | 120 ----- .../traadliste/TraadListeElement.tsx | 11 +- .../meldinger/traadliste/TraadSammendrag.tsx | 4 +- .../__snapshots__/TraadListe.test.tsx.snap | 2 +- .../meldinger/traadvisning/Enkeltmelding.tsx | 89 ++-- .../traadvisning/NyEnkeltmelding.tsx | 134 ----- .../meldinger/traadvisning/NyTraadVisning.tsx | 173 ------- .../meldinger/traadvisning/TraadVisning.tsx | 60 ++- .../traadvisning/TraadVisningWrapper.tsx | 11 +- .../TraadVisningWrapper.test.tsx.snap | 479 +++++++++--------- .../sladdevalg/SladdMeldingerMedArsak.tsx | 28 +- .../infotabs/oversikt/MeldingerOversikt.tsx | 11 +- .../__snapshots__/Oversikt.test.tsx.snap | 2 +- src/svg/ReadIcon.tsx | 4 +- 46 files changed, 831 insertions(+), 2442 deletions(-) delete mode 100644 src/app/personside/dialogpanel/fortsettDialog/NyFortsettDialog.tsx delete mode 100644 src/app/personside/dialogpanel/fortsettDialog/NyFortsettDialogContainer.tsx delete mode 100644 src/app/personside/dialogpanel/fortsettDialog/NyFortsettDialogKvittering.tsx delete mode 100644 src/app/personside/dialogpanel/fortsettDialog/NyFortsettDialogTypes.ts delete mode 100644 src/app/personside/dialogpanel/fortsettDialog/VelgDialogType.tsx delete mode 100644 src/app/personside/dialogpanel/fortsettDialog/nyValidatorer.ts delete mode 100644 src/app/personside/dialogpanel/fortsettDialog/tidligereMeldinger/NyEnkeltMelding.tsx delete mode 100644 src/app/personside/dialogpanel/sendMelding/NySendNyMelding.tsx delete mode 100644 src/app/personside/dialogpanel/sendMelding/NySendNyMeldingContainer.tsx delete mode 100644 src/app/personside/dialogpanel/sendMelding/NySendNyMeldingKvittering.tsx delete mode 100644 src/app/personside/dialogpanel/sendMelding/NyVelgDialogType.tsx delete mode 100644 src/app/personside/dialogpanel/sendMelding/nyValidatorer.ts delete mode 100644 src/app/personside/infotabs/NyTabKnapper.tsx delete mode 100644 src/app/personside/infotabs/meldinger/traadliste/NyTraadSammendrag.tsx delete mode 100644 src/app/personside/infotabs/meldinger/traadvisning/NyEnkeltmelding.tsx delete mode 100644 src/app/personside/infotabs/meldinger/traadvisning/NyTraadVisning.tsx diff --git a/package-lock.json b/package-lock.json index a5ac7299f..4f7704bb1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,6 @@ "version": "0.4.2", "license": "MIT", "dependencies": { - "@navikt/ds-icons": "^2.0.1", "@navikt/fnrvalidator": "^1.1.3", "@navikt/navspa": "^4.0.0", "@navikt/tag-input": "^2.0.1", @@ -5855,9 +5854,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001352", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001352.tgz", - "integrity": "sha512-GUgH8w6YergqPQDGWhJGt8GDRnY0L/iJVQcU3eJ46GYf52R8tk0Wxp0PymuFVZboJYXGiCqwozAYZNRjVj6IcA==", + "version": "1.0.30001480", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001480.tgz", + "integrity": "sha512-q7cpoPPvZYgtyC4VaBSN0Bt+PJ4c4EYRf0DrduInOz2SkFpHD5p3LnvEpqBp7UnJn+8x1Ogl1s38saUxe+ihQQ==", "dev": true, "funding": [ { @@ -5867,6 +5866,10 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } ] }, @@ -27236,9 +27239,9 @@ } }, "caniuse-lite": { - "version": "1.0.30001352", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001352.tgz", - "integrity": "sha512-GUgH8w6YergqPQDGWhJGt8GDRnY0L/iJVQcU3eJ46GYf52R8tk0Wxp0PymuFVZboJYXGiCqwozAYZNRjVj6IcA==", + "version": "1.0.30001480", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001480.tgz", + "integrity": "sha512-q7cpoPPvZYgtyC4VaBSN0Bt+PJ4c4EYRf0DrduInOz2SkFpHD5p3LnvEpqBp7UnJn+8x1Ogl1s38saUxe+ihQQ==", "dev": true }, "capture-exit": { diff --git a/src/app/personside/dialogpanel/DialogPanel.tsx b/src/app/personside/dialogpanel/DialogPanel.tsx index 36be9d8bd..1fa0bc47b 100644 --- a/src/app/personside/dialogpanel/DialogPanel.tsx +++ b/src/app/personside/dialogpanel/DialogPanel.tsx @@ -8,11 +8,6 @@ import useVisTraadTilknyttetPlukketOppgave from './fortsettDialog/useVisTraadTil import { OppgavelisteValg } from './sendMelding/SendNyMelding'; import LazySpinner from '../../../components/LazySpinner'; import innstillingerResource from '../../../rest/resources/innstillingerResource'; -import IfFeatureToggleOn from '../../../components/featureToggle/IfFeatureToggleOn'; -import { FeatureToggles } from '../../../components/featureToggle/toggleIDs'; -import IfFeatureToggleOff from '../../../components/featureToggle/IfFeatureToggleOff'; -import NyFortsettDialogContainer from './fortsettDialog/NyFortsettDialogContainer'; -import NySendNyMeldingContainer from './sendMelding/NySendNyMeldingContainer'; const DialogPanelWrapper = styled.div` flex-grow: 1; @@ -38,31 +33,13 @@ function DialogPanel() { {dialogpanelTraad ? ( - <> - - - - - - - + ) : ( - <> - - - - - - - + )} diff --git a/src/app/personside/dialogpanel/__snapshots__/DialogPanel.test.tsx.snap b/src/app/personside/dialogpanel/__snapshots__/DialogPanel.test.tsx.snap index 8402db63b..99cf067e1 100644 --- a/src/app/personside/dialogpanel/__snapshots__/DialogPanel.test.tsx.snap +++ b/src/app/personside/dialogpanel/__snapshots__/DialogPanel.test.tsx.snap @@ -100,6 +100,21 @@ exports[`viser dialogpanel 1`] = ` padding-left: 2.25rem; } +.c16 { + margin-top: 1rem; +} + +.c16 label { + position: absolute !important; + height: 1px; + width: 1px; + overflow: hidden; + -webkit-clip: rect(1px 1px 1px 1px); + clip: rect(1px 1px 1px 1px); + -webkit-clip: rect(1px,1px,1px,1px); + clip: rect(1px,1px,1px,1px); +} + .c5 { display: -webkit-box; display: -webkit-flex; @@ -158,7 +173,7 @@ exports[`viser dialogpanel 1`] = ` padding: 1rem .5rem; } -.c16 { +.c18 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -168,7 +183,7 @@ exports[`viser dialogpanel 1`] = ` flex-direction: column; } -.c16 > * { +.c18 > * { margin-bottom: 0.7rem; } @@ -176,6 +191,10 @@ exports[`viser dialogpanel 1`] = ` margin-top: 1rem; } +.c17 { + margin-top: 1rem; +} + .c4 { margin-bottom: 1rem !important; } @@ -477,7 +496,7 @@ exports[`viser dialogpanel 1`] = ` className="skjemaelement__label" htmlFor="Helt tilfeldig ID" > - Referat telefon + Referat
    - Referat oppmøte - -
    -
    - -
    -
    +
    - -

    + Velg sak + +

    + Ingen valgt sak +

    +
    +
    - Ingen valgt sak -

    -
    -
    - + Oppgaveliste + +
    + +
    +
    +
    - info + + info + + + + + + + - - - - - - - + Gir varsel, bruker må svare +
    +
    - Gir varsel, bruker kan ikke svare + +
    - Referat oppmøte - -
    -
    - -
    -
    +
    - -

    + Velg sak + +

    + Ingen valgt sak +

    +
    +
    - Ingen valgt sak -

    -
    -
    - + Oppgaveliste + +
    + +
    +
    +
    - info + + info + + + + + + + - - - - - - - + Gir varsel, bruker må svare +
    +
    - Gir varsel, bruker kan ikke svare + +