Closed (fixed)
Project:
Homebox - Individual user dashboards
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Jun 2020 at 05:39 UTC
Updated:
16 Nov 2021 at 00:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
karishmaamin commentedComment #3
karishmaamin commentedComment #4
bramdriesenWould be nice to see this on the dev release.
Comment #6
bramdriesenNote that this would only make the module installable. At the current stage it's not working at all. I created a follow up issue here #3204838: Fix entity definitions & deprecations for D9 to fix most of the issues I could spot while trying out the module.
Comment #7
damienmckennaComment #8
damienmckennaI updated the dependencies so that the separate jQuery UI modules can be loaded too.
Comment #9
damienmckennaIt seems like the problem with the draggable system not working is that the SortableJS library doesn't work with the data structure that Homebox provides.
In every example of SortableJS I can find, it expects the "draggable" items to be direct child of the main element. Homebox nests the draggable items several layers deep, so it can't find the items. I've gotten it to mostly work by disabling the "draggable" setting, so that it automatically just uses the DIVs inside the columns.
The full solution would be to fix the HTML output.
What works:
What doesn't work:
Comment #10
damienmckennaJust to clarify: The last part left is to work out how to make items draggable between columns.
Comment #11
anybody@DamienMcKenna: Great work so far! Wouldn't you perhaps want to apply as Co-Maintainer of this project? Or is there a Maintainer for the Drupal 8/9 branch available to review and commit your changes?
See #3236974: Offering to maintain Homebox
The current Drupal 8 branch is old and broken... things can only become better...
@Maintainers: Could the current state of the @DamienMcKenna's work in the issue fork please be committed or at least be created as 2.x branch? Due to missing Drupal 9 compatibility in the .info.yml file, the current version can't even be tested in Drupal 9. Thanks!
Comment #12
anybodyJust had a look at Layout Builder. It uses
https://github.com/SortableJS/Sortable
Perhaps that's the better choice here?
Comment #13
damienmckenna@Anybody: I only used the system for one project and I don't work on it very much, so I'd prefer to not take on that burden.
Comment #15
anybodyComment #16
anybodyComment #18
anybodyCreated a new semver release: 2.0.x for future Druapl 9 development. Let's continue in separate issues for open tasks. If required I'll create a meta issue.
Comment #19
anybody@DamienMcKenna: FYI: I was able to fix the drag & drop issue: #3247103: Items not draggable between columns :) Thank you for your important hints!
I was also able to remove the jQuery drag / drop libraries.