-
Notifications
You must be signed in to change notification settings - Fork 39
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
[Need QA Prep] Feature/Divorce Front End [ember-osf-preprints] [IN-98] #626
[Need QA Prep] Feature/Divorce Front End [ember-osf-preprints] [IN-98] #626
Conversation
- File upload uploads file to preprint, not node. - Picking an existing project copies the file to the preprint - Revising the upload section after it has been locked allows you to upload a new version to the preprint or update the preprint's title. - Modifications to preprint contributors send requests to preprints not nodes. - Use @laurenbarker's formatting on preprint detail page for created/modified/supplemental files. - Load preprint contributors on edit page. - Remove language that warns about information being updated on your project. -
…er-osf-preprints into feature/divorce_front_end
…r and remove file-renderer component to content page.
… existing OSF project.
…ct on the preprint.
…where file was successfully uploaded to preprint, but subsequent preprint requests failed. - Fixes for errors where preprint title update fails.
- No need to have the file-uploader component used within preprint-form-project-select anymore. - Can stop passing in all of these properties into preprint-form-project-select - Add manual toggling for file version update section - No need to track existingstate anymore - file picker state is sufficient
…ere preprint file was copied) to Preprint. - If contributor copy fails, this is ignored (not critical that all contributors copied). - Description/tags automatically added to preprint on creation. Can be edited later in the form. - Preprint title auto-filled, but can be edited before creation.
- Pull supplemental document type from translations. - Remove unused location_of_preprint - Add corrections to validations of supplemental materials section, and indicator of whether supplemental section has changed - Add better error handling and metrics to supplemental section
…ding a new preprint version.
…e preprint. You still must be an admin contributor to edit contributors. Allow all contributors to remove themselves.
…..+ preprint name".
…entary-file-browser. Only renders the primaryFile and allows downloading of its versions.
649698b
to
9e867cf
Compare
…de-preprint-divorce Fix/Divorce - Rendering of Preprint File [IN-98]
…er-osf-preprints into feature/divorce_front_end # Conflicts: # package.json # yarn.lock
@jamescdavis, it looked to me like the only issues bringing this branch up-to-date with develop was the |
@pattisdr, no problem, I'll take care of that during release. Thanks for updating! |
… Remove Author modal background lighter, but not necessary.) - This was making popover opacity too transparent. PLAT-1224
…er-osf-preprints into feature/divorce_front_end # Conflicts: # app/routes/content/index.js
@@ -252,7 +252,7 @@ | |||
<button class="btn btn-block btn-big" {{action 'changeConnectedProject'}}>{{t "submit.body.supplemental_change_saved"}}</button> | |||
</div> | |||
<div class="col-xs-6"> | |||
<button class="btn btn-block btn-big btn-big-danger" {{action 'removeSupplementalNode'}}>{{t "submit.body.disconnect_supplemental"}}</button> | |||
<button class="btn btn-block btn-big" {{action 'removeSupplementalNode'}}>{{t "submit.body.disconnect_supplemental"}}</button> |
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.
<i class="fa fa-times"> </i> | ||
</button> | ||
{{#if (and (permission-to-remove-contributor contrib currentUser isAdmin editMode) (conditions-for-contrib-removal contrib contributors authorModification))}} | ||
{{#if (contributor-is-current-user contrib currentUser)}} |
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.
.fade.in { | ||
background: rgba(0, 0, 0, 0.08); | ||
} | ||
|
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.
@jamescdavis, can you get this latest commits onto staging3? |
@jamescdavis, working now to get NPD up-to-date with the metatags hotfix EDIT: up-to-date now |
…er-osf-preprints into feature/divorce_front_end # Conflicts: # app/routes/content/index.js
if (searchResults && searchResults.meta !== undefined) { | ||
return searchResults.meta.total_pages; | ||
} | ||
}), |
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.
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.
restores pagination
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.
Let's do this!
yesssss |
Related Links
Back End
Ember-OSF
Front End
Demo Round One
Demo Round Two
TODO List
Purpose
This PR attempts to make the minimum number of changes necessary to get in the backend divorce code. The backend required a huge overhaul, so keeping the front-end changes as small as possible will help with testing. We still save by section, but nodes are no longer edited on the preprint form.
Summary of Changes/Side Effects
Testing Notes
Thorough testing of creating a preprint, editing a preprint, and viewing a preprint needed. Even if behavior appears the same in places, where the code is getting called has often been rearranged, so we need to make sure we're seeing what is expected. Extra attention should be paid to "File" sections and "Supplemental materials" and "Authors"
File Section
Upload from your computer
Select from existing project
Updating file version or title
Basics section
Discipline Section
Authors section
Supplemental Materials section
Submit
Connecting an existing project
Create a new OSF Project
Supplemental Materials - EDIT
Submitting your preprint - Edit section
Preprint Detail Page
Ticket
https://openscience.atlassian.net/browse/IN-98
Notes for Reviewer
Reviewer Checklist
CHANGELOG.md