Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Np 974 email field #725

Merged
merged 4 commits into from
May 27, 2020
Merged

Np 974 email field #725

merged 4 commits into from
May 27, 2020

Conversation

elkebab
Copy link
Contributor

@elkebab elkebab commented May 27, 2020

No description provided.

@elkebab elkebab closed this May 27, 2020
@elkebab elkebab deleted the NP-974-email-field branch May 27, 2020 07:22
@elkebab elkebab reopened this May 27, 2020
@elkebab elkebab requested a review from sarahse May 27, 2020 07:30
@@ -17,7 +17,7 @@
"axios": "^0.19.2",
"date-fns": "^2.14.0",
"deepmerge": "^4.2.2",
"formik": "^2.1.4",
"formik": "^2.0.7",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -12,12 +12,13 @@ import {
Tooltip,
TableContainer,
} from '@material-ui/core';
import { Field, FieldProps, FormikProps, useFormikContext } from 'formik';
import { Field, FieldProps, FormikProps, useFormikContext, FieldArrayRenderProps, move } from 'formik';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hvis du kan importere move her, betyr det at du kan importere replace, push og remove også?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nei, de setter også verdien i formik. Tidligere gjorde vi det også slik med move, men da måtte vi kalle setField for hvert enkelt field, som trigger ny render hver sin nye render. Når vi importerer move her kan vi flytte elementet i lista uten at det lagres med en gang, så lagrer vi hele contributors en gang når alt er rett (sequence-verdier er oppdatert for hver contributor)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eller, svaret er "ja", men da måtte vi manuelt kalt setFieldValue etterpå for hver operasjon også

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, skjønner 👍

