mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
Boards in Archive moved again, to under Remaining, and it no longer LEAVES this page. It opens as a section drawn beside the left menu: selecting something from a menu and then losing the menu is a menu that throws itself away. Its address is /allboards/archive, the same shape as the other four sections, and the template is the archive's own so its search and its pager come with it. The standalone /archive page stays for a direct link, and the sidebar's row still goes there. It carries a count like the three lists above it, asked of the SERVER rather than counted from what the page has - All Boards does not subscribe to archived boards at all, its query is archived:false, and the archive's publication is paginated to 30, so counting minimongo would answer 0 on a fresh load and something arbitrary later. getArchivedBoardsCount is the method the archive's own pager already uses. Boards can be dragged onto that row to archive them, from any of the four lists or from a workspace. The left menu already accepts a drop on Remaining, so this is the gesture already in the reader's hand; the alternative was three clicks through Multi-Selection. It asks first, because a drop is easy to make by accident - a board dragged to reorder that lands one row low - and it refreshes the count afterwards, which a method call will not do on its own. The Multi-Selection button in the header bar now shows that it is on and offers the way off, the same pair the board's own has. It looked identical either way, so the one control that changes what clicking a board does gave no sign it had changed it. Its helper is registered on the template that uses it: a Blaze template cannot see a sibling's helpers, and that failure is a hard render error. The Sort Boards popup is titled from the key that phrase already has, which is what gives it a header and with it a close button. And the left menu is styled like the Admin Panel's - a panel with its own background, border and rounded corners, a selected row in the per-user theme accent with white text, a white hover with a shadow, and scrolling inside itself rather than spilling past its own corner. WeKan has one kind of left menu. One guard was rewritten rather than widened: it looked for a handler within 400 characters of its event map, which has to be re-tuned every time a comment is added inside that map. It is scoped to the block now. Thanks to xet7 !