mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 10:48:06 -05:00
A caret leads the group, at its leading edge - left of the lock in a left-to-right page, right of it in Arabic, because its direction comes from the same rule every other caret here uses. Folded, the seven controls after it are gone - Private, Muted, Sort Cards, Filter, Search, Show dependencies, Multi-Selection - and the bar is the logo, the board's name and the caret. The buttons a board's own Rules put in this bar are NOT folded with them: somebody added those to this board on purpose, so they sit outside the fold and the standard controls fold around them. It is named by the words the app already has - Collapse and Uncollapse - so no key was added to 147 language files to say them again, and it carries role="button" and a tabindex, so Enter and Space work. The sidebar's Members and Labels folds moved into the same store on the way: `client/lib/sidebarSectionState.js` is now `client/lib/foldState.js`, with `isFoldOpen` / `foldCaret` / `js-toggle-fold` for all three. One store, one rule, one class - a header caret and a sidebar caret pointing different ways in one language would be the bug this avoids. tests/sidebarSectionCollapse.test.cjs is tests/foldSections.test.cjs and covers both ends, including that the Rules buttons stay outside the fold. Thanks to xet7 !