Commit Graph
2 Commits
Author SHA1 Message Date
Lauri Ojansivu 40a4d9b171 Give the Rules page the board's right sidebar instead of its own.
The Rules page had a separate right sidebar holding only Back and its
views (List view, Workflow view, Blocks, History, Import / Export
rules). It now uses the board's own sidebar, like the board: the same
views are in its Board Settings under Rules, and choosing one there
while on the Rules page closes the sidebar so the view is not left
under it. The separate sidebar and its template are removed.

Its Back button went with it, so picking a view in the Board View menu
while on the Rules page now goes back to the board, asking first before
unsaved Blocks work would be lost.

Source tests pin the Rules route to the board sidebar, the absence of
the old controls, the way back and the Board Settings entries' existing
translated labels. The Rules browser specs open views through Board
Settings; a member who is not a board admin is not offered them there,
and the Blocks view still refuses such a member. The Rules and Board
Settings specs pass in Chromium and WebKit.

Thanks to xet7 !
2026-09-30 09:29:46 +03:00
Lauri Ojansivu 9ef05970d3 Page sidebar: its controls are rows, not three links run together.
Rules, My Cards, Due Cards and Global Search each keep their controls in the
shared page sidebar, and each draws them as `.board-header-btn` - which is what
they were when they lived in that page's own second header bar.

Every rule for that class is scoped to `#header-quick-access` (header.css), so
inside the sidebar they had no styling at all. On the Rules page that is three
bare links jammed onto one line - "← Board / Workflow view / Import export" -
with the icons run into the words and nothing to click but the text.

They are rows now: one per line, the width of the panel, padding to click
against, a hover, and the icon in a fixed 16px column so a row with a caret and
a row without one still start their words at the same x. That is the shape the
board sidebar's own rows have. Both sidebars built on this shell get it - All
Boards' as well as the page one - because both had the same problem for the
same reason.

tests/pageSidebarControls.test.cjs pins it, including that this is the class
the pages actually draw rather than a new one invented for the sidebar.

Thanks to xet7 !
2026-08-14 16:02:34 +03:00