Skip to content

Conversation

@halfmexican
Copy link
Contributor

Currently just drafting this as i'm having difficultly porting my drag and drop to javascript from vala and school work is eating my schedule

@sonnyp
Copy link
Contributor

sonnyp commented Apr 30, 2023

@sonnyp sonnyp force-pushed the main branch 3 times, most recently from 05f69f1 to 55e450f Compare May 21, 2023 10:37
@sonnyp
Copy link
Contributor

sonnyp commented May 30, 2023

Any chance you could pick this up again? It would be great to have this.

@halfmexican
Copy link
Contributor Author

I'll take another crack at it

@halfmexican halfmexican marked this pull request as ready for review May 31, 2023 20:19
@halfmexican
Copy link
Contributor Author

accident, this is not ready for review

halfmexican and others added 6 commits May 31, 2023 15:30
Co-authored-by: Andy Holmes <1265208+andyholmes@users.noreply.github.com>
Co-authored-by: Andy Holmes <1265208+andyholmes@users.noreply.github.com>
Co-authored-by: Andy Holmes <1265208+andyholmes@users.noreply.github.com>
@halfmexican
Copy link
Contributor Author

I'm still struggling to get the drop working. It seems like the "drop" signal never fires. I am learning a lot more though, I'm gonna redo drag-and-drop in my own app.

Copy link
Contributor

@sonnyp sonnyp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Design review:

  • The drag icon should be dimmed
  • There should be visual feedback of where the row is going to be dropped (swapped with)
  • There should be a hover effect on each row

You can look at GNOME Settings -> Search for all 3

I suggest you implement these things and then @andyholmes can do the technical review.

@sonnyp
Copy link
Contributor

sonnyp commented Jun 6, 2023

@halfmexican please request review from @andyholmes if this is ready

image

Copy link
Contributor

@andyholmes andyholmes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really good, a nice clean example of implementing drag-and-drop. Just a few cleanups and it LGTM.

@halfmexican
Copy link
Contributor Author

I think we're ready to merge

@halfmexican halfmexican requested a review from andyholmes June 7, 2023 02:33
Copy link
Contributor

@andyholmes andyholmes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks perfect to me, thanks for sticking with this one, it will be a very helpful demo.

@andyholmes andyholmes merged commit 97a8c29 into workbenchdev:main Jun 7, 2023
sonnyp pushed a commit that referenced this pull request Jun 10, 2023
Add a basic example of Drag-and-Drop, with re-orderable list box rows.
sonnyp pushed a commit to SoNiC-HeRE/Workbench that referenced this pull request Aug 13, 2023
Add a basic example of Drag-and-Drop, with re-orderable list box rows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants