- 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 !
Stickers
What it is
Stickers are small icons you can add to cards, similar to Trello's stickers. They mark a card at a glance - a thumbs up, a bug, a deadline clock, a trophy - on the minicard and in the opened card, without a label or a colour. They are added and removed directly in WeKan, and every sticker a Trello import can produce can also be added by hand.
Read more
- Wikipedia: Sticker, Font Awesome and Trello.
- Font Awesome 4 icons, the icon names the stickers use.
- In WeKan: Cards, Migrating from Trello and Board Settings / Card.
How to use it
Adding and removing stickers
- Open a card and use the Stickers section to add or remove stickers directly in WeKan (previously stickers only arrived via Trello import).
- Stickers are chosen from a set of Font Awesome icons.
- The picker includes every highlighted sticker that a Trello import can produce, so
any imported sticker can also be added by hand:
- mascot stickers are shown with an underlined icon (Trello's "taco" pack),
- computer stickers are shown with a ring around the icon (Trello's "pete" pack), for example "pete-ghost" imports as "computer ghost".
- Stickers appear both on the minicard and in the opened card detail.
Step by step:
- Open the card. In the Stickers section, click + (Add sticker).
- Click a sticker in the picker to add it; a check mark shows it is on the card. Click it again to take it off.
- To remove one sticker, click the × beside it in the Stickers section (Remove sticker).
Adding and removing needs the right to change the card; a Worker does not get the +.
Showing it
Board sidebar (hamburger menu) → Board Settings → Card, row
Stickers: Show on Card (allowsStickers) and Show on Minicard
(allowsStickersOnMinicard), both on by default.
REST API
Stickers are set through the card edit endpoint
(PUT /api/boards/:boardId/lists/:listId/cards/:cardId) with a stickers array
of { icon, highlight }:
python3 api.py setcardstickers BOARDID LISTID CARDID '[{"icon":"taco-cool"}]'
The array replaces the card's stickers and is stored as given. icon is drawn
as the Font Awesome class fa-<icon>, so it should be a Font Awesome 4 name
such as thumbs-up or rocket; a name that is no Font Awesome icon, such as
a raw Trello sticker name, shows no icon. highlight is underline (mascot)
or round (computer), or left out.
How the numbers are calculated
The picker has 136 stickers (models/metadata/stickers.js,
STICKER_PICKER):
- 34 plain icons (
STICKER_ICONS); - 51 mascot stickers and 51 computer stickers: each icon the Trello mapping
can produce (its exact map, its keyword map and the default
sticky-note-o, without repeats) once underlined and once ringed.
A sticker on a card is identified by its icon and highlight together, so the
same icon can be on a card both plain and highlighted. Each added sticker gets
position = the number of stickers the card had before it.
How it works in WeKan
- The card's
stickersarray of{ icon, name?, highlight?, position }in models/cards.js, withgetStickers,hasSticker,addSticker,removeSticker,removeStickerAtandtoggleSticker; all write the real card of a linked card. - models/metadata/stickers.js - the
icon set, the Trello mapping (
trelloStickerToFa,trelloStickerHighlight,TRELLO_STICKER_PACK_NAME) andSTICKER_PICKER, shared by the Trello importer and the picker. - The picker is
cardStickersPopupin client/components/cards/cardStickers.jade and cardStickers.js; the section is in cardDetails.jade and the minicard badge in minicard.jade. The underline and ring are CSS (sticker-underline,sticker-round) in cardDetails.css. - REST: the
stickersbranch of the card edit endpoint in server/models/cards.js; the client command issetcardstickersin api.py. - Tests: tests/stickers.test.js, tests/stickers.packs.test.js and tests/cards.stickers.test.js.