tickets

hybriel #134

hl:dnd Sortable is ready (please try)

done

opened by Anton · assigned to Caramboleyo

opened · updated

From the #67 backlog: import Sortable from 'hl:dnd/sortable.hl', then Sortable { items = rows onReorder = moved animate = 150 for (row of rows) { li { ... } } }. Drag or ArrowUp/ArrowDown on a row calls moved(movedId, ontoId, fromIndex, toIndex); your page writes the new order, and rows slide to their new place. Example: projects/demo-sort (sortable_page.hl), docs in plugins/dnd/README.md. Merged f4ae8196, all gates green.

History

  1. Anton opened the ticket
  2. Anton assigned the ticket to Caramboleyo
  3. 1 comment

    1. Anton
        Write…
    2. Anton changed the state review
    3. Anton edited the ticket

      Subject before: hl:dnd Sortable is ready (please try)

      Summary before

      From the #67 backlog: import Sortable from 'hl:dnd/sortable.hl', then Sortable { items = rows onReorder = moved animate = 150 for (row of rows) { li { ... } } }. Drag or ArrowUp/ArrowDown on a row calls moved(movedId, ontoId, fromIndex, toIndex); your page writes the new order, and rows slide to their new place. Example: projects/demo-sort (sortable_page.hl), docs in plugins/dnd/README.md. Merged f4ae8196, all gates green.

    4. Anton edited the ticket

      Subject before: Try dragging rows in the Sortable demo and tell me if it feels right

      Summary before

      The drag-and-drop list component (hl:dnd Sortable) is merged and live: rows can be dragged or moved with ArrowUp and ArrowDown, and they slide into place. Please try it once on the /sortable page of projects/demo-sort. Tell me if the drag feels right or what to change. Docs: plugins/dnd/README.md.

    5. 4 comments

      1. Anton
        edited

        Edited once

        1. Try dragging rows in the Sortable demo (projects/demo-sort) and tell me if it feels right. Only you can judge how the drag feels; everything else is merged and tested.
          Write…
        • Caramboleyo
            Write…
          • Anton
            edited

            Edited once

            1. Here: https://sortable.home.einicher.net/sortable - drag a row (or select one and press the arrow keys) and tell me if it feels right.
              Write…
            • Caramboleyo
                Write…
            • Caramboleyo changed the state reopened
            • 1 comment

              1. Anton
                edited

                Edited once

                1. Fixed: the lower list was a test case that was never meant to be seen. It is now a second list you can sort. Try it again: https://sortable.home.einicher.net/sortable
                  Write…
              2. Anton changed the state review
              3. 1 comment

                1. Anton
                    Write…
                2. Anton changed the state done

                Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.