mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
A new "Board View" entry at the top of Board Settings, above Swimlane, opens a table like Card Settings: one row per entry of the Board View menu, in the menu's order, with the columns Default on Public Board, Show on Public Board, Default on Private Board, Show on Private Board and Description. The Default columns are radio groups drawn as checkboxes (one default per side, and setting one also shows it; the default's Show box cannot be un-ticked), and the two public columns are not rendered when Admin Panel / Settings / Visibility hides public boards. The Board View menu lists only the views ticked for the board's current visibility, and Utils.boardView() resolves the stored choice through the board, falling back to that side's default, so nobody is left on a hidden view. Stored per board as boardViewSettings, defaultPublicBoardView and defaultPrivateBoardView; the decisions are the pure module models/lib/boardViewSettings.js, applied by the Board setters setBoardViewShown and setDefaultBoardView, guarded by the existing board-admin allow rule. The schema fields, setters and popup template were swept into 148f8a2aa by the Card Settings commit made from the same checkout; this commit carries the rest. Four new column-header keys, translated in every locale (low confidence for the languages without a WeKan translator: Cherokee, Inuktitut, Klingon, Volapük, Wolaytta, Bambara, Ewe, Fulah, Nahuatl and the other small ones). docs/Features/Board/Board-View-Settings.md describes the design; tests/ boardViewSettings.test.cjs pins it, and boardSettingsSwimlaneListCard's hr/gate guards now anchor on the group's new first entry. Thanks to xet7 !