Files
wekan/docs/Features/Admin-Panel/Settings/Shared-Labels.md
T
Lauri Ojansivu b7589737f5 File docs/Features the way the WeKan menus are.
A feature's guide now sits under the menu it is used from, read from the
templates rather than from where somebody once put it: Header-Bar,
All-Boards, Pages, Board-Header (search and every Board View), Board-Sidebar
(Board Settings, Filter, Members, Labels, Archive), Rules, Swimlanes, Lists,
Cards, Member-Settings, Admin-Panel and Login-Page. Topics used from several
menus (editor, history, theme, translations, email, troubleshooting) are in
General.

- Each area has a README mapping its menu entries to their guides and to the
  template or server module that implements them. Board-Header/README.md
  lists all 40 Board View entries with the template boardBody.jade renders;
  five views (Table, Calendar Mode, Time, Timeline, Map) have no guide of
  their own yet and say so.
- Board-View.md listed 25 views while BOARD_VIEWS has 40; it now lists all
  of them with their English labels.
- Pages keep their file names. Where a released changelog links an old path,
  a "# Moved" page stays there and points to the new one; test-menu.sh skips
  folders holding only those.
- Undo was filed under Login; it is General/Undo now.
- Every link in docs, code comments, scripts and tests follows the move;
  docsLinksResolve checks them all.

Tests that read a doc follow it to its new place. boardViewSettings now fails
when Board-View.md or Board-Header/README.md differs from BOARD_VIEWS, or
names a template boardBody.jade does not render.

Thanks to xet7 !
2026-10-16 23:45:35 +03:00

1.7 KiB

Shared labels

Labels used to belong to one board each. Shared labels (#2761, #4698) are kept in catalogs that boards use beside their own labels:

Catalog Where it can be used
Every board on every board of this WeKan
An organization on the boards that organization is assigned to
A team on the boards that team is assigned to

A site admin keeps the catalogs in Admin Panel → Settings → Labels (/admin/settings/labels). Each row has the label's name, colour and catalog, and saves on its own; the last row adds a label.

On a board: open a card's labels. Below the board's own labels, under Shared labels, are the shared ones this board may use and does not have yet. Clicking one puts it on the card. From then on it is one of the board's labels, with a share icon instead of the edit pencil, so filters, rules, exports and the minicard treat it like any other label.

  • Renaming or recolouring a shared label in the Admin Panel changes it on every board that uses it.
  • Deleting a shared label keeps it on those boards, as their own label.
  • Who sees a catalog: a user is offered the "every board" catalog and the catalogs of their own organizations and teams. Another organization's label names are never sent to them.
  • Who may use one: anybody who may edit the board.

Code: models/lib/sharedLabels.js (the rules), server/sharedLabels.js (catalog, publication, methods), client/components/cards/labels.* (the card popup), client/components/settings/sharedLabelsSettings.* (the Admin Panel). Tests: tests/sharedLabels.test.cjs and the runtime suite server/lib/tests/sharedLabels.tests.js.