mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
The site has one announcement for everybody; the reporter's teams needed a reminder per board. A board admin writes it in the board menu, Board announcement, and turns it on. Every member then sees it as a banner on the board, as plain text, until they dismiss it; an edit gives it a new version, so it shows again. Dismissing records the version the server reads, for a board the user can see, so a client cannot dismiss a future edit in advance. The text is trimmed and bounded, and an empty one cannot be turned on. tests/boardAnnouncement.test.cjs covers showing, dismissing, editing and the bounds; the board menu order guard includes the new item, admin only. A Playwright case checks the banner and the dismissal. New text is in English, pending Transifex. Thanks to TiibCD and xet7 ! Fixes #1566.