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 !
Lazy-load Blockly for board administrators, preserve existing rule documents and execution, and provide direct List, Workflow, Blocks and History choices. Route workflow writes through server methods. Include local media, complete message-key coverage, translation merging and placeholder checks.
Translation coverage remains incomplete in additional locales. Low-confidence specialist terminology needs native review in Aragonese, Asturian, Corsican, Neapolitan, Occitan, Sardinian, Sicilian, Kashubian, Upper Sorbian, Silesian, Cornish, Manx, Gaelic and Breton; Faroese and Frisian also merit review.
Verified five Blockly/catalog Node tests, existing rules suites and four Blockly Chromium scenarios, including admin permissions, localization, drag editing and persisted execution.
Thanks to xet7 !
Reported directly, with screenshots: on Board Settings / Rules, clicking
"Workflow view" in the page sidebar changed the button's label to "List
view" but the page kept showing the "Add trigger" tab - the workflow
builder never appeared.
rulesMain.jade renders +rulesWorkflow only while its rulesCurrentTab
ReactiveVar is 'rulesList'. The toggle lives in rulesControls, a separate
template in the page sidebar with no handle on the rulesMain instance, so
it only flips Session 'rulesViewMode'; from the Add trigger / Add action /
rule details tabs that changed nothing visible. rulesMain now owns an
autorun that brings the page back to the list tab whenever the workflow
view is selected - the one place the tab state can be changed from.
tests/rulesWorkflowViewToggle.test.cjs pins it.
Thanks to xet7 !