-
Notifications
You must be signed in to change notification settings - Fork 5
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
Mint custom datapublications #1529 #1531 #1537
Mint custom datapublications #1529 #1531 #1537
Conversation
…han the current user
I've mocked the backend for now - might need to adjust the querying code when it gets implemented
also do some prep for generate DOI functionality
also add loading spinner to user table and disable generate DOI button when requirements aren't met
also rejig the form to overflow better
also rejig the overflow UI of the DOI generation form
also, turn accept data policy form back on and add a TODO and better placeholder text
an update to the API meant empty arrays error
also fix some errors in testing error codes
also improve downloadTab tests
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #1537 +/- ##
===========================================
- Coverage 96.21% 96.16% -0.06%
===========================================
Files 165 170 +5
Lines 7089 7485 +396
Branches 2218 2378 +160
===========================================
+ Hits 6821 7198 +377
- Misses 247 266 +19
Partials 21 21
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
- This fixes infinite scrolling when a sort or filter other than the default is applied
…s for related DOIs
@patrick-austin I have added the functionality for Contributors & Related DOIs based off our previous conversation & the wireframes I mocked up: |
@kaperoo For testing, you will need to add the following new urls to the download settings json
|
@@ -109,7 +109,7 @@ describe('DLS - Datasets Cards', () => { | |||
cy.get('[data-testid="card"]').first().contains('DATASET 61'); | |||
}); | |||
|
|||
it('should be able to filter by multiple fields', () => { | |||
it.only('should be able to filter by multiple fields', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove .only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't there be const settings = React.useContext(DownloadSettingsContext);
somewhere in DownloadCartTable component?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I think it got obliterated in the merge resolution
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but I think settings
need to be defined in the DownloadCartTable component to fix testing errors.
Description
Adds a button to the cart page which lets the user mint their selection if they have permission, and once clicked it takes them to an "accept data policy page", which then accepting takes them to the generate DOI form. Once the user has filled out the required fields, they can generate a DOI, which once it is minted will cause a popup to appear with the DOI and a button to take the user to the landing page. See screenshots of the generate DOI page (names and emails redacted in the screenshots since it's based on real users)
Testing instructions
Add a set up instructions describing how the reviewer should test the code
Agile board tracking
Closes #1529, Closes #1531