mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
"Don't show the board activities on all boards" was a BUTTON in the Layout pane that called setAllBoardsHideActivities(), which bulk-set showActivities:false on EVERY board document. That was wrong twice over: it overwrote each board's own value for good, so it could never be undone, and it did nothing at all for boards created afterwards. It is now one global setting - Settings.hideBoardActivitiesOnAllBoards - with its own pane, Admin Panel / Settings / Hide board activities on all boards, saved as Yes/No like the other instance-wide switches. The activity feed reads it ONCE, in _showActivities(), before any per-board or per-card value: when it is on, no board shows activities; when it is off, every board's own setting applies again, unharmed. Boards are never written to. The server method is removed rather than left callable. It was unreachable from the UI after this change and its only effect was the destructive write. Also, per the follow-up: the pane previously labelled "Boards visibility" is now just "Visibility". The label points at a NEW i18n key rather than changing the value of tableVisibilityMode, because that key is already translated into 141 languages as "Boards visibility" - editing the English source in place would have left every one of those translations silently saying the old thing. en.i18n.json had no key meaning "Visibility", so one was added; the pane id and its own key are untouched, so the pane's contents keep their translations. Tests: tests/boardsVisibilitySettings.test.cjs now also covers the activities move - its own pane exists, the Layout button and its handler are gone, the save writes ONE global setting and never a board document, a missing radio is skipped rather than saved as false, the schema field exists, and the read side consults the global flag BEFORE any per-board value. Plus the pane label check follows the rename. Thanks to xet7 !