-
Notifications
You must be signed in to change notification settings - Fork 206
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
Image ordering in sidebar using sorting options #640
Conversation
Code Climate has analyzed commit 1a01d3f and detected 0 issues on this pull request. View more on Code Climate. |
Codecov Report
@@ Coverage Diff @@
## main #640 +/- ##
=======================================
Coverage ? 41.36%
=======================================
Files ? 34
Lines ? 1308
Branches ? 0
=======================================
Hits ? 541
Misses ? 767
Partials ? 0 |
@publiclab/mapknitter-reviewers |
Hey @jywarren @gauravano @sashadev-sky please review this PR. Thanks! |
Hi!! Thank you @divyabaid16 !! This looks amazing. I'm interested in how UI/UX of this interacts with the ordering of images in the map itself. Are they always the same? Does sorting the list sort the map? cc @sashadev-sky |
@jywarren @divyabaid16 no it does not! I think this is ok for this one. But we do need to be more conscious about making sure mapknitter functionality is properly plugged into LDI. for example the #591 bug, might be because we delete the image from the client side but not the mapknitter end (and we just recently added a deletion feature on the mapknitter server side thats separate). Haven't personally looked into that one though, but as we start adding features to the sidebar we should also start taking them out of the toolbar. eventually toolbar might even be gone completely. For this just need to complete work on custom toolbars via @rexagod |
Currently, sorting is done only for the sidebar. Here, the user can only order the images in the sidebar. |
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.
@divyabaid16 This is really awesome! I think it's ready to go, I just made some refactoring comments to move the styling into a css file.
@divyabaid16 @jywarren I think how the ordering effects image ordering would be a new issue to open for discussion, because the order people like the images in the sidebar isn't necessarily the stacking order they would want them in right?
I have made the changes @sashadev-sky have a look at it. |
@divyabaid16 thank you 😊 that refactoring looks good There are 2 other things I just noticed that are more broad:
Let me know what you think! |
045d547
to
ca4115b
Compare
I'm working on it @sashadev-sky |
@sashadev-sky |
@sashadev-sky so is it fine if we just implement the second point?
|
@divyabaid16 I think its ok to just open an issue suggesting the 2nd point! @jywarren |
@sashadev-sky @jywarren |
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.
The PR diff size of 7414 lines exceeds the maximum allowed for the inline comments feature.
fa51d28
to
e231d48
Compare
I have rebased the PR. |
Hi! sorry this took a while to circle back to. In #693 will it use the re-ordering from here to send up the export request? Very cool! |
Currently it is only reordering in the sidebar and is independent of the export. |
Does this reload the page to re-order? |
Yes, it does currently. |
OK, this sounds good! Thanks @divyabaid16 !!! |
Fixes #638 (<=== Add issue number here)
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
GIF for the same:
![Peek 2019-05-27 17-38](https://user-images.githubusercontent.com/32747809/58419009-07c8ba80-80a7-11e9-8c2c-c1c620acdaa5.gif)
rake test
@publiclab/reviewers
for help, in a comment belowThanks!