Files
wekan/docs/Features/Board/Card-Field-Display-Order.md
T
Lauri Ojansivu 859771a10e Card Settings: the default card and minicard field order is the order they had before fields became orderable.
The default of CARD_LAYOUT and MINICARD_LAYOUT - what a board with no
stored cardFieldOrder / minicardFieldOrder renders, and what
applyLayoutOrder() falls back to for the keys a stored order does not
name - is now pinned literally to the render order of cardDetails.jade
and minicard.jade at 59f7d61df, the commit before #4448 made fields
orderable. Reading those templates gives exactly the sequence the layout
module already holds, so no board changes shape; the module, the tests
and the docs now say where that order comes from and a new suite pins
both sequences so a reshuffle cannot pass by reshuffling the template
with it. The two fields newer than that commit stay beside their
closest older neighbour: Text notes in the card's tail, Swimlane name
last on the minicard.

Thanks to xet7 !
2026-09-11 21:53:38 +03:00

8.0 KiB

Card field display order

Choose what the opened card and the minicard show, and in what order - each of the two independently (#4448, #6688). Useful when a board relies mostly on Description or Custom Fields and wants that section first, right under the card title, or wants the minicard to lead with its due date rather than its labels.

Where to find it

Board sidebar (hamburger menu) → Board Settings → Card. The popup is one heading, Card field order, over two lists:

┌ Card Settings ───────────────────────────────────────────────────┐
│ Card field order                                                  │
│                                                                   │
│ Show on Minicard                 Show on Card                     │
│ [✓] [▲][▼] ☑ Mark as complete    [✓] [▲][▼] ☑ Mark as complete    │
│ [ ] [▲][▼] # Card number         [ ] [▲][▼] # Card number         │
│ [✓] [▲][▼] 🕓 Received           [✓] [▲][▼] 🖼 Cover image         │
│ [✓] [▲][▼] ⌛ Start               [✓] [▲][▼] 🏷 Labels             │
│ [✓] [▲][▼] 🕓 Due                [✓] [▲][▼] 📝 Stickers           │
│ ...                              ...                              │
└───────────────────────────────────────────────────────────────────┘

Every row of either list reads the same way:

part what it does
checkbox whether that side shows the field at all - the same board toggles as before (allowsLabels, allowsLabelsOnMinicard, ...)
▲ ▼ move the field earlier or later on that side only
icon and name the field, with the same icon and name the card uses for it

The Show on Minicard list is in the board's minicard order and the Show on Card list in its card order. They are independent: a field can be third on the minicard and last on the card. What either list shows top to bottom is what that surface draws top to bottom.

Steps to use it

  1. Open a board you are an admin of, click the sidebar's hamburger menu, then Board Settings → Card.
  2. In the Show on Card list, click ▲ or ▼ beside a field to move it on the opened card; in the Show on Minicard list, to move it on the minicard.
  3. The change takes effect immediately on every card of this board; there is no separate save step.
  4. Untick a checkbox to hide the field on that side; tick it to show it.

An arrow that would do nothing is greyed out, so a row's arrows also tell you what can move (see below).

What moves, and how

The card and the minicard are each a fixed head, a reorderable middle of sections, and (on the card) a fixed tail.

On the opened card:

  • Head, fixed: Mark as complete, Card number, Cover image - the title bar.
  • Sections, reorderable: Labels (Labels, Stickers, Location), Dates (Received, Start, Due, End), Members (Members, Assignee, Creator, Requested by, Assigned by), Dependencies, Sort (Sort number, Show lists, Spent time, Flowtime, Pomodoro), Custom Fields, Vote and Planning Poker, Description (title, text).
  • Tail, fixed: Checklists, Checklist count, Subtasks, Attachments, Attachment count, Text notes, Comments, Activities - they live in the card's galleries and its right column, not in the field list.

On the minicard: the title bar (Mark as complete, Card number) is fixed; everything under it is reorderable - the dates line, Cover, Labels, Custom Fields, Assignees, Members, Creator, Checklists, the badge strip (Dependencies, Stickers, Comment count, Vote, Poker, Attachment count, Subtasks, Checklist count, Sort number), Description text, the comment preview, List name, Swimlane name. Inside the dates line and the badge strip the fields reorder among themselves too.

The arrows follow three rules:

  1. A field moves within its section. ▼ on Start puts it after Due.
  2. At the edge of its section, a field moves the whole section. ▲ on the first row of Dates lifts the Dates section above the section before it; ▼ on its last row drops it below the next one.
  3. A section's header stays first. Labels, Members, Sort number and Description title head their sections (the fold caret is theirs), so their arrows always move the section, and no other field goes above them.

A few minicard rows have no element of their own there - Labels text (how labels are drawn), List title (the per-card switch under Show lists), Requested by, Assigned by, Description title, Attachments - so they sit under the row they modify with their arrows disabled.

The default order

The default - what a board that never touched the popup shows, and where any field a stored order does not name goes - is the order the card and the minicard had before fields became orderable: the templates as they were at commit 59f7d61df, right before #4448's first commit, read top to bottom. It is not a tidied-up order; changing it would change the shape of every card on upgrade.

Card: Mark as complete, Card number, Cover image; Labels, Stickers, Location; Received, Start, Due, End; Members, Assignee, Creator, Requested by, Assigned by; Dependencies; Sort number, Show lists, Spent time, Flowtime, Pomodoro; Custom Fields; Vote, Planning Poker; Description title, Description text; Checklists, Checklist count, Subtasks, Attachments, Attachment count, Text notes, Comments, Activities.

Minicard: Mark as complete, Card number; Received, Start, Due, End, Spent time; Cover image; Labels; Custom Fields; Assignees; Members; Creator; Checklists; Dependencies, Stickers, Comment count, Vote, Planning Poker, Attachment count, Subtasks, Checklist count, Sort number; Description text; Comments; List name; Swimlane name.

Two fields did not exist at that commit and sit beside their closest older neighbour: Text notes (card, between the attachment count and comments) and Swimlane name (minicard, last, under the list name). tests/cardFieldOrderDefaultIsPreFeatureOrder.test.cjs pins both sequences.

Prerequisites

  • Only a board admin can change these settings; the arrows are shown only to an admin. Who may write them is decided where it is for every other board setting: Boards.allow's update rule in server/permissions/boards.js.
  • A board that never touched the order shows exactly what it always has.

For developers

  • models/lib/cardFieldOrder.js - the two layouts (CARD_LAYOUT, MINICARD_LAYOUT), the canonical order (applyCardOrder, applyMinicardOrder) and the move (moveKey). Pure, tested without Meteor by tests/cardFieldOrderLayout.test.cjs and tests/cardFieldOrder.test.cjs.
  • models/lib/cardSettingsRows.js - the rows of the popup: toggle class, board field, icons and label keys of every setting.
  • Stored on the board as cardFieldOrder and minicardFieldOrder, flat arrays of field keys, written through board.setCardFieldOrder() and board.setMinicardFieldOrder(). The five section keys the first version of #4448 stored (labels, dates, members, customFields, description) stay valid and expand to what they rendered - Members carried Dependencies and Sort then, Custom Fields carried Vote/Poker. The REST endpoints GET/PUT /api/boards/:boardId/cardFieldOrder still speak in section keys (eight now: labels, dates, members, dependencies, sort, customFields, voteAndPoker, description).
  • cardDetails.jade renders the sections through each section in orderedCardFieldSections and the fields inside a section through orderedDatesFields, orderedMembersFields, ...; minicard.jade through orderedMinicardSections, orderedMinicardDates and orderedMinicardBadges. tests/cardSettingsCoverage.test.cjs derives each layout's default order from the templates and pins the popup.