-
Notifications
You must be signed in to change notification settings - Fork 687
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
add confirmation flash when submission preferences are saved #5046
add confirmation flash when submission preferences are saved #5046
Conversation
securedrop/journalist_templates/submission_preferences_saved_flash.html
Outdated
Show resolved
Hide resolved
Hi @petevdp, thanks for working on this! From my end, except for the two nits noted above, this looks good. Please give us a few days and a maintainer should be able to have a closer look. From a UX perspective, it's a bit problematic that the confirmation only is noticeable when you scroll all the way to the bottom of the page: That said, this in-line placement is consistent with how we handle logo updates on the same page. We may want to revisit that separately but I'd personally be OK with doing this in follow-up. CC @ninavizz for UX visibility. |
@eloquence Yeah it seems like we might want to add a more generalized system for the sort of confirmation/notification system that would be good for situations like this. Maybe something JS based, or a redirect to another page with the desired message. That sounds like it might justify creating a separate issue, but I'd still like to work on that if i can. |
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! a few comments inline
@@ -0,0 +1,10 @@ | |||
{# these are flashed messages for the logo upload file verifiaction #} |
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 update or remove this comment (these are the flashed messages for the submission file preferences)
Hi @petevdp, just touching base - do you have time to poke further at this? If not we can finish it up. Just let us know :) |
@eloquence Yeah I do, sorry for the lack of communication. I'm planning on working on it tomorrow! |
Awesome, thanks for the update! :) |
Thanks for the update @petevdp - pushed little a commit to fix linter errors, will review once CI is passing. |
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.
Tested according to plan, working correctly. Automated tests also passing, so LGTM
Awesome! Thanks for everyone's help, and sorry for the delay. |
Hi @petevdp, kudos for your contribution (got an email notification as I had commented on the issue). As a new contributor to the project, I found this pre-commit hook quite useful to avoid forgetting the linting checks. |
@DrGFreeman Okay I'll install that, thanks! |
Status
Ready for review
Description of Changes
Fixes #5009.
Changes proposed in this pull request:
Add a flashed message when a user succesfully submits a change with the submission preferences form. The current implementation doesn't differentiate between submissions which actually change anything, but that should be easy enough if it would be desirable.
Testing
manual
A flashed message should show up, indicating that the setting has been successfully saved.
automated
I'm unsure if this feature needs automated testing. I'll be happy to add some if required!
Checklist
If you made changes to the server application code:
make lint
) and tests (make test
) pass in the development containerIf you made non-trivial code changes:
Unsure if I need to do this, as mentioned above.