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'n'drop to promote channel #2019
Conversation
Starting demo at: https://snapcraft-io-canonical-web-and-design-pr-2019.run.demo.haus/ |
418ceb5
to
e4f80b2
Compare
A few comments:
|
Thanks for comments @therealjuan
We can, but it's most common for click interaction, not drag.
It would I guess, but it's get tricker, because we have interactive elements in it (things that have tooltips, things that are clickable), and I'm not sure how they will work together. So... long story short - I guess it may be possible, but complicates the implementation and may lead to even more weird cases to work around.
Ideally yes - we can do it before or later the drag and drop is finished. |
Some comments to discuss tomorrow: |
Codecov Report
|
946150b
to
6c673c7
Compare
Done. If all revisions in given channel are promoted, channel will be highlighted as well.
Turns out to be hard. We can change the cursor of the handle before it's dragged, but once dragging starts it's browser that controls cursor and we have little control over it. To fix that we would need to create custom implementation of drag'n'drop functionality which is probably not worth the cost just to change the cursor.
Done. |
dac7a59
to
6e4d5b8
Compare
I don't see it happening (both in Chrome or Firefox). So this may be some native issue. Not sure if we have any control on that. |
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.
👍 Code looks good and functionality works - just some minor UI/ UX things (that can maybe be deferred?)
3e144d0
to
2e54160
Compare
Desk review done. Looking juanderful! |
Fixes #1961
Fixes #1962
Fixes #1963
Adds drag'n'drop to releases page.
Channels can now be promoted using drag'n'drop.
QA
This is new quite complex feature. Please make sure to QA on different snaps (different number of architectures, devmode revisions, closed channels, etc) and in different browsers (it uses native drag'n'drop, so browser implementations may differ).