Place the existing collapse control immediately after Home and before the page or board title. Preserve per-session collapse behavior and themed layout. Update header ordering guards and add desktop/narrow-layout browser coverage for position and retained Home/title visibility.
Five header suites pass. Browser regression syntax-checks and registers; runtime execution requires a running WeKan server, which is unavailable locally.
Thanks to xet7 !
#6680 follow-up. Three reorganizations of where board settings live,
grouped under Board Settings (the board's cog menu), with an <hr> above
and below the new group of three:
- The list-width and swimlane-height resize-lock toggles and the
board-wide "same width for all lists" toggle move out of the header
and into Board Settings / Swimlane and Board Settings / List.
- Minicard and Card settings (the shared board-wide settings table) move
back into Board Settings / Card. They previously lived split across
the card's own menu ("Show on Card") and the minicard's own menu
("Show on Minicard"); both entries, their popups, and the
cardMenuSource module that only existed to tell those two menus apart
are removed. A non-admin still reaches the one PERSONAL row in that
table ("Labels text") through the same entry, via personalOnly.
Swimlane and List stay board-admin only (the resize locks already were);
Card is open to any board member, matching who could reach it before.
All three reuse existing translations ('swimlane', 'list',
'card'/'card-settings') via Popup.open's titleKey rather than adding new
*Popup-title keys.
tests/boardSettingsSwimlaneListCard.test.cjs pins the new layout;
tests/listSwimlaneResizeLock.test.cjs, tests/headerIconsCollapse.test.cjs
and tests/popupTitles.test.cjs are updated for what moved.
Two real breakages, both caught by the full node-suite run rather than by
the four tests added alongside the feature itself:
1. The collapsed state was appended into #header-quick-access's own
`class="{{themeColorClass}}"` binding, which broke
tests/globalThemeColor.test.cjs's exact count of elements using that
binding unmodified. Moved to a separate `data-header-icons-collapsed`
attribute instead, and updated header.css's selector to match on it.
2. Wrapping +boardHeaderButtons/+allBoardsHeaderButtons/+boardViewMenu/
+allBoardsViewMenu/+adminPanelTabs in a span.js-header-collapsible-icon
broke four tests (allBoardsPage, boardHeaderOneLine, headerBars x2) whose
regexes expected each inclusion to sit directly on the line after its
`if isBoardPage`/`if isAllBoardsPage`/`if isAdminPanel` guard. Updated
each regex to expect the new wrapper span in between.
tests/headerIconsCollapse.test.cjs itself is updated for the data-attribute
shape. Full node-suite run is back to the two pre-existing, unrelated
failures (buildScriptParity, gitMirrorUpdateScripts - missing build
scripts in this sandbox).
Thanks to xet7.
A single button, right after the board title (inside the same .home-icon
wrapper), that hides every icon from the mobile/desktop toggle through the
notification bell: mobile/desktop mode, drag-handles toggle, the three
board-wide resize-lock icons, the starred-boards group, create-board, the
board/all-boards header buttons, the view menu, the Admin Panel tabs, and
notifications.
Purely a per-viewer display preference, not persisted anywhere - a plain
Session var (wekan-header-icons-collapsed), the same shape as mobileMode()
right beside it in header.js, not a board setting like the resize locks.
Every icon in that range gets a shared .js-header-collapsible-icon marker
class; the four `+templateName` inclusions and +notifications cannot carry
a class of their own, so each is wrapped in a `span.js-header-collapsible-
icon` that stays `display: contents` outside the collapsed state, so
introducing the wrapper does not change how those icons behave as flex
items of #header-quick-access when nothing is collapsed.
`#header-quick-access.header-icons-collapsed .js-header-collapsible-icon`
is the one CSS rule that actually hides them.
tests/headerIconsCollapse.test.cjs pins the button's position, the
Session-var (not board-setting) shape, that every icon in the range is
marked and nothing outside it is, and both CSS rules.
Thanks to xet7.