Commit f7bcde1
[ENG-5028] [ENG-5919] Preprints Affiliation Project PR (FE) (#2321)
* Added a new relationship for the affiliated institutions
* updates to the serializers
* Updates to the component and initial tests
* Added a trait
* Added more tests and updates
* Added more tests to the scenario
* Updates to persist affiliated institutions
* Fixed the tests
* Added logic for mobile and to only display if there are affilitiated institutions
* added functionality that all preprints are selected on create mode. Added a test
* Added a description for the institutional affiliations
* Added a label for accessibility
* add affiliated institution details to preprints
* add affiliated institution links and logs to the preprint detail page.
* improve logo size and shape
* update css to new techniques
* make links open in new tab
* restrict image sizes
* fix single quotes
* add tests for preprint affiliations and clean up css
* Added some test fixes
* Add code for institutions preprint affiliations widget on reviews section
* fix component to add title to css and conditional template
* refactor to reviewsPage and fix linting error and tests
* make Institutional affiliations label disappear if no institutions
* add hover-text and simplify css
* Updates to make affiliated institutions read-only and fixed a bug on edit
* Fixed a test
* Updated the logic on selecting and persisting of affiliated institutions
* Fixed the tests
* Added the ability to make the assertion page read-only for non-admins
* Added the cancel button
* add tooltip and make add contributor widget only visible to admins
* Added a link test
* Fixed a missed translation on a cancel button for mobile
* Fixed the initial issue with read/write users and updated the tests
* Added another test
* Updated logic and tests to allow admin and write users access
* Fixed a test with new mirage settings
* Added logic to fix a bug on preprint edit flow with affiliated institutions
* allow write contribs to add affiliations
* improve permission handling
* Updates to mirage to handle adding and removing affiliated institutions
* reintroduce isAdmin
* [ENG-5919] Feature/preprints affiliations merged to development (#2319)
* fix preprint resubmission workflow
* Update test for review-action model to reflect target relationship change
* delete review-action relationship from child classes
* ENG-6008: Add My Preprints route and page template
* setup mirage route and view
* change defaultSortKey attribute
* Bump version no. Add CHANGELOG
* create preprint card
* fix date format
* formatting changes
* remove unnecessary controller and old logic
* Add tests
* remove unused classes and services
* Moved changes to preprints-paginated-list branch
* remove redundant pagination component
* add usePlaceholders property
* Don't double-add relationships
* Removed the cancel button
* Fixed some typos
---------
Co-authored-by: John Tordoff <[email protected]>
Co-authored-by: Brian J. Geiger <[email protected]>
Co-authored-by: Brian J. Geiger <[email protected]>
Co-authored-by: Longze Chen <[email protected]>1 parent 5551456 commit f7bcde1
File tree
40 files changed
+1362
-56
lines changed- app
- models
- preprints
- -components
- preprint-affiliated-institutions
- preprint-institutions
- institution-manager
- institution-select-list
- submit
- author-assertions
- link-widget
- link
- public-data
- public-preregistration
- metadata
- preprint-state-machine
- action-flow
- review
- detail
- edit
- lib/osf-components/addon/components
- contributors/card/readonly
- validated-input/text
- mirage
- factories
- scenarios
- serializers
- tests/integration/components/preprint-affiliated-institutions
- translations
40 files changed
+1362
-56
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
84 | 92 | | |
85 | 93 | | |
86 | 94 | | |
| |||
Lines changed: 50 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments