Files
wekan/docs/Features/Board-Header/Watch.md
T
Lauri Ojansivu 7e1f9e89eb Docs: every feature topic in one folder under docs/Features, each with README.md as its main page.
- The General/ level is gone: its 109 files moved up into the folders of the
  same name, and its topic table is the "Shared topics" section of
  Features.md.
- Accessibility is one folder, docs/Features/Accessibility/, with the Admin
  Panel's accessibility page in it.
- Every folder's main page is README.md (110 X/X.md pages renamed with git mv,
  five merged with an existing README.md, 26 index pages added for folders
  that had none), so a folder opened on GitHub shows its page.
- The 73 "# Moved" forwarding pages are deleted, with the folders that held
  only them; every link that went to one goes to its final page.
- docs/Features/README.md has the website's "Features in WeKan" overview,
  each feature linking to its page here.

1,129 Markdown links in 262 files and 352 doc paths in code, tests, compose,
snap and release files follow. tests/docsFeaturesLayout.test.cjs fails when
General/ or a "# Moved" page comes back, a folder has no README.md, or a
relative link in the docs or README.md does not resolve.

Thanks to xet7 !
2026-11-24 20:02:06 +02:00

6.1 KiB
Raw Blame History

Board header / Watch

What it is

Watch sets how much you hear about a board: Watching notifies you of every change on it, Tracking only of changes to the cards you created or are a member of, and Muted of nothing. The setting is your own; other members choose theirs. The control is after Visibility in a board's header controls and shows your current level.

Read more

How to use it

The button shows your own watch level for this board — Watching (fa-eye), Tracking (fa-bell) or Muted (fa-bell-slash) — as its icon, label and tooltip. See the header for its place in the bar.

  1. Open a board.
  2. Click the watch button (the eye or bell) in the header bar. The popup opens; your current level has a check mark.
  3. Click Watching, Tracking or Muted.
  4. The popup closes and the button shows the new level. If the server refuses, an alert says why (see below) and nothing changes.

Who can use it. Every signed-in user who can see the board. The button is not drawn when an administrator has turned on Disable watch in Admin Panel / Settings / Activities and notifications (watchDisabled helper, Settings.disableWatch).

The popup

boardChangeWatchPopup in client/components/boards/boardHeader.jade. The current level has a check mark.

Level Description shown
Watching You will be notified of any change in this board.
Tracking You will be notified of changes to the cards you are involved in as creator or member.
Muted You will never be notified of any changes in this board.

Choosing a row calls the watch method (server/notifications/watch.js) with 'board', the board id and the level, and closes the popup when it succeeds. The server refuses, and the popup says why in an alert, when:

  • watching is disabled by the administrator (error-watch-disabled: Watching boards and cards is turned off by the administrator), or
  • the user may not see the board (error-board-notAMember). Seeing it through membership, an organization, a team, an email domain, or because it is public or signed-in-users all count.

How the numbers are calculated

Watch has no numbers of its own. It has three levels and a default: a user with no entry in the board's watchers is Muted (complexWatchDefault in models/watchable.js). Who is notified of one activity is a set, worked out in two steps:

  1. In server/models/activities.js the candidates are every user at Watching, plus the users at Tracking who are a participant in that activity.
  2. boardNotificationRecipients() in models/lib/boardNotificationRecipients.js then keeps only candidates who are active board members and whose board level is Watching or Tracking, or who explicitly watch the list or card concerned. Being assigned or mentioned does not reach a member who has muted the board.

How it works in WeKan

  • Data: the level is per user, stored in the board's watchers array as { userId, level } (models/watchable.js, getWatchLevel, setWatcher). A user with no entry is Muted, which is the default; choosing Muted removes the entry.
  • Client: the button and popup in client/components/boards/boardHeader.jade, the watchLevel helper and the click .js-select-watch handler in client/components/boards/boardHeader.js. The handler shows the refusal in an alert; it used to close silently on success and do nothing on an error.
  • Server: the watch method in server/notifications/watch.js checks getFeatureFlags().disableWatch first, then canSeeBoard(), which asks the database with the same boardVisibilitySelectors the board publications use. For a card, an assigned-only member may watch only the cards assigned to them.
  • What the level does: an activity on the board notifies users at Watching for every activity, and users at Tracking only for activities they are a participant in; see the section above.
  • Tests: tests/boardWatchSilent.test.cjs and the browser spec tests/playwright/specs/14-voting-watchers.e2e.js.

Commits