Skip to content

Release 5.6.8

Latest

Choose a tag to compare

@petschki petschki released this 16 Jun 13:36
· 40 commits to master since this release

5.6.8 (2026-07-14)

Bug Fixes

  • pat-structure: keep table rows in collection order (c59a3fd)

    The table row rendering iterated the collection with an async callback
    (collection.each(async ...)) that appended each row only after awaiting
    view.render(). Row rendering is async (it awaits icon resolution), so
    rows were appended in the arbitrary order their render promises resolved
    rather than in collection order, corrupting the sort order of the folder
    contents.

This stayed hidden until 5.6.0: DataTables was initialized with
order: [0, "asc"], which re-sorted the rows by the hidden _sort
column (the server order index) on every draw and thus masked the race.
Commit 57cd7dd ("Fix ordering logic.") changed this to order: [],
removing the safety net and exposing the underlying bug.

Fix the root cause: build the row views in collection order, render them
all in parallel via Promise.all, then append them in order. This
guarantees the DOM order matches the collection order regardless of the
DataTables ordering settings. The now-obsolete
table_row_rendering_finished event dance and its events import are
removed.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com