Add reset progress option to user settings#10824
Conversation
|
Will update this based on the Travis build fail Update: hooray, Travis and I are friends again. |
|
@dhcodes updated the pull request. |
6525422 to
afb985b
Compare
|
@dhcodes updated the pull request. |
afb985b to
7d1a19a
Compare
|
@dhcodes updated the pull request. |
1 similar comment
|
@dhcodes updated the pull request. |
7d1a19a to
d799f31
Compare
|
As an aside, I'm not sure this removed the code stored in the editor from challenges I'd completed with my test user. Is #10200 implemented on |
Bouncey
left a comment
There was a problem hiding this comment.
I will pull down today and test locally
| longestStreak: 0, | ||
| currentChallengeId: '', | ||
| isBackEndCert: false, | ||
| isFullStackCert: false, |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
| p This will really delete all of your progress and brownie points. | ||
| p We won't be able to recover any of it for you later, even if you change your mind. | ||
| .modal-footer | ||
| a.btn.btn-success.btn-block(href='/about', data-dismiss='modal', aria-hidden='true') |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
| .modal-dialog | ||
| .modal-content | ||
| .modal-header | ||
| a.close(href='/about', data-dismiss='modal', aria-hidden='true') × |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
server/boot/user.js
Outdated
| postResetProgress | ||
| ); | ||
| api.get( | ||
| '/account', |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
| longestStreak: 0, | ||
| currentChallengeId: '', | ||
| isBackEndCert: false, | ||
| isFullStackCert: false, |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
I've updated this but can't get the changes to update on the PR. I think I'll have to make a new branch and try again :( |
d799f31 to
e543693
Compare
|
@dhcodes updated the pull request. |
|
@Bouncey @BerkeleyTrue I updated based on your feedback and re-tested locally. Should be better now. |
|
LGTM. Can someone test |
|
I think this should be good to go. |
|
Cannot QA. cc/ @FreeCodeCamp/issue-moderators |
|
@atjonathan the redirection probably related with #10879 |
|
@Bouncey, please rebase this off |
|
@atjonathan you should be able to get to the settings by clicking your avatar from the map page. Or something. Just keep clicking your avatar and it should get you there eventually. There's an open issue about the map redirect |
|
@dhcodes, couldn't get that to work on this PR. Works fine on |
|
@atjonathan I don't see any different behaviour between this PR and staging
I did reinstall everything though ( |
|
@ivantedja, can't get that to work on this PR branch. I will try again |
| extends ../layout | ||
| block content | ||
| include ../partials/flyer | ||
| #modal-dialog.modal.animated.wobble |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
| p This will really delete all of your progress and brownie points. | ||
| p We won't be able to recover any of it for you later, even if you change your mind. | ||
| .modal-footer | ||
| a.btn.btn-success.btn-block(href='/settings', data-dismiss='modal', aria-hidden='true') |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
| include ../partials/flyer | ||
| #modal-dialog.modal.animated.wobble | ||
| .modal-dialog | ||
| .modal-content |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
@ivantedja, as I mentioned earlier, the problem was this PR had an earlier version of |
|
@atjonathan I replicated the actions and modal of the delete account route so while I'm not opposed to making the changes, we should probably make them to both routes. |
|
I'm all for removing the animations, they are so '2015' I will pull this down again today to test |
|
Should we open a new issue to make the UI changes since they are unrelated to the functionality of this PR? Assuming it tests okay for @Bouncey |
|
@dhcodes yes that sounds right, please open a new request for the UI changes. |
Pre-Submission Checklist
stagingbranch of FreeCodeCamp.fix/,feature/, ortranslate/(e.g.fix/signin-issue)npm run test-challenges. Usegit commit --amendto amend any fixes.Type of Change
Checklist:
Description
Made a new jade page for progress reset, updated settings to add new button to reset progress, wrote functions to reset necessary attributes for user and update progressTimestamp to when the progress is reset. I tested this locally by making a new user, checking the mongo record, completing a few challenges, resetting the progress, and then confirming that the reset record matched the original new record.