@elkebab elkebab merged commit 05fefce into develop May 27, 2020
svenngjeto added a commit that referenced this pull request Jun 4, 2020
* Np 890  bugfix show uploaded file (#642)

* set hasUploadSuccessEventListener to false when unmounting files tab

* ignore check if uppy has upload successevent listener

* add translations

* Bump @cypress/webpack-preprocessor from 5.1.2 to 5.2.0 (#645)

Bumps [@cypress/webpack-preprocessor](https://github.com/cypress-io/cypress-webpack-preprocessor) from 5.1.2 to 5.2.0.
- [Release notes](https://github.com/cypress-io/cypress-webpack-preprocessor/releases)
- [Commits](cypress-io/cypress-webpack-preprocessor@v5.1.2...v5.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump date-fns from 2.12.0 to 2.13.0 (#644)

Bumps [date-fns](https://github.com/date-fns/date-fns) from 2.12.0 to 2.13.0.
- [Release notes](https://github.com/date-fns/date-fns/releases)
- [Changelog](https://github.com/date-fns/date-fns/blob/master/CHANGELOG.md)
- [Commits](date-fns/date-fns@v2.12.0...v2.13.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump @material-ui/lab from 4.0.0-alpha.48 to 4.0.0-alpha.53 (#646)

Bumps [@material-ui/lab](https://github.com/mui-org/material-ui/tree/HEAD/packages/material-ui-lab) from 4.0.0-alpha.48 to 4.0.0-alpha.53.
- [Release notes](https://github.com/mui-org/material-ui/releases)
- [Changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mui-org/material-ui/commits/HEAD/packages/material-ui-lab)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Update uppy (#647)

* Bump @uppy/core from 1.10.2 to 1.10.4

Bumps [@uppy/core](https://github.com/transloadit/uppy) from 1.10.2 to 1.10.4.
- [Release notes](https://github.com/transloadit/uppy/releases)
- [Changelog](https://github.com/transloadit/uppy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/transloadit/uppy/compare/@uppy/core@1.10.2...@uppy/core@1.10.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump @uppy/aws-s3-multipart from 1.6.2 to 1.6.4

Bumps [@uppy/aws-s3-multipart](https://github.com/transloadit/uppy) from 1.6.2 to 1.6.4.
- [Release notes](https://github.com/transloadit/uppy/releases)
- [Changelog](https://github.com/transloadit/uppy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/transloadit/uppy/compare/@uppy/aws-s3-multipart@1.6.2...@uppy/aws-s3-multipart@1.6.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump @uppy/dashboard from 1.8.3 to 1.8.5

Bumps [@uppy/dashboard](https://github.com/transloadit/uppy) from 1.8.3 to 1.8.5.
- [Release notes](https://github.com/transloadit/uppy/releases)
- [Changelog](https://github.com/transloadit/uppy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/transloadit/uppy/compare/@uppy/dashboard@1.8.3...@uppy/dashboard@1.8.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump @uppy/react from 1.6.3 to 1.6.5

Bumps [@uppy/react](https://github.com/transloadit/uppy) from 1.6.3 to 1.6.5.
- [Release notes](https://github.com/transloadit/uppy/releases)
- [Changelog](https://github.com/transloadit/uppy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/transloadit/uppy/compare/@uppy/react@1.6.3...@uppy/react@1.6.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Fix tests according to updated uppy

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Np 883 validate tabs (#640)

* Remove old TODO comment

* NP-883 Test missing email field

* NP-883 Initial work on tab validation

* NP-883 Set file fields to touched

* NP-883 Rename and move touched variables

* NP-883 Validate tabs on unmount

* NP-883 Set more fields to touched

* NP-883 Write test for more journal fields

* NP-883 Test tabs continuously

* NP-883 Fix typos

* NP-883 Reuse logic of setting touched fields

* NP-833 Ensure date input is entered correctly

* NP-883 Ensure page interval is valid

* Np-883 Update page number tests

* NP-883 Remove aria-labels

Co-authored-by: Møkkelgjerd Kjetil <Kjetil.Mokkelgjerd@norconsult.com>

* Bump @types/react-dom from 16.9.7 to 16.9.8 (#654)

Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 16.9.7 to 16.9.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump @typescript-eslint/parser from 2.30.0 to 2.33.0 (#653)

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.30.0 to 2.33.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.33.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump @types/node from 13.13.5 to 14.0.1 (#650)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.13.5 to 14.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Np 450 show affiliations in author list (#655)

* NP-450 Show one institution for authors

* NP-450 Reuse logic for listing authorities

* NP-450 Allow setting maxWidth of modal

* NP-450 Reset initial tab number

Co-authored-by: Møkkelgjerd Kjetil <Kjetil.Mokkelgjerd@norconsult.com>

* Np 904 style authorities list (#656)

* NP-450 Show one institution for authors

* NP-450 Reuse logic for listing authorities

* NP-450 Allow setting maxWidth of modal

* NP-450 Reset initial tab number

* NP-904 Minor changes for styling of affiliation

* NP-904 Add translation

* NP-904 Style authority card

* NP-904 Add translation with pluralization

* NP-904 Avoid passing invalid prop to DOM element

* NP-904 Reset default tab

Co-authored-by: Møkkelgjerd Kjetil <Kjetil.Mokkelgjerd@norconsult.com>

* Use Card component (#657)

* Np 903 prefill affiliations (#659)

* NP-903 Remove unused code

* NP-903 Prefill selected contributor with affiliations

* NP-903 Display number of affiliations for each contributor

* Bump @types/yup from 0.28.1 to 0.28.3 (#661)

Bumps [@types/yup](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/yup) from 0.28.1 to 0.28.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/yup)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Np 899  license info (#658)

* add svg files for licenses

* set selected license image

* delete png images

* fix styling of cc images in select in FileCard after using svg

* add cssByNc and ccByNd

* add cc-by-nc-sa svg

* add cc-by-nc-nd and cc0 svgs

* fix size of cc0 button

* add translations for cc by

* add text for cc-by-nd and cc-by-sa

* use translations

* add rest of translations

* fix styling of license modal

* set maxWidth of modal to medium and simplify conditional render

* NP-903 Fix bug where modal text was incomplete (#664)

* Np 885  download file from public publication (#663)

* start of file download

* add icon and translation

* download file

* add error handling

* remove unnecessary props

* remove unused import

* Np 909 url public profile (#665)

* NP-909 Use arpId/scn for identifying user

* NP-909 Change from /public-profile to /profile

* NP-910 Link to public profile from public publication (#666)

* Bump ts-loader from 7.0.3 to 7.0.4 (#668)

Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 7.0.3 to 7.0.4.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](TypeStrong/ts-loader@v7.0.3...v7.0.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Np 906  publication page styling (#667)

* fix styling on public publication page

* cleanup

* Bump yup from 0.28.4 to 0.28.5 (#662)

Bumps [yup](https://github.com/jquense/yup) from 0.28.4 to 0.28.5.
- [Release notes](https://github.com/jquense/yup/releases)
- [Changelog](https://github.com/jquense/yup/blob/master/CHANGELOG.md)
- [Commits](jquense/yup@v0.28.4...v0.28.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Np 916 tags (#670)

* NP-916 Use native MUI components for tags

* NP-916 Display existing tags

* NP-916 Set type of value

* Np 918  my publications view (#671)

* create components PublishedPublications and UnPublishedPublications and set MyPublications as parent node

* show unpublished and published publications

* add translations

* extract TabButton as separate component

* fix typo

* Np 907  pagination in my publications (#676)

* add TablePagination

* cleanup

* extract ugly conditional to util function

* add type

* Np 921 show contributor affiliations (#675)

* NP-921 Move api call to custom hook

* NP-921 List affiliation indexes

* NP-921 Display affiliations for every contributor

* NP-921 Show affiliation hierarchy for public profile

* Np 966  table with pagination in my worklist (#680)

* add TablePagination

* cleanup

* create pagination and update mockdata

* cleanup

* Np 927 package cleanup (#674)

* NP-927 Remove ts-loader

* NP-927 Remove history

* NP-927 Move types to devDependencies

* NP-927 Remove testing-library

* NP-927 Use i18next-browser-languagedetector package

* NP-927 Remove material-ui-flat-pagination

* NP-927 Remove duplicate react-router

* NP-927 Remove cypress/webpack-preprocessor

* NP-927 Remove unused react-router types

* NP-927 Remove instanbul-lib-coverage

* NP-927 Remove eslint packages already required by react-scripts

* NP-927 Fix bug if localstorage has invalid value for i18nextLng

* NP-927 Remove history type

* Np 928 remove formik material ui (#681)

* NP-928 Remove formik-material-ui from description tab

* NP-928 Remove formik-material-ui from customer institution page

* NP-928 Remove formik-material-ui package

* NP-928 Fix validation

* NP-928 Move disabled prop

* NP-928 Fix tests

* Remove unused prop (#682)

* NP-971 Ensure fetch hooks can cancel their requests (#683)

* Bump @types/react-redux from 7.1.8 to 7.1.9 (#687)

Bumps [@types/react-redux](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-redux) from 7.1.8 to 7.1.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-redux)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump date-fns from 2.13.0 to 2.14.0 (#688)

Bumps [date-fns](https://github.com/date-fns/date-fns) from 2.13.0 to 2.14.0.
- [Release notes](https://github.com/date-fns/date-fns/releases)
- [Changelog](https://github.com/date-fns/date-fns/blob/master/CHANGELOG.md)
- [Commits](date-fns/date-fns@v2.13.0...v2.14.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Np 965  curator opens publication after doi request (#684)

* same layout for worklistPage and MyPublications

* use Card from MUI

* navigate to publication when curator opening publication

* navigate to submission tab and show "create doi" button if curator

* add button to reject doi

* create enum for publication tab

* add test

* use StyledButton instead of div container

* Bump @types/node from 14.0.1 to 14.0.4 (#685)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.1 to 14.0.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Np 920  add links to licenses (#690)

* rename PublicationPage to PublicPublication and add license links

* add link to license heading

* cleanup

* Np 969 link corresponding orcid (#691)

* NP-969 Add mailto and link to orcid profile

* NP-969 Move import

* show npiSubject in public publication (#692)

* Np 977 affiliation hierarchy (#693)

* NP-969 Add mailto and link to orcid profile

* NP-969 Reuse logic for fetching unit

* Use one component for displaying affiliation hierarchy

* NP-969 Add mailto and link to orcid profile

* NP-969 Move import

* NP-977 Reuse logic for fetching and displaying affiliation

* NP-977 Fix some styling

* NP-977 Rename method

* NP-977 Fix comment

* Bump i18next-browser-languagedetector from 4.1.1 to 4.2.0 (#698)

Bumps [i18next-browser-languagedetector](https://github.com/i18next/i18next-browser-languageDetector) from 4.1.1 to 4.2.0.
- [Release notes](https://github.com/i18next/i18next-browser-languageDetector/releases)
- [Changelog](https://github.com/i18next/i18next-browser-languageDetector/blob/master/CHANGELOG.md)
- [Commits](i18next/i18next-browser-languageDetector@v4.1.1...v4.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump @types/yup from 0.28.3 to 0.29.0 (#697)

Bumps [@types/yup](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/yup) from 0.28.3 to 0.29.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/yup)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump cypress from 4.5.0 to 4.6.0 (#696)

Bumps [cypress](https://github.com/cypress-io/cypress) from 4.5.0 to 4.6.0.
- [Release notes](https://github.com/cypress-io/cypress/releases)
- [Commits](cypress-io/cypress@v4.5.0...v4.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump typescript from 3.8.3 to 3.9.3 (#689)

* Bump typescript from 3.8.3 to 3.9.3

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.8.3 to 3.9.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v3.8.3...v3.9.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Ensure correct type

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Kjetil Møkkelgjerd <kjetil@mokkelgjerd.no>

* Bump react-i18next from 11.4.0 to 11.5.0 (#706)

Bumps [react-i18next](https://github.com/i18next/react-i18next) from 11.4.0 to 11.5.0.
- [Release notes](https://github.com/i18next/react-i18next/releases)
- [Changelog](https://github.com/i18next/react-i18next/blob/master/CHANGELOG.md)
- [Commits](i18next/react-i18next@v11.4.0...v11.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump yup from 0.28.5 to 0.29.0 (#702)

Bumps [yup](https://github.com/jquense/yup) from 0.28.5 to 0.29.0.
- [Release notes](https://github.com/jquense/yup/releases)
- [Changelog](https://github.com/jquense/yup/blob/master/CHANGELOG.md)
- [Commits](jquense/yup@v0.28.5...v0.29.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump @types/node from 14.0.4 to 14.0.5 (#703)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.4 to 14.0.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump @material-ui/lab from 4.0.0-alpha.53 to 4.0.0-alpha.54 (#709)

Bumps [@material-ui/lab](https://github.com/mui-org/material-ui/tree/HEAD/packages/material-ui-lab) from 4.0.0-alpha.53 to 4.0.0-alpha.54.
- [Release notes](https://github.com/mui-org/material-ui/releases)
- [Changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mui-org/material-ui/commits/HEAD/packages/material-ui-lab)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump @material-ui/core from 4.9.13 to 4.10.0 (#704)

Bumps [@material-ui/core](https://github.com/mui-org/material-ui/tree/HEAD/packages/material-ui) from 4.9.13 to 4.10.0.
- [Release notes](https://github.com/mui-org/material-ui/releases)
- [Changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mui-org/material-ui/commits/v4.10.0/packages/material-ui)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump @material-ui/styles from 4.9.13 to 4.10.0 (#707)

Bumps [@material-ui/styles](https://github.com/mui-org/material-ui/tree/HEAD/packages/material-ui-styles) from 4.9.13 to 4.10.0.
- [Release notes](https://github.com/mui-org/material-ui/releases)
- [Changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mui-org/material-ui/commits/v4.10.0/packages/material-ui-styles)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* show more info on public publication (#694)

* Ensure increasing reference indexes (#699)

* NP-986 clean up app routes (#700)

* NP-971 Avoid error snackbar when requests are cancelled (#701)

* Np 912 fetch user (#695)

* NP-912 Initial work on fetching correct user

* NP-912 Cleanup logic

* NP-912 Fix public profile tests

* NP-912 Handle cancellation of request

* NP-912 Remove redundant null check

Co-authored-by: sarahse <sase@unit.no>

* NP-912 Expand try blocks

* NP-912 Remove placeholder for publications

Co-authored-by: sarahse <sase@unit.no>

* Bump react-router-dom from 5.1.2 to 5.2.0 (#651)

* Bump react-router-dom from 5.1.2 to 5.2.0

Bumps [react-router-dom](https://github.com/ReactTraining/react-router) from 5.1.2 to 5.2.0.
- [Release notes](https://github.com/ReactTraining/react-router/releases)
- [Changelog](https://github.com/ReactTraining/react-router/blob/master/CHANGELOG.md)
- [Commits](remix-run/react-router@v5.1.2...v5.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Replace history with location

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Kjetil Møkkelgjerd <kjetil@mokkelgjerd.no>

* Np 736 packages (#710)

* Run npm dedupe

* Run npm audit fix

* Bump styled-components from 5.1.0 to 5.1.1 (#717)

Bumps [styled-components](https://github.com/styled-components/styled-components) from 5.1.0 to 5.1.1.
- [Release notes](https://github.com/styled-components/styled-components/releases)
- [Changelog](https://github.com/styled-components/styled-components/blob/master/CHANGELOG.md)
- [Commits](styled-components/styled-components@v5.1.0...v5.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump i18next from 19.4.4 to 19.4.5 (#713)

Bumps [i18next](https://github.com/i18next/i18next) from 19.4.4 to 19.4.5.
- [Release notes](https://github.com/i18next/i18next/releases)
- [Changelog](https://github.com/i18next/i18next/blob/master/CHANGELOG.md)
- [Commits](i18next/i18next@v19.4.4...v19.4.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Np 1000 responsive publication-description and references (#711)

* create isMobile constant
do not show heading text on tabs if mobile

* add scrollable mui tabs
show tab heading

* fix description tab

* fix journalarticleform

* fix bookform

* fix report form

* fix publisherRow

* fix nvi validation

* fix tests

* QA changes

* fix scrollable tabs with fullWidth

* styledcomponents hides custom classnames that we add to custom components

* Np 1007 responsive publication contributors (#719)

* create isMobile constant
do not show heading text on tabs if mobile

* add scrollable mui tabs
show tab heading

* fix description tab

* fix journalarticleform

* fix bookform

* fix report form

* fix publisherRow

* fix nvi validation

* fix tests

* QA changes

* fix scrollable tabs with fullWidth

* styledcomponents hides custom classnames that we add to custom components

* add scrollable container for contributor table

* fix authority card modal

* mui has existing TableContainer which is used for scrollable tables

* Bump cypress from 4.6.0 to 4.7.0 (#722)

Bumps [cypress](https://github.com/cypress-io/cypress) from 4.6.0 to 4.7.0.
- [Release notes](https://github.com/cypress-io/cypress/releases)
- [Commits](cypress-io/cypress@v4.6.0...v4.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* set label width bigger on mobile view so that it won't show only one word per line (#720)

* scrollable institution table (#724)

* Np 1005 responsive profile (#726)

* fix orcid

* fix institution selector

* fix institution card

* Np 974 email field (#725)

* NP-974 Simplify sorting contributors

* NP-974 Downgrade formik to avoid validating FieldArrays twice

* NP-974 Remove console log

* fix modals (#727)

* Bump yup from 0.29.0 to 0.29.1 (#731)

Bumps [yup](https://github.com/jquense/yup) from 0.29.0 to 0.29.1.
- [Release notes](https://github.com/jquense/yup/releases)
- [Changelog](https://github.com/jquense/yup/blob/master/CHANGELOG.md)
- [Commits](jquense/yup@v0.29.0...v0.29.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* NP-1049 Omit token from open endpoints (#729)

* Np 875 start with file (#728)

* NP-875 Remove deprecated code

* NP-875 Create publication with files

* NP-875 Add types

* NP-875 Remove old workaround for starting with file upload

* NP-875 Remove deprecated check

* Np 955 cancel requests on unmount (#732)

* add useFetchAuthorities hook

* check for user name before fetching

* create useFetchLastPublication

* cleanup

* add missing cancellation token

* with console.logs

* remove idiotic return statement and console logs

* QA changes and error handling

* Bump @types/yup from 0.29.0 to 0.29.1 (#738)

Bumps [@types/yup](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/yup) from 0.29.0 to 0.29.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/yup)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump ts-node from 8.10.1 to 8.10.2 (#735)

Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 8.10.1 to 8.10.2.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](TypeStrong/ts-node@v8.10.1...v8.10.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* useFetchCustomerInstitution (#736)

* useFetchCustomerInstitution

* QA changes

* add useFetchMyPublications hook (#733)

* add useFetchMyPublications hook

* remove error handling since we always return data or error

* remove error handling

* QA - remove unnecessary return value

* use fetchPublication hook in PublicationForm (#737)

* use fetchPublication hook in PublicationForm

* QA - do not set emptyPublication as initial state

* pull out closeForm prop from useFetchPublicationHook (#740)

* pull out closeForm prop from useFetchPublicationHook

* check for isLoading and undefined publication

* Bump @types/node from 14.0.5 to 14.0.9 (#744)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.5 to 14.0.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump @material-ui/lab from 4.0.0-alpha.54 to 4.0.0-alpha.55 (#745)

Bumps [@material-ui/lab](https://github.com/mui-org/material-ui/tree/HEAD/packages/material-ui-lab) from 4.0.0-alpha.54 to 4.0.0-alpha.55.
- [Release notes](https://github.com/mui-org/material-ui/releases)
- [Changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mui-org/material-ui/commits/HEAD/packages/material-ui-lab)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* dont interrupt navigation if on the same page (#742)

* Add specific routes based on user roles (#743)

* Np 1026  clean up styling (#741)

* remove picture and contact info in my profile

* remove link to handle in my profile

* remove spinner on start publication with doi

* fix size of modal in desktop mode

* remove unused imports

* same size of spinners in AddContributorModal

* set display date on public publication

* loading spinner should not load all the time
set institution selector to disabled in editMode

* set default language to None

* fix displaydate in public publication

* fix autocomplete in admincustomer

* set fields to empty string if undefined

* populate fields with empty fields for customerInstitution when setting formik values

* Np 1028 refactor uppy (#734)

* NP-1028 Refactor use of Uppy

* NP-1028 Simplify uppy clean up

* NP-1028 Delete unused file

* NP-1028 Reuse more code for file uploading

* NP-1028 Avoid duplicated file names

* NP-1028 Fix typo

* NP-1028 Avoid files being nulled

* NP-1028 Remove redundant uppy cleanup

* NP-1028 Minor changes

* remove doi prefix (#748)

* Bump @types/node from 14.0.9 to 14.0.10 (#751)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.9 to 14.0.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump @types/yup from 0.29.1 to 0.29.2 (#749)

Bumps [@types/yup](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/yup) from 0.29.1 to 0.29.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/yup)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* rename from publication-channel to channel (#752)

* Cancel request on unmount (#753)

* NP-1015 Avoid excessive validation when changing publication type (#747)

* NP-1015 Avoid excessive validation when changing publication type

* NP-1015 Move onChange to own method

* Set codeowners to set default reviewers (#754)

Co-authored-by: sarahse <sase@unit.no>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Kjetil Møkkelgjerd <kjetil@mokkelgjerd.no>
Co-authored-by: Møkkelgjerd Kjetil <Kjetil.Mokkelgjerd@norconsult.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants