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
Drag and drop screenshots to reorder #1772
Conversation
Codecov Report
|
Starting demo at: https://snapcraft-io-canonical-websites-pr-1772.run.demo.haus/ |
When you have no images, upload 5, reorder and save - when the page reloads they're in the upload order. Maybe the inputs need reordering? |
Hey @bartaz a few issues:
|
@Lukewh it seems that our backend doesn't take order to account when it comes to new screenshots. It just adds new screenshots to the end of the list (in order of upload). |
@hughesjordan @Lukewh Updated so that order of newly added screenshots is correctly preserved. For other issues:
I see it working for myself. @hughesjordan Is there any specific case when revert button is enabled if order is same as saved?
That is the case also for removing screenshots, etc. So I don't feel like it's an issue with this specific PR. |
@bartaz does not seem to be any specific case for me: |
@hughesjordan This doesn't seem to be related to screenshots, so I reported it separately (#1772). Does screenshot reordering work good apart from that? |
@bartaz apart from that its good! 👍🏻 |
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 thanks @bartaz
Fixes #1673
Enables drag and drop to reorder screenshots on publisher listing page.
QA