Files
wekan/docs/Features
Lauri Ojansivu 82646e4bc0 Board Settings / Board View: reorder the Board View menu with up/down arrows.
Each row of the Board View table now carries an up and a down arrow in front
of its name - real links, so the keyboard reaches them, titled with the
existing "Move up" / "Move down" keys of Card Settings' card field order -
and the Board View menu lists its entries in that order for everybody on the
board. Stored per board as boardViewOrder; normalizeBoardViewOrder() drops
unknown keys and duplicates and appends missing views in default order, and
moveBoardView() is a no-op for the first row up, the last row down and an
unknown view, so the menu always lists every view exactly once.

The menu itself is now rendered from the same table as the popup (one
`each boardViewMenuEntries` loop over models/lib/boardViewSettings.js)
instead of 25 static entries, keeping the per-view js-open-<view>-view class
each click handler listens for; the group separators are drawn only while
the order is the default one, since a custom order has no groups.
tests/boardViewMenu.test.cjs's order/icon/label/separator pins read that
table now, the same thing the template reads, and
tests/boardViewSettings.test.cjs pins the arrows, the schema field, the
setter and the normalize/move logic with positive and negative cases.
docs/Features/Board/Board-View-Settings.md describes it.

Thanks to xet7 !
2026-09-11 21:18:35 +03:00
..