Files
wekan/docs/Features/Cards/Requested-Assigned-By.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

3.2 KiB

Design: Requested By and Assigned By become people

Status: implemented · Owner: xet7 · Related: #6586, One-Card-Layout.md.

What is asked for

Requested By and Assigned By are free text today. They should keep that text field AND gain member fields of the same kind Assignees has - a user picked from a popup, shown as an avatar or initials - everywhere a card is seen, exported or imported.

The database fields

Mirror assignees exactly, because that is the shape asked for:

  assignees:  { type: [String], optional: true, defaultValue: [] }   // exists
  requesters: { type: [String], optional: true, defaultValue: [] }   // new
  assigners:  { type: [String], optional: true, defaultValue: [] }   // new

requesters / assigners rather than a longer name because WeKan already calls them that internally: js-card-details-requester, editCardRequesterForm. The existing requestedBy / assignedBy strings STAY - a card may have both a person and a note about who asked.

Mutations mirror the assignee ones: assignRequester, unassignRequester, toggleRequester, and the same three for assigners.

Shared picker pattern

Members, Assignees, Requested By and Assigned By use the same interaction: a row of avatars, a round + that opens a picker, and a popup listing board members. Requested By and Assigned By share cardIdentityPicker; their free-text Add link remains directly below + and opens the existing editor.

The selected people and free text are independent, so a card can record board members and also retain a name or note imported from an external tracker.

The same avatar everywhere

An avatar is +userAvatar / +userAvatarInitials inside a .member box - the box is what gives it its size, and every avatar rule in userAvatar.css is scoped to it. That is already true of the board sidebar, the cards, Admin Panel / People and, since the Offices pane was fixed, Admin Panel / Problems. The new fields use the same two templates and the same box, so there is nothing new to style.

Exports and imports

Where Must carry
Excel card block the avatars' initials and the text, in the People meta rows
PDF card block the same, through models/lib/cardDocument.js
WeKan JSON export / import requesters, assigners, and the two strings
CSV / TSV the names, resolved, beside the text
Trello / Jira / ... whatever each format has for a person, else the names

The export half is one change, not five: the card document's header already draws requested-by and assigned-by from data.requestedBy / data.assignedBy, so it gains the two user lists beside them and both formats follow. tests/requestedAssignedByRoundTrip.test.cjs already checks the field survives a round trip and is the place to extend.

Implementation order

  1. Schema + mutations (mirroring assignees).
  2. The shared member-picker pattern, with one picker template for Requested By and Assigned By.
  3. The picker popups.
  4. The card document carries both lists; Excel and PDF draw initials + text.
  5. Import/export round trip, and the tests that pin it.