Compare commits

...
277 Commits
Author SHA1 Message Date
github-actions[bot] 8440a5e0fb Bump versions for v13.21 2026-11-20 14:32:35 +00:00
Lauri Ojansivu 31a808be6e Prepare v13.21 release 2026-11-20 16:31:29 +02:00
Lauri Ojansivu 2ce90cb95e Update WeKan changelog: docs follow the menus, newest features, README.
Thanks to xet7 !
2026-11-20 16:25:12 +02:00
Lauri Ojansivu 0c277c4d18 Docs follow the menus: Scrum meetings under Board Settings, the newest features, README feature list.
Scrum meetings moved to Board Settings / Scrum-Meetings.md, Board Settings
Card, List and Scrum pages name the flow fields, list policies, Definition
of Ready, standup and retrospective settings. Admin Panel / Settings /
Features lists the new Kanban and Scrum features, and every doc that still
said Settings / Visibility / Features names the pane where they are now.
Newest-Features.md gains a November 2026 guide, and README.md lists the
reports, flow features, mail/calendar/chat imports and paged exports.

Thanks to xet7 !
2026-11-20 16:24:41 +02:00
Lauri Ojansivu b0612ebe57 Update WeKan changelog: Taiga export paged.
Thanks to xet7 !
2026-11-20 16:20:05 +02:00
Lauri Ojansivu 9f85b51695 Taiga export is written a page of cards at a time; every export is now paged.
Taiga's project was built whole, the last export that was. Every page now
makes the project over the whole board from the light first pass - every
ref, kanban and task order, status, point and attribute definition the
whole board's - and keeps only its own cards' epics, stories, tasks and
issues, their descriptions and histories (the text the first pass does not
read) from the cards themselves. The tasks made of story checklist items,
which have no card of their own, are on the last page, after the other
tasks, as in the whole project; whether the project has epics and issues
is said from the whole board. The paged JSON writer writes the four arrays
a pass each.

TODO.md's "Import and Export of large files" is done: every export is
written a page at a time. tests/exportPaging.test.cjs checks every page
size against the whole project; the round trip of every export (Taiga
among them) and the import/export audit (173) pass.

Thanks to xet7 !
2026-11-20 16:20:04 +02:00
Lauri Ojansivu 9c3a543f0a Update WeKan changelog: Push Snap to Store.
Thanks to xet7 !
2026-11-20 16:11:30 +02:00
Lauri Ojansivu 49dbdbb6d6 Push Snap to Store: a workflow that releases the wekan, wekan-ondra and wekan-gantt-gpl snaps of a GitHub release to every Snap Store channel.
On v13.20 every build was green and the snaps were on the GitHub release,
but the Snap Store kept the old version. The release jobs upload with
`snapcraft upload --release=stable,candidate,beta,edge`; the store kept
the revisions in "processing", releases/snap-upload-retry.sh stopped
waiting after 1800 s and left the release to the store with a warning, and
the store never released them.

.github/workflows/snap-store.yml ("Push Snap to Store") runs after every
"Release All Platforms" run and by hand for any tag, snap names and
channels. It downloads <name>_*.snap from the release, and for each file
releases/snap-store-push.sh:
- releases the revision the store already has for that version and
  architecture - an earlier upload that finished processing later -
  without uploading it again;
- otherwise uploads without --release and releases the revision the
  upload created, by number;
- when the upload is cut off while the store is processing, asks the
  store until the revision appears and releases it; when it never does,
  fails, so the run is red rather than green with an old snap.
The release job's processing warning now says that this workflow finishes
the release.

tests/snapStorePush.test.cjs runs the script against a fake snapcraft
through all four ways, and checks the workflow's triggers, defaults and
input checks.

Thanks to xet7 !
2026-11-20 16:11:21 +02:00
Lauri Ojansivu 17ab5f8459 Update WeKan changelog: Super Productivity export paged.
Thanks to xet7 !
2026-11-20 16:00:45 +02:00
Lauri Ojansivu 6187806cf1 Super Productivity export is written a page of cards at a time.
Its backup was built whole. Every page now makes the backup over the
whole board from the light first pass - projects, tags, panels, task ids,
sub-task lists - and keeps only its own cards' task entities, their notes
(the description and checklists, the one part the first pass does not
read) from the cards themselves. The paged JSON writer streams an
object's entries as well as an array's elements, each entry passing the
export boundary with its key, and writes data.task.entities a page at a
time.

tests/exportPaging.test.cjs checks every page size: the pages' entities,
in order, are the whole backup's, and the rest is the same. The round
trip of every export (Super Productivity among them) and the
import/export audit (173) pass.

Thanks to xet7 !
2026-11-20 16:00:44 +02:00
Lauri Ojansivu 369dd91789 Update WeKan changelog: Vikunja export streamed.
Thanks to xet7 !
2026-11-20 15:41:24 +02:00
Lauri Ojansivu bd34f44460 Vikunja export is streamed a page of cards at a time, and carries what each task waits for.
Vikunja's export was built whole: a .zip of data.json made in memory. Its
formatter now plans the whole board once from the light first pass - each
card's task id, project, index and position, its comments' ids, the users
and labels in the order the cards first name them, the parent links - and
writes only its own page's tasks, with the same projects, views and
buckets on every page. The .zip is written by streamVikunjaZip: data.json
through streamJsonArrays, each project's tasks, task buckets and positions
a pass over the pages, the tasks as the archive writes them
(vikunjaArchiveData), the HTML made from text the export boundary has
checked, as the whole export's is; then filters.json and VERSION.

A task's dependencies are its "blocked" relations, which the Vikunja
import reads as is-blocked-by. The round trip of every export now
includes Vikunja, through its .zip: it keeps the description, checklist,
comment, dependency, label and due date. tests/exportPaging.test.cjs
checks every page size against the whole document; the import/export
audit (173) passes.

Thanks to xet7 !
2026-11-20 15:41:23 +02:00
Lauri Ojansivu 2d823e16dc Update WeKan changelog: four more exports carry dependencies.
Thanks to xet7 !
2026-11-20 15:17:36 +02:00
Lauri Ojansivu c9da13b63e Asana, OpenProject, Obsidian and Wrike exports carry what each card waits for.
Each of their imports reads a task's dependencies - Asana's dependencies,
OpenProject's blocked relations, Obsidian's Tasks plugin 🆔 and ⛔, Wrike's
Depends On <Key>FS - but none of the exports wrote them. Each now does,
from one reading of the board's dependencies: what every card waits for,
from a dependency stored on either card, over the whole board whichever
page is written (models/lib/exportPaging.js blockersOf, which
Taskwarrior's depends now uses too).

The round trip of every export keeps the dependency in eight formats now
(KEEPS): Jira, Kanboard, OpenProject, Asana, Taskwarrior, Obsidian,
Redmine and Wrike. tests/exportDependencies.test.cjs; the import/export
audit (173) passes.

Thanks to xet7 !
2026-11-20 15:17:35 +02:00
Lauri Ojansivu 80e653b4ba Update WeKan changelog: .mbox labels.
Thanks to xet7 !
2026-11-20 14:56:02 +02:00
Lauri Ojansivu c0b3d9013d The .mbox export carries the card labels as Gmail's; the round trip of every export checks labels and due dates.
The mail import reads X-Gmail-Labels into labels, but the .mbox export
wrote no labels, so they were lost. A card's message now carries its
labels in that header (a comma in a name, which separates them there, is
a space); its comment replies carry none.

export-import-round-trip.e2e.js gives Alpha Card a board label and a due
date, and its KEEPS table two more columns, written from what each
format's file kept: what a format has no place for - an outline's labels
and due dates, OpenProject's labels, Wrike's template, which has no tags
column - stays out. tests/mailFormat.test.cjs; the import/export audit
(173) passes.

Thanks to xet7 !
2026-11-20 14:56:01 +02:00
Lauri Ojansivu 394a8fd32c Update WeKan changelog: Jira and Taskwarrior dependencies.
Thanks to xet7 !
2026-11-20 14:32:08 +02:00
Lauri Ojansivu d613a00030 Jira and Taskwarrior exports carry the card dependencies; the round trip of every export checks them.
Both imports read dependencies - Jira's fields.issuelinks
(models/jiraCreator.js createDependencies), Taskwarrior's depends as "is
blocked by" - but neither export wrote them, so they were lost. Jira's
issue links keep the direction of blocks and duplicates and are Relates
otherwise; Taskwarrior's depends lists what each card waits for, from a
dependency stored on either card. The keys and uuids are the whole
board's, whichever page the card is on.

export-import-round-trip.e2e.js gives Alpha Card a dependency on Beta Card
and its KEEPS table a fourth column: Jira, Kanboard, Taskwarrior and
Redmine keep it. tests/exportDependencies.test.cjs; the import/export
audit (173) passes.

Thanks to xet7 !
2026-11-20 14:32:07 +02:00
Lauri Ojansivu d1a1d46b73 Update WeKan changelog: Trello .zip export with attachments.
Thanks to xet7 !
2026-11-20 14:02:46 +02:00
Lauri Ojansivu e8330fb090 Trello .zip export: the Trello board JSON with the cards' attachment files, imported back with them.
Board Settings / Export / Trello .zip Attachments (export/trellozip)
downloads trello.zip: the Trello document as board.json, written a page
of cards at a time by the multi-array writer, and each exported card's
attachments as the files they are, attachments/<id>_<name>, piped from
the file store as WeKan's own .zip export does
(server/lib/renderExternalExport.js streamTrelloZip). board.json names
each attachment by that file name (trelloZipFileName), which the Trello
.zip import matches, so the files come back with their cards. It is not an
"Export all boards" format, which makes each board's file whole.

The round trip spec imports a Trello .zip with a file, exports it as a
Trello .zip, finds the file's exact bytes in it, imports that back and
downloads the same bytes from the imported board. The Trello docs page
describes it.

Thanks to xet7 !
2026-11-20 14:02:45 +02:00
Lauri Ojansivu a18d2a553c Update WeKan changelog: Trello archived cards and lists.
Thanks to xet7 !
2026-11-20 13:37:39 +02:00
Lauri Ojansivu 3ac8b802c5 Trello export carries the archived cards and lists, as Trello's closed ones.
Trello's own export has its closed cards and lists; WeKan's had only the
open ones. The Trello export now collects the archived cards and lists too
(ARCHIVED_FORMATS in models/lib/externalExporters.js; every other format,
the open ones, and no format a deleted one) and writes them closed: true,
which the Trello import reads back as archived. The round trip spec exports
an archived card and finds it archived on the imported board.

Thanks to xet7 !
2026-11-20 13:37:38 +02:00
Lauri Ojansivu 1fa7af0679 Update WeKan changelog: GitHub-like comments, the round trip of every export.
Thanks to xet7 !
2026-11-20 13:19:09 +02:00
Lauri Ojansivu df92d8de63 Every export that WeKan also imports is round-tripped in one spec, each held to what its file keeps.
tests/playwright/specs/export-import-round-trip.e2e.js exports a board -
a card with a description, a checklist, a comment and a label - in each of
the 41 formats WeKan both writes and reads, imports the file back through
POST /api/boards/import/<tool>, and requires the card to come back. Its
KEEPS table is what each format's file keeps of the description, the
checklist and the comment, as found now; a format that keeps less fails,
and one that keeps more fails too, so the table is raised with it. That is
how the Trello export that did not import back went unnoticed: no test
imported an export of it.

Thanks to xet7 !
2026-11-20 13:19:08 +02:00
Lauri Ojansivu ba31f2b592 GitHub, Gitea and Forgejo exports carry the cards' comments.
They are written as comments_data, the embedded comments the issues parser
reads (models/lib/externalParsers.js issueComments), with each author's
login and date, so an exported board imports back with its comments.

Thanks to xet7 !
2026-11-20 13:19:08 +02:00
Lauri Ojansivu ba657b9ab7 Update WeKan changelog: Trello custom fields.
Thanks to xet7 !
2026-11-20 12:56:15 +02:00
Lauri Ojansivu c20c7296a8 Trello export carries the custom fields; the Trello import reads a number field's value as a number.
The board's custom fields are Trello fields, one per name its cards use,
typed by what every value of it is (checkbox, number, date, else text),
and each card's values are its customFieldItems in Trello's value shapes.
Trello writes a number field's value as text, so the Trello import now
stores it as a number, for a real Trello file as for WeKan's export.
tests/trelloExportImportable.test.cjs and the round trip spec, which
exports a number field and finds it, and its value 3, on the imported
board; the import/export audit (173) and admin-only field specs (12) pass.

Thanks to xet7 !
2026-11-20 12:56:14 +02:00
Lauri Ojansivu 9222a60e41 Update WeKan changelog: the Trello export imports back; a Trello file with no members imports.
Thanks to xet7 !
2026-11-20 12:36:30 +02:00
Lauri Ojansivu cde21a7651 Trello export imports back, with its checklists, comments and members.
The first tool of the import/export coverage review (TODO.md). The Trello
export wrote no card's dateLastActivity or pos, which WeKan's own Trello
import checks every card for, so no Trello export imported back at all;
and its checklists and comment actions were empty arrays.

Every card now has an ISO date of its last activity and its position (over
the whole board, whichever page it is on); the card's checklists are
Trello checklists with their items' state, its comments commentCard
actions with their dates, and the board's people - owners, assignees,
comment authors, from the whole board - Trello members, each card naming
its own in idMembers. A label with no name is an empty name.

The paged JSON writer writes a document with several card arrays, each by
a pass of its own over the pages (streamJsonArrays); Trello's cards,
checklists and actions are three.

tests/trelloExportImportable.test.cjs holds the export to what the
import's checks require; tests/playwright/specs/trello-export-round-trip.e2e.js
exports a board as Trello and imports it back with its checklist, comment
and title. The import/export audit (173) and the admin-only custom field
specs (12) pass.

Thanks to xet7 !
2026-11-20 12:36:23 +02:00
Lauri Ojansivu d1be2d2131 Trello import of a file with no members no longer does nothing.
trelloGetMembersToMap called data.members.forEach, so a Trello board file
without a members list - a board nobody else is on, or one written by
another tool - threw in the browser, and Import and Import without mapping
members silently did nothing. No members is nobody to map, as the WeKan
import's mapper already reads it.

Thanks to xet7 !
2026-11-20 12:36:23 +02:00
Lauri Ojansivu 5d8c4a7635 Update WeKan changelog: every workbook export is streamed.
Thanks to xet7 !
2026-11-20 11:41:30 +02:00
Lauri Ojansivu db9c06dc5e monday.com, Businessmap and Wrike workbooks are streamed a page at a time too.
Every workbook export is now written by ExcelJS's streaming workbook
writer, a row at a time, instead of a whole workbook in memory.

- monday.com and Businessmap: one sheet each; the columns any card fills
  (monday.com's custom fields; Businessmap's optional columns, comment
  columns and other fields) and Businessmap's parent Card IDs are found
  over the whole board from the light first pass, the header written on
  the first page (server/lib/streamSheetWorkbook.js, shared).
- Wrike: the lanes' order, the folder rows and every row's Key are planned
  over the whole board (wrikePlan, wrikePageOrder); the pages come in that
  order and a lane's folder row goes before its first card. The date
  columns are date cells, as in the whole workbook.

tests/workbookStream.test.cjs checks every page size against the whole
sheet and reads each streamed workbook back as the whole one; the
import/export audit (173) and the admin-only custom field specs (12) pass.

Thanks to xet7 !
2026-11-20 11:41:28 +02:00
Lauri Ojansivu 338674fd1e Update WeKan changelog: Teamwork and Planner workbooks are streamed.
Thanks to xet7 !
2026-11-20 11:21:51 +02:00
Lauri Ojansivu a2257442a8 Teamwork and Planner workbooks are written a page of cards at a time with ExcelJS's streaming writer.
The workbook exports were built whole, as an ExcelJS workbook in memory.
Teamwork's and Planner's are now written to the response by
ExcelJS.stream.xlsx.WorkbookWriter, each row committed as it comes
(server/lib/renderExternalExport.js STREAMED_WORKBOOKS), every page's rows
through the export boundary as the whole workbook's are.

Teamwork's rows are a task tree: its order and each card's depth are
planned over the whole board from the light first pass (teamworkPlan,
teamworkPageOrder), the pages come in that order, and each page writes its
own rows. Planner's rows stand on their own: its head on the first page,
each card's row after it.

tests/workbookStream.test.cjs checks every page size against the whole
sheet, and that the streamed workbook reads back - and is read by
Teamwork's own parser - as the whole one; the import/export audit (173)
and the admin-only custom field specs (12) pass.

Thanks to xet7 !
2026-11-20 11:21:50 +02:00
Lauri Ojansivu 03e2fb416d Update WeKan changelog: Nullboard exports are paged.
Thanks to xet7 !
2026-11-20 11:01:04 +02:00
Lauri Ojansivu 4666bb60f4 Nullboard exports are written a page at a time, each list around its notes.
Nullboard's formatter writes its JSON as text, so the nested writer reads
it as JSON (text: true) and ends the file with its newline. Its lists -
the board's, then one per title of a list its cards name that is not
exported - are found over the whole board, so every page has the same
lists, and the pages come list by list with those cards grouped by the
title (byList: 'listIdsThenTitles'). tests/exportPaging.test.cjs checks
every page size; the import/export audit (173) and the admin-only custom
field specs (12) pass.

Thanks to xet7 !
2026-11-20 11:01:03 +02:00
Lauri Ojansivu bd9ec7e585 Update WeKan changelog: Deck and Kanri exports are paged.
Thanks to xet7 !
2026-11-20 10:42:25 +02:00
Lauri Ojansivu 21c64e092d Deck and Kanri exports are written a page at a time, each list around its cards.
Deck's stacks and Kanri's columns hold their cards. The pages come list
by list in the board's order by list id (byListIdOrder, a list only a card
names after them); the document around the lists and each list around its
cards are made on the first page from the board's lists and its light
first pass, and each list is opened at its first card and closed after its
last, a list with no cards written where it stands. Every part passes the
export boundary and the admin-only field redaction.

A Deck card is in the stack of its own list by id: two lists of one name
each carried the other's cards. Kanri's cards of no list are one column,
where each such card made a column of its own; its tags in use are found
over the whole board, list by list.

tests/exportPaging.test.cjs checks every page size against the whole
document; the import/export audit (173) and the admin-only custom field
specs (12) pass.

Thanks to xet7 !
2026-11-20 10:42:24 +02:00
Lauri Ojansivu fc502d7206 Update WeKan changelog: JSON exports with one card array are paged.
Thanks to xet7 !
2026-11-20 10:23:17 +02:00
Lauri Ojansivu f293ae4076 JSON exports whose cards are one array are written a page at a time: Trello, Jira, Asana, Zenkit, OpenProject, GitHub, Gitea, Forgejo, GitLab.
The first page writes the document around the card array, with the array
left open, and every page then writes its own cards into it
(server/lib/renderExternalExport.js JSON_PAGED, streamJsonExport). Each
part passes the export boundary (secureTransfer) and the admin-only field
redaction, as sendJsonResult does for a whole document; the headers are
sendJsonResult's.

What a card refers to on another page is counted over the whole board from
the light first pass: Jira's issue keys and custom field names, and
OpenProject's numbers, positions and custom field columns.

tests/exportPaging.test.cjs checks, for every page size, that the pages'
arrays together are the whole array and the document around them the
first page's, and that nothing is written without passing the boundary and
the redaction. The import/export audit (173) and the admin-only custom
field specs (12) pass.

Thanks to xet7 !
2026-11-20 10:23:16 +02:00
Lauri Ojansivu df731e648c Update WeKan changelog: Focalboard and Mattermost exports are paged.
Thanks to xet7 !
2026-11-20 10:02:26 +02:00
Lauri Ojansivu bad71f9a1e Focalboard and Mattermost exports are written a page of cards at a time.
Both are NDJSON. Focalboard's board record names its status, label and
custom field options over the whole board, and Mattermost's head names
every channel and user over the whole board: each is written on the first
page from the board's light first pass, and every page then writes its own
cards' blocks or posts. tests/exportPaging.test.cjs checks every page size
against the whole file; the import/export audit passes, 173/173.

Thanks to xet7 !
2026-11-20 10:02:25 +02:00
Lauri Ojansivu b021a8be99 Update WeKan changelog: Leo outlines are paged.
Thanks to xet7 !
2026-11-20 09:52:23 +02:00
Lauri Ojansivu e1261ef5fb Leo outlines are written a page of cards at a time too.
Leo's file holds the outline (<vnodes>) and, after it, the card texts
(<tnodes>) under the outline's node numbers. The outline holds only titles
and checklists, which the board's light first pass already has, so the
first page writes the whole outline from it, and every page then writes
its own cards' texts, numbered the same pre-order way as before: a list,
its cards, each card's checklists and their items. tests/exportPaging.test.cjs
checks every page size against the whole file, and the import/export audit
passes, 173/173.

Thanks to xet7 !
2026-11-20 09:52:05 +02:00
Lauri Ojansivu 46a66c623b Update WeKan changelog: the outlines and the Notion CSV are paged.
Thanks to xet7 !
2026-11-20 09:43:28 +02:00
Lauri Ojansivu ce40b56abd The Markdown, Obsidian, OPML and Org mode outlines and the Notion CSV are written a page of cards at a time.
The outlines group cards under their lists, so their pages come list by
list in the board's order (byList: 'lists', models/lib/exportPaging.js
byListOrder): a list's heading opens before its first card and closes
after its last, wherever the page boundary falls, and a list with no cards
is written where it stands, from the board's light first pass
(outlineMarks). Lines are joined with the separator before each line
(joinPage), so the pages together are byte for byte the whole file. The
Notion CSV counts its swimlane and custom field columns over the whole
board and writes its header on the first page.

Every page also passes the board's, lists' and swimlanes' titles through
the export boundary, as the whole-file export does; before, a paged
format's list titles came straight from the database.

Markdown and Obsidian write a list title once: two lists of one name used
to write their heading twice, each with the cards of both.

Leo stays whole: its card texts are a second section after the whole
outline. tests/exportPaging.test.cjs checks every page size against the
whole file, with empty lists and a card of a list the board does not have;
tests/playwright/specs/import-export-format-audit.e2e.js passes, 173/173.

Thanks to xet7 !
2026-11-20 09:43:18 +02:00
Lauri Ojansivu 3cbf938ae8 Update WeKan changelog: split lists, the archived v12.49.
Thanks to xet7 !
2026-11-20 09:16:52 +02:00
Lauri Ojansivu fd5c207006 Lists split into Doing and Done.
A list can be split into Doing and Done (models/lib/boardFlowPolicies.js):
a card of it marked Done here, with the circle at its minicard's corner,
waits dimmed and edged green to be pulled into the next list, and the
list header counts Doing and Done. The mark names the list it was made in
(card.flow.splitDoneListId, written by setCardFlow from the card's own
list, and only in a split list), so a card moved on is in Doing of its new
list without anybody clearing it.

A board admin allows split lists in Board Settings / List, and each list
is split from its menu. Admin Panel / Settings / Visibility / Features /
Split lists hides it on every board. Translated in every language.

Thanks to xet7 !
2026-11-20 09:16:10 +02:00
Lauri Ojansivu 3a1d670155 Archive v12.49 in old-CHANGELOG/2026/10.md, where the changelog's size budget moved it.
The previous changelog commit removed v12.49 from CHANGELOG-big.md, as
releases/changelog-archive.mjs does when the file is over its budget, but
left out the archive part that holds it.

Thanks to xet7 !
2026-11-20 09:16:00 +02:00
Lauri Ojansivu 4989cd0b51 Update WeKan changelog: standup timer, retrospective board, list policy fix.
Thanks to xet7 !
2026-11-20 08:54:46 +02:00
Lauri Ojansivu 2f7a4e210f Daily standup timer and retrospective board in the board menu.
Two Scrum meeting helpers, offline and with no AI
(models/lib/scrumMeetings.js, docs/Features/Scrum/Meetings.md):

- Daily standup: the board's active members in a shuffled order, each
  with the same timebox (Minutes per person in the Scrum settings, 1-15,
  2 by default), counted down and red once over; Next hands over, and the
  end says how long it took. It runs in the browser and writes nothing.
- Retrospective board: a new private board, titled with this board's name
  and the day, with the lists Start doing, Stop doing, Keep doing and
  Action items, made through createBoardWithInitialSwimlanes so "who may
  create boards" applies.

Both are in the board menu for every member, next to Summary. Each is
turned off for one board in its Scrum settings and for the instance in
Admin Panel / Settings / Visibility / Features. Translated in every
language.

Thanks to xet7 !
2026-11-20 08:54:34 +02:00
Lauri Ojansivu 524946c1bf List policy popup asks the board's write capability, not each role helper.
The popup's canEdit called the role helpers with optional calls, which
tests/roleHelperRegressions.test.cjs reads as bare references. It now asks
Utils.currentUserCan('write'), the capability the server's Lists allow rule
grants.

Thanks to xet7 !
2026-11-20 08:54:24 +02:00
Lauri Ojansivu 6f67fd298e Board Settings in Mandarin and Cantonese is a board, not a chessboard; Yoruba and Yiddish say it in their own words.
Mandarin and Cantonese named Board Settings with 棋盘/棋盤, a chessboard,
beside their own 看板 for a board. Yoruba had the English word Board in it,
and Yiddish spelled Board, Boards and Settings out in Hebrew letters. Low
confidence for Yoruba and Yiddish.

Thanks to xet7 !
2026-11-20 08:34:27 +02:00
Lauri Ojansivu 6aedd70eeb Update WeKan changelog: list policies, commitment point, WIP per person, Definition of Ready.
Thanks to xet7 !
2026-11-20 08:32:23 +02:00
Lauri Ojansivu 9ac7b916c0 List policies, the commitment point, a WIP limit per person, and the Definition of Ready.
Kanban practices for a board's lists (models/lib/boardFlowPolicies.js,
docs/Features/Lists/Flow-Policies.md), offline and with no AI:

- List policy: each list's own entry and exit criteria, written from the
  list menu and shown as a gavel at the list header, its tooltip the text.
- Commitment point: the list from which work is committed to, flagged at
  its header; the lists before it are options.
- WIP limit per person: how many open cards one person may hold on the
  board; an opened card names each of its people over it.

Each is off until a board admin turns it on in Board Settings / List, and
each is a feature of Admin Panel / Settings / Visibility / Features, which
hides it on every board.

The Scrum settings get a Definition of Ready beside the Definition of
Done, and both are now readable by every member in the Scrum views once
written. The four Scrum translation guards count 128 keys with it.

Translated in every language.

Thanks to xet7 !
2026-11-20 08:32:10 +02:00
Lauri Ojansivu 5673fd3bcd Update WeKan changelog: flow fields on cards, ten paged exports.
Thanks to xet7 !
2026-11-20 08:09:17 +02:00
Lauri Ojansivu 0071dde0f3 Flow fields on cards: Blocked with a reason, Class of service with Expedite's WIP limit, MoSCoW and WSJF.
Four Kanban and Scrum practices other tools have, kept on the card
(card.flow, models/lib/cardFlow.js), offline and with no AI:

- Blocked: ticked with a reason; who marked it and since when are the
  server's. A red Blocked badge on the minicard, the reason its tooltip.
- Class of service: Standard, Fixed date, Expedite, Intangible. Expedite
  has a WIP limit of one open card per board; a second is refused.
- MoSCoW priority: Must, Should, Could, Won't have.
- WSJF score: business value, time criticality and risk reduction divided
  by job size, each on the 1-20 scale; shown once every part is set.

Each is a row of Board Settings / Card in the Card section, off on the
card and the minicard until a board turns it on, and an Admin Panel /
Features / Card field that hides it on every board. Written only by the
setCardFlow method, which checks the card edit right, an assigned-only
member's own cards and the values; a client write of flow is denied.
Translated in every language.

Thanks to xet7 !
2026-11-20 08:08:26 +02:00
Lauri Ojansivu 94ad2fd958 Update WeKan changelog: InviteBleed's old six-digit codes and the sign-up throttle.
Thanks to meifukun and xet7 !
2026-11-20 07:48:56 +02:00
Lauri Ojansivu 4fad2a9000 Fix InviteBleed's remainder: six-digit invitation codes and the unthrottled sign-up method.
GHSA-rg85-qx5c-qx67 reported the InviteBleed brute force again, now as a
GitHub Security Advisory. The 128-bit code of the first fix was still in
place, but two things it left were open:

- An invitation made before the fix, and not used yet, kept its six-digit
  Math.random() code and was still accepted at sign-up; a re-invite even
  mailed the same code again. A code shorter than the 22 base64url
  characters of a 128-bit code is now refused at sign-up, in both places it
  is looked up, and hasUsableCode() treats it as missing, so a re-invite
  replaces it with a strong one (models/lib/invitationCodeEmail.js
  isStrongInvitationCode).
- The DDPRateLimiter rule was on createUser, which a client is refused
  anyway, while the sign-up form creates the account through useraccounts'
  ATCreateUserServer, which had no limit. It now takes at most 10 attempts
  a minute per address, and each refusal is an InviteBleed row in Admin
  Panel -> Problems (brute.invite).

The other two advisories of the same report were checked against the
current code and are already fixed: GHSA-6944-p22h-3qpx (OIDC shared
serviceData race) since #4897 on 2026-07-17, whose per-login objects are
locals of the callback, and GHSA-j4x8-689m-h4hv (stale impersonation record
allows export), where every export route authorizes through
canExportBoardData() only and the impersonation record is just the audit
row written after it.

Thanks to meifukun and xet7 !
2026-11-20 07:48:22 +02:00
Lauri Ojansivu 735f52ed11 TODO: import and export of everything each tool has, and the Kanban and Scrum features to add.
Thanks to xet7 !
2026-11-20 07:33:45 +02:00
Lauri Ojansivu e2cbbe5104 Ten more exports are written a page of cards at a time, their references read in a light first pass.
Todoist, TickTick, ClickUp, MeisterTask, Linear, Pivotal, Redmine,
Quire, Taskwarrior and todo.txt refer from one row to others - a parent's
number, columns counted over the board, the order of the lists - so a
page could not be written without the rest. The export now reads the
board once lightly (no descriptions, comments only counted,
models/lib/exportPaging.js) and then the cards 500 at a time, each page
with those references; a formatter writes its head on the first page and
its tail on the last, Todoist's cards come list by list. The pages
together are byte for byte the file the whole board is written as,
whatever the page size (tests/exportPaging.test.cjs). TODO.md lists the
formats still built whole.

Thanks to xet7 !
2026-11-20 07:30:06 +02:00
Lauri Ojansivu 4e23929ee6 Update WeKan changelog: streamed JSON, Jira and CSV uploads, the server bundle check.
Thanks to xet7 !
2026-11-20 06:55:20 +02:00
Lauri Ojansivu 60bbf69164 Jira and CSV / TSV files are uploaded too; their people and columns are read from the file on the server.
They were the last files the Import page read itself and sent whole. A
chosen Jira file is now uploaded like the other sources: the people of
its map-members step are read from it by the server (the Jira mapper is
shared, models/lib/jiraMembersMapper.js), and the estimate mapping goes
with the import call. A CSV / TSV file's header, sample rows and guessed
mapping come from the server (csvUploadPreview), its people from the
columns chosen (csvUploadPeople), and the import parses it there. Both
methods read only the sender's own upload, signed in and while import is
enabled, and leave it for the import that follows.

Thanks to xet7 !
2026-11-20 06:46:46 +02:00
Lauri Ojansivu 905f60a1ea UI specs: the Release Burndown report gets a release to show; the limit test signs in by the login cookie.
The board-reports spec seeds a Scrum release with a card, so Release
Burndown has a table row, and removes it afterwards. The upload limit
test POSTs with the HttpOnly login cookie, as the page's own upload does,
instead of a Bearer header with no token in it, and checks the page's
warning says which limit.

Thanks to xet7 !
2026-11-20 06:34:26 +02:00
Lauri Ojansivu 11992ac951 Fix the server failing to start: the streamed export's collect had a parameter named like a const in its body.
The page-at-a-time export (3b1c7ce7bb) gave collect() a parameter
cardIds while its body already declares const cardIds - a SyntaxError
("Identifier 'h' has already been declared" once minified), so the
server bundle did not load. No node suite loads that ES module, which is
why they all passed. The parameter is pageCardIds, and
tests/serverBundleSyntax.test.cjs checks the built server bundle with
node --check whenever a build is there. TODO.md says why most other
export formats cannot simply be paged.

Thanks to xet7 !
2026-11-20 06:29:47 +02:00
Lauri Ojansivu 640e492593 Uploaded JSON is parsed from the file a chunk at a time; a Mattermost export a line at a time.
A JavaScript string cannot be longer than about 512 MB, so reading an
uploaded JSON export with readFile and JSON.parse could not read a larger
one at all. server/lib/streamJson.js builds the value from the file as it
is read - every escape, surrogate pairs and chunk boundaries anywhere,
the same value and the same refusals as JSON.parse, a __proto__ key as
an own property, nesting bounded. A Mattermost bulk export is read a line
at a time; the other text formats are read as one text up to 256 MB and
refused with that reason beyond it.

Thanks to xet7 !
2026-11-20 06:14:07 +02:00
Lauri Ojansivu e54c0f4646 Update WeKan changelog: Board View reports, grouped menus, large-file import and export, translations.
Thanks to xet7 !
2026-11-20 06:11:40 +02:00
Lauri Ojansivu d1732bd3a5 Translations: locale files that held another language get their own.
Values that were in another language than their locale's tag are
replaced with the tag's language, as the translation rules ask: Northern
Sami values seeded in Finnish (se), Veps in Venda (ve-PP), Maltese
sentences in Italian (mt; single words that are Maltese too are kept),
Northern Ndebele in Shona (nd), Uzbek in Latin letters in the Arabic-
script file (uz-AR), Wolaytta in Ethiopic script (wal), Tsonga in Swati
(ts), Luganda in Swahili (lg), the Armenian "board" that said
"administration" (hy) and the Vietnamese "history" that was Malay (vi).
Words that are correct in the tag's language, though spelled as in the
other one, are kept. The uz-AR guard and its audited copy-many sample
follow the Arabic script; placeholders are as in English.

Low confidence: the chart and metric names in Veps, Wolaytta, Tsonga,
Luganda and Northern Sami.

Thanks to xet7 !
2026-11-20 06:10:51 +02:00
Lauri Ojansivu 3b1c7ce7bb WeKan and Trello .zip imports use the shared upload, limit and disk check; .mbox and .enex export a page at a time.
The WeKan .zip route and the Trello package route wrote their uploads
with caps of their own (5 GB and 200 MB, 1 GB unpacked). They now go
through the same receiver as every Import page upload: the Admin Panel's
largest import (else WEKAN_IMPORT_ZIP_MAX_BYTES for the WeKan zip), or
with none the free disk space, checked before and while the file is
written, and a Trello package may unpack to as much as that.

The .mbox and .enex exports are written to the response 500 cards at a
time, waiting for the socket when it is full, instead of being built
whole in memory; the pages together are the same file. TODO.md keeps
what is left: streamed reading of large JSON and text, and the other
formats' exports.

Thanks to xet7 !
2026-11-20 06:10:37 +02:00
Lauri Ojansivu 0d8f8b8d96 The list, card and swimlane menus are grouped under headings.
As the board menu and the Board View menu are: Share and history, Export
and import, Add, Watch, Edit or Appearance, Settings, Move and copy, and
Archive. No entry moved or changed its condition; each heading sits
inside its group's own condition, so a member who sees none of a group
sees no heading over it, and a heading is not something to click. The
two header bars keep their layout, which was regrouped before. The three
new headings are translated into every language; the others reuse
existing words.

Thanks to xet7 !
2026-11-20 06:10:28 +02:00
Lauri Ojansivu 63b5e089f5 Twelve Board View reports: Created vs. Resolved, Net Flow, Time in List, Average Age, Throughput Run, Due Date Performance and more.
Added after comparing WeKan's charts with the reports of Jira, Azure
DevOps, Nave, ActionableAgile and the Flow Framework: Created vs.
Resolved, Net Flow, Time in List, Average Age, Throughput Run Chart and
Due Date Performance under Kanban flow; Release Burndown and Epic
Progress under Scrum; Workload, Distribution, Dependency Map and Activity
Heatmap under Overview. Each opens like the other charts, with the export
bar at its top, a Chart.js chart and its data table, which is also what
its PDF and Excel export write.

The calculations are pure (models/lib/boardReports.js) and answer one
shape, { bars, table }, so the chart view and both exports read every
report the same way; the server loads only what a report reads. A member
who may see only their assigned cards gets none of them, as with the
other charts. The report names and table headings are translated into
every language.

Thanks to xet7 !
2026-11-20 06:10:13 +02:00
Lauri Ojansivu 32c24ed84e Import page uploads stream to the server's disk, checked against the free space and an Admin Panel limit.
A file chosen on the Import page for the generalized importer's sources
is POSTed to /api/import/upload/:source and written to
WRITABLE_PATH/import-uploads a part at a time, instead of being read in
the browser and sent whole, as text or base64, through importBoard. The
size the browser announces is checked before the first byte against the
largest import set in Admin Panel / Settings / Security (none: no limit)
and against the free space of that disk less a reserve, and the space is
checked again every 64 MB while it is written; a refused or interrupted
upload leaves no file behind. importBoard then reads the file by its
id: a .zip export (Slack, Google Takeout, Vikunja, Notion, Plane) is
opened from the disk, its entries inflating up to the limit or the free
space, and a mailbox is read a message at a time, also inside a Takeout
zip. The upload is removed once read, or after an hour.

The HTML-only mail text is read through the parsed document rather than
stripped with a pattern. TODO.md says what is left of large files, and
which locale files hold another language.

Thanks to xet7 !
2026-11-20 05:42:27 +02:00
Lauri Ojansivu 257835733b Board View menu and the Import and Export lists are grouped under headings.
The Board View menu, and Board Settings / Board View, show the views in six
groups - Board, Calendar and time, Scrum, Kanban flow, Overview, and
Communication and code - with the board's own order inside each; the six
separators of the old order are the headings now. The Import page and the
Export menu list the other tools under the same headings from one table,
models/lib/toolGroups.js: Kanban and project tools, Issue trackers and
version control, Task and to-do apps, Spreadsheets and tables, Text and
outlines, Mail, calendars, chats and notes, and Fetched from a service.
The thirteen headings are translated into every language; "Scrum" stays
as it is, like the other method names. The Tigre instructions of the new
imports keep the attested plural for files.

Thanks to xet7 !
2026-11-20 05:18:02 +02:00
Lauri Ojansivu ef8e82200f Update WeKan changelog: import and export of mail, calendars, chats and notes.
Thanks to xet7 !
2026-11-20 05:03:59 +02:00
Lauri Ojansivu ccfa6cf362 Import and export mail, calendars, chats and notes: mbox/.eml, iCalendar, Google Takeout, Slack, Mattermost, Telegram, WhatsApp, Discord, Evernote.
The Import page reads nine more kinds of export, each into the view it
is for: mail (mbox, .eml) as cards of Board View / Email, one per
conversation with the replies as comments; an .ics file's tasks by
status and its events, with their dates; a Google Takeout .zip as one
board with a swimlane per product (Mail, Tasks, Keep, Calendar, Google
Chat); a Slack workspace export, a Mattermost bulk export, Telegram
Desktop's JSON, a WhatsApp chat .txt and a DiscordChatExporter JSON as
channels whose messages are comments, for Board View / Chat; and an
Evernote .enex as notes with their to-dos as checklists. The Export menu
writes a board as an .mbox, an .enex and a Mattermost bulk import file,
each read back by the same import.

MIME is decoded with mailparser and ENEX with htmlparser2 on the server,
and the zips are read under the zip-bomb guards of the other zip imports.
An imported message's Message-IDs pass the import sanitizer without
their brackets, so a later reply to the board joins the thread. The
instructions of the nine are translated into every language. TODO.md
also gets the next items: grouped menus, large-file import and export,
and the reports to add.

Thanks to xet7 !
2026-11-20 05:03:27 +02:00
Lauri Ojansivu c4da72ff72 Shared templates spec: one instance setting, so its tests run in order and wait for the reset.
The scopes are a setting the whole instance shares, not each browser's
storage: the describe runs serially, waits until the page shows the reset
the test server sees at its next database poll, and finds each template
link inside its own group.

Thanks to xet7 !
2026-11-20 04:26:42 +02:00
Lauri Ojansivu 96e730922e Update WeKan changelog and TODO.md: the menu fixes are done; Import/Export formats and reports to add.
Moves the five menu items done from TODO.md to the Upcoming release, and
adds to TODO.md the Import and Export formats (mail, Google Takeout,
iCalendar, Slack, Mattermost, Telegram, WhatsApp, Discord, Evernote) and
the Board View reports (Created vs. Resolved, Net Flow, Time in List and
others) still to add.

Thanks to xet7 !
2026-11-20 04:26:37 +02:00
Lauri Ojansivu a24e3a49a9 Sandstorm: comment activity notifications await the card, comment and board.
The notifier read the card, the comment and the board from ReactiveCache
without await - on the server those are Promises - so comment.text.match
threw on every comment activity, and a card's members were never found.
tests/serverReactiveCacheAwaited.test.cjs sweeps server/ for any other
unawaited ReactiveCache result kept in a variable.

Thanks to xet7 !
2026-11-20 04:20:22 +02:00
Lauri Ojansivu c0339ccc59 Shared templates: the group kinds to share with are an instance setting, and the targets appear.
Which group kinds - Organizations, Teams, email Domains - Admin Panel /
People / Shared templates allows came from the browser's localStorage,
so it differed per browser and was empty for every user but the admin
who ticked it. It is Settings.sharedTemplatesScopes now, published to
every client, and an admin's earlier ticks are carried over once.

The All Boards / Templates targets were empty for everyone anyway:
getMyShareableGroups did not await ReactiveCache.getUser, so it read
orgs, teams and emails from a Promise.

Thanks to xet7 !
2026-11-20 04:20:22 +02:00
Lauri Ojansivu b00e2c8133 Board menu: All Boards Settings is back, below Date, for board admins.
The entry was commented out for the #4214 "icons random dance", which
left the popup - card counters and member avatars on All Boards, card
aging, auto-archive and personal list widths - with no way in. The All
Boards tiles now read one fetch of getAllBoardsTileData rather than
reactive cursors, so the loop cannot return.

Thanks to xet7 !
2026-11-20 04:20:14 +02:00
Lauri Ojansivu 60c25690df Card menu: Create board from this card is shown to members who can edit the card.
It sat under unless canModifyCard, so exactly the members the
createBoardFromCard method lets convert a card never saw it. It was in
both branches when added; a refactor kept only that one. It is now under
the card menu's write entries, not for Workers, when board creation is
allowed.

Thanks to xet7 !
2026-11-20 04:20:14 +02:00
Lauri Ojansivu 0ccf182001 Support page: a signed-out visitor sees a Public page, and no text of one that is not.
The /support route sent every signed-out visitor to sign-in, so the
Public setting of Admin Panel / Settings / Visibility had no effect and
the template's "only for logged-in users" case was never reached - while
the page's text was sent to every signed-out subscriber of 'setting'
anyway. The route is open now, and a visitor who is not signed in
receives supportPageText only when the page is Public. The supportPopup
the member menu no longer opened, and its supportPopupText publication,
are removed.

Thanks to xet7 !
2026-11-20 04:20:14 +02:00
Lauri Ojansivu 42959d02f1 Edit Profile saves a member's own new username when Username change is allowed.
setUsername wrote only for a site admin, so with Admin Panel / People /
Login Username change allowed a member's new username was not saved, and
the popup closed as if it had. It now follows setEmail: an admin renames
any account, a member their own when the setting allows it, and anything
else is refused with not-authorized instead of returning quietly.
setUsernameAndEmail asks for both changes to be allowed.

Thanks to xet7 !
2026-11-20 04:20:05 +02:00
github-actions[bot] 360387890f Bump versions for v13.20 2026-11-19 21:01:49 +00:00
Lauri Ojansivu faf12ea1d5 Prepare v13.20 release 2026-11-19 23:00:47 +02:00
Lauri Ojansivu 114fb7f235 Merge remote-tracking branch 'origin/main' 2026-11-19 23:00:22 +02:00
Lauri Ojansivu 1933025bc8 Update WeKan changelog: build.sh and build.bat run a single Playwright spec.
Thanks to xet7 !
2026-11-19 22:41:56 +02:00
Lauri Ojansivu e1d6ad77c0 build.sh, build.bat: Tests -> Playwright single spec.
Runs one Playwright spec, found by its file name or a part of it, on the
browsers chosen, optionally only the tests whose title matches. Also
./build.sh --playwright-spec <spec> [chromium|firefox|webkit|all] [filter].

A WeKan already answering on :3000 is used as it is. Otherwise a fresh
bundle is built and the test server started the way the whole-suite runs
start it (Meteor's mongod on :3001, the bundle on :3000), and both are
stopped afterwards, so a single spec does not pass or fail on a stale
bundle. In build.sh each browser runs natively when it can launch and in
the Playwright container when it cannot; Chromium in the VSCodium Flatpak
on arm64 runs natively without Docker. Logs go to
.tools/log/test-playwright-spec/<datetime>/.

Thanks to xet7 !
2026-11-19 22:41:33 +02:00
Lauri Ojansivu 3569b3795f Update WeKan changelog: REST card lists carry the fields for syncing.
Thanks to rmb82 and xet7 !
2026-11-19 22:11:14 +02:00
Lauri Ojansivu 97809cbb33 REST: list and swimlane card lists carry modifiedAt, labelIds, members and customFields.
GET /api/boards/:boardId/lists/:listId/cards and
GET /api/boards/:boardId/swimlanes/:swimlaneId/cards now also return each
card's modifiedAt, dateLastActivity, labelIds, members and customFields
([{ _id, value }]), so a syncing client can skip unchanged cards instead
of a GET per card. Both routes build their items in
models/lib/restCardListItem.js, so they stay alike.

Same board access check, and no extra query. Admin-only custom field
values stay concealed by sendJsonResult's redaction, as on the single-card
GET; each item carries its boardId so that redaction is scoped to this
board, and an admin of it still reads a field shared with other boards.

Thanks to rmb82 and xet7 !

Fixes #6928,
2026-11-19 22:10:43 +02:00
github-actions[bot] 08143879d1 Bump versions for v13.19 2026-11-19 18:04:43 +00:00
Lauri Ojansivu bf8f45fb5a Prepare v13.19 release 2026-11-19 20:03:38 +02:00
Lauri Ojansivu 84a4334206 Merge remote-tracking branch 'origin/main' 2026-11-19 19:53:24 +02:00
Lauri Ojansivu cc90b358a0 Update WeKan changelog: release builds survive a slow Snap Store and package mirrors.
Thanks to xet7 !
2026-11-19 16:53:46 +02:00
Lauri Ojansivu d49922a6da Release builds: bound the Snap Store processing wait, retry package mirrors.
The v13.18 release run: every wekan and wekan-gantt-gpl snap uploaded,
then sat in the Snap Store's "Status: processing" for hours. snapcraft
polls that with no limit, so GitHub cancelled the jobs at timeout-minutes
(2 h native, 6 h Launchpad). snap-upload-retry.sh now gives one upload
30 minutes (SNAP_UPLOAD_PROCESSING_BUDGET). A revision the store accepted
is left for the store to release to the channels sent with it, with a
warning, instead of uploading it again; an upload cut off before the
store accepted it is retried.

Bun android-arm64 died on a Termux mirror mid-sync ("File has unexpected
size ... Mirror sync in progress?") and Bun freebsd-x64 on an unreachable
FreeBSD package mirror. Termux installs (Bun, Android bundles) and the
i386 libraries of single-file now go through releases/apt-install.sh,
which learned Termux's prefix and lack of sudo. Every BSD VM prepare
retries its package install 5 times and says why when it gives up.

Thanks to xet7 !
2026-11-19 16:53:20 +02:00
github-actions[bot] 985cd8d4a1 Bump versions for v13.18 2026-11-19 01:53:05 +00:00
Lauri Ojansivu 57ebedf392 Prepare v13.18 release 2026-11-19 03:51:21 +02:00
Lauri Ojansivu aa2605b97f Merge remote-tracking branch 'origin/main' 2026-11-19 03:50:51 +02:00
Lauri Ojansivu 5a03999896 Update WeKan changelog: Problems report rows describe one occurrence.
Thanks to xet7 !
2026-11-19 03:34:05 +02:00
Lauri Ojansivu 80fb1c65fc Admin Panel / Problems: a row's address, location and user are one occurrence.
A summary row keeps the LATEST occurrence's username, address, location
and detail, but a field the newest occurrence did not carry was left
from an older one: summaryUpdate only dropped the other address family
from $set, so the old value stayed in the database. Security Report
showed a German IPv4 as "Vancouver, CA" - the location of somebody
else's IPv6 beside it - and JamBleed's "gerald" beside a lockout of
account trottola. The newest occurrence now replaces all the latest
fields and $unset clears the ones it does not carry, in the fold and in
the in-memory fold the legacy migration uses. Existing rows are correct
from their next occurrence on.

Thanks to xet7 !
2026-11-19 03:33:48 +02:00
Lauri Ojansivu b590e17820 Update WeKan changelog: Problems Summary counts in every language.
Thanks to xet7 !
2026-11-19 03:22:38 +02:00
Lauri Ojansivu 7c92cf3298 Admin Panel / Problems / Summary: counts read as sentences, in every language.
"1 new problems" glued a number to a plural label, and Data health's
"Last Run: ... - 8/31" did not say what was counted. Both are now one
translated sentence with the numbers as placeholders: "New problems: 1"
and "Checks with findings: 8 / 31", translated into all 244 locales.
The menu's "Memory Usage" is "Memory usage" like CPU usage and Disk
usage, and broken memory-usage values are corrected: Aymara had an
English wrapper, Latvian had Lithuanian, and Dutch, Frisian, Tagalog,
Tswana, Yoruba and Hawaiian were split or in the wrong word order.

Low confidence: ay, chr, csb, iu, kl, ks, kw, lld, nah, rup, szl, tig,
tlh, uz-AR, ve, ve-PP, vo, wa, wal, zgh.

Thanks to xet7 !
2026-11-19 03:22:10 +02:00
github-actions[bot] 914a79da0b Bump versions for v13.17 2026-11-18 23:54:17 +00:00
Lauri Ojansivu b5495d83d7 Prepare v13.17 release 2026-11-19 01:53:10 +02:00
Lauri Ojansivu ccd4a5a78c Update WeKan changelog: #6927.
Thanks to sro-lbohn and xet7 !
2026-11-19 01:27:41 +02:00
Lauri Ojansivu 0d9c8c1250 Cards of an archived swimlane stay hidden with the Archive sidebar closed.
#6927, a regression of #6659: on a board whose archived swimlane still
holds unarchived cards - archived before #2292 archived cards with their
swimlane, as on a board migrated from WeKan 6.09 - those cards appeared
in the first swimlane, and vanished while the Archive sidebar was open.
The first swimlane surfaces orphaned cards (#6443), and the client could
only exclude swimlanes in its cache; archived swimlanes reach the cache
only with the Archive sidebar.

The board's archived swimlane ids are now published on their own
(boardArchivedSwimlaneIds: one document per board, ids only, read access
as for the board) into a client-only collection, and
Lists.orphanedCardsSwimlaneIds excludes them. Nothing that lists
swimlanes starts showing archived ones, and the cards are not changed:
moving or archiving them was what brought old cards back before
(swimlane-structure, 2026-08-13).

tests/archivedSwimlaneCards6927.test.cjs replays the reporter's board;
archived-swimlane-cards-6927.e2e.js checks it with the Archive sidebar
open and closed.

Thanks to sro-lbohn, hmeunier95 and xet7 !

Fixes #6927.
2026-11-19 01:27:40 +02:00
Lauri Ojansivu f413e53835 Update WeKan changelog: Admin Panel structure and menu docs.
Thanks to xet7 !
2026-11-19 01:23:10 +02:00
Lauri Ojansivu a8fd080bc8 Docs mirror the Admin Panel and the menus: a page for every menu entry.
The docs tree is laid out like the menus - a menu path is a docs path.
Admin Panel / Settings follows the new structure: Visibility.md is
Appearance.md, with new Features.md, Feature-Profiles.md, Security.md,
Activities-and-Notifications.md and Delete.md; the section indexes,
Admin-Panel.md, Admin-Panel-URLs.md (with the moved-pane redirects) and
Validation.md follow the live menus, and Who-Sees-What.md explains in one
place which layer decides what is shown and what is allowed.

Pages are added for the menu entries that had none, each written from
the code: every Admin Panel / Problems pane, the member menu, the board
header, Board Settings, the All Boards left menu, and the list,
swimlane and card menus. Older links to the moved panes are updated
across docs/.

TODO.md records what documenting the menus found: Edit Profile does not
save a username for non-admins, the Support page's signed-out case is
unreachable, Create board from this card is hidden from members who can
edit the card, All Boards Settings is unreachable, and the Share template
targets live in browser storage.

Thanks to xet7 !
2026-11-19 01:22:22 +02:00
Lauri Ojansivu e1a053d059 Admin Panel: one question per tab - Settings gains Appearance, Features, Feature profiles, Security, Activities and Delete.
Who sees and may use what was spread over three tabs: the feature
switches and feature profiles sat in Settings / Visibility beside the
logo and colours, and three settings (Security, Delete, Notifications)
sat in Problems among the reports, where they had landed when the
Features tab was removed.

- Settings / Visibility is Appearance (how this WeKan looks); its
  Features and Feature profiles groups are panes of their own. One
  template renders all three by `part`, so every field and Save is
  unchanged.
- Problems / Security, Delete and Notifications are Settings /
  Security, Delete and "Activities and notifications". Problems is
  Summary, Backup and the Reports.
- Every old address redirects (MOVED_PANES / movedPanePath in
  models/lib/adminUrls.js, applied by config/router.js).
- People, Teams and Organizations show the feature profile that
  applies, so a profile can be found from either side.
- Two new labels, Appearance and Activities and notifications, are
  translated into every language.

tests/adminPanelStructure.test.cjs and admin-panel-structure.e2e.js
cover the order, the redirects and that no feature switch is left in
Appearance or Problems; older guards and specs follow the new panes.

Thanks to xet7 !
2026-11-19 01:22:13 +02:00
Lauri Ojansivu 58158ca9ab Translate shared authentication messages into Maithili
Technical authentication terminology is lower confidence.
2026-11-19 01:10:01 +02:00
Lauri Ojansivu 4a8fb736e5 Translate shared authentication messages into Bhojpuri
Technical authentication terminology is lower confidence.
2026-11-19 01:09:20 +02:00
Lauri Ojansivu 4fb99602b6 Translate shared authentication messages into Sindhi
Technical session terminology is lower confidence.
2026-11-19 01:08:32 +02:00
Lauri Ojansivu 31ea58c408 Translate shared authentication messages into Punjabi 2026-11-19 01:07:47 +02:00
Lauri Ojansivu ea680e5389 Translate shared authentication messages into Telugu 2026-11-19 01:07:01 +02:00
Lauri Ojansivu 1eb00ff8cb Translate shared authentication messages into Odia
Technical session and administrator terminology is lower confidence.
2026-11-19 01:06:18 +02:00
Lauri Ojansivu 31dafef73d Translate shared authentication messages into Assamese
Technical session and administrator wording is lower confidence.
2026-11-19 01:05:24 +02:00
Lauri Ojansivu 907e0bd89d Translate shared authentication messages into Algerian Arabic
Technical session and administrator terminology is lower confidence.
2026-11-19 01:04:43 +02:00
Lauri Ojansivu fb7ab1dc2d Translate shared authentication messages into Moroccan Arabic 2026-11-19 01:04:01 +02:00
Lauri Ojansivu 5539e38242 Translate shared authentication messages into Egyptian Arabic 2026-11-19 01:03:21 +02:00
Lauri Ojansivu d301fd39f8 Translate shared authentication messages into Japanese hiragana 2026-11-19 01:02:42 +02:00
Lauri Ojansivu 8cab0730b4 Reuse Simplified Chinese authentication messages in Mandarin catalog 2026-11-19 01:01:57 +02:00
Lauri Ojansivu daedcf7eee Translate shared authentication messages into Cantonese 2026-11-19 01:01:18 +02:00
Lauri Ojansivu cdbf67d359 Translate shared authentication messages into Hawaiian
Technical authentication and session terminology is lower confidence.
2026-11-19 01:00:37 +02:00
Lauri Ojansivu 71acbba05c Translate shared authentication messages into Fijian
Technical authentication, domain and session terms are lower confidence.
2026-11-19 00:59:46 +02:00
Lauri Ojansivu c536867b7f Translate shared authentication messages into Tongan
Technical session terminology is lower confidence.
2026-11-19 00:59:02 +02:00
Lauri Ojansivu dfc51e0eae Translate shared authentication messages into Samoan
Technical authentication and session terminology is lower confidence.
2026-11-19 00:58:14 +02:00
Lauri Ojansivu 1b3b074bf1 Translate shared authentication messages into Malagasy
Technical setup and session terminology is lower confidence.
2026-11-19 00:57:26 +02:00
Lauri Ojansivu ec2ea4ca31 Translate shared authentication messages into Igbo
Technical authentication and session terminology is lower confidence.
2026-11-19 00:55:57 +02:00
Lauri Ojansivu 793683c4c7 Translate shared authentication messages into Yoruba
Technical authentication and session terminology is lower confidence.
2026-11-19 00:55:17 +02:00
Lauri Ojansivu 4e16699fe4 Translate shared authentication messages into Uyghur
Technical session and administrator terminology is lower confidence.
2026-11-19 00:54:28 +02:00
Lauri Ojansivu ad18fe00e9 Translate shared authentication messages into Bashkir
Technical authentication terminology is lower confidence.
2026-11-19 00:53:43 +02:00
Lauri Ojansivu bb87b93c6e Translate shared authentication messages into Tatar
Technical authentication terminology is lower confidence.
2026-11-19 00:53:04 +02:00
Lauri Ojansivu 298f68dc40 Translate shared authentication messages into Turkmen 2026-11-19 00:52:26 +02:00
Lauri Ojansivu 5b8341e014 Translate shared authentication messages into Tok Pisin
Technical authentication and session terminology is lower confidence.
2026-11-19 00:51:42 +02:00
Lauri Ojansivu 96b34e8d9b Translate shared authentication messages into Neapolitan
Authentication and session terminology is lower confidence.
2026-11-19 00:50:42 +02:00
Lauri Ojansivu 2059ef7612 Translate shared authentication messages into Sardinian
Technical authentication and session terminology is lower confidence.
2026-11-19 00:49:59 +02:00
Lauri Ojansivu 4810de82d6 Translate shared authentication messages into Sicilian
Technical authentication and session terminology is lower confidence.
2026-11-19 00:49:21 +02:00
Lauri Ojansivu b015f76225 Translate shared authentication messages into Asturian and Aragonese
Aragonese technical terminology is lower confidence.
2026-11-19 00:48:48 +02:00
Lauri Ojansivu 18e04f4f02 Translate shared authentication messages into Kurmanji and Sorani
Technical authentication and session terminology is lower confidence.
2026-11-19 00:48:06 +02:00
Lauri Ojansivu 8b7462a1c5 Translate shared authentication messages into Pashto
Technical session and administrator terminology is lower confidence.
2026-11-19 00:47:08 +02:00
Lauri Ojansivu 7c0f0a2e91 Translate shared authentication messages into Shona
Technical domain and session terms are lower confidence.
2026-11-19 00:46:27 +02:00
Lauri Ojansivu 1db8366a37 Translate shared authentication messages into Xhosa
Technical administrator and session terms are lower confidence.
2026-11-19 00:45:46 +02:00
Lauri Ojansivu 3d42a1101c Translate shared authentication messages into Zulu
Technical authentication and administrator terminology is lower confidence.
2026-11-19 00:45:08 +02:00
Lauri Ojansivu 65b6eed3b7 Translate shared authentication messages into Tagalog 2026-11-19 00:44:26 +02:00
Lauri Ojansivu 46adbd0608 Translate shared authentication messages into Papiamento
Technical authentication and session terms are lower confidence.
2026-11-19 00:43:51 +02:00
Lauri Ojansivu ffd5c89b6d Translate shared authentication messages into Romansh
Technical session terminology is lower confidence.
2026-11-19 00:43:14 +02:00
Lauri Ojansivu b094d53ff8 Translate shared authentication messages into Māori
Technical enrollment and session terminology is lower confidence.
2026-11-19 00:42:40 +02:00
Lauri Ojansivu bbc988b1a8 Translate shared authentication messages into Amharic
Session terminology is lower confidence.
2026-11-19 00:41:59 +02:00
Lauri Ojansivu 4670cf781c Translate shared authentication messages into Yiddish
Technical enrollment terminology is lower confidence.
2026-11-19 00:41:04 +02:00
Lauri Ojansivu 4f5aa339b3 Translate shared authentication messages into Breton and Occitan
Breton technical terminology is lower confidence.
2026-11-19 00:40:26 +02:00
Lauri Ojansivu 4992f9d203 Translate shared authentication messages into Luxembourgish and West Frisian
Enrollment terminology is lower confidence in both languages.
2026-11-19 00:39:33 +02:00
Lauri Ojansivu e812fe45a7 Translate shared authentication messages into Haitian Creole and Javanese
Javanese enrollment terminology is lower confidence.
2026-11-19 00:38:40 +02:00
Lauri Ojansivu c0ff740263 Translate shared authentication messages into Somali and Hausa
Session and enrollment terminology is lower confidence.
2026-11-19 00:37:57 +02:00
Lauri Ojansivu 05e95004b5 Translate shared authentication messages into Latin and Corsican
Technical terminology is lower confidence in both languages.
2026-11-19 00:37:05 +02:00
Lauri Ojansivu cbd27a2c8c Translate shared authentication messages into Khmer and Burmese
Session terminology in Khmer and Burmese is lower confidence.
2026-11-19 00:36:18 +02:00
Lauri Ojansivu 7f946df622 Localize shared authentication messages in nine more catalogs 2026-11-19 00:35:25 +02:00
Lauri Ojansivu caf5e67842 Translate shared authentication messages into Nepali, Urdu and Sinhala 2026-11-19 00:34:34 +02:00
Lauri Ojansivu c172b6639d Translate shared authentication messages into Gujarati, Kannada, Malayalam and Marathi 2026-11-19 00:33:40 +02:00
Lauri Ojansivu 383fc6de98 Translate shared authentication messages into Mongolian and Tajik 2026-11-19 00:32:28 +02:00
Lauri Ojansivu 79d7141e09 Translate shared authentication messages into Kazakh, Kyrgyz and Uzbek 2026-11-19 00:31:39 +02:00
Lauri Ojansivu 6ae104c686 Translate shared authentication messages into Estonian and Faroese 2026-11-19 00:31:11 +02:00
Lauri Ojansivu 38b28fb3e3 Translate shared authentication messages into Chinese 2026-11-19 00:31:11 +02:00
Lauri Ojansivu e2c8e58c20 Localize shared authentication messages in 34 regional catalogs 2026-11-19 00:31:10 +02:00
github-actions[bot] 197725ae19 Bump versions for v13.16 2026-11-18 22:28:18 +00:00
Lauri Ojansivu 59f3e73117 Prepare v13.16 release 2026-11-19 00:27:22 +02:00
Lauri Ojansivu 39bb89c4a7 Add shared WeKan enrollment and registration keys 2026-11-19 00:27:08 +02:00
Lauri Ojansivu a833d95adc Use WeKan as the translation source for its prototypes 2026-11-19 00:21:55 +02:00
Lauri Ojansivu 5285ca918a Update WeKan changelog: swap alone is not high RAM usage.
Thanks to xet7 !
2026-11-19 00:21:44 +02:00
Lauri Ojansivu cfd9a62466 Swap alone is not high RAM usage, and resource monitors are not named like vulnerabilities.
A developer laptop with many programs open showed in Admin Panel /
Problems / Memory usage: "RamBleed, high, high RAM usage started
(>= 90%): RAM 16.1/30.9 GB (52%), swap 18.7/30.9 GB (60%)". Swap at or
above 25% started a high-memory period by itself, made it high severity,
and the text still said ">= 90%". Idle pages in swap while RAM is free
are not pressure.

- Swap now counts only while RAM is also at or above the low threshold
  (80%), and a period ends when RAM is back under it.
- The start row says what started it: (RAM >= 90%) or (swap >= 25% with
  RAM >= 80%). Only RAM at 95% or more is high severity.
- The RAM, CPU, disk and speed monitors named their rows like Hall of
  Fame entries (RamBleed, CpuBleed, DiskBleed, SlowBleed) with CWE-400.
  They are HighRamUsage, HighCpuUsage, HighDiskUsage and SlowRequest now,
  without a CWE, and stored rows are renamed once at startup.

tests/ramHighTracker.test.cjs replays the laptop's numbers as a
negative case; tests/resourceStreamNames.test.cjs pins the names.

Thanks to xet7 !
2026-11-19 00:21:33 +02:00
Lauri Ojansivu 1293dc6b45 Move feature profiles (#6837) from TODO.md to the changelog.
TODO.md keeps only the WebKit stage, which needs a host outside the
Flatpak sandbox.

Thanks to mimZD and xet7 !
2026-11-19 00:02:07 +02:00
Lauri Ojansivu fc21b0b177 Feature profiles: an administrator hides features from chosen users, teams and organizations.
Decided by the maintainer on 2026-11-18 (TODO.md): administrator-defined
profiles. Admin Panel / Settings / Visibility / Features gains Feature
profiles: a name, a tick for each optional feature the profile hides,
and the users, teams and organizations it applies to. A user's own
profile wins, then the first profile naming one of their teams, then one
naming one of their organizations.

Strictly opt-in, because hiding features by default was tried and
removed as a support nightmare: a user with no profile sees everything,
a profile only hides (no data or permission changes), and the member
menu tells the user which profile hides how many features. The decision
is models/lib/featureProfiles.js, applied in isFeatureAvailable, so
every existing place that hides a disabled feature follows it.

Profiles are stored in Settings (featureProfiles) and a direct
assignment on the user (featureProfileId, published to that user only
and not writable by them). tests/featureProfiles.test.cjs covers the
decision, cleaning, the admin-only methods and the wiring;
feature-profiles.e2e.js drives the page, the hidden board view and the
notice.

The 11 new strings are translated into every language. Low confidence:
 qu, rup, rn, rw, sah, se, sm, sn, ss, st (low); sd, so, si, scn (medium); sr uses standard Тимови/Организације; ff, fj, gn, gv, haw (low); ha, hsb, fur, gd, ga, fo (medium); ace, ak, ay, bm, bi, bo, bua (low); ba, bho, ar-DZ/ar-EG/ary dialect spelling (medium); iu, kl, ks, kw, lld, lg, ig, la (low); kok (medium); tig, ti, tlh, ve-PP, ve-CC, uz-AR, ve, ts, tn, to, tpi (low); szl (medium); wal, vo, zgh, wa, wo, wa-RR, yi, wuu-Hans (low); chr, dz, ee, csb, cv, co, ckb (low); cmn uses 配置 for profile; nah, nap, nd, nso, om, mai (low); mg, ny, pap, or_IN, ps (medium).

Thanks to mimZD and xet7 !

Fixes #6837.
2026-11-19 00:01:42 +02:00
Lauri Ojansivu 2ea288d7c5 Move List Sync's rule replay skip from TODO.md to the changelog.
Thanks to xet7 !
2026-11-18 23:46:15 +02:00
Lauri Ojansivu a0f3681961 List Sync's rule replay skips an action into a list that refuses the actor's role.
Decided by the maintainer on 2026-11-18 (TODO.md). The ordinary rules
engine already skips such an action; the journaled List Sync replay
(server/notifications/storedRulePlans.js) still wrote with board write
access only.

Each list-writing runner - move, move to another board, move all,
move all to another board, copy, link, create card, sort list and
archive - now decides before it saves its command: a list refusing the
actor's role (#4527) records a durable skip (listSyncRuleListSkips) and
the runner returns the invocation id, which executeRulePlan confirms
like any finished action, so the rest of the plan runs. A replay reads
the saved skip first, so it never re-decides; a saved command is never
skipped and a skipped action never gets a command. The skip shows in
Admin Panel / Problems as ListLockRule (detected, low).

tests/listSyncRuleListSkip.test.cjs runs the skipper and pins every
runner's order.

Thanks to xet7 !
2026-11-18 23:46:00 +02:00
Lauri Ojansivu 96430d4679 Move list and swimlane changes and rule actions from TODO.md to the changelog.
TODO.md keeps the List Sync replay follow-up and #6837.

Thanks to xet7 !
2026-11-18 23:08:19 +02:00
Lauri Ojansivu ee24453dcb A rule action into a list that refuses the triggering user's role is skipped.
Decided by the maintainer on 2026-11-18 (TODO.md). A rule's move, archive,
unarchive, create-card, copy, link, sort-list and move-all-cards actions
checked only board write access. Each now asks the lists it writes in as
the user who triggered the rule (#4527); a refusing list skips that
action, and the rest of the rule still runs. The skip shows in Admin
Panel / Problems as ListLockRule (authz.rule-list-locked, detected, low,
never disables): it is a rule meeting a locked list, not an attack.

List Sync's journaled rule replay is not changed yet - a skip there needs
a receipt of its own - and stays in TODO.md.

tests/listLockRules.test.cjs runs the check and copyRuleCard against a
locked list and pins every action.

Thanks to xet7 !
2026-11-18 23:08:06 +02:00
Lauri Ojansivu 3202a1d7ac A list's role exception also refuses deleting, archiving or moving it, and its swimlane.
Decided by the maintainer on 2026-11-18 (TODO.md). Deleting, archiving,
restoring or moving a list, and deleting, archiving or moving a
swimlane, does the same to the cards in it, so a list that refuses a
role write access (#4527) now refuses those too:

- lists.softRemove, lists.restore and moveList answer not-authorized;
- the REST list DELETE, archive, unarchive and move, and the REST
  swimlane DELETE, answer 403, recorded as ListLockBleed;
- moveSwimlane is refused when a list holding its cards, or bound to
  it, refuses the role (swimlaneRefusingListIds);
- client writes meet new Lists and Swimlanes deny rules, and the list
  menu no longer offers Archive list or Archive all cards in such a list.

Renaming, recolouring and reordering are not refused, and board admins
are never restricted.

tests/listLockStructure.test.cjs runs the swimlane gate and pins every
path; list-lock-bulk.e2e.js replays the REST cases. Sandboxed route
tests get a pass-through gate.

Thanks to xet7 !
2026-11-18 23:08:06 +02:00
Lauri Ojansivu 16f208cb47 Move dependency lines and list exceptions from TODO.md to the changelog.
Thanks to xet7 !
2026-11-18 22:57:45 +02:00
Lauri Ojansivu da6d9d39b8 Dependency lines follow the card's list role exception.
Decided by the maintainer on 2026-11-18 (TODO.md): a list that refuses a
role write access (#4527) refuses that role's dependency lines on its
cards too, since a line is stored on its source card. setBoardDependency
and removeBoardDependency answer not-authorized, the REST dependency
routes answer 403 recorded as ListLockBleed, and importBoardDependencies
skips such lines. Board admins and site admins are not restricted, as
before.

tests/listPermissions.test.cjs no longer exempts the dependency routes
and follows the access helpers a route awaits;
tests/listLockDependencies.test.cjs pins DDP and the import, and
list-lock-bulk.e2e.js replays it over REST.

Thanks to xet7 !
2026-11-18 22:57:33 +02:00
Lauri Ojansivu 941e1794f7 TODO.md: record the maintainer's decisions on list exceptions and #6837.
Thanks to xet7 !
2026-11-18 22:56:23 +02:00
Lauri Ojansivu d2966d0624 Verify untitled card links on WeLite boards 2026-11-18 22:35:54 +02:00
Lauri Ojansivu 26c457b18e TODO.md: #6834 is closed.
The maintainer closed it on 2026-11-01, asking the reporter to upgrade;
the header wrapping did not reproduce on current code and no reply came.
Nothing changed in WeKan for it, so there is no changelog entry.

Thanks to mimZD and xet7 !
2026-11-18 22:33:08 +02:00
Lauri Ojansivu 879627c641 Move TODO Later from the changelog to TODO.md.
The changelog now says only what changed. What is not done yet, with
why, is in TODO.md at the repository root; Status links it. When an
item is done it is removed from TODO.md and its entry goes into the
Upcoming section of CHANGELOG-big.md. CLAUDE.md and AGENTS.md say so,
tests/changelogFormat.test.cjs checks the changelog no longer carries
TODO Later, and tests/todoFile.test.cjs checks TODO.md's shape.

TODO.md also records three maintainer decisions left open by
ListLockBulkBleed: whether per-list role exceptions should apply to
dependency lines, to the rules engine's own actions, and to deleting,
archiving or moving whole lists and swimlanes.

Thanks to xet7 !
2026-11-18 22:32:52 +02:00
Lauri Ojansivu ab10ade956 Update WeKan changelog: ListLockBulkBleed, History audit memory, scheduled rules, clearing card text.
Also corrects the Excel export spec's link to its rebased commit.

Thanks to immanuwell, AhmedLukman and xet7 !
2026-11-18 22:26:22 +02:00
Lauri Ojansivu 7459c5bde6 The History integrity audit streams each board instead of loading it whole.
Production log (v13.13): "JavaScript heap out of memory" twice, 42 and
74 seconds after the hourly History integrity audit started (its
changeHistory distinct is in the MongoDB log at 03:00:00 and 05:00:00),
both in the first hourly run of a freshly started process. The audit
fetched each board's whole History - every row with its full previous
and new content - and verified the array.

historyVerifier checks one row at a time and keeps only hashes, the first
child of each predecessor, root counts and small summaries; the audit
streams each board through a cursor with a bounded batch, pausing while
the CPU is busy. verifyHistoryRows runs on it and returns exactly what
it did. tests/historyIntegrityStreaming.test.cjs compares both on chains
with forks, a second root, a tampered and an orphan row, and fails if
the audit fetches a board whole.

Thanks to xet7 !
2026-11-18 22:25:34 +02:00
Lauri Ojansivu f23695cc1b Scheduled rules act as the board's admin, so their created cards have an author.
Production log (v13.13): "scheduledRules: error running trigger ...
User ID is required in cards insertAsync" on every run. Scheduled rules,
auto-archive and attachment retention acted as board.createdBy, but the
Boards schema has no createdBy, so it was undefined on every board: a
scheduled rule ran as nobody and its "create card" action always failed.

models/lib/boardActor.js names the board's first active admin, else its
first active member. The rule's createCard action also passes its acting
user as the card's author, since a scheduled run has no method user for
the schema's autoValue. tests/boardActor.test.cjs scans the tree so that
nothing reads board.createdBy again.

Thanks to xet7 !
2026-11-18 22:25:34 +02:00
Lauri Ojansivu ba3d94390b ListLockBulkBleed: bulk and server-side card writes ask the list's role exception.
GHSA-83w9-74mx-7v83. A board admin can refuse a role write access in one
list (#4527, roleExceptions). REST DELETE /api/boards/:boardId/cards/bulk
and POST /api/boards/:boardId/cards/labels take their cards from the
body, so no URL names a list, and asked only for board write access; the
methods archiveSelectedCards, copyCard and createLinkedCard write from
server code, past the Cards allow/deny rules. A normal member the list
refused could delete, relabel and archive its cards and copy or link new
cards into it.

- The bulk routes read every card and ask each list before the first
  write (assertCardListsNotRefused): any refusal is a 403 and nothing
  changes, recorded in Admin Panel / Problems as ListLockBulkBleed
  (authz.list-locked-bulk, medium). Each removal and relabel is keyed on
  the list that was checked.
- The methods refuse with not-authorized (assertListsWritable), not
  recorded: Copy Card and Multi-Selection reach them in ordinary use.
- The same shape, fixed with the same check: createBoardFromCard,
  addSubtaskCard, createCardWithDueDate (which also did not check that
  the list is on the board), the iCalendar import over DDP and REST,
  sending and receiving board email, vcsCreateIssue, moveBoardObjects,
  History's undo/redo/Restore, position history undo/redo of a card,
  renameAttachment, the scoped import and a card's rule button.
  Dependency lines keep their own board-wide rule.

tests/listLockBulkBleed.test.cjs runs the gate on the reporter's board
and pins every path; tests/playwright/specs/list-lock-bulk.e2e.js replays
the proof of concept. Older guards that pinned the previous shape are
updated with the reason.

Thanks to immanuwell and xet7 !
2026-11-18 22:25:34 +02:00
Lauri Ojansivu 22dae19a64 Exercise REST card title edits on WeLite boards 2026-11-18 22:24:06 +02:00
Lauri Ojansivu 74dd0b705e Resolve sibling helper requires in the attachment cleanup test sandbox.
db.js now requires ./welite-auth, which the vm sandbox resolved against
the test file instead of the helpers directory.

Thanks to xet7 !
2026-11-18 21:39:15 +02:00
Lauri Ojansivu aacb2fd4d6 Clearing a card title or description can be undone and redone.
Follow-up to PR #6926. Clearing a value is an edit recorded in History,
not a deletion, so Admin Panel / Problems / Delete has no part in it and
the old value stays restorable. collection2's default clean removes ''
from $set and then throws "your modifier is now empty", so:

- History's redo and Restore of a cleared title or description threw,
  while undo worked. applyFieldContent now writes the recorded value back
  exactly (removeEmptyStrings and trimStrings off).
- The card details title and description clear, and the board
  description clear, pass removeEmptyStrings: false.
- REST card PUT always passes removeEmptyStrings: false for title and
  description: a title of only spaces was trimmed to '' and then removed,
  a 500, and the #6877 description clear had no option at all.

tests/emptyStringClearWrites.test.cjs replays undo/redo/Restore through a
collection2-like clean and pins the options at every write;
tests/playwright/specs/card-clear-undo-redo.e2e.js clears in the card
details and over REST, then undoes and redoes.

Thanks to AhmedLukman and xet7 !
2026-11-18 21:39:15 +02:00
Lauri Ojansivu d1e0bae6a5 Update WeKan changelog: Upcoming release.
Thanks to AhmedLukman and xet7 !
2026-11-18 21:27:31 +02:00
Lauri Ojansivu 320a3ca867 Test card Excel export with only Description or only Labels selected.
The browser-level regression test for PR #6925: drives the real
exportExcel route with fields=description and fields=labels, and checks
that each workbook carries the selected field and not the other one or
the board title.

Thanks to AhmedLukman and xet7 !
2026-11-18 21:27:31 +02:00
Lauri Ojansivu 58ba1e4b3b Merge pull request #6926 from AhmedLukman/codex/rest-card-empty-title
Allow clearing card titles through REST
2026-11-18 21:27:15 +02:00
Lauri Ojansivu ba9504d6db Verify regional Arabic attachment captions on WeLite 2026-11-18 21:14:37 +02:00
Lauri Ojansivu 6f7292cffd Verify Arabic webhook field captions on WeLite 2026-11-18 21:14:37 +02:00
Lauri Ojansivu 8c1152f234 Verify regional Arabic captions in WeLite People tables 2026-11-18 21:14:37 +02:00
Lauri Ojansivu f1fe22ac16 Verify RTL People table captions on WeLite 2026-11-18 21:14:37 +02:00
Lauri Ojansivu 333928f123 Allow time for the WeLite attachment browser workflow 2026-11-18 21:14:37 +02:00
Lauri Ojansivu bd6b00c5f4 Reuse the browser session in the WeLite attachment cascade spec 2026-11-18 21:14:37 +02:00
Lauri Ojansivu c5344761d8 Verify Finnish attachment preview in WeLite 2026-11-18 21:14:37 +02:00
Lauri Ojansivu 075e6dbe73 Verify both export links on the WeLite board 2026-11-18 21:14:37 +02:00
Lauri Ojansivu f34fee6582 Run upstream webhook settings cases on WeLite 2026-11-18 21:14:36 +02:00
Lauri Ojansivu e30c439fa7 Exercise targeted WeLite browser session revocation 2026-11-18 21:14:36 +02:00
Lauri Ojansivu 6bf2d53d75 Run upstream custom-field lifecycle cases on WeLite 2026-11-18 21:14:36 +02:00
Lauri Ojansivu b6bc2b200c Run Version Control Attachments workflow on native WeLite 2026-11-18 21:14:36 +02:00
Lauri Ojansivu c060c6d2db Verify direct attachment removal in native WeLite Chromium 2026-11-18 21:14:36 +02:00
Lauri Ojansivu 7c3b798a1d Verify native attachment rename and reject missing form token 2026-11-18 21:14:36 +02:00
Lauri Ojansivu 26e27f62c4 Run the upstream card attachment cascade spec on WeLite 2026-11-18 21:14:36 +02:00
Lauri Ojansivu f1adc7982e Run the upstream dropdown deletion spec on native WeLite 2026-11-18 21:14:36 +02:00
Lauri Ojansivu b8fd94a7e7 Run the upstream dropdown rename spec on native WeLite 2026-11-18 21:14:36 +02:00
Lauri Ojansivu 8abb9504bb Run upstream assignment removal REST cases on native WeLite 2026-11-18 21:14:36 +02:00
Lauri Ojansivu a9059b7b15 Seed native Playwright credentials before API token use 2026-11-18 21:14:36 +02:00
Lauri Ojansivu 399a8defec Run the upstream write-route scope spec on native WeLite 2026-11-18 21:14:36 +02:00
Lauri Ojansivu ede46c7a98 Run the upstream checklist REST spec on native WeLite 2026-11-18 21:14:36 +02:00
Lauri Ojansivu e4115e6890 Run the upstream user update REST spec on native WeLite 2026-11-18 21:14:36 +02:00
Lauri Ojansivu 72ee1c8b23 Run the upstream People features spec on native WeLite 2026-11-18 21:14:36 +02:00
Lauri Ojansivu 2033c177ce Run the upstream overtime REST spec on native WeLite 2026-11-18 21:14:36 +02:00
Lauri Ojansivu db3f489ab2 Run the upstream subtask REST spec on native WeLite 2026-11-18 21:14:36 +02:00
Lauri Ojansivu 11fc468ff7 Run the upstream archive and restore spec on native WeLite 2026-11-18 21:14:36 +02:00
Lauri Ojansivu 5f06b28aef Run native board sorting through the upstream REST spec 2026-11-18 21:14:36 +02:00
Lauri Ojansivu 049b628a03 Exercise the ownership REST spec against native WeLite 2026-11-18 21:14:36 +02:00
Lauri Ojansivu 6d8d2a7699 Merge pull request #6925 from AhmedLukman/codex/card-xlsx-optional-context
Fix card Excel exports when board information is omitted
2026-11-18 21:12:06 +02:00
Ahmed Lukman 79a98822cb Report unmatched REST card title updates 2026-11-18 20:05:18 +03:00
Ahmed Lukman c59c751547 Allow clearing card titles through REST 2026-11-18 19:31:45 +03:00
github-actions[bot] c739eaeeee Bump versions for v13.15 2026-11-18 10:26:34 +00:00
Lauri Ojansivu ac365ef116 Prepare v13.15 release 2026-11-18 12:25:45 +02:00
Ahmed Lukman 997c6d88ad Fix card Excel exports when board information is omitted
Allow the shared card export builder to read titles from optional board, list and swimlane records. Cover description-only and labels-only field selections.
2026-11-18 11:59:44 +03:00
Lauri Ojansivu 5f92c8efec Expect 404 for wrong-board custom field updates 2026-11-18 10:12:04 +02:00
Lauri Ojansivu 320e98269e Merge remote-tracking branch 'origin/main' 2026-11-18 08:45:59 +02:00
Lauri Ojansivu dc80a93041 Tests: RaceBleed is in the security regression inventory, with its two suites.
Thanks to xingmuse and xet7 !
2026-11-18 03:49:12 +02:00
Lauri Ojansivu bf70908c0a Updated ChangeLog.
Thanks to xingmuse and xet7 !
2026-11-18 03:48:46 +02:00
Lauri Ojansivu baaeea27e3 REST API: a handler's Meteor "not-found" error is a 404, not a 500.
httpStatusForError knew only 'NotFound', while about two hundred throw sites
in server/ spell it Meteor's way - 'not-found', 'board-not-found',
'list-not-found', 'user-not-found' and the rest. So DELETE of a missing
swimlane, and a board-member add naming nobody, answered 500 "Internal
server error" on a real server, while tests/restWriteRoutes404.test.cjs,
which stubs the helper, saw the 404 - found by
tests/playwright/specs/rest-write-routes-404.e2e.js while testing RaceBleed.

Any error name that is or ends in "not-found" is now a 404 with its message;
everything unknown is still a 500 that carries no detail.
tests/restNotFoundStatus.test.cjs runs the real helper, and fails on any
not-found spelling in server/ that it would not map.

Thanks to xet7 !
2026-11-18 03:47:53 +02:00
Lauri Ojansivu c7a496c9cf Security: RaceBleed - a card's children are destroyed only for a card whose own removal happened.
GHSA-3vjg-3p4q-8fwh. The REST card DELETE looked the card up on the board
the caller was authorised for, destroyed its checklists, checklist items,
comments, attachments and subcards by cardId, and removed the card itself
last, keyed on that board and list. A move to another board landing in
between left the card alive on a board the deleter cannot read, stripped of
every child, with both requests answering 200 (CWE-367). Every hooked
removal had the same shape: collection-hooks runs Cards.before.remove (where
the cascade was) and then removes by the caller's original selector - by
swimlane, delete batch or parent - which a moved card no longer matches. The
custom-field link clean-up did the same to the cards linked to it.

The card document is now the claim (models/lib/claimedCardRemoval.js): the
single and bulk REST deletes remove the card first and cascade only when
that removal matched, and the hooked removals cascade from Cards.after.remove
only when the card is really gone. A list deletion removes a card only while
it is still in that list. The REST board move that loses to a delete is a
404 instead of a 500 from cardMove.

A delete that lost the race, or arrived after the card was moved away from
the named board, is refused and recorded in Admin Panel / Problems as
RaceBleed (authz.card-delete-race, medium, never disables the account): a
stale view is not an attack, and PurgeBleed's critical record used to
disable the member who deleted a card somebody had just moved.

tests/claimedCardRemoval.test.cjs replays the reported race and scans
server/ for any cascade before or without the card's removal;
tests/playwright/specs/race-bleed.e2e.js races 12 moves against deletes
and checks that a surviving card always keeps its checklist.

Thanks to xingmuse and xet7 !
2026-11-18 03:43:25 +02:00
github-actions[bot] 5be568495e Bump versions for v13.14 2026-11-16 21:13:02 +00:00
Lauri Ojansivu ebcdf327b0 Prepare v13.14 release 2026-11-16 23:12:07 +02:00
Lauri Ojansivu e3da773d03 Shared list headers guard expects the !important hiding rule.
The #2805 guard still pinned a plain `display: none`, which the #6902 fix
made `!important` because the desktop list header's
`display: block !important` overrode it. The guard now says why.

Thanks to xet7 !
2026-11-16 20:19:19 +02:00
Lauri Ojansivu b35184d487 VSCodium sandbox: allow the host's Docker through flatpak-spawn --host.
vscodium-sandbox.sh now grants --talk-name=org.freedesktop.Flatpak, so
build.sh's docker_exec can run Playwright Firefox and WebKit in the
official Playwright image when they cannot start inside the sandbox.
WEKAN_SANDBOX_HOST_DOCKER=0 leaves the grant out. The README says what it
costs: flatpak-spawn --host is a host escape and the Docker socket is
root-equivalent. The script gets a bash shebang, as it now uses an array.

Thanks to xet7 !
2026-11-16 20:10:25 +02:00
Lauri Ojansivu db3b12fac2 Merge remote-tracking branch 'origin/main' 2026-11-16 20:07:31 +02:00
Lauri Ojansivu a34beaa62b Updated ChangeLog.
Thanks to xet7 !
2026-11-16 16:46:36 +02:00
Lauri Ojansivu 138f727ebb Card shortcuts open only their popup.
d, Shift+M and Shift+C on a hovered or selected minicard opened the card
first, and Shift+M / Shift+C then opened the card's hamburger menu and
clicked its item: card, menu and popup for one key. Now the Due date, Move
card or Copy card popup opens by itself next to the minicard, as a click on
a minicard's date or label opens only its popup, and the card stays closed.
On an opened card Move / Copy open next to its hamburger without showing the
menu; d there still clicks the card's own Due date control.

The popup is opened directly, so client/lib/cardShortcutPopup.js applies the
conditions the controls a click would use are rendered under: the board
allows due dates and the user may modify the card (a Worker only edits an
existing date), Move card for a board admin, Copy card for a member who is
not a Worker, both only with cardMenuWrites. Without them nothing opens.
tests/cardShortcutPopup.test.cjs drives the rules and ties each one to its
template condition; the browser specs check the card stays closed and no
menu is shown, and that a non-admin and disabled shortcuts open nothing.
The help-list check matched "Move Card to Archive" too and now matches the
action text exactly.

Thanks to mimZD and xet7 !

Fixes #6924.
2026-11-16 16:46:06 +02:00
Lauri Ojansivu 39ee1d9512 One shared list header row hides the other swimlanes' list headers.
The rule hiding them was `display: none`, and the desktop list header layout
sets `display: block !important` (lists/list.css, boardHeader.css); a plain
declaration loses to an !important one, so every swimlane kept its headers
and tests/playwright/specs/shared-list-row-6902.e2e.js failed. The rule is
!important now, and its selector outranks those. tests/sharedListRow6902.test.cjs
finds every !important display rule on a .list-header in the client CSS and
requires the hiding rule to outrank it (verified to fail on the old rule).

Thanks to mimZD and xet7 !
2026-11-16 16:46:06 +02:00
Lauri Ojansivu b05972c4c8 A checklist folded on a minicard stays folded: no publication sends the current user a partial profile.
The fold was stored, and half a second later the checklist unfolded again.
DDP merges only top-level fields, and Meteor re-runs named subscriptions
before the accounts publication of the whole profile on every login, a
reconnect included. userDesktopDragHandles sent the current user
{ profile: { showDesktopDragHandles } }, and user-miniprofile, user-search,
notificationUsers, the card search and report, the boards report, People,
the impersonation report and the Chat view's comment authors sent a few
profile.* fields that could include the current user. When one of them won,
the client's profile shrank to those fields until a reload, and every
preference in it went back to its default; #6691 had found the same for the
board view and fixed only that one.

userDesktopDragHandles now publishes the preference under its own top-level
field, as userBoardView does, and utils.js reads it when the profile has
none. Every other publication leaves the current user out
(server/lib/notCurrentUser.js); their own document is published in full
already, and user-admin now also publishes createdAt, loginDisabled,
lastConnectionDate and importUsernames for the user's own row on the admin
pages.

tests/noNarrowProfileForCurrentUser6919.test.cjs finds every users query
with profile subfields in a server file that publishes and requires it to
leave the current user out (verified to fail when one does not).
tests/playwright/specs/minicard-checklist-collapse-6919.e2e.js folds and
unfolds a minicard checklist in Persian after a page load and after a
reconnect, on the reporter's card, a second checklist, a linked card, a user
with 300 earlier folds and both swimlanes of a shared list header row, and
checks the fold survives the server's answer, in the database and on the
client. Before the fix 4 of 24 reconnect runs unfolded; with it 24 of 24 and
the whole spec pass in Chromium.

Thanks to mimZD and xet7 !

Fixes #6919.
2026-11-16 16:46:06 +02:00
Lauri Ojansivu 495a6faa63 Source test mode starts again: meteor/<package>/main resolves.
build.sh's source test mode (scripts/dev-source) stopped at startup with
"Cannot find module 'meteor/aldeed:collection2/main'". server/main.js loads
collection2's main module before the models (2699f4deea), and the source
runtime resolved only a bare meteor/<package>. It now maps
meteor/<package>/main to the same package exports, which image.load has
already run. tests/devSourceMainModule.test.cjs checks every such import in
the server entry resolves, and that other sub-paths are not taken for it.

Thanks to xet7 !
2026-11-16 16:46:06 +02:00
Lauri Ojansivu 8eff8bb442 Merge pull request #6922 from AhmedLukman/codex/fix-dropdown-option-rename
Fix REST dropdown option renaming
2026-11-16 15:21:52 +02:00
Ahmed Lukman 00b0431685 Fix REST dropdown option renaming
Use an explicit array index when renaming a dropdown option so schema
validation and protected-field checks can preview the update. Match the
option ID at that index to avoid renaming a sibling after a concurrent
removal or reorder, and return 404 when the update no longer matches.

Add handler and browser regressions for persisted names, stable selections,
encoded IDs, missing targets, authorization and protected-field restrictions.

Thanks to AhmedLukman and xet7 !
2026-11-16 15:11:51 +03:00
Lauri Ojansivu a364e75025 Updated ChangeLog.
Thanks to xet7 !
2026-11-16 13:58:38 +02:00
Lauri Ojansivu 040d853c8e RedirectBleed hardening: a direct client write of an avatar URL follows setAvatarUrl's rule.
setAvatarUrl refuses javascript:, file:, data:text/html and every scheme but
http(s), data:image and local paths, but the Users allow rule permits every
profile.* field, so Users.update({$set: {'profile.avatarUrl': ...}}) from the
browser console stored what the method refuses. Not exploitable as reported:
the URL is rendered only as an <img src>, and the server fetches it only
through fetchSafe (http/https). The rule is now models/lib/avatarUrlScheme.js,
used by both avatar methods and by a Users deny rule, which logs the refused
write to Admin Panel / Problems as file.avatar-url. No WeKan client code
writes the field directly, which the test checks.

Verified while checking meifukun's GHSA-g98f-44gc-hqcc, GHSA-x6fh-wrr5-3426,
GHSA-28hr-j65r-grj2, GHSA-mrhx-8xm7-chrq and GHSA-83qj-w8mp-w4qf against the
current code: all five were already fixed (tests/securityMeifukun.test.cjs).

Thanks to meifukun and xet7 !
2026-11-16 13:54:08 +02:00
Lauri Ojansivu 79676b3790 Description editor shows no placeholder text instead of "comment-placeholder".
i18next 27 (#6915, shipped in v13.13) changed returnEmptyString to default
false, so an empty translation falls back like a missing one, to its key.
en.i18n.json keeps comment-placeholder and eight Blockly suffixes empty on
purpose, so the description and comment editors showed the text
"comment-placeholder". TAPi18n.init() now sets returnEmptyString: true, which
is the v26 behaviour; no language has an empty value where English has text,
so nothing that should fall back to English goes blank.

lld, lb, haw and sc had text for the empty English source ("Optioun: ",
"Ma ka ʻōlelo Hawaiʻi: "), which is not a translation of anything; they are
empty now like every other language.

tests/i18nEmptyString.test.cjs runs the real __() with the init() options
read from tap.js (verified to fail without the fix on i18next 27.1.1), and
checks no language has a blank value where English has text. The mocha suite
and the description Playwright spec check the placeholder is empty.

Thanks to brlin-tw and xet7 !

Fixes #6921.
2026-11-16 13:47:58 +02:00
Lauri Ojansivu 5ec3aaf85f Guard follows the merged dependabot update: freebsd-vm 1.6.0.
Dependabot moved bsd.yml's FreeBSD VM to v1.6.0 (#6907), and
tests/bsdBundles.test.cjs requires the same commit as node-patches, which
builds node-freebsd-x64 in that VM. node-patches now uses v1.6.0 too, so the
guard pins its new commit.

Thanks to xet7 !
2026-11-16 13:43:18 +02:00
Lauri Ojansivu cc302acdd1 Merge pull request #6920 from AhmedLukman/codex/fix-card-attachment-cascade
Soft-delete attachments when removing their card
2026-11-16 13:32:22 +02:00
Lauri Ojansivu 77c22918d7 Merge pull request #6918 from AhmedLukman/codex/fix-attachment-rename-validation
Keep renamed upload paths consistent before validation
2026-11-16 13:31:46 +02:00
Ahmed Lukman 1051265fc8 Cover attachment cleanup through the card delete menu
Upload attachments through the browser and delete their card through More,
Delete and its confirmation. Verify the persisted deletion markers, history,
active attachment list, recoverable bytes and the sibling card's display.

Thanks to AhmedLukman and xet7 !
2026-11-15 20:27:38 +03:00
Ahmed Lukman 7875220470 Soft-delete attachments when removing their card
Find live attachments by their metadata card ID and use the existing
attachment deletion lifecycle. Preserve recoverable bytes and history while
removing the files from active attachment listings.

Cover single and bulk REST deletion, rejected requests, existing soft-deleted
files, history, byte preservation and the remaining card's browser display.

Thanks to AhmedLukman and xet7 !
2026-11-15 20:02:43 +03:00
Ahmed Lukman 628a69c086 Keep renamed upload paths consistent before validation
Update the original and version paths in memory and in the file record, and wait for metadata writes before upload hooks continue. Cover rename failures, persistence ordering, normalized uploads, original bytes and card rendering.
2026-11-15 14:11:10 +03:00
github-actions[bot] ac39a9a6b0 Bump versions for v13.13 2026-11-15 01:36:09 +00:00
Lauri Ojansivu 59d3fc9690 Prepare v13.13 release 2026-11-15 03:35:08 +02:00
Lauri Ojansivu 9e970b87fa Updated ChangeLog.
Thanks to ChrisMagnuson, dependabot and xet7 !
2026-11-15 03:11:44 +02:00
Lauri Ojansivu e46d7a2376 Destination pickers list the cards of a lazily loaded board.
Copy Checklist's card dropdown stayed empty for a board with more cards
than the lazy-loading threshold (CARDS_LOADING=auto above 500, or lazy).
The pickers read the chosen board's cards from the `board` publication,
which ships no cards for a lazy board, and a picker opens no list that
would fetch its window. A new `destinationCards` publication ships the
titles and places of one list's cards in one swimlane (or of the whole
board for the parent-card picker), whatever the card-loading mode, scoped
like the other card publications: the board must be readable, and an
assigned-only member gets only their own cards.

Copy / Move checklist, Copy checklist from a template card, Move / Copy
card, Link card and the parent-card picker subscribe to it. Done waits
until the chosen list's cards are there, a remembered card is checked
against them rather than against the board, and the open board's Filter
no longer empties the destination list.

Thanks to ChrisMagnuson and xet7 !

Fixes #6917.
2026-11-15 03:11:14 +02:00
Lauri Ojansivu c05be372aa Merge pull request #6914 from wekan/dependabot/npm_and_yarn/mongodb-7.8.0
Bump mongodb from 7.7.0 to 7.8.0
2026-11-15 01:48:01 +02:00
dependabot[bot] 7377f88aca Bump mongodb from 7.7.0 to 7.8.0
Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) from 7.7.0 to 7.8.0.
- [Release notes](https://github.com/mongodb/node-mongodb-native/releases)
- [Changelog](https://github.com/mongodb/node-mongodb-native/blob/main/HISTORY.md)
- [Commits](https://github.com/mongodb/node-mongodb-native/compare/v7.7.0...v7.8.0)

---
updated-dependencies:
- dependency-name: mongodb
  dependency-version: 7.8.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-14 23:46:20 +00:00
Lauri Ojansivu 22577312a9 Merge pull request #6916 from wekan/dependabot/npm_and_yarn/sanitize-html-2.18.2
Bump sanitize-html from 2.18.1 to 2.18.2
2026-11-15 01:45:52 +02:00
Lauri Ojansivu b523e4a517 Merge pull request #6915 from wekan/dependabot/npm_and_yarn/i18next-27.1.1
Bump i18next from 26.5.11 to 27.1.1
2026-11-15 01:45:26 +02:00
Lauri Ojansivu 1810796dc6 Merge pull request #6913 from wekan/dependabot/npm_and_yarn/typescript-eslint/parser-8.72.2
Bump @typescript-eslint/parser from 8.72.1 to 8.72.2
2026-11-15 01:44:42 +02:00
Lauri Ojansivu 8cc5567649 Merge pull request #6912 from wekan/dependabot/github_actions/softprops/action-gh-release-3.0.4
Bump softprops/action-gh-release from 3.0.3 to 3.0.4
2026-11-15 01:44:27 +02:00
Lauri Ojansivu 3d96445be8 Merge pull request #6911 from wekan/dependabot/npm_and_yarn/tests/playwright/playwright/test-1.65.0
Bump @playwright/test from 1.64.1 to 1.65.0 in /tests/playwright
2026-11-15 01:44:08 +02:00
Lauri Ojansivu 26578fcc4e Merge pull request #6910 from wekan/dependabot/github_actions/docker/login-action-4.8.0
Bump docker/login-action from 4.7.0 to 4.8.0
2026-11-15 01:43:48 +02:00
Lauri Ojansivu 8cac055c59 Merge pull request #6909 from wekan/dependabot/npm_and_yarn/puppeteer-25.17.0
Bump puppeteer from 25.15.0 to 25.17.0
2026-11-15 01:43:28 +02:00
Lauri Ojansivu 30d6826564 Merge pull request #6908 from wekan/dependabot/github_actions/azure/setup-helm-5.1.0
Bump azure/setup-helm from 5.0.1 to 5.1.0
2026-11-15 01:42:56 +02:00
Lauri Ojansivu b32234cc9c Merge pull request #6907 from wekan/dependabot/github_actions/vmactions/freebsd-vm-1.6.0
Bump vmactions/freebsd-vm from 1.5.9 to 1.6.0
2026-11-15 01:42:27 +02:00
dependabot[bot] 8b213d38c9 Bump sanitize-html from 2.18.1 to 2.18.2
Bumps [sanitize-html](https://github.com/apostrophecms/apostrophe/tree/HEAD/packages/sanitize-html) from 2.18.1 to 2.18.2.
- [Changelog](https://github.com/apostrophecms/apostrophe/blob/sanitize-html@2.18.2/packages/sanitize-html/CHANGELOG.md)
- [Commits](https://github.com/apostrophecms/apostrophe/commits/sanitize-html@2.18.2/packages/sanitize-html)

---
updated-dependencies:
- dependency-name: sanitize-html
  dependency-version: 2.18.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-14 20:33:27 +00:00
dependabot[bot] 74b004333b Bump i18next from 26.5.11 to 27.1.1
Bumps [i18next](https://github.com/i18next/i18next) from 26.5.11 to 27.1.1.
- [Release notes](https://github.com/i18next/i18next/releases)
- [Changelog](https://github.com/i18next/i18next/blob/master/CHANGELOG.md)
- [Commits](https://github.com/i18next/i18next/compare/v26.5.11...v27.1.1)

---
updated-dependencies:
- dependency-name: i18next
  dependency-version: 27.1.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-14 20:33:17 +00:00
dependabot[bot] f04beb1622 Bump @typescript-eslint/parser from 8.72.1 to 8.72.2
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 8.72.1 to 8.72.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.72.2/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-version: 8.72.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-14 20:33:02 +00:00
dependabot[bot] f9b52fbd9d Bump softprops/action-gh-release from 3.0.3 to 3.0.4
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 3.0.3 to 3.0.4.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/efb35369e0ad2afab669f228072c1b0d510eae64...8a0cd651e5b2365bd640854a3fa5dfc70e4875f3)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-version: 3.0.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-14 20:33:00 +00:00
dependabot[bot] 74b1df33d1 Bump @playwright/test from 1.64.1 to 1.65.0 in /tests/playwright
Bumps [@playwright/test](https://github.com/microsoft/playwright) from 1.64.1 to 1.65.0.
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](https://github.com/microsoft/playwright/compare/v1.64.1...v1.65.0)

---
updated-dependencies:
- dependency-name: "@playwright/test"
  dependency-version: 1.65.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-14 20:32:55 +00:00
dependabot[bot] fa8303dbe4 Bump docker/login-action from 4.7.0 to 4.8.0
Bumps [docker/login-action](https://github.com/docker/login-action) from 4.7.0 to 4.8.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/81c6f93d4bc991e510b342a00b419b3bb4efc5c6...8aa5831fb8d48d8f76594c7ddde61ae58019f550)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-version: 4.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-14 20:32:52 +00:00
dependabot[bot] 5346efb843 Bump puppeteer from 25.15.0 to 25.17.0
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 25.15.0 to 25.17.0.
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/puppeteer/puppeteer/compare/puppeteer-v25.15.0...puppeteer-v25.17.0)

---
updated-dependencies:
- dependency-name: puppeteer
  dependency-version: 25.17.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-14 20:32:49 +00:00
dependabot[bot] 164809e08b Bump azure/setup-helm from 5.0.1 to 5.1.0
Bumps [azure/setup-helm](https://github.com/azure/setup-helm) from 5.0.1 to 5.1.0.
- [Release notes](https://github.com/azure/setup-helm/releases)
- [Changelog](https://github.com/Azure/setup-helm/blob/main/CHANGELOG.md)
- [Commits](https://github.com/azure/setup-helm/compare/9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310...2f5e7bc67f1f9972ab16657bb795f36d8f04de0e)

---
updated-dependencies:
- dependency-name: azure/setup-helm
  dependency-version: 5.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-14 20:32:45 +00:00
dependabot[bot] ae6ee35bdb Bump vmactions/freebsd-vm from 1.5.9 to 1.6.0
Bumps [vmactions/freebsd-vm](https://github.com/vmactions/freebsd-vm) from 1.5.9 to 1.6.0.
- [Release notes](https://github.com/vmactions/freebsd-vm/releases)
- [Commits](https://github.com/vmactions/freebsd-vm/compare/c46abacb49f09938ca4e1702d15d836285d694cc...811efaaac0668df8bfb8308c3ec997b5ab50037b)

---
updated-dependencies:
- dependency-name: vmactions/freebsd-vm
  dependency-version: 1.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-14 20:32:39 +00:00
819 changed files with 61647 additions and 4462 deletions

No files matched your search

+2 -2
View File
@@ -149,8 +149,8 @@ jobs:
esac
docker run --rm --security-opt seccomp=unconfined -v "$PWD:/work" -w /work \
"termux/termux-docker:$TERMUX_ARCH" env "ARCH=$ARCH" DO_NOT_TRACK=1 bash -ec '
apt-get update
apt-get install -y nodejs-lts python make clang pkg-config libvips curl procps file
APT_ATTEMPTS=5 APT_SLEEPS="30 60 120 180" bash releases/apt-install.sh \
nodejs-lts python make clang pkg-config libvips curl procps file
bash releases/android/build-bundle.sh "$ARCH"'
- name: Package
+28 -5
View File
@@ -147,13 +147,21 @@ jobs:
- name: Build and start in FreeBSD
if: steps.node.outputs.skip != 'true' && matrix.os == 'freebsd'
uses: vmactions/freebsd-vm@c46abacb49f09938ca4e1702d15d836285d694cc
uses: vmactions/freebsd-vm@811efaaac0668df8bfb8308c3ec997b5ab50037b
with:
release: ${{ matrix.release }}
arch: ${{ matrix.vm_arch }}
sync: rsync
copyback: true
prepare: pkg install -y bash python3 gmake pkgconf curl
prepare: |
# A package mirror that is briefly unreachable ("No route to host",
# v13.18) is waited out instead of failing the build.
for i in 1 2 3 4 5; do
pkg install -y bash python3 gmake pkgconf curl && break
[ "$i" = 5 ] && { echo "::error::Installing the VM's packages failed 5 times: the package mirror is down, not WeKan. Re-run this job."; exit 1; }
echo "Package install failed (attempt $i/5), retrying."
sleep $((i * 30))
done
run: bash releases/bsd/build-bundle.sh freebsd ${{ matrix.arch }}
- name: Build and start in OpenBSD
@@ -164,7 +172,15 @@ jobs:
arch: ${{ matrix.vm_arch }}
sync: rsync
copyback: true
prepare: pkg_add bash python%3 gmake curl
prepare: |
# A package mirror that is briefly unreachable ("No route to host",
# v13.18) is waited out instead of failing the build.
for i in 1 2 3 4 5; do
pkg_add bash python%3 gmake curl && break
[ "$i" = 5 ] && { echo "::error::Installing the VM's packages failed 5 times: the package mirror is down, not WeKan. Re-run this job."; exit 1; }
echo "Package install failed (attempt $i/5), retrying."
sleep $((i * 30))
done
# V8 writes and runs machine code: OpenBSD allows that only from a
# filesystem mounted wxallowed (/usr/local is, by default). The
# bundle is started here, from the workspace, so that is mounted so.
@@ -180,8 +196,15 @@ jobs:
sync: rsync
copyback: true
prepare: |
/usr/sbin/pkg_add pkgin
pkgin -y install bash python313 gmake curl gcc14
# A package mirror that is briefly unreachable ("No route to host",
# v13.18) is waited out instead of failing the build.
for i in 1 2 3 4 5; do
{ command -v pkgin >/dev/null || /usr/sbin/pkg_add pkgin; } &&
pkgin -y install bash python313 gmake curl gcc14 && break
[ "$i" = 5 ] && { echo "::error::Installing the VM's packages failed 5 times: the package mirror is down, not WeKan. Re-run this job."; exit 1; }
echo "Package install failed (attempt $i/5), retrying."
sleep $((i * 30))
done
# Node 26's headers need C++20, which NetBSD 10's own GCC lacks: the
# native modules are compiled with pkgsrc's GCC 14, as Node.js itself
# is (wekan/node-patches dist/netbsd).
+15 -4
View File
@@ -232,12 +232,15 @@ jobs:
"TARGET=$TARGET" "TARGET_PLATFORM=$TARGET_PLATFORM" \
"TARGET_ARCH=$TARGET_ARCH" "RELEASE_TAG=$RELEASE_TAG" \
DO_NOT_TRACK=1 bash -ec '
apt-get update
apt-get install -y nodejs-lts python make clang pkg-config libvips
# A Termux mirror mid-sync fails the index ("File has unexpected
# size ... Mirror sync in progress?", v13.18): apt-install.sh waits
# it out.
APT_ATTEMPTS=5 APT_SLEEPS="30 60 120 180" bash releases/apt-install.sh \
nodejs-lts python make clang pkg-config libvips
bash releases/bun/build-target.sh'
- name: FreeBSD VM build and smoke tests
if: matrix.kind == 'freebsd'
uses: vmactions/freebsd-vm@c46abacb49f09938ca4e1702d15d836285d694cc # v1.5.9
uses: vmactions/freebsd-vm@811efaaac0668df8bfb8308c3ec997b5ab50037b # v1.6.0
with:
release: '14.5'
arch: ${{ matrix.vm_arch }}
@@ -245,7 +248,15 @@ jobs:
sync: rsync
copyback: true
cache-after-prepare: true
prepare: pkg install -y bash node24 npm-node24 python3 gmake pkgconf vips
prepare: |
# A package mirror that is briefly unreachable ("No route to host",
# v13.18) is waited out instead of failing the build.
for i in 1 2 3 4 5; do
pkg install -y bash node24 npm-node24 python3 gmake pkgconf vips && break
[ "$i" = 5 ] && { echo "::error::Installing the VM's packages failed 5 times: the package mirror is down, not WeKan. Re-run this job."; exit 1; }
echo "Package install failed (attempt $i/5), retrying."
sleep $((i * 30))
done
run: bash releases/bun/build-target.sh
- name: Check finished archive exists
id: ready
+1 -1
View File
@@ -72,7 +72,7 @@ jobs:
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6
uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
+1 -1
View File
@@ -486,7 +486,7 @@ jobs:
- name: Install Helm
if: steps.check.outputs.skip != 'true'
uses: azure/setup-helm@9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310 # v5.0.1
uses: azure/setup-helm@2f5e7bc67f1f9972ab16657bb795f36d8f04de0e # v5.1.0
- name: Publish the chart for this release
if: steps.check.outputs.skip != 'true'
+2 -2
View File
@@ -538,7 +538,7 @@ jobs:
path: charts
- name: Install Helm
uses: azure/setup-helm@9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310 # v5.0.1
uses: azure/setup-helm@2f5e7bc67f1f9972ab16657bb795f36d8f04de0e # v5.1.0
- name: Fetch gh-pages branch (release-charts.sh switches to it)
run: |
@@ -1220,7 +1220,7 @@ jobs:
# loudly and verified from the release side; the next step checks the two
# base bundles from here.
- name: Create GitHub Release
uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3
uses: softprops/action-gh-release@8a0cd651e5b2365bd640854a3fa5dfc70e4875f3 # v3.0.4
with:
tag_name: v${{ needs.prepare.outputs.version }}
name: v${{ needs.prepare.outputs.version }}
+1 -2
View File
@@ -185,8 +185,7 @@ jobs:
esac
chmod +x host32/node
sudo dpkg --add-architecture i386
sudo apt-get update -qq
sudo apt-get install -y -qq libc6:i386 libstdc++6:i386 libatomic1:i386 >/dev/null
bash releases/apt-install.sh libc6:i386 libstdc++6:i386 libatomic1:i386
host="$PWD/host32/node"
got="$("$host" -p process.version)"
[ "$got" = "$NODE_VERSION" ] || { echo "::error::The i386 Node.js resolved for $NODE_VERSION reports $got."; exit 1; }
+150
View File
@@ -0,0 +1,150 @@
name: Push Snap to Store
# Puts the .snap files of a GitHub release on the Snap Store and RELEASES them
# to every channel: wekan, wekan-ondra and wekan-gantt-gpl, every architecture
# the release carries.
#
# WHY: release-all.yml uploads each snap as it builds it, with
# `snapcraft upload --release=...`. The store can keep a revision in
# "processing" for hours, and an upload that gives up waiting leaves the
# release to the store - the job is green either way. On v13.20 every build
# was green and the snaps were on the GitHub release, but the Snap Store kept
# the old version. This workflow finishes that from the release itself,
# without building anything: releases/snap-store-push.sh releases a revision
# the store already has, uploads one it has not, waits for one still
# processing, and FAILS - red, not green - when a snap still did not reach a
# channel.
#
# It runs after every "Release All Platforms" run, and by hand from the
# Actions tab for any release, snap names and channels.
#
# Secrets: SNAP_AUTH, as for release-all.yml - an exported login carrying
# package_access, package_push, package_release and package_update for all
# three names.
on:
workflow_dispatch:
inputs:
tag:
description: 'Release tag (e.g. v13.20). Empty: the latest release.'
required: false
default: ''
snaps:
description: 'Snap names, space separated'
required: false
default: 'wekan wekan-ondra wekan-gantt-gpl'
channels:
description: 'Channels to release to'
required: false
default: 'stable,candidate,beta,edge'
workflow_run:
workflows: ['Release All Platforms']
types: [completed]
permissions:
contents: read
concurrency:
group: snap-store
cancel-in-progress: false
env:
DO_NOT_TRACK: 1
jobs:
plan:
runs-on: ubuntu-24.04
timeout-minutes: 10
outputs:
tag: ${{ steps.plan.outputs.tag }}
snaps: ${{ steps.plan.outputs.snaps }}
channels: ${{ steps.plan.outputs.channels }}
steps:
- name: Which release, which snaps, which channels
id: plan
env:
GH_TOKEN: ${{ github.token }}
INPUT_TAG: ${{ github.event.inputs.tag }}
INPUT_SNAPS: ${{ github.event.inputs.snaps }}
INPUT_CHANNELS: ${{ github.event.inputs.channels }}
run: |
set -euo pipefail
tag="${INPUT_TAG:-}"
if [ -z "$tag" ]; then
tag="$(gh release view --repo "$GITHUB_REPOSITORY" --json tagName --jq .tagName)"
fi
case "$tag" in v[0-9]*) ;; *) echo "::error::'$tag' is not a release tag like v13.20."; exit 1 ;; esac
snaps="${INPUT_SNAPS:-wekan wekan-ondra wekan-gantt-gpl}"
for s in $snaps; do
case "$s" in wekan|wekan-ondra|wekan-gantt-gpl) ;; *) echo "::error::'$s' is not one of WeKan's snaps (wekan, wekan-ondra, wekan-gantt-gpl)."; exit 1 ;; esac
done
channels="${INPUT_CHANNELS:-stable,candidate,beta,edge}"
case "$channels" in *[!a-z0-9/,.-]*) echo "::error::'$channels' is not a channel list."; exit 1 ;; esac
echo "tag=$tag" >> "$GITHUB_OUTPUT"
echo "snaps=$(printf '%s\n' $snaps | jq -R . | jq -cs .)" >> "$GITHUB_OUTPUT"
echo "channels=$channels" >> "$GITHUB_OUTPUT"
echo "Release $tag: $snaps -> $channels"
push:
needs: [plan]
runs-on: ubuntu-24.04
# One snap name per job; its architectures one after another. A store
# still processing may take the whole wait of snap-store-push.sh.
timeout-minutes: 360
strategy:
fail-fast: false
matrix:
snap: ${{ fromJSON(needs.plan.outputs.snaps) }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
sparse-checkout: releases
persist-credentials: false
- name: Install snapcraft and check SNAP_AUTH
env:
SNAP_AUTH: ${{ secrets.SNAP_AUTH }}
run: |
set -euo pipefail
if [ -z "${SNAP_AUTH:-}" ]; then
echo "::error::SNAP_AUTH is not set. snapcraft export-login --snaps wekan,wekan-ondra,wekan-gantt-gpl --acls package_access,package_push,package_release,package_update snap-auth.txt && gh secret set SNAP_AUTH --repo wekan/wekan < snap-auth.txt"
exit 1
fi
installed=""
for i in 1 2 3 4 5; do
if timeout 180 sudo snap install snapcraft --classic; then installed=1; break; fi
sudo snap abort --last=install >/dev/null 2>&1 || true
echo "snapcraft install attempt $i/5 failed; retrying in 30s..."
sleep 30
done
[ -n "$installed" ] || { echo "::error::snapcraft could not be installed: the Snap Store did not answer. Re-run the job."; exit 1; }
SNAPCRAFT_STORE_CREDENTIALS="$SNAP_AUTH" snapcraft whoami
- name: Download ${{ matrix.snap }} from ${{ needs.plan.outputs.tag }}
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ needs.plan.outputs.tag }}
SNAP: ${{ matrix.snap }}
run: |
set -euo pipefail
mkdir -p snaps
gh release download "$TAG" --repo "$GITHUB_REPOSITORY" --dir snaps --pattern "${SNAP}_*.snap"
ls -l snaps
if ! ls snaps/"${SNAP}"_*.snap >/dev/null 2>&1; then
echo "::error::Release $TAG has no ${SNAP}_*.snap to push."
exit 1
fi
- name: Push ${{ matrix.snap }} to the Snap Store, releasing to ${{ needs.plan.outputs.channels }}
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_AUTH }}
CHANNELS: ${{ needs.plan.outputs.channels }}
run: |
set -euo pipefail
failed=""
for f in snaps/*.snap; do
# Each architecture on its own: one that the store is still
# processing does not stop the others.
if ! bash releases/snap-store-push.sh "$f" "$CHANNELS"; then failed="$failed $(basename "$f")"; fi
done
if [ -n "$failed" ]; then
echo "::error::Not released:$failed. The ::error:: lines above say why."
exit 1
fi
+60 -40
View File
@@ -166,7 +166,7 @@ git config user.name && git config user.email
declined without holding up the others.
- **No changelog changes.** Do not edit `CHANGELOG-big.md`, `CHANGELOG.md`, or the
`CHANGELOG.md` or `CHANGELOG` of a repository under `.tools/` — not an Upcoming
entry, not TODO Later. Describe the change in the pull request instead. The
entry, and not `TODO.md` either. Describe the change in the pull request instead. The
maintainer writes the entry after merging, when there is a commit for it to link.
Who that pull request credits follows the attribution rule above, and the two
@@ -267,6 +267,32 @@ replaced with the language named by that tag.**
misrepresent machine/LLM translations as human. Push only separately reviewed,
provenance-known human translations with an explicit push command.
### Shared translation source for WeKan prototypes under `.tools/`
The WeKan catalogs in `imports/i18n/data/` are the source of truth for
translations in every WeKan prototype under `.tools/`, including WeLite,
Weddy, Wami, and any future WeKan prototype with its own catalog.
1. Before adding a translation key in a prototype, search WeKan's English
catalog for a key with the same meaning and usage. Reuse that key and its
existing translations. A different key name or catalog format does not
require a new translation.
2. If no suitable key exists, add it to WeKan's English catalog first, even if
the string is currently used only by a prototype. Fill the key for every
supported language in the WeKan repository using the translation rules
below. Preserve existing human translations and verify the placeholders
against the English source.
3. Once the key is complete in WeKan, copy the canonical translations into
the applicable WeKan prototype repositories under `.tools/`. Use each
prototype's catalog format, filename and locale mapping as needed, while
preserving the translated text and placeholders. Verify that the prototype
loads the synced catalogs and renders the intended strings.
Apply the same workflow to existing prototype-only keys and translation
corrections. Resolve equivalent keys and bring genuinely new strings into
WeKan before syncing them back out. Maintain translation text in WeKan so the
prototypes share the same translations and receive subsequent updates.
### Filling the remaining untranslated strings — directly, no translation service
The strings still equal to the English source after the merge are the ones untranslated
@@ -440,7 +466,7 @@ directly after the merge.
| Repository | File | Format |
| --- | --- | --- |
| `wekan/wekan` | `CHANGELOG-big.md` (and the generated `CHANGELOG.md`, below) | the WeKan format this section describes: `# Status` (Platforms/Version/TODO Later nested as `<details>`), then `# v<MAJOR>.<MINOR> YYYY-MM-DD WeKan ® release` sections of `<details>` entries whose `<summary>` links the commit |
| `wekan/wekan` | `CHANGELOG-big.md` (and the generated `CHANGELOG.md`, below) | the WeKan format this section describes: `# Status` (Platforms/Version nested as `<details>`), then `# v<MAJOR>.<MINOR> YYYY-MM-DD WeKan ® release` sections of `<details>` entries whose `<summary>` links the commit |
| `wekan/node-patches` | `CHANGELOG.md` | the same WeKan format, with `# Upcoming node-patches release` |
| `wekan/mongo-tools-patches` | `CHANGELOG.md` | the same WeKan format, with `# Upcoming mongo-tools-patches release` |
| `wekan/FerretDB` | `CHANGELOG.md` | **upstream FerretDB's** format, not WeKan's: `## [v1.48.0](tag URL) (YYYY-MM-DD)` and `### New Features 🎉` / `### Fixed 🐛` / `### Other Changes 🤖` bullets ending `by @xet7. Thanks to xet7.` |
@@ -461,7 +487,7 @@ directly after the merge.
| | `CHANGELOG.md` |
| --- | --- |
| Status, TODO Later | none |
| Status | none |
| First | the unreleased `# Upcoming WeKan ® release`, when there is one: its **In short** paragraph only, then `[All changes so far](CHANGELOG-big.md#upcoming-wekan--release)` |
| Below it | the five newest `# v<MAJOR>.<MINOR> YYYY-MM-DD WeKan ® release` |
| Per release | its **In short** paragraph only, then `[All changes in v…](CHANGELOG-big.md#anchor)` |
@@ -521,7 +547,7 @@ directly after the merge.
| | |
| --- | --- |
| `CHANGELOG-big.md` | `# Status` (Platforms/TODO Later inside it), `# Upcoming`, and the newest releases that fit the budget |
| `CHANGELOG-big.md` | `# Status` (Platforms/Version inside it), `# Upcoming`, and the newest releases that fit the budget |
| `old-CHANGELOG/<year>/<MM>.md` | a month's releases, newest first; a month over the budget continues in `<MM>-part2.md`, `<MM>-part3.md`, ... |
| `old-CHANGELOG/<year>.md` | 2015–2025, whole |
@@ -544,24 +570,22 @@ directly after the merge.
An archived section is never edited, for the same reason a released one is
not.
- **The file's shape, top to bottom** — keep it exactly as it is now. There is
exactly ONE `#` heading before the releases: `# Status`. Platforms, Version
and TODO Later are `<details>` blocks nested inside it, not headings of
their own (they used to be `# Platforms` and `# TODO Later`; both were
folded under `# Status` so the file opens with a single top-level section
rather than three):
exactly ONE `#` heading before the releases: `# Status`. Platforms and Version
are `<details>` blocks nested inside it, not headings of their own (they used
to be `# Platforms` and `# TODO Later`; Platforms was folded under `# Status`
so the file opens with a single top-level section, and TODO Later moved out
to `TODO.md`, below):
1. `# Status` — opens with a `<details>` whose `<summary>` is `More status
info`, holding a link to <https://wekan.fi/status/>. Then a `<details>`
info`, holding a link to <https://wekan.fi/status/> and the line pointing
to [TODO.md](TODO.md). Then a `<details>`
whose `<summary>` is `Newest WeKan at these platforms`, holding the line
`Newest WeKan at these platforms:` and the Install / Upgrade / Docs / Mac
ChangeLog bullets, plus the `Older releases:` bullet linking the per-year
archives. Then a `<details>` whose `<summary>` is `Databases` listing
which databases WeKan supports and how each is tested, kept in step with
`docs/Databases/Supported.md`. Then a `<details>` whose `<summary>` is `Version` holding
"which WeKan version uses what". Then a `<details>` whose `<summary>` is
`TODO Later`, itself holding a `<details>` whose `<summary>` is `Carried
to a future release.` explaining the list, then one `<details>` per
category (below). There is no `# Version` or `# TODO Later` heading of
its own.
"which WeKan version uses what". There is no `# Version` heading of its
own, and no TODO Later block: what is not done is in `TODO.md`.
2. The releases, newest first, each `# v<MAJOR>.<MINOR> YYYY-MM-DD WeKan ® release`.
Nothing else is an `#` heading. A `##`/`###` inside a release would break the
@@ -605,10 +629,6 @@ directly after the merge.
A `<details>` whose body only
repeats its summary is noise; use one when there IS a longer story to reveal, which
is most fixes.
- **TODO Later's own blocks are the same shape with two differences:** the `<summary>` is
the short category text (no `<a>`, because nothing was committed), and there is **no
`Thanks to`** — nothing is done yet, so there is nobody to thank. The body lists the
issues as `[#NNNN](https://github.com/wekan/wekan/issues/NNNN) (one-line reason)`.
- **The hash is never the link text.** `[f1c89548e](…)` shows a hash to a reader who
cannot do anything with it; the link text says what changed. Same for `[merge
commit](…)` and for a bare URL — see the next rule.
@@ -707,27 +727,27 @@ directly after the merge.
`This release fixes the following SECURITY ISSUES found by GitHub CodeQL code scanning:`.
Because CRITICAL comes first, it keeps the `This release ` prefix; a following non-security
subsection becomes `and …` per the rule above.
- **TODO Later** — a `<details>` nested inside `# Status` near the TOP of
`CHANGELOG-big.md` (above the version sections), a triage backlog for open
issues that were **investigated but not fixed here**, each
recorded with a concrete REASON so whoever picks it up next knows why. Use it when working
through open issues (the "Fix open issues" process): for each issue, either **fix it** (commit
ending `Fixes #NNNN,`), **close it** if already fixed in current code (commit `Close #NNNN` /
`Fixes #NNNN,`), or — when it can't be fixed/verified in this environment — **add it to `TODO
Later` under the matching category with the reason**. Group issues by category bullet, e.g.:
*Need specific infrastructure / a running server stack* (LDAP/WebHooks/Sandstorm/proxy —
environment owners), *Need the running app to reproduce/verify* (runtime UI / publication /
mergebox / router state, not unit-testable), *Already correct in the current code* (verified by
reading; could not reproduce), *Feature requests / behaviour-by-design rather than bugs*, and
*Needs a maintainer decision on the intended contract*. Each category is a `<details>`
whose `<summary>` is the SHORT category text and whose body lists the issues with their
reasons — and with **no `Thanks to` line**, because nothing is done yet, so there is
nobody to thank. Each entry is a normal issue link
`[#NNNN](https://github.com/wekan/wekan/issues/NNNN) (one-line reason)` — issue links here, NOT
commit links (nothing was committed). **Keep it current:** when an issue in `TODO Later` gets
fixed, REMOVE it from the list (its fix commit's `Fixes #NNNN` closes it); do not leave fixed
issues in the backlog. This is the only CHANGELOG place that uses issue links and lives above
the releases; everything else uses the per-release commit-link bullets above.
- **`TODO.md`** — at the repository root, NOT in the changelog (it was the TODO
Later block inside `# Status` until 2026-11-18, when it moved out so the
changelog says only what changed). A triage backlog of work and open issues
that were **investigated but not done here**, each recorded with a concrete
REASON so whoever picks it up next knows why. Use it when working through open
issues (the "Fix open issues" process): for each issue, either **fix it**
(commit ending `Fixes #NNNN,`), **close it** if already fixed in current code
(commit `Close #NNNN` / `Fixes #NNNN,`), or — when it can't be fixed/verified
in this environment — **add it to `TODO.md` under the matching category with
the reason**. Categories are `##` headings there, e.g. *Need specific
infrastructure / a running server stack*, *Need the running app to
reproduce/verify*, *Already correct in the current code*, *Feature requests /
behaviour-by-design rather than bugs* and *Needs a maintainer decision on the
intended contract*; an emptied category is removed. Each entry is a bullet with
a normal issue link `[#NNNN](https://github.com/wekan/wekan/issues/NNNN) (one-line
reason)` when there is an issue — never a commit link, and **no `Thanks to`**,
because nothing is done yet, so there is nobody to thank. **When an item is
done, MOVE it:** remove it from `TODO.md` and write its entry in `# Upcoming
WeKan ® release` of `CHANGELOG-big.md`, linking the commit (its `Fixes #NNNN`
closes the issue). A done item never stays in `TODO.md`.
`tests/todoFile.test.cjs` checks the file.
- FerretDB Upcoming structure — `### New Features 🎉`, `### Fixed 🐛`, `### Other Changes
🤖`; entries end `... by @xet7. Thanks to xet7.`
- Word-wrap both CHANGELOGs at 80 chars, but never break a long link across lines (a
+1377 -1406
View File
File diff suppressed because it is too large. Load diff
+36 -33
View File
@@ -5,50 +5,53 @@ each one changed and the project status are in
Written by `node releases/changelog-short.mjs` from CHANGELOG-big.md:
make changes there.
# v13.12 2026-11-14 WeKan ® release
# v13.21 2026-11-20 WeKan ® release
WeKan is updated to **Meteor 3.6.1**, whose DDP server refuses
malformed messages without stalling the connection. **One shared list header
row** now shows the same lists in every swimlane, scrolling together, and
**Shift+M** and **Shift+C** open Move Card and Copy Card. Those popups
remember the swimlane and list, not only the board. The embedded-engine
benchmark takes **OpenTelemetry 1.47.0** for a Dependabot alert. A **REST
API** write that changes nothing answers 404, and a card deletion naming the
wrong list no longer strips the card's checklists (**ListLockBleed**).
Twelve new **Board View reports** - Created vs. Resolved, Net
Flow, Time in List and more - and **grouped menus**: the Board View menu, the
Import and Export lists and the list, card and swimlane menus have headings.
WeKan imports **mail**, **calendars**, **chats** and **notes**, and large files
are **streamed to disk** within the free space or an Admin Panel limit. Menu
entries that did nothing now work. Cards get the **Kanban and Scrum flow
fields** Blocked, Class of service, MoSCoW and WSJF, lists their **policies**,
the board menu a **standup timer** and a **retrospective board**, every export
is **written a page at a time**, and **InviteBleed** is closed for the old
invitation codes too.
[All changes in v13.12](CHANGELOG-big.md#v1312-2026-11-14-wekan--release)
[All changes in v13.21](CHANGELOG-big.md#v1321-2026-11-20-wekan--release)
# v13.11 2026-11-13 WeKan ® release
# v13.20 2026-11-19 WeKan ® release
The **file-integrity scan** stops reporting attachments and
avatars that WeKan deleted itself as missing, which had buried real
**StorageBleed** findings under thousands of false ones. The recurring-checklist
reset no longer scans every **checklist** on each tick. In the **REST API**, a
refused custom-field update changes nothing, ownership transfer takes only the
boards the user administers, and deleting a missing integration answers 404.
The **REST API** card lists of a list and of a swimlane now carry
what a syncing client needs - when a card changed, its labels, members and
custom field values - so syncing a board needs no request per card. **build.sh**
and **build.bat** can run a single **Playwright** spec.
[All changes in v13.11](CHANGELOG-big.md#v1311-2026-11-13-wekan--release)
[All changes in v13.20](CHANGELOG-big.md#v1320-2026-11-19-wekan--release)
# v13.10 2026-11-13 WeKan ® release
# v13.19 2026-11-19 WeKan ® release
The release's **Snap Store** credential check bounds each
snapcraft install attempt, so a Snap Store that hangs no longer stops a release.
**Release builds** no longer fail when the **Snap Store** is slow
to process an upload, or when a **Termux** or **BSD** package mirror has a bad
minute.
[All changes in v13.10](CHANGELOG-big.md#v1310-2026-11-13-wekan--release)
[All changes in v13.19](CHANGELOG-big.md#v1319-2026-11-19-wekan--release)
# v13.09 2026-11-12 WeKan ® release
# v13.18 2026-11-19 WeKan ® release
The release's **Snap Store** credential check retries installing
snapcraft, so one Snap Store timeout no longer stops a release.
**Admin Panel / Problems** says what its numbers count - "New
problems: 1" and "Checks with findings: 8 / 31", in every language - and a
report row's address, location and user always belong to the same occurrence.
[All changes in v13.09](CHANGELOG-big.md#v1309-2026-11-12-wekan--release)
[All changes in v13.18](CHANGELOG-big.md#v1318-2026-11-19-wekan--release)
# v13.08 2026-11-12 WeKan ® release
# v13.17 2026-11-19 WeKan ® release
The **REST API** creates a card under the **parent** it is given,
and a refused **integration URL** no longer leaves the other fields of the same
update written. The **single-file** WeKan for **32-bit ARM** builds again, with
an i386 Node.js of the exact version its bundle embeds. A **GitHub CodeQL**
alert in the security alert download script is fixed.
The **Admin Panel** answers one question per tab: Settings gains
**Appearance**, **Features**, **Feature profiles**, Security, Activities and
notifications, and Delete, Problems keeps only what is going wrong, and every
old
address redirects. The docs now have a page for every menu entry, and cards of
an archived swimlane no longer appear in the first swimlane.
[All changes in v13.08](CHANGELOG-big.md#v1308-2026-11-12-wekan--release)
[All changes in v13.17](CHANGELOG-big.md#v1317-2026-11-19-wekan--release)
+60 -40
View File
@@ -166,7 +166,7 @@ git config user.name && git config user.email
declined without holding up the others.
- **No changelog changes.** Do not edit `CHANGELOG-big.md`, `CHANGELOG.md`, or the
`CHANGELOG.md` or `CHANGELOG` of a repository under `.tools/` — not an Upcoming
entry, not TODO Later. Describe the change in the pull request instead. The
entry, and not `TODO.md` either. Describe the change in the pull request instead. The
maintainer writes the entry after merging, when there is a commit for it to link.
Who that pull request credits follows the attribution rule above, and the two
@@ -267,6 +267,32 @@ replaced with the language named by that tag.**
misrepresent machine/LLM translations as human. Push only separately reviewed,
provenance-known human translations with an explicit push command.
### Shared translation source for WeKan prototypes under `.tools/`
The WeKan catalogs in `imports/i18n/data/` are the source of truth for
translations in every WeKan prototype under `.tools/`, including WeLite,
Weddy, Wami, and any future WeKan prototype with its own catalog.
1. Before adding a translation key in a prototype, search WeKan's English
catalog for a key with the same meaning and usage. Reuse that key and its
existing translations. A different key name or catalog format does not
require a new translation.
2. If no suitable key exists, add it to WeKan's English catalog first, even if
the string is currently used only by a prototype. Fill the key for every
supported language in the WeKan repository using the translation rules
below. Preserve existing human translations and verify the placeholders
against the English source.
3. Once the key is complete in WeKan, copy the canonical translations into
the applicable WeKan prototype repositories under `.tools/`. Use each
prototype's catalog format, filename and locale mapping as needed, while
preserving the translated text and placeholders. Verify that the prototype
loads the synced catalogs and renders the intended strings.
Apply the same workflow to existing prototype-only keys and translation
corrections. Resolve equivalent keys and bring genuinely new strings into
WeKan before syncing them back out. Maintain translation text in WeKan so the
prototypes share the same translations and receive subsequent updates.
### Filling the remaining untranslated strings — directly, no translation service
The strings still equal to the English source after the merge are the ones untranslated
@@ -440,7 +466,7 @@ directly after the merge.
| Repository | File | Format |
| --- | --- | --- |
| `wekan/wekan` | `CHANGELOG-big.md` (and the generated `CHANGELOG.md`, below) | the WeKan format this section describes: `# Status` (Platforms/Version/TODO Later nested as `<details>`), then `# v<MAJOR>.<MINOR> YYYY-MM-DD WeKan ® release` sections of `<details>` entries whose `<summary>` links the commit |
| `wekan/wekan` | `CHANGELOG-big.md` (and the generated `CHANGELOG.md`, below) | the WeKan format this section describes: `# Status` (Platforms/Version nested as `<details>`), then `# v<MAJOR>.<MINOR> YYYY-MM-DD WeKan ® release` sections of `<details>` entries whose `<summary>` links the commit |
| `wekan/node-patches` | `CHANGELOG.md` | the same WeKan format, with `# Upcoming node-patches release` |
| `wekan/mongo-tools-patches` | `CHANGELOG.md` | the same WeKan format, with `# Upcoming mongo-tools-patches release` |
| `wekan/FerretDB` | `CHANGELOG.md` | **upstream FerretDB's** format, not WeKan's: `## [v1.48.0](tag URL) (YYYY-MM-DD)` and `### New Features 🎉` / `### Fixed 🐛` / `### Other Changes 🤖` bullets ending `by @xet7. Thanks to xet7.` |
@@ -461,7 +487,7 @@ directly after the merge.
| | `CHANGELOG.md` |
| --- | --- |
| Status, TODO Later | none |
| Status | none |
| First | the unreleased `# Upcoming WeKan ® release`, when there is one: its **In short** paragraph only, then `[All changes so far](CHANGELOG-big.md#upcoming-wekan--release)` |
| Below it | the five newest `# v<MAJOR>.<MINOR> YYYY-MM-DD WeKan ® release` |
| Per release | its **In short** paragraph only, then `[All changes in v…](CHANGELOG-big.md#anchor)` |
@@ -521,7 +547,7 @@ directly after the merge.
| | |
| --- | --- |
| `CHANGELOG-big.md` | `# Status` (Platforms/TODO Later inside it), `# Upcoming`, and the newest releases that fit the budget |
| `CHANGELOG-big.md` | `# Status` (Platforms/Version inside it), `# Upcoming`, and the newest releases that fit the budget |
| `old-CHANGELOG/<year>/<MM>.md` | a month's releases, newest first; a month over the budget continues in `<MM>-part2.md`, `<MM>-part3.md`, ... |
| `old-CHANGELOG/<year>.md` | 2015–2025, whole |
@@ -544,24 +570,22 @@ directly after the merge.
An archived section is never edited, for the same reason a released one is
not.
- **The file's shape, top to bottom** — keep it exactly as it is now. There is
exactly ONE `#` heading before the releases: `# Status`. Platforms, Version
and TODO Later are `<details>` blocks nested inside it, not headings of
their own (they used to be `# Platforms` and `# TODO Later`; both were
folded under `# Status` so the file opens with a single top-level section
rather than three):
exactly ONE `#` heading before the releases: `# Status`. Platforms and Version
are `<details>` blocks nested inside it, not headings of their own (they used
to be `# Platforms` and `# TODO Later`; Platforms was folded under `# Status`
so the file opens with a single top-level section, and TODO Later moved out
to `TODO.md`, below):
1. `# Status` — opens with a `<details>` whose `<summary>` is `More status
info`, holding a link to <https://wekan.fi/status/>. Then a `<details>`
info`, holding a link to <https://wekan.fi/status/> and the line pointing
to [TODO.md](TODO.md). Then a `<details>`
whose `<summary>` is `Newest WeKan at these platforms`, holding the line
`Newest WeKan at these platforms:` and the Install / Upgrade / Docs / Mac
ChangeLog bullets, plus the `Older releases:` bullet linking the per-year
archives. Then a `<details>` whose `<summary>` is `Databases` listing
which databases WeKan supports and how each is tested, kept in step with
`docs/Databases/Supported.md`. Then a `<details>` whose `<summary>` is `Version` holding
"which WeKan version uses what". Then a `<details>` whose `<summary>` is
`TODO Later`, itself holding a `<details>` whose `<summary>` is `Carried
to a future release.` explaining the list, then one `<details>` per
category (below). There is no `# Version` or `# TODO Later` heading of
its own.
"which WeKan version uses what". There is no `# Version` heading of its
own, and no TODO Later block: what is not done is in `TODO.md`.
2. The releases, newest first, each `# v<MAJOR>.<MINOR> YYYY-MM-DD WeKan ® release`.
Nothing else is an `#` heading. A `##`/`###` inside a release would break the
@@ -605,10 +629,6 @@ directly after the merge.
A `<details>` whose body only
repeats its summary is noise; use one when there IS a longer story to reveal, which
is most fixes.
- **TODO Later's own blocks are the same shape with two differences:** the `<summary>` is
the short category text (no `<a>`, because nothing was committed), and there is **no
`Thanks to`** — nothing is done yet, so there is nobody to thank. The body lists the
issues as `[#NNNN](https://github.com/wekan/wekan/issues/NNNN) (one-line reason)`.
- **The hash is never the link text.** `[f1c89548e](…)` shows a hash to a reader who
cannot do anything with it; the link text says what changed. Same for `[merge
commit](…)` and for a bare URL — see the next rule.
@@ -707,27 +727,27 @@ directly after the merge.
`This release fixes the following SECURITY ISSUES found by GitHub CodeQL code scanning:`.
Because CRITICAL comes first, it keeps the `This release ` prefix; a following non-security
subsection becomes `and …` per the rule above.
- **TODO Later** — a `<details>` nested inside `# Status` near the TOP of
`CHANGELOG-big.md` (above the version sections), a triage backlog for open
issues that were **investigated but not fixed here**, each
recorded with a concrete REASON so whoever picks it up next knows why. Use it when working
through open issues (the "Fix open issues" process): for each issue, either **fix it** (commit
ending `Fixes #NNNN,`), **close it** if already fixed in current code (commit `Close #NNNN` /
`Fixes #NNNN,`), or — when it can't be fixed/verified in this environment — **add it to `TODO
Later` under the matching category with the reason**. Group issues by category bullet, e.g.:
*Need specific infrastructure / a running server stack* (LDAP/WebHooks/Sandstorm/proxy —
environment owners), *Need the running app to reproduce/verify* (runtime UI / publication /
mergebox / router state, not unit-testable), *Already correct in the current code* (verified by
reading; could not reproduce), *Feature requests / behaviour-by-design rather than bugs*, and
*Needs a maintainer decision on the intended contract*. Each category is a `<details>`
whose `<summary>` is the SHORT category text and whose body lists the issues with their
reasons — and with **no `Thanks to` line**, because nothing is done yet, so there is
nobody to thank. Each entry is a normal issue link
`[#NNNN](https://github.com/wekan/wekan/issues/NNNN) (one-line reason)` — issue links here, NOT
commit links (nothing was committed). **Keep it current:** when an issue in `TODO Later` gets
fixed, REMOVE it from the list (its fix commit's `Fixes #NNNN` closes it); do not leave fixed
issues in the backlog. This is the only CHANGELOG place that uses issue links and lives above
the releases; everything else uses the per-release commit-link bullets above.
- **`TODO.md`** — at the repository root, NOT in the changelog (it was the TODO
Later block inside `# Status` until 2026-11-18, when it moved out so the
changelog says only what changed). A triage backlog of work and open issues
that were **investigated but not done here**, each recorded with a concrete
REASON so whoever picks it up next knows why. Use it when working through open
issues (the "Fix open issues" process): for each issue, either **fix it**
(commit ending `Fixes #NNNN,`), **close it** if already fixed in current code
(commit `Close #NNNN` / `Fixes #NNNN,`), or — when it can't be fixed/verified
in this environment — **add it to `TODO.md` under the matching category with
the reason**. Categories are `##` headings there, e.g. *Need specific
infrastructure / a running server stack*, *Need the running app to
reproduce/verify*, *Already correct in the current code*, *Feature requests /
behaviour-by-design rather than bugs* and *Needs a maintainer decision on the
intended contract*; an emptied category is removed. Each entry is a bullet with
a normal issue link `[#NNNN](https://github.com/wekan/wekan/issues/NNNN) (one-line
reason)` when there is an issue — never a commit link, and **no `Thanks to`**,
because nothing is done yet, so there is nobody to thank. **When an item is
done, MOVE it:** remove it from `TODO.md` and write its entry in `# Upcoming
WeKan ® release` of `CHANGELOG-big.md`, linking the commit (its `Fixes #NNNN`
closes the issue). A done item never stays in `TODO.md`.
`tests/todoFile.test.cjs` checks the file.
- FerretDB Upcoming structure — `### New Features 🎉`, `### Fixed 🐛`, `### Other Changes
🤖`; entries end `... by @xet7. Thanks to xet7.`
- Word-wrap both CHANGELOGs at 80 chars, but never break a long link across lines (a
+2 -2
View File
@@ -38,7 +38,7 @@ FROM --platform=$BUILDPLATFORM debian:trixie AS bundle
ARG TARGETARCH
ARG TARGETVARIANT
ARG VERSION=13.12
ARG VERSION=13.21
ARG DEBIAN_FRONTEND=noninteractive
COPY --chmod=755 releases/check-telemetry.py /tmp/check-telemetry.py
@@ -151,7 +151,7 @@ ENV \
NODE_VERSION=v26.13.1 \
METEOR_RELEASE=METEOR@3.6.1 \
USE_EDGE=false \
NPM_VERSION=12.2.2 \
NPM_VERSION=12.2.3 \
SRC_PATH=./ \
WITH_API=true \
MONGO_OPLOG_URL="" \
+15 -4
View File
@@ -45,7 +45,10 @@ that by providing one-click installation on various platforms.
- WeKan JSON/.zip, CSV/TSV, Excel, Markdown, Obsidian Kanban, Leo, OPML, Org mode, todo.txt
- Trello, Jira, Asana, Zenkit, Focalboard, Todoist, Microsoft Planner, MeisterTask, Linear, TickTick, ClickUp, Nullboard, Kanri, Pivotal Tracker, Redmine, Tasks.org, monday.com,
Super Productivity, Taiga, Vikunja, Wrike (Excel and workflow), Quire, Teamwork.com, Businessmap, Notion, Plane
- Kanboard, Nextcloud Deck, OpenProject, Taskwarrior
- Kanboard, Nextcloud Deck, OpenProject, Taskwarrior, Planka, KanbanFlow, Basecamp, Microsoft To Do, Google Tasks
- Mail (.eml/mbox), Calendars (iCalendar), Google Takeout, Google Keep, Evernote,
Chats: Slack, Mattermost, Telegram, WhatsApp, Discord - each into the view it fits
- Large files are streamed to disk, within its free space or the Admin Panel limit
- GitHub, GitLab, Gitea, Forgejo
- Import many boards at once: several export files, or a .zip of them, each its own board;
One board per project splits an export of a whole app into a board per project
@@ -72,6 +75,9 @@ that by providing one-click installation on various platforms.
- Minicard: At list there is card, that has not been not opened yet
- Card: Opened card popup of minicard
- Attachments viewer for PDF and Office documents
- Kanban and Scrum flow fields: Blocked, Class of service, MoSCoW priority, WSJF score
- List policies, Definition of Ready, commitment point, WIP limit per person,
lists split into Doing and Done
- Drag drop reorder one or Multi-Selection: Swimlanes, Lists, Minicards, Checklists, Checklist Items
- Collapse/Uncollapse: Menus, Swimlanes, Lists, Cards
- Table, Calendar, Multi Board Calendar, Time, Timeline
@@ -82,6 +88,9 @@ that by providing one-click installation on various platforms.
Lead Time, Throughtput Histogram, WIP Run, Pulse, Aging WIP,
Blocker Analysis, Monte Carlo Forecasts, Process Behavior (XmR),
Work Item Size vs Cycle Time, Map
- Reports: Created vs. Resolved, Net Flow, Time in List, Average Age,
Throughput Run Chart, Due Date Performance, Release Burndown, Epic Progress,
Workload, Distribution, Dependency Map, Activity Heatmap - each with PDF and Excel export
- Right Sidebar / Board Settings:
- Rules: like IFTTT like Trello Butler
- Lists view for Rules
@@ -96,10 +105,11 @@ that by providing one-click installation on various platforms.
Microsoft Planner, MeisterTask, Obsidian Kanban, Linear, TickTick, ClickUp, Nullboard, Kanri, Pivotal Tracker, Redmine, Tasks.org, monday.com,
Super Productivity, Taiga, Vikunja, Wrike (Excel and workflow), Quire, Teamwork.com, Businessmap, Notion,
Trello, Jira, NextCloud Deck, OpenProject, GitHub, GitLab,
Gitea, Forgejo, Asana, Zenkit
Gitea, Forgejo, Asana, Zenkit, Trello .zip with attachments, mbox, Evernote, Mattermost
- Every export is written a page of cards at a time, so a large board exports without running out of memory
- Export all boards at once (All Boards sidebar, or Multi-Selection): Excel as one workbook
with a sheet per board, every other format as a .zip with a file per board
- Scrum Settings
- Scrum Settings: Definition of Ready and Done, Daily standup timer, Retrospective board
- Change color theme, Change Background Image, Date settings
- Settings:
- Board View: Show/Hide and drag drop reorder what is shown atat Public Board and Private Board
@@ -108,7 +118,8 @@ that by providing one-click installation on various platforms.
- Admin Panel
- Settings
- Version
- Visibility: What is shown/hidden, Whitelabeling
- Features: which features this WeKan offers, Card fields, Feature profiles
- Appearance: What is shown/hidden, Whitelabeling
- Announcement
- Accessibility
- Translation: Add custom translation strings
+1 -1
View File
@@ -1,5 +1,5 @@
appId: wekan-public/apps/77b94f60-dec9-0136-304e-16ff53095928
appVersion: "v13.12.0"
appVersion: "v13.21.0"
files:
userUploads:
- README.md
+63
View File
@@ -0,0 +1,63 @@
# TODO
What is not done yet in WeKan, with the reason it is not done. This used to be
the TODO Later block inside `# Status` of `CHANGELOG-big.md`; it lives here so
the changelog only says what changed.
- An item here is NOT done, so it thanks nobody and links no commit. Link the
issue when there is one: `[#NNNN](https://github.com/wekan/wekan/issues/NNNN)`
and a one-line reason.
- When an item is done, REMOVE it from this file and write its entry in the
`# Upcoming WeKan ® release` section of `CHANGELOG-big.md`, linking the commit.
A fixed item never stays here.
- An investigated issue that cannot be fixed or verified here is added under
the category that says why. An emptied category is removed.
`tests/todoFile.test.cjs` checks this shape.
## Need the running app to reproduce/verify
- The WebKit stage cannot run in the Flatpak sandbox: MiniBrowser needs its own
sandbox, and turning that off is not allowed there. Run it on a host.
## Import and Export of everything each tool has
Asked on 2026-11-20: check and fix that everything each tool with a WeKan
import or export can hold comes across, whether a whole export is read or
written at once or only a part of it (a board, a project, some lists, a date
range), and check each tool's newest features - what its current version
exports and imports - so their data has a place in WeKan too. For every tool,
compare its newest export file, documentation and changelog with the parser
and the formatter here, record what is lost in the import loss report
(`unsupported`), and add what has a place in WeKan.
Done so far: `tests/playwright/specs/export-import-round-trip.e2e.js` exports
a board in each of the 41 formats WeKan both writes and reads and imports the
file back; every one brings the card back, and its KEEPS table holds each
format to what its file keeps of the description, the checklist and the
comment, so a format that loses more fails. The Trello export imports back
with checklists, comments, members, custom fields and archived cards and
lists, and a Trello .zip export carries the attachment files; the GitHub,
Gitea and Forgejo exports carry the comments. What is left below is per tool: the
tool's newest features against its parser and formatter.
- WeKan's own JSON and .zip: every field of the current schema, attachments
and their versions, custom fields, rules, templates, Scrum data, and a part
of a board as well as all of it.
- Kanban and project tools: Kanboard, Nextcloud Deck, OpenProject, Asana,
Zenkit, Planner, monday.com, Wrike, Teamwork, Businessmap, ClickUp, Notion,
Plane, Taiga, Focalboard, Nullboard, Kanri, Obsidian Kanban, MeisterTask,
Quire, Planka, KanbanFlow, Basecamp - sub-items, dependencies, time
tracking, custom fields, comments, attachments and their newer views.
- Issue trackers: Jira, GitHub, GitLab, Gitea, Forgejo, Redmine, Linear,
Pivotal - epics, sprints, versions and milestones, links between issues,
work logs, reactions, and fields added in their newest releases.
- Task tools: Todoist, TickTick, Tasks.org, Super Productivity, todo.txt,
Taskwarrior, Vikunja, Microsoft To Do, Google Tasks, Google Keep -
recurrence, reminders, priorities, sub-tasks and sections.
- Spreadsheets, text and outlines: CSV / TSV, Excel, Markdown, Leo, OPML,
Org mode - every column, and every Org property and timestamp.
- Mail, calendars and chats: mail, mbox, iCalendar, Google Takeout, Slack,
Mattermost, Telegram, WhatsApp, Discord, Evernote .enex - threads, replies,
reactions, recurring events and the attached files that are now only
counted.
+3 -2
View File
@@ -2029,10 +2029,11 @@ if arguments >= 3 and sys.argv[1] == 'exportboardpdf':
# { excelBase64 } (Plane's as { xlsxBase64 }), an export .zip as { zipBase64 },
# a CSV/TSV file as rows, a text format as its text, and the rest as JSON.
EXCEL_IMPORT_SOURCES = {'excel', 'planner', 'monday', 'wrike', 'teamwork', 'businessmap'}
ZIP_IMPORT_SOURCES = {'vikunja', 'notion', 'plane'}
ZIP_IMPORT_SOURCES = {'vikunja', 'notion', 'plane', 'slack', 'googletakeout'}
TEXT_IMPORT_SOURCES = {'markdown', 'todotxt', 'taskwarrior', 'focalboard', 'todoist', 'meistertask', 'obsidian',
'linear', 'ticktick', 'clickup', 'nullboard', 'pivotal', 'redmine', 'superproductivity',
'quire', 'orgmode', 'leo', 'opml', 'vikunja', 'notion', 'plane'}
'quire', 'orgmode', 'leo', 'opml', 'vikunja', 'notion', 'plane',
'mail', 'ical', 'mattermost', 'whatsapp', 'evernote', 'slack', 'googletakeout'}
def import_document(source, filepath):
import base64, csv, io, os
+84
View File
@@ -203,6 +203,8 @@ echo glab login ^(only scratch items it creates and removes^) and the API
echo imports, read only ^(releases\live-tests\README.md^)
echo 18^) Database speed test: the common WeKan queries on every database with an
echo image for this CPU, compared, written to SpeedTest\Results.md
echo 19^) Playwright single spec: one spec on the browsers you choose; builds and
echo starts the test server when none is running on :3000
set "choice="
set /p "choice=Choose: "
if "%choice%"=="1" goto test_everything_two
@@ -223,6 +225,7 @@ if "%choice%"=="15" goto test_ferretdb
if "%choice%"=="16" goto test_everything_source
if "%choice%"=="17" goto test_live
if "%choice%"=="18" goto test_db_speed
if "%choice%"=="19" goto test_pw_spec
if "%choice%"=="0" goto menu
goto menu_tests
@@ -1532,6 +1535,87 @@ set "WEKAN_PLAYWRIGHT_PROJECT=%PW_PROJECT%"
call meteor npm exec playwright test -- --project=%PW_PROJECT% 2>&1 | powershell -NoProfile -Command "$input | Tee-Object -FilePath '%ONELOG%'; exit $LASTEXITCODE"
goto end
REM ===========================================================================
:test_pw_spec
REM Parity with build.sh's "Playwright single spec" (run_playwright_spec): one
REM spec, chosen by file name or a part of it, on the browsers you choose. A
REM WeKan already answering on :3000 is used as it is; otherwise a fresh bundle
REM is built and the test server started as the whole-suite runs do, and
REM stopped again afterwards. Logs in .tools\log\test-playwright-spec\.
set "PW_SPEC="
set /p "PW_SPEC=Spec file or part of its name (e.g. feature-profiles): "
if not defined PW_SPEC goto menu_tests
set "PW_MATCH=" & set "PW_COUNT=0"
for /f "delims=" %%f in ('dir /b "%REPO%\tests\playwright\specs\*.js" ^| findstr /i /l /c:"%PW_SPEC%"') do (
set /a PW_COUNT+=1
set "PW_MATCH=%%f"
echo %%f
)
if "%PW_COUNT%"=="0" (
echo No spec under tests\playwright\specs matches "%PW_SPEC%".
goto test_pw_spec
)
if not "%PW_COUNT%"=="1" (
echo Several specs match - type more of the name.
goto test_pw_spec
)
echo Spec: specs/%PW_MATCH%
echo Browser: 1^) chromium 2^) firefox 3^) webkit 4^) all
set "PW_B="
set /p "PW_B=Choose [1]: "
set "PW_BROWSERS=chromium"
if "%PW_B%"=="2" set "PW_BROWSERS=firefox"
if "%PW_B%"=="3" set "PW_BROWSERS=webkit"
if "%PW_B%"=="4" set "PW_BROWSERS=chromium firefox webkit"
set "PW_GREP="
set /p "PW_GREP=Only the tests whose title contains (empty = the whole spec): "
call :logdir test-playwright-spec
if errorlevel 1 goto end
set "RUN_LOGDIR=%LOG_DIRECTORY%"
if not exist "%RUN_LOGDIR%" md "%RUN_LOGDIR%"
echo Logs: %RUN_LOGDIR%\
set "PW_STARTED=0"
curl -fsS http://127.0.0.1:3000/sign-in >nul 2>&1
if not errorlevel 1 (
echo ==^> Using the WeKan already running on http://localhost:3000 ^(not started or stopped here^).
echo It runs whatever code it was started with: after changing the source, stop it and run this again.
goto test_pw_spec_run
)
set "PW_BUILD="
set /p "PW_BUILD=Nothing answers on :3000. Build a fresh bundle and start the test server? [Y/n] "
if /i "%PW_BUILD%"=="n" goto end
call :rebuild_for_tests
if errorlevel 1 goto end
call :start_bundle_server
if errorlevel 1 goto end
set "PW_STARTED=1"
if not "!SERVER_READY!"=="1" (
echo ERROR: the test server did not answer on :3000 ^(see %RUN_LOGDIR%\wekan-test-server.log^).
call :stop_test_databases
goto end
)
:test_pw_spec_run
set "PW_RESULT="
for %%b in (%PW_BROWSERS%) do (
echo ==^> Playwright %%b: specs/%PW_MATCH%
pushd "%REPO%\tests\playwright"
set "WEKAN_PLAYWRIGHT_ALL=1"
set "WEKAN_PLAYWRIGHT_PROJECT=%%b"
if defined PW_GREP (
call meteor npm exec playwright test -- --project=%%b --output=test-results\spec-%%b --reporter=list "specs/%PW_MATCH%" --grep "%PW_GREP%" > "%RUN_LOGDIR%\wekan-playwright-%%b.log" 2>&1
) else (
call meteor npm exec playwright test -- --project=%%b --output=test-results\spec-%%b --reporter=list "specs/%PW_MATCH%" > "%RUN_LOGDIR%\wekan-playwright-%%b.log" 2>&1
)
if errorlevel 1 (set "PW_RESULT=!PW_RESULT! FAIL:%%b") else (set "PW_RESULT=!PW_RESULT! PASS:%%b")
popd
type "%RUN_LOGDIR%\wekan-playwright-%%b.log"
)
if "%PW_STARTED%"=="1" call :stop_test_databases
echo.
echo ===== specs/%PW_MATCH% =====
for %%r in (!PW_RESULT!) do echo %%r
goto end
REM ===========================================================================
:test_pw_parallel
echo Running Chromium, Firefox and WebKit Playwright suites sequentially (one browser at a time).
+190
View File
@@ -1127,6 +1127,185 @@ function run_playwright_single(){
return "${PIPESTATUS[0]}"
}
# ---------------------------------------------------------------------------
# One Playwright spec, on the browsers you choose.
#
# ./build.sh --playwright-spec <spec> [chromium|firefox|webkit|all] [title filter]
# or Tests -> "Playwright single spec" (asks the same three things).
#
# <spec> is a file under tests/playwright/specs or a part of its name
# ("feature-profiles" finds specs/feature-profiles.e2e.js). The title filter is
# Playwright's --grep. When something already answers on :3000 it is used as it
# is; otherwise this builds a fresh bundle and starts the test server exactly
# like the whole-suite runs do (Meteor's mongod on :3001, the bundle on :3000),
# and stops both when the spec is done. Each browser runs natively when it can
# launch here and in the official Playwright container when it cannot (the
# same choice as run_pw_all_browser). Logs in .tools/log/test-playwright-spec/.
# ---------------------------------------------------------------------------
# The spec files matching $1, relative to tests/playwright, one per line.
function playwright_specs_matching(){
local want="${1#tests/playwright/}"
want="${want#specs/}"
local dir="$WEKAN_DIR/tests/playwright/specs"
if [ -n "$want" ] && [ -f "$dir/$want" ]; then
echo "specs/$want"; return 0
fi
( cd "$WEKAN_DIR/tests/playwright" && find specs -name '*.js' | sort | grep -F -- "$want" )
}
# Start the test server the way run_all_tests does, unless one answers already.
# Sets SPEC_SERVER_PID / SPEC_MONGOD_PID for the processes it started.
function start_spec_test_server(){
local logdir="$1" build="$2"
SPEC_SERVER_PID=""; SPEC_MONGOD_PID=""
if curl -fsS --max-time 3 -o /dev/null http://localhost:3000/sign-in 2>/dev/null; then
echo "==> Using the WeKan already running on http://localhost:3000 (not started or stopped here)."
echo " It runs whatever code it was started with: after changing the source, stop it"
echo " and run this again, so a fresh bundle is built."
return 0
fi
if [ "$build" = ask ]; then
local ans
read -r -p "Nothing answers on :3000. Build a fresh bundle and start the test server? [Y/n] " ans
case "$ans" in [Nn]*) echo "Nothing to test against."; return 1 ;; esac
fi
echo "==> Building WeKan, so the spec runs against the current source."
build_wekan || return 1
BUNDLE_DIR=".build/bundle"
NODE_BIN="$(meteor node -e 'process.stdout.write(process.execPath)' 2>/dev/null)"
local MONGOD_BIN=""
[ -n "$NODE_BIN" ] && MONGOD_BIN="$(dirname "$(dirname "$NODE_BIN")")/mongodb/bin/mongod"
[ -x "$MONGOD_BIN" ] || MONGOD_BIN="$(command -v mongod)"
[ -x "$NODE_BIN" ] || NODE_BIN="$(command -v node)"
if [ ! -d "$BUNDLE_DIR/programs/server/node_modules" ]; then
( cd "$BUNDLE_DIR/programs/server" && meteor npm install ) >> "$logdir/wekan-test-server.log" 2>&1 || {
echo "ERROR: npm install in $BUNDLE_DIR/programs/server failed (see $logdir/wekan-test-server.log)."; return 1; }
fi
local port="${WEKAN_TEST_DB_PORT:-3001}"
export WEKAN_MONGO_URL="mongodb://127.0.0.1:$port/meteor"
if mongo_answers "$port"; then
echo "==> Reusing the MongoDB already answering on :$port."
elif (exec 3<>/dev/tcp/127.0.0.1/"$port") 2>/dev/null; then
echo "ERROR: :$port is taken by something that does not answer as MongoDB. Set WEKAN_TEST_DB_PORT."; return 1
else
[ -x "$MONGOD_BIN" ] || { echo "ERROR: no mongod found (Meteor's dev_bundle or PATH)."; return 1; }
local dbpath="$WEKAN_DIR/.tools/mongodb-test-$port" i
mkdir -p "$dbpath"
"$MONGOD_BIN" --port "$port" --dbpath "$dbpath" --bind_ip 127.0.0.1 --nounixsocket > "$logdir/wekan-test-mongod.log" 2>&1 &
SPEC_MONGOD_PID=$!
for i in $(seq 1 60); do mongo_answers "$port" && break; sleep 1; done
mongo_answers "$port" || { echo "ERROR: MongoDB did not start on :$port (see $logdir/wekan-test-mongod.log)."; return 1; }
fi
local writable="$WEKAN_DIR/.tools/test-writable"
mkdir -p "$writable/files"
export WEKAN_FILES_PATH="$writable/files" WEKAN_FILES_PATH_HOST="$writable/files"
echo "==> Starting the WeKan test server on http://localhost:3000 (log: $logdir/wekan-test-server.log)."
MONGO_URL="$WEKAN_MONGO_URL" ROOT_URL="http://localhost:3000" PORT=3000 \
WRITABLE_PATH="$writable" WITH_API=true \
DEFAULT_METEOR_REACTIVITY_ORDER="changeStreams,oplog,polling" \
NODE_OPTIONS="${WEKAN_TEST_NODE_OPTIONS:---max-old-space-size=4096}" \
"$NODE_BIN" "$BUNDLE_DIR/main.js" >> "$logdir/wekan-test-server.log" 2>&1 &
SPEC_SERVER_PID=$!
local i
for i in $(seq 1 300); do
curl -fsS --max-time 2 -o /dev/null http://localhost:3000/sign-in 2>/dev/null && { echo "==> Server is up."; return 0; }
kill -0 "$SPEC_SERVER_PID" 2>/dev/null || break
sleep 1
done
echo "ERROR: the test server did not answer on :3000. Last lines of its log:"
tail -n 30 "$logdir/wekan-test-server.log"
return 1
}
function stop_spec_test_server(){
[ -n "${SPEC_SERVER_PID:-}" ] && kill "$SPEC_SERVER_PID" 2>/dev/null && wait "$SPEC_SERVER_PID" 2>/dev/null
[ -n "${SPEC_MONGOD_PID:-}" ] && kill "$SPEC_MONGOD_PID" 2>/dev/null && wait "$SPEC_MONGOD_PID" 2>/dev/null
SPEC_SERVER_PID=""; SPEC_MONGOD_PID=""
}
# run_playwright_spec [spec] [browser] [title filter] - asks for what is missing
# when run from the menu (interactive), and builds without asking from --playwright-spec.
function run_playwright_spec(){
local spec="${1:-}" browser="${2:-}" grep="${3:-}" mode="${4:-ask}"
if [ -z "$spec" ]; then
read -r -p "Spec file or part of its name (e.g. feature-profiles): " spec
fi
local matches
matches="$(playwright_specs_matching "$spec")"
if [ -z "$matches" ]; then
echo "ERROR: no spec under tests/playwright/specs matches '$spec'."; return 1
fi
if [ "$(printf '%s\n' "$matches" | wc -l)" -gt 1 ]; then
if [ "$mode" != ask ]; then
echo "ERROR: '$spec' matches several specs - name one:"; printf ' %s\n' $matches; return 1
fi
echo "Several specs match '$spec':"
local pick
select pick in $matches; do [ -n "$pick" ] && break; done
matches="$pick"
fi
spec="$matches"
if [ -z "$browser" ]; then
echo "Which browser?"
select browser in chromium firefox webkit all; do [ -n "$browser" ] && break; done
fi
case "$browser" in chromium|firefox|webkit) local browsers=("$browser") ;;
all) local browsers=(chromium firefox webkit) ;;
*) echo "ERROR: browser must be chromium, firefox, webkit or all (got '$browser')."; return 2 ;;
esac
if [ -z "$grep" ] && [ "$mode" = ask ]; then
read -r -p "Only the tests whose title contains (empty = the whole spec): " grep
fi
local args=("$spec")
[ -n "$grep" ] && args+=(--grep "$grep")
local logdir
logdir="$(log_directory test-playwright-spec)" || return $?
mkdir -p "$logdir"; logdir="$(cd "$logdir" && pwd)"
echo "Spec: $spec Browsers: ${browsers[*]}${grep:+ Title filter: $grep}"
echo "Logs: $logdir/"
ensure_playwright_test_dependencies || return 1
start_spec_test_server "$logdir" "$mode" || { stop_spec_test_server; return 1; }
local pwdir="$WEKAN_DIR/tests/playwright" b rc=0 one results=()
for b in "${browsers[@]}"; do
local log="$logdir/wekan-playwright-$b.log"
# Docker where this platform wants it or the native browser cannot start;
# native where Docker is missing but the browser starts (Chromium in the
# VSCodium Flatpak on arm64 does, although auto picks Docker there).
local use_docker=0
browser_needs_docker "$b" && use_docker=1
if [ "$use_docker" = 1 ] && ! docker_available; then
use_docker=0
elif [ "$use_docker" = 0 ]; then
ensure_native_playwright_browser "$b" >/dev/null 2>&1
native_browser_can_launch "$b" || { docker_available && use_docker=1; }
fi
if [ "$use_docker" = 0 ] && ! native_browser_can_launch "$b"; then
echo "SKIPPED $b: it cannot launch natively here and Docker is unavailable."
results+=("SKIPPED $b"); rc=1; continue
fi
if [ "$use_docker" = 1 ]; then
( cd "$pwdir" && run_playwright_docker "$b" --output="test-results/spec-$b" --reporter=list "${args[@]}" ) 2>&1 | tee "$log"
one=${PIPESTATUS[0]}
else
(
cd "$pwdir"
export HOME="$WEKAN_DIR/.tools"
set_playwright_browser_path
unset CHROME_DEVEL_SANDBOX
export WEKAN_PLAYWRIGHT_ALL=1 WEKAN_PLAYWRIGHT_PROJECT="$b"
PLAYWRIGHT_HTML_OPEN=never meteor npm exec playwright test -- --project="$b" \
--output="test-results/spec-$b" --reporter=list "${args[@]}"
) 2>&1 | tee "$log"
one=${PIPESTATUS[0]}
fi
[ "$one" -eq 0 ] && results+=("PASS $b") || { results+=("FAIL $b (exit $one, $log)"); rc=1; }
done
stop_spec_test_server
echo; echo "===== $spec ====="; printf ' %s\n' "${results[@]}"
return "$rc"
}
# Run the full test matrix (Mocha, import regression, Node E2E and the three
# Playwright browser suites) against ONE WeKan server on http://localhost:3000,
# then print a combined PASS/FAIL summary.
@@ -2909,6 +3088,8 @@ WeKan build.sh - menu, or a command line.
./build.sh --list every command name, with what it does
./build.sh <name> [arguments] run one, without the menu
./build.sh --run-everything every test WeKan and FerretDB have
./build.sh --playwright-spec <spec> [chromium|firefox|webkit|all] [title filter]
one Playwright spec; starts the test server if needed
Examples:
@@ -2952,6 +3133,9 @@ cli_run() {
# the menu.
case "${1:-}" in
--run-everything) run_everything "${2:-two-worker}"; exit $? ;;
--playwright-spec)
[ -n "${2:-}" ] || { echo "Usage: ./build.sh --playwright-spec <spec> [chromium|firefox|webkit|all] [title filter]" >&2; exit 2; }
run_playwright_spec "$2" "${3:-chromium}" "${4:-}" build; exit $? ;;
-h|--help|help) cli_help; exit 0 ;;
-l|--list|list) cli_help | head -8; echo; echo "Commands:"; cli_list; exit 0 ;;
"") ;; # no arguments: the menu below
@@ -2995,6 +3179,7 @@ while [ -z "$opt" ]; do
"Playwright Firefox|Test Playwright Firefox" \
"Playwright WebKit|Test Playwright Webkit" \
"Playwright ALL browsers|Test Playwright ALL browsers sequentially (Chromium + Firefox + WebKit, one at a time), server already running on :3000" \
"Playwright single spec|Test one Playwright spec on the browsers you choose; builds and starts the test server when none is running on :3000" \
"Floating-promises guard|Check floating promises guard (@typescript-eslint/no-floating-promises + auth await scan)" \
"Count tests by category|Count amount of tests by category" \
"Run all FerretDB tests - SEQUENTIAL|Run all FerretDB tests - SEQUENTIAL: unit, vet and the integration suite of the FerretDB subdirectory of this repo, one at a time, logs in log/<datetime>/" \
@@ -3383,6 +3568,11 @@ for _once in 1; do
break
;;
"Test one Playwright spec on the browsers you choose; builds and starts the test server when none is running on :3000")
run_playwright_spec
break
;;
"Check floating promises guard (@typescript-eslint/no-floating-promises + auth await scan)")
LOG="$(one_log floating-promises)"
echo "Log: $LOG"
+24
View File
@@ -110,6 +110,30 @@ template(name="boardBody")
+processBehaviorView
else if isViewSizeCycleTime
+sizeCycleTimeView
else if isViewCreatedResolved
+createdResolvedView
else if isViewNetFlow
+netFlowView
else if isViewTimeInList
+timeInListView
else if isViewAverageAge
+averageAgeView
else if isViewThroughputRun
+throughputRunView
else if isViewDueDatePerformance
+dueDatePerformanceView
else if isViewReleaseBurndown
+releaseBurndownView
else if isViewEpicProgress
+epicProgressView
else if isViewWorkload
+workloadView
else if isViewDistribution
+distributionView
else if isViewDependencyMap
+dependencyMapView
else if isViewActivityHeatmap
+activityHeatmapView
else if isViewPulse
+pulseView
else if isViewMap
+49
View File
@@ -964,6 +964,55 @@ Template.boardBody.helpers({
return Utils.boardView() === 'board-view-size-cycle-time';
},
// The reports of 2026-11-20 (models/lib/boardReports.js).
isViewCreatedResolved() {
return Utils.boardView() === 'board-view-created-resolved';
},
isViewNetFlow() {
return Utils.boardView() === 'board-view-net-flow';
},
isViewTimeInList() {
return Utils.boardView() === 'board-view-time-in-list';
},
isViewAverageAge() {
return Utils.boardView() === 'board-view-average-age';
},
isViewThroughputRun() {
return Utils.boardView() === 'board-view-throughput-run';
},
isViewDueDatePerformance() {
return Utils.boardView() === 'board-view-due-date-performance';
},
isViewReleaseBurndown() {
return Utils.boardView() === 'board-view-release-burndown';
},
isViewEpicProgress() {
return Utils.boardView() === 'board-view-epic-progress';
},
isViewWorkload() {
return Utils.boardView() === 'board-view-workload';
},
isViewDistribution() {
return Utils.boardView() === 'board-view-distribution';
},
isViewDependencyMap() {
return Utils.boardView() === 'board-view-dependency-map';
},
isViewActivityHeatmap() {
return Utils.boardView() === 'board-view-activity-heatmap';
},
isViewMap() {
return Utils.boardView() === 'board-view-map';
},
+16
View File
@@ -983,3 +983,19 @@ body.board-view.mobile-mode #header #header-main-bar .board-header-sidebar-toggl
font-size: calc(16px * var(--wekan-ui-font-scale, 1));
}
}
/* Board View menu: the heading over each group of views
(models/lib/boardViewSettings.js BOARD_VIEW_GROUPS). */
.pop-over-list .board-view-group-heading {
padding: 8px 10px 2px;
font-size: 0.8em;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 0.04em;
color: #6b778c;
cursor: default;
}
.pop-over-list .board-view-group-heading:not(:first-child) {
margin-top: 4px;
border-top: 1px solid #dfe1e6;
}
+4 -2
View File
@@ -173,16 +173,18 @@ template(name="boardChangeWatchPopup")
(js-open-<view>-view), which is what the click handlers in boardHeader.js
listen for. docs/Features/Board-Sidebar/Board-Settings/Board-View.md
template(name="boardChangeViewPopup")
//- Grouped, a heading over each group (models/lib/boardViewSettings.js
BOARD_VIEW_GROUPS), the board's own order inside a group.
ul.pop-over-list
each boardViewMenuEntries
if groupLabelKey
li.board-view-group-heading {{_ groupLabelKey}}
li
a.js-board-view-entry(class="{{jsClass}}")
i.fa(class="{{icon}}")
| {{_ labelKey}}
if isCurrent
i.fa.fa-check
if separatorAfter
hr
//- The Create Board form: a title, what the board is visible to, and Create.
Four templates drew it letter for letter - the one on the All Boards page and
+61
View File
@@ -452,6 +452,55 @@ Template.boardChangeViewPopup.events({
Utils.setBoardView('board-view-size-cycle-time');
Popup.back();
},
// The reports of 2026-11-20 (models/lib/boardReports.js).
'click .js-open-created-resolved-view'() {
Utils.setBoardView('board-view-created-resolved');
Popup.back();
},
'click .js-open-net-flow-view'() {
Utils.setBoardView('board-view-net-flow');
Popup.back();
},
'click .js-open-time-in-list-view'() {
Utils.setBoardView('board-view-time-in-list');
Popup.back();
},
'click .js-open-average-age-view'() {
Utils.setBoardView('board-view-average-age');
Popup.back();
},
'click .js-open-throughput-run-view'() {
Utils.setBoardView('board-view-throughput-run');
Popup.back();
},
'click .js-open-due-date-performance-view'() {
Utils.setBoardView('board-view-due-date-performance');
Popup.back();
},
'click .js-open-release-burndown-view'() {
Utils.setBoardView('board-view-release-burndown');
Popup.back();
},
'click .js-open-epic-progress-view'() {
Utils.setBoardView('board-view-epic-progress');
Popup.back();
},
'click .js-open-workload-view'() {
Utils.setBoardView('board-view-workload');
Popup.back();
},
'click .js-open-distribution-view'() {
Utils.setBoardView('board-view-distribution');
Popup.back();
},
'click .js-open-dependency-map-view'() {
Utils.setBoardView('board-view-dependency-map');
Popup.back();
},
'click .js-open-activity-heatmap-view'() {
Utils.setBoardView('board-view-activity-heatmap');
Popup.back();
},
'click .js-open-map-view'() {
Utils.setBoardView('board-view-map');
Popup.back();
@@ -976,6 +1025,18 @@ Template.boardViewMenu.helpers({
'board-view-chat': 'board-view-chat',
'board-view-version-control': 'board-view-version-control',
'board-view-column-sets': 'board-view-column-sets',
'board-view-created-resolved': 'board-view-created-resolved',
'board-view-net-flow': 'board-view-net-flow',
'board-view-time-in-list': 'board-view-time-in-list',
'board-view-average-age': 'board-view-average-age',
'board-view-throughput-run': 'board-view-throughput-run',
'board-view-due-date-performance': 'board-view-due-date-performance',
'board-view-release-burndown': 'board-view-release-burndown',
'board-view-epic-progress': 'board-view-epic-progress',
'board-view-workload': 'board-view-workload',
'board-view-distribution': 'board-view-distribution',
'board-view-dependency-map': 'board-view-dependency-map',
'board-view-activity-heatmap': 'board-view-activity-heatmap',
};
return TAPi18n.__(names[Utils.boardView()] || 'board-view');
},
+5 -10
View File
@@ -75,16 +75,11 @@ import { errorMessage } from '/client/lib/errorMessage';
// SubsManager removed for Meteor 3 migration
// #5850: which sharing scopes (organizations/teams/domains) the admin enabled
// in Admin Panel > People > Shared Templates (stored in localStorage, like the
// Shared Templates admin UI). Used to gate the drag-to-share drop targets.
// in Admin Panel > People > Shared Templates - an instance setting, the same in
// every browser. Used to gate the drag-to-share drop targets.
function loadSharedTemplatesScopes() {
try {
const raw = window.localStorage.getItem('sharedTemplatesScopes');
const arr = raw ? JSON.parse(raw) : [];
return Array.isArray(arr) ? arr : [];
} catch (e) {
return [];
}
const { sharedTemplatesScopes } = require('/models/lib/sharedTemplatesScopes');
return sharedTemplatesScopes(ReactiveCache.getCurrentSetting());
}
// #5850: share a (template) board with an Organization / Team / Domain by adding
@@ -1178,7 +1173,7 @@ Template.boardList.helpers({
return Template.instance().selectedMenu.get() === type;
},
// #5850: drag-to-share drop targets — the user's organizations/teams/domains,
// gated by the admin's Shared Templates scopes (localStorage). Shown in the
// gated by the admin's Shared Templates scopes (Settings). Shown in the
// Templates view so a personal Template Board can be dragged onto one to share.
shareTargets() {
const scopes = loadSharedTemplatesScopes();
@@ -51,3 +51,42 @@ template(name="processBehaviorView")
template(name="sizeCycleTimeView")
+boardChartView(chartKey="sizeCycleTime" titleKey="board-view-size-cycle-time")
//- The reports of 2026-11-20 (models/lib/boardReports.js): each answers bars and
a table, drawn and exported by boardChartView like the charts above.
template(name="createdResolvedView")
+boardChartView(chartKey="createdResolved" titleKey="board-view-created-resolved")
template(name="netFlowView")
+boardChartView(chartKey="netFlow" titleKey="board-view-net-flow")
template(name="timeInListView")
+boardChartView(chartKey="timeInList" titleKey="board-view-time-in-list")
template(name="averageAgeView")
+boardChartView(chartKey="averageAge" titleKey="board-view-average-age")
template(name="throughputRunView")
+boardChartView(chartKey="throughputRun" titleKey="board-view-throughput-run")
template(name="dueDatePerformanceView")
+boardChartView(chartKey="dueDatePerformance" titleKey="board-view-due-date-performance")
template(name="releaseBurndownView")
+boardChartView(chartKey="releaseBurndown" titleKey="board-view-release-burndown")
template(name="epicProgressView")
+boardChartView(chartKey="epicProgress" titleKey="board-view-epic-progress")
template(name="workloadView")
+boardChartView(chartKey="workload" titleKey="board-view-workload")
template(name="distributionView")
+boardChartView(chartKey="distribution" titleKey="board-view-distribution")
template(name="dependencyMapView")
+boardChartView(chartKey="dependencyMap" titleKey="board-view-dependency-map")
template(name="activityHeatmapView")
+boardChartView(chartKey="activityHeatmap" titleKey="board-view-activity-heatmap")
@@ -15,6 +15,18 @@ const PLACEHOLDER_VIEW_TEMPLATES = [
'throughputHistogramView',
'wipRunView',
'pulseView',
'createdResolvedView',
'netFlowView',
'timeInListView',
'averageAgeView',
'throughputRunView',
'dueDatePerformanceView',
'releaseBurndownView',
'epicProgressView',
'workloadView',
'distributionView',
'dependencyMapView',
'activityHeatmapView',
];
PLACEHOLDER_VIEW_TEMPLATES.forEach(name => {
@@ -98,6 +98,12 @@ function barsFromSeries(series, valueKey, labelKey) {
function computeBarRows(chartKey, data) {
if (!data) return [];
// The reports (models/lib/boardReports.js) answer their bars ready to draw.
if (Array.isArray(data.bars)) {
const { labelText } = require('/models/lib/boardReports');
return data.bars.map(bar => ({ label: labelText(bar.label, (key, fallback) => TAPi18n.__(key) || fallback),
value: Math.round((Number(bar.value) || 0) * 100) / 100 }));
}
if (chartKey === 'burndown') return barsFromSeries(data.series, 'remaining', 'day');
if (chartKey === 'burnup') return barsFromSeries(data.series, 'completed', 'day');
if (chartKey === 'wipRun') return barsFromSeries(data.series, 'count', 'day');
+21 -1
View File
@@ -238,11 +238,17 @@ const EXPORT_FORMAT_GROUPS = [
// Straight into Trello through its API (server/trelloApiExport.js), not
// a file: an action that opens its own popup.
{ key: 'trello-api', icon: 'fa-trello', label: 'Trello', action: 'js-export-to-trello', scopes: BOARD_ONLY },
// Trello's board.json with the cards' attachments as files, the .zip
// the Trello import reads (server/lib/renderExternalExport.js streamTrelloZip).
{ key: 'trellozip', icon: 'fa-file-archive-o', labelKey: 'attachments', labelPrefix: 'Trello .zip', path: 'export/trellozip', ext: 'zip', scopes: BOARD_ONLY },
{ key: 'kanboard', icon: 'fa-upload', label: 'Kanboard', path: 'export/kanboard', ext: 'json', scopes: BOARD_ONLY },
{ key: 'markdown', icon: 'fa-file-text-o', label: 'Markdown', path: 'export/markdown', ext: 'md', scopes: BOARD_ONLY },
{ key: 'leo', icon: 'fa-sitemap', label: 'Leo', path: 'export/leo', ext: 'leo', scopes: BOARD_ONLY },
{ key: 'opml', icon: 'fa-indent', label: 'OPML', path: 'export/opml', ext: 'opml', scopes: BOARD_ONLY },
{ key: 'orgmode', icon: 'fa-list-alt', label: 'Org mode', path: 'export/orgmode', ext: 'org', scopes: BOARD_ONLY },
{ key: 'mbox', icon: 'fa-envelope-o', label: 'Mail (mbox)', path: 'export/mbox', ext: 'mbox', scopes: BOARD_ONLY },
{ key: 'enex', icon: 'fa-sticky-note', label: 'Evernote (.enex)', path: 'export/enex', ext: 'enex', scopes: BOARD_ONLY },
{ key: 'mattermost', icon: 'fa-comments', label: 'Mattermost', path: 'export/mattermost', ext: 'jsonl', scopes: BOARD_ONLY },
{ key: 'todotxt', icon: 'fa-list-ul', label: 'todo.txt', path: 'export/todotxt', ext: 'txt', scopes: BOARD_ONLY },
{ key: 'taskwarrior', icon: 'fa-terminal', label: 'Taskwarrior', path: 'export/taskwarrior', ext: 'json', scopes: BOARD_ONLY },
{ key: 'focalboard', icon: 'fa-th-large', label: 'Focalboard', path: 'export/focalboard', ext: 'jsonl', scopes: BOARD_ONLY },
@@ -316,7 +322,21 @@ function resolvedFormatGroups() {
url: entry.path ? exportUrl(`/api/boards/:boardId/${entry.path}`, entry.query || {}) : '',
})),
}))
.filter(group => group.entries.length);
.filter(group => group.entries.length)
// The other tools' formats under headings by kind (models/lib/toolGroups.js),
// the same groups as the Import page; WeKan's own JSON keeps "JSON".
.flatMap(group => {
if (group.key !== 'json') return [group];
const { groupTools } = require('/models/lib/toolGroups');
const parts = [];
for (const entry of groupTools(group.entries)) {
if (entry.groupStart) {
parts.push({ key: `json-${entry.group}`, heading: entry.groupLabelKey ? TAPi18n.__(entry.groupLabelKey) : group.heading, entries: [] });
}
parts[parts.length - 1].entries.push(entry);
}
return parts;
});
}
// Import writes to the board, so unlike export it is offered only to somebody
@@ -63,3 +63,8 @@
global form rules give selects one row's height; show a few rows. */
.scrum-view select[multiple], .scrum-metadata select[multiple] { min-height: 5.5em; height: auto; }
.scrum-multiple-help { display: block; opacity: .8; max-width: 32em; }
/* The Definition of Ready and of Done, readable by every member. */
.scrum-definition .scrum-definition-text {
white-space: pre-wrap;
}
@@ -33,6 +33,16 @@ template(name="scrumView")
p {{_ 'scrum-history-job-running' done=historyJob.done total=historyJob.total}}
.scrum-progress
.scrum-progress-bar(style=historyJob.style)
//- The team's Definition of Ready and Definition of Done, readable by
every member - the settings below are the board admin's.
if settings.definitionOfReady
details.scrum-definition.js-scrum-definition-of-ready
summary {{_ 'scrum-definition-of-ready'}}
p.scrum-definition-text= settings.definitionOfReady
if settings.definitionOfDone
details.scrum-definition.js-scrum-definition-of-done
summary {{_ 'scrum-definition-of-done'}}
p.scrum-definition-text= settings.definitionOfDone
if canAdmin
details.scrum-settings(open=settingsOpen)
summary {{_ 'scrum-settings'}}
@@ -42,8 +52,21 @@ template(name="scrumView")
| {{_ 'scrum-enabled'}}
label {{_ 'scrum-product-goal'}}
textarea(name="productGoal") {{settings.productGoal}}
//- Definition of Ready (2026-11-20): when a backlog item may be
taken into a sprint, beside the Definition of Done.
label {{_ 'scrum-definition-of-ready'}}
textarea(name="definitionOfReady") {{settings.definitionOfReady}}
label {{_ 'scrum-definition-of-done'}}
textarea(name="definitionOfDone") {{settings.definitionOfDone}}
//- The meeting helpers of the board menu (scrumMeetings.js).
label
input(type="checkbox" name="standupTimer" checked=settings.standupTimer)
| {{_ 'daily-standup'}}
label {{_ 'standup-minutes'}}
input(type="number" name="standupMinutes" min="1" max="15" value=settings.standupMinutes)
label
input(type="checkbox" name="retrospectiveBoard" checked=settings.retrospectiveBoard)
| {{_ 'retrospective-board'}}
each accountabilityFields
label {{label}}
select(name=field multiple=multiple)
+4 -1
View File
@@ -306,7 +306,10 @@ Template.scrumView.events({
event.preventDefault(); const values = fields(event.currentTarget);
const formData = new FormData(event.currentTarget);
await mutate(tpl, 'scrum.configure', { enabled: values.enabled === 'on', productGoal: values.productGoal,
definitionOfDone: values.definitionOfDone, estimateSource: values.estimateSource,
definitionOfDone: values.definitionOfDone, definitionOfReady: values.definitionOfReady,
standupTimer: values.standupTimer === 'on', retrospectiveBoard: values.retrospectiveBoard === 'on',
standupMinutes: require('/models/lib/scrumMeetings').standupMinutes(values.standupMinutes),
estimateSource: values.estimateSource,
estimateCustomFieldId: nullable(values.estimateCustomFieldId), estimateUnit: values.estimateUnit,
completionPolicy: values.completionPolicy, productOwnerId: nullable(values.productOwnerId),
scrumMasterId: nullable(values.scrumMasterId), developerIds: formData.getAll('developerIds'),
+31 -6
View File
@@ -398,6 +398,8 @@ template(name="cardFieldSectionDate")
template(name="cardFieldSectionMembers")
+cardSectionHeader(section="members" icon="fa-users" label="members")
if isSectionOpen "members"
//- The board's WIP limit per person (listFlowPolicies.jade).
+cardPersonWipWarnings(card=this)
.card-details-group-body
each field in orderedMembersFields
if $eq field "members"
@@ -548,6 +550,19 @@ template(name="cardFieldSectionCard")
a.js-add-dependency(title="{{_ 'add-dependency'}}")
i.fa.fa-plus
| {{_ 'add-dependency'}}
//- The Kanban and Scrum flow fields (docs/Features/Cards/Flow-Fields.md).
if $eq field "blocked"
if currentBoard.allowsBlockedOnCard
+cardFlowBlocked(card=this canModifyCard=canModifyCard)
if $eq field "classOfService"
if currentBoard.allowsClassOfServiceOnCard
+cardFlowClassOfService(card=this canModifyCard=canModifyCard)
if $eq field "moscow"
if currentBoard.allowsMoscowOnCard
+cardFlowMoscow(card=this canModifyCard=canModifyCard)
if $eq field "wsjf"
if currentBoard.allowsWsjfOnCard
+cardFlowWsjf(card=this canModifyCard=canModifyCard)
if $eq field "cardSortingByNumber"
if currentBoard.allowsCardSortingByNumber
.card-details-item.card-details-sort-order
@@ -1141,9 +1156,13 @@ template(name="cardDetailsActionsPopup")
Planning Poker, Change spent time and Card kind are in the hamburger of
their own section of the opened card, and in Card Settings' pane of that
section (docs/Features/Cards/Card-Fields.md).
//- Grouped under headings (2026-11-20): Move and copy, Watch, Appearance,
Share and history, Archive. Every entry keeps its own condition; a heading
sits inside its group's.
if currentUser
ul.pop-over-list
if cardMenuWrites
li.menu-group-heading {{_ 'menu-group-move-copy'}}
if currentUser.isBoardAdmin
li
a.js-move-card
@@ -1175,6 +1194,7 @@ template(name="cardDetailsActionsPopup")
a.js-move-card-to-bottom
i.fa.fa-arrow-down
| {{_ 'moveCardToBottom-title'}}
li.menu-group-heading {{_ 'watch'}}
li
a.js-toggle-watch-card
if isWatching
@@ -1196,6 +1216,7 @@ template(name="cardDetailsActionsPopup")
unless currentUser.isWorker
hr
ul.pop-over-list
li.menu-group-heading {{_ 'appearance'}}
li
a.js-set-card-color
i.fa.fa-paint-brush
@@ -1214,6 +1235,7 @@ template(name="cardDetailsActionsPopup")
| {{_ 'action-items-create'}}
hr
ul.pop-over-list
li.menu-group-heading {{_ 'menu-group-share'}}
if currentUser
//- Copy link, named - the card's header carried this as an icon with only
a tooltip. docs/Features/General/Board-Item-Links.md
@@ -1254,6 +1276,7 @@ template(name="cardDetailsActionsPopup")
if currentUser
if cardMenuWrites
unless currentUser.isWorker
li.menu-group-heading {{_ 'archives'}}
if archived
li
a.js-restore-archived-card
@@ -1269,12 +1292,14 @@ template(name="cardDetailsActionsPopup")
span.emoji-icon
i.fa.fa-link
| {{_ 'cardMorePopup-title'}}
unless canModifyCard
if boardCreationAllowed
li
a.js-create-board-from-card
i.fa.fa-external-link
| {{_ 'linkCardToNewBoard'}}
//- For every member who may write the card (cardMenuWrites, not a
Worker), as when it was added; createBoardFromCard checks the same
write access and the assigned-only scope on the server.
if boardCreationAllowed
li
a.js-create-board-from-card
i.fa.fa-external-link
| {{_ 'linkCardToNewBoard'}}
span.copied-tooltip {{_ 'copied'}}
//- #1173: the card export popup IS the shared export body - the same checkbox
+20 -7
View File
@@ -933,6 +933,9 @@ function cardSectionHasContent(card, board, id) {
case 'card': {
const swimlane = typeof card?.swimlane === 'function' ? card.swimlane() : null;
return Boolean(board.allowsDependencies || board.allowsCardSortingByNumber || board.allowsShowLists
// The flow fields (models/lib/cardFlow.js).
|| board.allowsBlockedOnCard || board.allowsClassOfServiceOnCard || board.allowsMoscowOnCard
|| board.allowsWsjfOnCard
|| (board.allowsSwimlaneNameOnCard && swimlane && swimlane.title)
|| (board.allowsCardButtonsOnCard !== false && cardHasButtons(card)));
}
@@ -2400,7 +2403,10 @@ Template.cardDestinationPicker.helpers({
destinationError() { return Template.instance().dialog.error.get(); },
destinationDisabled() {
const dialog = Template.instance().dialog;
return dialog.loading.get() || dialog.saving.get() || !dialog.selectedSwimlaneId.get() || !dialog.selectedListId.get();
// #6917: and until the chosen list's cards are there, so a move or copy
// never places the card against a dropdown that has not filled yet.
return dialog.loading.get() || dialog.saving.get() || !!dialog.cardsLoading?.get()
|| !dialog.selectedSwimlaneId.get() || !dialog.selectedListId.get();
},
boards() {
return Template.instance().dialog.boards();
@@ -2465,7 +2471,7 @@ function registerCardDialogTemplate(templateName) {
async 'click .js-done'(event, tpl) {
event.preventDefault();
const dialog = tpl.dialog;
if (dialog.loading.get() || dialog.saving.get()) return;
if (dialog.loading.get() || dialog.saving.get() || dialog.cardsLoading?.get()) return;
// Read the target board/swimlane/list from the dialog's live reactive
// selection rather than the DOM <select> elements. A reactive re-render
// (e.g. the boards() helper transiently returning [] while a 'board'
@@ -2934,6 +2940,7 @@ Template.cardMorePopup.onCreated(function () {
// is no longer blank the first time another board is picked (the cards()
// helper queries minimongo, which was empty before the subscription arrived).
this.parentBoardReady = new ReactiveVar(true);
this.view.onViewDestroyed(() => this.parentCardsSubscription?.stop());
this.parentCard = this.currentCard?.parentCard();
if (this.parentCard) {
const list = $('.js-field-parent-card');
@@ -3080,11 +3087,17 @@ Template.cardMorePopup.events({
// #3745: wait for the board subscription to be ready before showing its
// cards, so the parent-card list is populated on the first selection.
tpl.parentBoardReady.set(false);
Meteor.subscribe('board', selection, false, {
onReady() {
tpl.parentBoardReady.set(true);
},
});
// #6917: a lazily loaded board's `board` publication ships no cards, so
// the parent-card list also subscribes to the board's card titles, and
// is ready when both are.
tpl.parentCardsSubscription?.stop();
let pending = 2;
const ready = () => {
pending -= 1;
if (pending === 0 && tpl.parentBoard.get() === selection) tpl.parentBoardReady.set(true);
};
Meteor.subscribe('board', selection, false, { onReady: ready });
tpl.parentCardsSubscription = Meteor.subscribe('destinationCards', selection, null, null, { onReady: ready });
tpl.parentBoard.set(selection);
list.prop('disabled', false);
}
+69
View File
@@ -0,0 +1,69 @@
/* The Kanban and Scrum flow fields (docs/Features/Cards/Flow-Fields.md). */
/* Blocked is a labelled native checkbox; the app-wide material form rule hides
native checkboxes three ways (display, visibility, an offset), so all three
are undone, as in scrumView.css. */
.card-flow-blocked-toggle input[type="checkbox"] {
display: inline-block;
visibility: visible;
position: static;
inset-inline-start: auto;
width: 16px;
height: 16px;
min-height: 0;
margin: 0;
margin-inline-end: 4px;
padding: 0;
vertical-align: middle;
}
.card-details-item-flow-blocked.is-blocked .card-details-item-title,
.card-flow-blocked-text {
color: #c0392b;
}
.card-details-item-flow-blocked .js-card-flow-blocked-reason {
display: block;
width: 100%;
margin-top: 4px;
}
.card-flow-blocked-since {
font-size: 0.85em;
}
.card-flow-wsjf-score {
margin-inline-start: 6px;
font-weight: bold;
}
.card-flow-wsjf-parts {
display: flex;
flex-wrap: wrap;
gap: 4px 12px;
}
.card-flow-wsjf-part {
display: inline-flex;
align-items: center;
gap: 4px;
}
.minicard .badges .minicard-flow-blocked {
color: #fff;
background: #c0392b;
border-radius: 3px;
padding: 0 4px;
}
.minicard .badges .minicard-flow-class.flow-class-expedite {
color: #fff;
background: #d35400;
border-radius: 3px;
padding: 0 4px;
}
.minicard .badges .minicard-flow-class.flow-class-fixed-date {
color: #8e44ad;
}
.minicard .badges .minicard-flow-moscow {
border: 1px solid currentColor;
border-radius: 3px;
padding: 0 4px;
}
.minicard .badges .minicard-flow-moscow.flow-moscow-must {
color: #c0392b;
}
.minicard .badges .minicard-flow-moscow.flow-moscow-wont {
color: #7f8c8d;
}
+66
View File
@@ -0,0 +1,66 @@
//- The Kanban and Scrum flow fields of the opened card (models/lib/cardFlow.js,
docs/Features/Cards/Flow-Fields.md): each a row of Board Settings / Card,
drawn in the Card section. Saved through the setCardFlow method.
template(name="cardFlowBlocked")
with flowOf card
.card-details-item.card-details-item-flow-blocked(class="{{#if blocked}}is-blocked{{/if}}")
h3.card-details-item-title
i.fa.fa-ban
| {{_ 'card-blocked'}}
if ../canModifyCard
label.card-flow-blocked-toggle
input.js-card-flow-blocked(type="checkbox" checked=blocked)
| {{_ 'card-blocked'}}
if blocked
input.js-card-flow-blocked-reason(type="text" maxlength="1000" value=blockedReason placeholder="{{_ 'card-blocked-reason'}}")
else
if blocked
span.card-flow-blocked-text {{_ 'card-blocked'}}{{#if blockedReason}}: {{blockedReason}}{{/if}}
if blocked
if blockedAt
.card-flow-blocked-since.quiet {{_ 'card-blocked-since' date=(flowDate blockedAt) user=(flowUser blockedBy)}}
template(name="cardFlowClassOfService")
with flowOf card
.card-details-item.card-details-item-flow-class
h3.card-details-item-title
i.fa.fa-road
| {{_ 'class-of-service'}}
if ../canModifyCard
select.js-card-flow-class
each option in classOptions
option(value=option.value selected=option.selected) {{#if option.labelKey}}{{_ option.labelKey}}{{else}}-{{/if}}
else
span.card-flow-value {{#if classLabelKey}}{{_ classLabelKey}}{{else}}-{{/if}}
template(name="cardFlowMoscow")
with flowOf card
.card-details-item.card-details-item-flow-moscow
h3.card-details-item-title
i.fa.fa-sort-amount-desc
| {{_ 'moscow-priority'}}
if ../canModifyCard
select.js-card-flow-moscow
each option in moscowOptions
option(value=option.value selected=option.selected) {{#if option.labelKey}}{{_ option.labelKey}}{{else}}-{{/if}}
else
span.card-flow-value {{#if moscowLabelKey}}{{_ moscowLabelKey}}{{else}}-{{/if}}
template(name="cardFlowWsjf")
with flowOf card
.card-details-item.card-details-item-flow-wsjf
h3.card-details-item-title
i.fa.fa-balance-scale
| {{_ 'wsjf-score'}}
if wsjfScore
span.card-flow-wsjf-score {{wsjfScore}}
.card-flow-wsjf-parts
each part in wsjfParts
label.card-flow-wsjf-part
span {{_ part.labelKey}}
if ../canModifyCard
select.js-card-flow-wsjf(data-part=part.key)
each option in part.options
option(value=option.value selected=option.selected) {{option.text}}
else
span.card-flow-value {{#if part.value}}{{part.value}}{{else}}-{{/if}}
+87
View File
@@ -0,0 +1,87 @@
// The Kanban and Scrum flow fields of a card (models/lib/cardFlow.js,
// docs/Features/Cards/Flow-Fields.md): the opened card's rows and the
// minicard's `cardFlowOf` helper. Every change goes through setCardFlow, which
// checks the card edit right and the Expedite limit on the server.
import { Meteor } from 'meteor/meteor';
import { Template } from 'meteor/templating';
import { ReactiveCache } from '/imports/reactiveCache';
import { TAPi18n } from '/imports/i18n';
const { flowView, CLASSES_OF_SERVICE, MOSCOW, WSJF_PARTS, WSJF_SCALE, CLASS_LABEL, MOSCOW_LABEL } = require('/models/lib/cardFlow');
const WSJF_LABEL = { businessValue: 'wsjf-business-value', timeCriticality: 'wsjf-time-criticality',
riskReduction: 'wsjf-risk-reduction', jobSize: 'wsjf-job-size' };
// A linked card shows its source's flow, as the server writes it.
function sourceOf(card) {
if (card && typeof card.isLinkedCard === 'function' && card.isLinkedCard()) {
return ReactiveCache.getCard(card.linkedId) || card;
}
return card;
}
Template.registerHelper('cardFlowOf', card => {
const view = flowView(sourceOf(card));
return view.blocked || view.classOfService || view.moscow || view.wsjfScore ? view : null;
});
function choices(values, labels, chosen) {
return [{ value: '', labelKey: null, selected: !chosen },
...values.map(value => ({ value, labelKey: labels[value], selected: value === chosen }))];
}
function save(card, patch) {
Meteor.callAsync('setCardFlow', card._id, patch).catch(error => {
if (error && error.error === 'expedite-limit') window.alert(TAPi18n.__('expedite-limit'));
else window.alert((error && (error.reason || error.error)) || String(error));
});
}
const helpers = {
flowOf(card) { return flowView(sourceOf(card)); },
flowDate(date) { return date ? new Date(date).toLocaleString() : ''; },
flowUser(userId) {
const user = userId && ReactiveCache.getUser(userId);
return (user && (user.profile?.fullname || user.username)) || '-';
},
// Each select's options, the empty one ("-") first, with which is chosen.
classOptions() { return choices(CLASSES_OF_SERVICE, CLASS_LABEL, this.classOfService); },
moscowOptions() { return choices(MOSCOW, MOSCOW_LABEL, this.moscow); },
wsjfParts() {
const wsjf = this.wsjf || {};
return WSJF_PARTS.map(key => {
const value = WSJF_SCALE.includes(wsjf[key]) ? wsjf[key] : null;
return { key, labelKey: WSJF_LABEL[key], value,
options: [{ value: '', text: '-', selected: value === null },
...WSJF_SCALE.map(n => ({ value: String(n), text: String(n), selected: n === value }))] };
});
},
};
['cardFlowBlocked', 'cardFlowClassOfService', 'cardFlowMoscow', 'cardFlowWsjf'].forEach(name => {
Template[name].helpers(helpers);
});
Template.cardFlowBlocked.events({
'change .js-card-flow-blocked'(event, tpl) {
save(tpl.data.card, { blocked: event.currentTarget.checked });
},
'change .js-card-flow-blocked-reason'(event, tpl) {
save(tpl.data.card, { blockedReason: event.currentTarget.value });
},
});
Template.cardFlowClassOfService.events({
'change .js-card-flow-class'(event, tpl) {
save(tpl.data.card, { classOfService: event.currentTarget.value });
},
});
Template.cardFlowMoscow.events({
'change .js-card-flow-moscow'(event, tpl) {
save(tpl.data.card, { moscow: event.currentTarget.value });
},
});
Template.cardFlowWsjf.events({
'change .js-card-flow-wsjf'(event, tpl) {
const value = event.currentTarget.value;
save(tpl.data.card, { wsjf: { [event.currentTarget.dataset.part]: value === '' ? null : Number(value) } });
},
});
+1 -1
View File
@@ -347,7 +347,7 @@ template(name="copyAndMoveChecklist")
option(value="{{_id}}" selected="{{#if isDialogOptionCardId _id}}selected{{/if}}") {{title}}
.edit-controls.clearfix
button.primary.confirm.js-done {{_ 'done'}}
button.primary.confirm.js-done(type="button" disabled=doneDisabled) {{_ 'done'}}
//- Due date on a single checklist item (#4755). The badge and its edit popup
reuse the card's own date-badge markup (dateBadgeBody) and date-picker form
+11
View File
@@ -841,6 +841,11 @@ Template.copyAndMoveChecklist.helpers({
const dialog = getParentDialog(Template.instance());
return dialog ? dialog.isTitleDefault(title) : title;
},
// #6917: Done waits for the destination list's cards.
doneDisabled() {
const dialog = getParentDialog(Template.instance());
return !dialog || dialog.loading.get() || dialog.cardsLoading.get() || dialog.cards().length === 0;
},
});
/**
@@ -865,6 +870,11 @@ function registerChecklistDialogEvents(templateName) {
? cardSelect.options[cardSelect.selectedIndex].value
: null;
// #6917: every checklist dialog needs a card, and the dropdown may still
// be filling: Done does nothing until a card of the list is chosen.
if (dialog.loading.get() || dialog.cardsLoading.get()) return;
if (!cardId || !dialog.cards().some(card => card._id === cardId)) return;
const options = { boardId, swimlaneId, listId, cardId };
try {
await dialog.setDone(cardId, options);
@@ -879,6 +889,7 @@ function registerChecklistDialogEvents(templateName) {
'change .js-select-swimlanes'(event, tpl) {
tpl.dialog.selectedSwimlaneId.set($(event.currentTarget).val());
tpl.dialog.setFirstListId();
tpl.dialog.selectedCardId.set('');
},
'change .js-select-lists'(event, tpl) {
tpl.dialog.selectedListId.set($(event.currentTarget).val());
+34
View File
@@ -17,6 +17,7 @@ template(name="minicard")
class="{{#if minicardCollapsed}}minicard-collapsed{{/if}}"
class="{{#if hasUnreadComments}}minicard-unread-comments{{/if}}"
class="{{#if hasUnreadChanges}}minicard-unread-changes{{/if}}"
class="{{#if splitDoneHere}}minicard-split-done{{/if}}"
title="{{#if hasUnreadComments}}{{_ 'card-has-unread-comments'}}{{else}}{{#if hasUnreadChanges}}{{_ 'card-has-unread-changes'}}{{/if}}{{/if}}"
style="{{#if showCardColorOnMinicard}}{{colorStyle}}{{/if}}")
if canMoveCard
@@ -30,6 +31,8 @@ template(name="minicard")
if canModifyCard
a.minicard-details-menu-with-handle.js-open-minicard-details-menu(title="{{_ 'cardDetailsActionsPopup-title'}}")
i.fa.fa-bars
//- Done here, in a list split into Doing and Done (listFlowPolicies.jade).
+minicardSplitDone
if showDependencyConnectHandle
a.dependency-connect-handle.js-dependency-connect-handle(title="{{_ 'drag-to-connect'}}")
i.fa.fa-dot-circle-o
@@ -211,6 +214,37 @@ template(name="minicard")
span.badge-icon(style="color:{{dependencyBadge.color}}")
i.fa(class="fa-{{dependencyBadge.icon}}")
span.badge-text {{ dependencyBadge.count }}
//- The flow fields, Show on Minicard (docs/Features/Cards/Flow-Fields.md).
if $eq field "blocked"
if currentBoard.allowsBlockedOnMinicard
with cardFlowOf this
if blocked
.badge.minicard-flow-blocked.js-minicard-flow-blocked(title="{{_ 'card-blocked'}}{{#if blockedReason}}: {{blockedReason}}{{/if}}")
span.badge-icon
i.fa.fa-ban
span.badge-text {{_ 'card-blocked'}}
if $eq field "classOfService"
if currentBoard.allowsClassOfServiceOnMinicard
with cardFlowOf this
if classOfService
.badge.minicard-flow-class(class="flow-class-{{classOfService}}" title="{{_ 'class-of-service'}}: {{_ classLabelKey}}")
span.badge-icon
i.fa.fa-road
span.badge-text {{_ classLabelKey}}
if $eq field "moscow"
if currentBoard.allowsMoscowOnMinicard
with cardFlowOf this
if moscow
.badge.minicard-flow-moscow(class="flow-moscow-{{moscow}}" title="{{_ 'moscow-priority'}}: {{_ moscowLabelKey}}")
span.badge-text {{_ moscowLabelKey}}
if $eq field "wsjf"
if currentBoard.allowsWsjfOnMinicard
with cardFlowOf this
if wsjfScore
.badge.minicard-flow-wsjf(title="{{_ 'wsjf-score'}}")
span.badge-icon
i.fa.fa-balance-scale
span.badge-text {{wsjfScore}}
if $eq field "stickers"
if showStickersOnMinicard
if stickers.length
+6
View File
@@ -180,6 +180,12 @@ Template.minicard.helpers({
// #3984: visual card aging — fade cards that have not been touched recently,
// based on dateLastActivity, when the board has card aging enabled.
// docs/Features/Cards/At-Risk.md
// Done here in a list split into Doing and Done (models/lib/boardFlowPolicies.js).
splitDoneHere() {
const { splitShown } = require('/client/components/lists/listFlowPolicies');
return splitShown(ReactiveCache.getBoard(this.boardId), ReactiveCache.getList(this.listId))
&& require('/models/lib/boardFlowPolicies').isSplitDone(this);
},
atRisk() {
return riskOf(this);
},
+15 -3
View File
@@ -9,7 +9,7 @@
import { ReactiveVar } from 'meteor/reactive-var';
import { TAPi18n } from '/imports/i18n';
import { CSV_IMPORT_FIELDS, csvSeparatorOf, normalizeHeader } from '/models/lib/csvImportMapping';
import { csvGetMembersToMap } from './csvMembersMapper';
import { csvGetMembersToMap, csvMembersFromNames } from './csvMembersMapper';
const Papa = require('papaparse');
@@ -28,7 +28,7 @@ export function parseCsvImportText(text) {
// `excelBase64` for a workbook (read on the server, which answers with the
// first board sheet's header and the sheets it found). `membersStep`: the
// "map members" step follows this one.
export async function startCsvMapping(importTpl, { rows, excelBase64, membersStep = false }) {
export async function startCsvMapping(importTpl, { rows, excelBase64, uploadId, membersStep = false }) {
activeImportTpl = importTpl;
if (!importTpl.csvMappingState) importTpl.csvMappingState = new ReactiveVar(null);
importTpl.csvMapping = null;
@@ -40,6 +40,9 @@ export async function startCsvMapping(importTpl, { rows, excelBase64, membersSte
let preview;
if (excelBase64) {
preview = await Meteor.callAsync('excelImportPreview', excelBase64);
} else if (uploadId) {
// A file streamed to the server's disk (server/lib/importUpload.js).
preview = await Meteor.callAsync('csvUploadPreview', uploadId);
} else {
const header = (rows && rows[0]) || [];
preview = {
@@ -62,6 +65,7 @@ export async function startCsvMapping(importTpl, { rows, excelBase64, membersSte
boards: preview.boards || [],
skipped: preview.skipped || [],
rows: rows || null,
uploadId: uploadId || null,
membersStep,
mapping,
});
@@ -201,7 +205,15 @@ Template.importCsvMapping.events({
...(chosen.columns.list === undefined ? { listName } : {}),
};
const state = tpl.state();
// The people to map are the ones in the columns chosen for people.
// The people to map are the ones in the columns chosen for people - read
// by the server from an uploaded file.
if (state.uploadId && state.membersStep) {
Meteor.callAsync('csvUploadPeople', state.uploadId, chosen.columns).then(names => {
importTpl.membersToMap.set(csvMembersFromNames(names || []));
importTpl.nextStep();
}, error => tpl.mappingError.set((error && error.error) || 'error-csv-schema'));
return;
}
if (state.rows && state.membersStep) {
importTpl.membersToMap.set(csvGetMembersToMap(state.rows, chosen.columns));
}
+15 -51
View File
@@ -1,54 +1,18 @@
import { ReactiveCache } from '/imports/reactiveCache';
import { splitByField, splitPeople } from '/models/lib/csvImportMapping';
import { csvPeopleNames } from '/models/lib/csvPeople';
// The usernames to map. Without `columns`, the ones in a column named
// "Members"; with the columns the mapping step chose, the ones in every
// people column: owner, members, assignees, requested by and assigned by.
export function csvGetMembersToMap(data, columns) {
// we will work on the list itself (an ordered array of objects) when a
// mapping is done, we add a 'wekan' field to the object representing the
// imported member
const membersToMap = [];
const importedMembers = [];
const peopleColumns = [];
if (columns) {
['owner', 'members', 'assignees'].forEach(field => {
if (columns[field] !== undefined) peopleColumns.push({ index: columns[field], split: splitPeople });
});
['requestedBy', 'assignedBy'].forEach(field => {
if (columns[field] !== undefined) peopleColumns.push({ index: columns[field], split: splitByField });
});
} else {
for (let i = 0; i < data[0].length; i++) {
if (String(data[0][i] || '').toLowerCase() === 'members') {
peopleColumns.push({ index: i, split: cell => String(cell).split(' ') });
}
}
}
for (let i = 1; i < data.length; i++) {
for (const { index, split } of peopleColumns) {
if (data[i][index]) {
for (const importedMember of split(data[i][index])) {
if (importedMember && importedMembers.indexOf(importedMember) === -1) {
importedMembers.push(importedMember);
}
}
}
}
}
for (let importedMember of importedMembers) {
importedMember = {
username: importedMember,
id: importedMember,
};
const wekanUser = ReactiveCache.getUser({ username: importedMember.username });
if (wekanUser) importedMember.wekanId = wekanUser._id;
membersToMap.push(importedMember);
}
return membersToMap;
// The people to map, each matched to a WeKan user of the same username when
// there is one. `rows` are the file's rows, or `names` the usernames the
// server read from an uploaded file (csvUploadPeople).
export function csvMembersFromNames(names) {
return names.map(username => {
const member = { username, id: username };
const wekanUser = ReactiveCache.getUser({ username });
if (wekanUser) member.wekanId = wekanUser._id;
return member;
});
}
export function csvGetMembersToMap(data, columns) {
return csvMembersFromNames(csvPeopleNames(data, columns));
}
+13
View File
@@ -280,3 +280,16 @@ a.show-mapping {
.import-report-row {
overflow-wrap: anywhere;
}
/* The Import page's sources by kind (models/lib/toolGroups.js). */
.import-source-list .import-source-group {
margin-top: 0.8em;
font-weight: bold;
font-size: 0.85em;
text-transform: uppercase;
letter-spacing: 0.04em;
color: #6b778c;
}
.import-source-list .import-source-group:first-child {
margin-top: 0;
}
+2
View File
@@ -39,6 +39,8 @@ template(name="import")
h2 {{_ 'import-source-heading'}}
ul.import-source-list
each importSources
if groupHeading
li.import-source-group {{groupHeading}}
li
//- The same green tick every checkbox in the app uses
(`.materialCheckBox`, forms.css) - the one Admin Panel /
+81 -6
View File
@@ -3,7 +3,7 @@ import { trelloGetMembersToMap } from './trelloMembersMapper';
import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
import { wekanGetMembersToMap } from './wekanMembersMapper';
import { csvGetMembersToMap } from './csvMembersMapper';
import { jiraGetMembersToMap } from './jiraMembersMapper';
import { jiraGetMembersToMap } from '/models/lib/jiraMembersMapper';
import getSlug from 'limax';
import { UserSearchIndex } from '/models/users';
import { Utils } from '/client/lib/utils';
@@ -49,6 +49,13 @@ function attachmentAuthData(importTpl) {
return auth ? { attachmentAuth: auth } : {};
}
// The file streamed to the server for this import (postImportUpload), by its
// id; the preview of its people and the import itself both read it.
function uploadData(importTpl) {
return importTpl.upload && importTpl.upload.uploadId
? { uploadId: importTpl.upload.uploadId, ...(importTpl.uploadExtras || {}) } : {};
}
// Helper to find the closest ancestor template instance by name
function findParentTemplateInstance(childTemplateInstance, parentTemplateName) {
let view = childTemplateInstance.view;
@@ -118,6 +125,33 @@ async function postTrelloImport(body, contentType) {
return result;
}
// A chosen file of the generalized importer's sources, streamed to the server
// a part at a time (server/routes/importUpload.js) rather than read here and
// sent whole through the importBoard method: the server writes it to its disk,
// checking the free space and the administrator's import limit, and importBoard
// reads it by the id answered here. Returns { uploadId, size }.
async function postImportUpload(source, file) {
const token =
(window.localStorage && window.localStorage.getItem('Meteor.loginToken')) || '';
const resp = await fetch(`/api/import/upload/${encodeURIComponent(source)}`, {
method: 'POST',
credentials: 'same-origin',
headers: {
'Content-Type': 'application/octet-stream',
...(token ? { Authorization: `Bearer ${token}` } : {}),
},
body: file,
});
let result = {};
try {
result = await resp.json();
} catch (e) {
result = {};
}
if (!resp.ok || result.error || !result.uploadId) throw new Error(result.error || 'import-upload-failed');
return result;
}
// A WeKan .zip export (the document and its attachment files) imported as a
// NEW board: posted as it is to /api/import/zip?newBoard=1 (models/importZip.js),
// which opens it on the server under its limits. Returns the new board's id.
@@ -313,7 +347,19 @@ Template.import.onCreated(function () {
openOrReportImportedBoard(boardId, '');
return;
}
if (file) {
this.upload = null;
this.uploadExtras = null;
// Jira too: its people are read from the uploaded file by the server.
if (file && (spec.creator === 'generalized' || dataSource === 'jira' || dataSource === 'csv')) {
// Streamed to the server's disk, never read into this page whole.
try {
this.upload = await postImportUpload(dataSource, file);
} catch (e) {
this.setError((e && e.message) || 'import-upload-failed');
return;
}
doc = {};
} else if (file) {
doc = documentForFile(dataSource, file.name || '', new Uint8Array(await file.arrayBuffer()));
} else {
const text = (this.find('.js-import-json') || {}).value || '';
@@ -331,6 +377,13 @@ Template.import.onCreated(function () {
// CSV/TSV and Excel: which column is which field comes first
// (csvMapping.js), the people after it for CSV.
if (dataSource === 'csv') {
// An uploaded file: its header, rows and people are read on the server.
if (this.upload) {
this.importedData.set([]);
this.membersToMap.set([]);
await startCsvMapping(this, { uploadId: this.upload.uploadId, membersStep: !skipMapping });
return;
}
if (!Array.isArray(doc) || !doc.length) {
this.setError('error-csv-schema');
return;
@@ -356,6 +409,8 @@ Template.import.onCreated(function () {
const estimateFieldId = this.find('.js-jira-estimate-field')?.value.trim();
if (estimateFieldId) doc.wekanScrumMapping = { estimateFieldId,
estimateUnit: this.find('.js-jira-estimate-unit')?.value.trim() };
// An uploaded file is read on the server: the mapping goes with the call.
if (this.upload && doc.wekanScrumMapping) this.uploadExtras = { wekanScrumMapping: doc.wekanScrumMapping };
}
// Trello: remember the target personal-workspace name for finishImport.
this.workspaceName = '';
@@ -373,6 +428,17 @@ Template.import.onCreated(function () {
await this.mapPeopleOrImport(dataSource, skipMapping);
return;
}
// An uploaded Jira file: its people from the server, read from the file.
if (this.upload && dataSource === 'jira') {
try {
this.membersToMap.set(await Meteor.callAsync('importBoard', {}, { previewPeople: true, ...uploadData(this) }, 'jira', null));
} catch (e) {
this.setError((e && (e.reason || e.error)) || 'error-json-malformed');
return;
}
await advance();
return;
}
this.membersToMap.set(_prepareAdditionalData(doc));
await advance();
};
@@ -393,7 +459,7 @@ Template.import.onCreated(function () {
let people = [];
try {
people = await Meteor.callAsync('importBoard', pruneImportDocument(this.importedData.get(), selectedFields()),
{ previewPeople: true, importFields: selectedFields() }, source, null);
{ previewPeople: true, importFields: selectedFields(), ...uploadData(this) }, source, null);
} catch (e) {
this.setError((e && (e.reason || e.error)) || 'error-json-malformed');
return;
@@ -544,7 +610,10 @@ Template.import.onCreated(function () {
this.membersToMap.set([]);
let settled = false;
const importDocument = pruneImportDocument(importedData, selectedFields());
const timeoutMs = importDeadlineFor(parseInt(window.WEKAN_IMPORT_TIMEOUT_MS, 10) || 120000, importDocument);
// An uploaded file is not in the document: its size gives it time, two
// seconds a megabyte on top of the usual deadline.
const uploadMs = this.upload ? Math.ceil((this.upload.size || 0) / (1024 * 1024)) * 2000 : 0;
const timeoutMs = importDeadlineFor(parseInt(window.WEKAN_IMPORT_TIMEOUT_MS, 10) || 120000, importDocument) + uploadMs;
const watchdog = Meteor.setTimeout(() => {
if (settled) return;
settled = true;
@@ -560,7 +629,7 @@ Template.import.onCreated(function () {
// The selection again, for the parts only a creator can leave out:
// the Scrum planning external parsers find (models/kanboardCreator.js).
{ membersMapping: mappingById, importFields: selectedFields(), membersMode: this.membersMode || 'map', ...csvMappingData(this),
...attachmentAuthData(this),
...attachmentAuthData(this), ...uploadData(this),
...(splitByProject(this.importSource) ? { splitBy: 'swimlane' } : {}) },
this.importSource,
Session.get('fromBoard'),
@@ -614,12 +683,18 @@ Template.import.helpers({
const setting = ReactiveCache.getCurrentSetting();
const product = productNameOrDefault(setting && setting.productName);
const current = Session.get('importSource');
return IMPORT_SOURCES.map(source => ({
// Grouped by kind under headings (models/lib/toolGroups.js), the same
// groups the Export menu uses; WeKan's own is headed by the product name.
const { groupTools } = require('/models/lib/toolGroups');
return groupTools(IMPORT_SOURCES.map(source => ({
key: source.key,
// "a previous export of <Product name>", which for an unbranded WeKan is
// "WeKan" and for a rebranded one is whatever it was rebranded to.
name: source.product ? `${product} (JSON, .zip)` : source.name,
selected: source.key === current,
}))).map(source => ({
...source,
groupHeading: source.groupStart ? (source.groupLabelKey ? TAPi18n.__(source.groupLabelKey) : product) : '',
}));
},
hasImportSource() {
@@ -4,7 +4,10 @@ export function trelloGetMembersToMap(data) {
// we will work on the list itself (an ordered array of objects) when a
// mapping is done, we add a 'wekan' field to the object representing the
// imported member
const membersToMap = data.members;
// A Trello file may have no members (an export of a board nobody else is
// on): there is then nobody to map, not an error. Without the fallback the
// forEach below threw and the Import button silently did nothing.
const membersToMap = Array.isArray(data.members) ? data.members : [];
// auto-map based on username
membersToMap.forEach(importedMember => {
const wekanUser = ReactiveCache.getUser({ username: importedMember.username });
+15
View File
@@ -665,6 +665,10 @@ Template.listBody.helpers({
// just this list/swimlane window (grows with `limit` as the user scrolls)
// plus its reactive total count. Default mode keeps everything in minimongo
// already, so these subscriptions are skipped.
// #6927: the board's archived swimlane ids, so the first swimlane does not
// take their cards as orphans (models/lib/archivedSwimlaneIds.js). One
// tiny document per board; identical subscriptions are shared.
if (list.boardId) tpl.subscribe('boardArchivedSwimlaneIds', list.boardId);
if (list.boardId && isLazyCards(list.boardId)) {
tpl.subscribe('boardCardsWindow', list.boardId, mongoSelector, sortBy, limit);
tpl.subscribe(
@@ -1209,6 +1213,17 @@ Template.linkCardPopup.onCreated(function () {
else if (Utils.boardView() === 'board-view-lists' || !Utils.boardView)
this.swimlaneId = listData.swimlaneId || ReactiveCache.getSwimlane({ boardId: this.boardId })._id;
// #6917: the cards offered for linking come from their own subscription. A
// lazily loaded board's `board` publication ships no cards, so a large board
// picked here listed none. Inside the autorun, the previous selection's
// subscription stops when another board, swimlane or list is chosen.
this.autorun(() => {
const boardId = this.selectedBoardId.get();
if (!boardId) return;
this.subscribe('destinationCards', boardId,
this.selectedListId.get() || null, this.selectedSwimlaneId.get() || null);
});
this.getSortIndex = () => {
let ret;
if (this.position === 'top') {
@@ -0,0 +1,57 @@
/* The Kanban flow policies of the lists (docs/Features/Lists/Flow-Policies.md). */
.list-policy-mark,
.list-commitment-mark {
display: inline-block;
margin-inline-start: 4px;
opacity: 0.75;
}
.list-policy-mark {
cursor: pointer;
}
.list-commitment-mark {
color: #27ae60;
}
.list-policy-popup textarea {
width: 100%;
box-sizing: border-box;
}
.list-policy-popup .list-policy-text {
white-space: pre-wrap;
}
.board-flow-list-settings .board-flow-setting {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-top: 8px;
}
.board-flow-list-settings .board-flow-setting input,
.board-flow-list-settings .board-flow-setting select {
max-width: 50%;
}
.card-person-wip-over {
color: #c0392b;
margin-bottom: 4px;
}
/* Split Doing / Done lists. */
.list-split-counts {
display: inline-block;
margin-inline-start: 4px;
font-size: 0.85em;
opacity: 0.8;
}
.minicard-split-toggle {
float: inline-end;
margin-inline-start: 4px;
cursor: pointer;
opacity: 0.6;
}
.minicard-split-toggle.is-done {
color: #27ae60;
opacity: 1;
}
.minicard.minicard-split-done {
opacity: 0.6;
border-inline-start: 3px solid #27ae60;
}
@@ -0,0 +1,78 @@
//- The Kanban flow policies of the lists (models/lib/boardFlowPolicies.js,
docs/Features/Lists/Flow-Policies.md). Each is shown only when Admin Panel /
Features offers it; a board admin changes them, others see them disabled.
template(name="boardFlowListSettings")
form.board-flow-list-settings
if allowFeature 'list-policies'
div.check-div
a.flex.js-toggle-list-policies(class="{{#if allowsListPolicies}}is-checked{{/if}}" title="{{_ 'show-list-policies'}}")
i.fa(class="{{#if allowsListPolicies}}fa-check{{else}}fa-square-o{{/if}}")
span
i.fa.fa-gavel
| {{_ 'show-list-policies'}}
if allowFeature 'split-lists'
div.check-div
a.flex.js-toggle-split-lists(class="{{#if allowsSplitLists}}is-checked{{/if}}" title="{{_ 'show-split-lists'}}")
i.fa(class="{{#if allowsSplitLists}}fa-check{{else}}fa-square-o{{/if}}")
span
i.fa.fa-columns
| {{_ 'show-split-lists'}}
if allowFeature 'commitment-point'
label.board-flow-setting
span
i.fa.fa-flag-checkered
| {{_ 'commitment-point'}}
select.js-commitment-list(disabled=notBoardAdmin)
each option in commitmentOptions
option(value=option.value selected=option.selected) {{option.title}}
p.quiet {{_ 'commitment-point-hint'}}
if allowFeature 'person-wip-limit'
label.board-flow-setting
span
i.fa.fa-user-times
| {{_ 'person-wip-limit'}}
input.js-person-wip-limit(type="number" min="1" max="99" value=personWipLimit disabled=notBoardAdmin)
//- At the list header: the policy as an icon whose tooltip is the text, and the
commitment point's flag.
template(name="listFlowMarks")
if showPolicy
a.list-policy-mark.js-open-list-policy(title=policy aria-label="{{_ 'list-policy'}}")
i.fa.fa-gavel
if splitCounts
span.list-split-counts(title="{{_ 'list-split'}}") {{_ 'split-counts' doing=splitCounts.doing done=splitCounts.done}}
if isCommitmentPoint
span.list-commitment-mark(title="{{_ 'commitment-point'}}: {{_ 'commitment-point-hint'}}" aria-label="{{_ 'commitment-point'}}")
i.fa.fa-flag-checkered
template(name="listPolicyPopup")
.list-policy-popup
if canEdit
form.js-list-policy-form
textarea.js-list-policy-text(rows="6" maxlength="2000" placeholder="{{_ 'list-policy-placeholder'}}")= policy
input.primary(type="submit" value="{{_ 'save'}}")
else
if policy
p.list-policy-text= policy
else
p.quiet {{_ 'list-policy-placeholder'}}
//- In the opened card's Members section: each of its people over the board's
WIP limit per person.
template(name="cardPersonWipWarnings")
each warning in warnings
.card-person-wip-over.js-card-person-wip-over
i.fa.fa-user-times
| {{_ 'person-wip-over' user=warning.name count=warning.count limit=warning.limit}}
//- On a minicard of a split list: whether it is Done here, and the toggle for
whoever may change the card.
template(name="minicardSplitDone")
if inSplitList
if canModifyCard
a.minicard-split-toggle.js-minicard-split-done(class="{{#if splitDone}}is-done{{/if}}" title="{{#if splitDone}}{{_ 'split-done'}}{{else}}{{_ 'mark-split-done'}}{{/if}}" aria-pressed="{{#if splitDone}}true{{else}}false{{/if}}")
i.fa(class="{{#if splitDone}}fa-check-circle{{else}}fa-circle-o{{/if}}")
else
if splitDone
span.minicard-split-toggle.is-done(title="{{_ 'split-done'}}")
i.fa.fa-check-circle
+134
View File
@@ -0,0 +1,134 @@
// The Kanban flow policies of the lists (models/lib/boardFlowPolicies.js,
// docs/Features/Lists/Flow-Policies.md): Board Settings / List, the marks at
// a list's header, the list's policy popup and the opened card's warning.
import { Meteor } from 'meteor/meteor';
import { Template } from 'meteor/templating';
import { ReactiveCache } from '/imports/reactiveCache';
import { allowFeature } from '/client/lib/instanceFeatures';
import { TAPi18n } from '/imports/i18n';
import { Utils } from '/client/lib/utils';
import Lists from '/models/lists';
const { normalizePolicy, overPersonWip, isSplitDone, splitCounts } = require('/models/lib/boardFlowPolicies');
// Whether a list of `board` is drawn split into Doing and Done.
const splitShown = (board, list) => Boolean(board?.allowsSplitLists === true && list?.split === true && allowFeature('split-lists'));
export { splitShown };
const board = () => Utils.getCurrentBoard();
const isBoardAdmin = () => Boolean(ReactiveCache.getCurrentUser()?.isBoardAdmin?.());
Template.boardFlowListSettings.helpers({
allowsListPolicies() { return board()?.allowsListPolicies === true; },
allowsSplitLists() { return board()?.allowsSplitLists === true; },
notBoardAdmin() { return !isBoardAdmin(); },
personWipLimit() { return board()?.personWipLimit || ''; },
commitmentOptions() {
const current = board();
if (!current) return [];
const lists = ReactiveCache.getLists({ boardId: current._id, archived: false }, { sort: { sort: 1 } }) || [];
const chosen = current.commitmentListId || '';
return [{ value: '', title: '-', selected: !chosen },
...lists.map(list => ({ value: list._id, title: list.title, selected: list._id === chosen }))];
},
});
Template.boardFlowListSettings.events({
'click .js-toggle-list-policies'(event) {
event.preventDefault();
const current = board();
if (current && isBoardAdmin()) current.setAllowsListPolicies(current.allowsListPolicies !== true);
},
'click .js-toggle-split-lists'(event) {
event.preventDefault();
const current = board();
if (current && isBoardAdmin()) current.setAllowsSplitLists(current.allowsSplitLists !== true);
},
'change .js-commitment-list'(event) {
const current = board();
if (current && isBoardAdmin()) current.setCommitmentListId(event.currentTarget.value);
},
'change .js-person-wip-limit'(event) {
const current = board();
if (!current || !isBoardAdmin()) return;
current.setPersonWipLimit(event.currentTarget.value.trim()).catch(() => {
window.alert(TAPi18n.__('person-wip-limit'));
});
},
'submit .board-flow-list-settings'(event) { event.preventDefault(); },
});
// The list header's marks; the data context is the list.
Template.listFlowMarks.helpers({
showPolicy() {
const current = ReactiveCache.getBoard(this.boardId);
return Boolean(current?.allowsListPolicies === true && this.policy && allowFeature('list-policies'));
},
splitCounts() {
const current = ReactiveCache.getBoard(this.boardId);
if (!splitShown(current, this)) return null;
return splitCounts(ReactiveCache.getCards({ listId: this._id, archived: false }, { fields: { listId: 1, flow: 1, archived: 1 } }) || []);
},
isCommitmentPoint() {
const current = ReactiveCache.getBoard(this.boardId);
return Boolean(current?.commitmentListId && current.commitmentListId === this._id && allowFeature('commitment-point'));
},
});
Template.listFlowMarks.events({
'click .js-open-list-policy': Popup.open('listPolicy'),
});
Template.listPolicyPopup.helpers({
// Whoever may write to the list's board (models/lib/boardRoleCapabilities.js),
// the same as the server's Lists allow rule.
canEdit() {
return Utils.currentUserCan('write', ReactiveCache.getBoard(this.boardId));
},
});
Template.listPolicyPopup.events({
async 'submit .js-list-policy-form'(event, tpl) {
event.preventDefault();
let policy;
try {
policy = normalizePolicy(tpl.find('.js-list-policy-text').value);
} catch (e) {
return;
}
const modifier = policy ? { $set: { policy } } : { $unset: { policy: '' } };
await Lists.updateAsync(this._id, modifier);
Popup.back();
},
});
// The opened card's people over the WIP limit per person; the data is the card.
Template.cardPersonWipWarnings.helpers({
warnings() {
const card = this.card;
const current = card && ReactiveCache.getBoard(card.boardId);
if (!current || !current.personWipLimit || !allowFeature('person-wip-limit')) return [];
const cards = ReactiveCache.getCards({ boardId: card.boardId, archived: false },
{ fields: { assignees: 1, members: 1, dueComplete: 1, archived: 1, type: 1 } }) || [];
return overPersonWip(card, cards, current.personWipLimit).map(row => {
const user = ReactiveCache.getUser(row.userId);
return { ...row, name: (user && (user.profile?.fullname || user.username)) || row.userId };
});
},
});
// The minicard's Done here toggle; the data is the card.
Template.minicardSplitDone.helpers({
inSplitList() {
const card = this;
return splitShown(ReactiveCache.getBoard(card.boardId), ReactiveCache.getList(card.listId));
},
splitDone() { return isSplitDone(this); },
canModifyCard() { return Utils.canModifyCard(this); },
});
Template.minicardSplitDone.events({
'click .js-minicard-split-done'(event) {
event.preventDefault();
event.stopPropagation();
Meteor.callAsync('setCardFlow', this._id, { splitDone: !isSplitDone(this) })
.catch(error => window.alert((error && (error.reason || error.error)) || String(error)));
},
});
+43 -11
View File
@@ -35,6 +35,7 @@ template(name="listHeader")
|&nbsp;(
span(class="{{#if exceededWipLimit}}highlight{{/if}}") {{cardsCountWhole}}
|/#{wipLimit.value})
+listFlowMarks
if showCardsCountForList cardsCountWhole
span.cardCount {{cardsCount containerSwimlaneId}} {{cardsCountForListIsOne cardsCountWhole}}
if hasNumberFieldsSum
@@ -88,6 +89,8 @@ template(name="listHeader")
span(class="{{#if exceededWipLimit}}highlight{{/if}}") {{cardsCountWhole}}
|/#{wipLimit.value})
unless collapsed
//- List policy and commitment point (listFlowPolicies.jade).
+listFlowMarks
if showCardsCountForList cardsCountWhole
span.cardCount {{cardsCount containerSwimlaneId}} {{cardsCountForListIsOne cardsCountWhole}}
if hasNumberFieldsSum
@@ -165,9 +168,13 @@ template(name="editListTitleForm")
i.fa.fa-times-thin
template(name="listActionPopup")
//- Grouped under headings by what the entries act on (2026-11-20); every
entry keeps its own condition, and a heading sits inside the same condition
as its group.
//- Copy link, FIRST and above every permission check - see the swimlane
popup: copying an address is reading, not editing.
models/lib/boardItemUrl.js, docs/Features/General/Board-Item-Links.md
h4.menu-group-heading {{_ 'menu-group-share'}}
ul.pop-over-list
li: a.js-copy-list-link
i.fa.fa-link
@@ -196,6 +203,7 @@ template(name="listActionPopup")
Import WRITES, so it is offered only to somebody who may change the board;
`canImportIntoBoard` is the same question the popup itself asks
(client/components/boards/exportScope.js).
h4.menu-group-heading {{_ 'menu-group-export'}}
ul.pop-over-list
li: a.js-export-list
i.fa.fa-upload
@@ -207,6 +215,7 @@ template(name="listActionPopup")
hr
unless currentUser.isReadOnly
unless currentUser.isReadAssignedOnly
h4.menu-group-heading {{_ 'add'}}
ul.pop-over-list
li
a.js-add-card.list-header-plus-top
@@ -229,6 +238,7 @@ template(name="listActionPopup")
the fixed-width value it used to set is now a board-wide admin toggle
there too - a menu entry for the same thing was a second place to look
for it. client/components/sidebar/sidebar.jade
h4.menu-group-heading {{_ 'watch'}}
ul.pop-over-list
li
a.js-toggle-watch-list
@@ -241,6 +251,7 @@ template(name="listActionPopup")
unless currentUser.isCommentOnly
unless currentUser.isReadOnly
unless currentUser.isReadAssignedOnly
h4.menu-group-heading {{_ 'edit'}}
unless currentUser.isWorker
ul.pop-over-list
li
@@ -253,10 +264,12 @@ template(name="listActionPopup")
a.js-select-cards
i.fa.fa-select-square
| {{_ 'list-select-cards'}}
li
a.js-archive-list-cards
i.fa.fa-archive
| {{_ 'list-archive-cards'}}
if mayWriteList
li
a.js-archive-list-cards
i.fa.fa-archive
| {{_ 'list-archive-cards'}}
h4.menu-group-heading {{_ 'settings'}}
if currentUser.isBoardAdmin
ul.pop-over-list
li
@@ -267,6 +280,22 @@ template(name="listActionPopup")
a.js-list-permissions
i.fa.fa-lock
| {{_ 'listPermissionsPopup-title'}}
//- The list's policy, when the board shows list policies
(listFlowPolicies.jade); every member who may edit the list.
if showsListPolicies
ul.pop-over-list
li
a.js-list-policy
i.fa.fa-gavel
| {{_ 'list-policy'}}
//- Split into Doing and Done (listFlowPolicies.jade), when the board
allows split lists.
if showsSplitLists
ul.pop-over-list
li
a.js-toggle-list-split
i.fa(class="{{#if split}}fa-check-square-o{{else}}fa-square-o{{/if}}")
| {{_ 'list-split'}}
//- #3847: board-wide toggle, exposed here per the maintainer's
instruction to reach it from the List hamburger menu. See
models/boards.js's stickyListHeaders and list.css's use of the
@@ -289,6 +318,7 @@ template(name="listActionPopup")
| &nbsp;
i.fa.fa-check-circle(class="{{#if syncSource.enabled}}list-sync-active{{else}}list-sync-paused{{/if}}")
hr
h4.menu-group-heading {{_ 'menu-group-move-copy'}}
ul.pop-over-list
unless currentUser.isWorker
li
@@ -301,13 +331,15 @@ template(name="listActionPopup")
i.fa.fa-arrow-right
| {{_ 'moveListPopup-title'}}
unless currentUser.isWorker
hr
ul.pop-over-list
li
a.js-close-list
i.fa.fa-arrow-right
i.fa.fa-archive
| {{_ 'archive-list'}}
if mayWriteList
hr
h4.menu-group-heading {{_ 'archives'}}
ul.pop-over-list
li
a.js-close-list
i.fa.fa-arrow-right
i.fa.fa-archive
| {{_ 'archive-list'}}
hr
ul.pop-over-list
li
+26
View File
@@ -11,6 +11,7 @@ import { LIST_COLORS } from '/models/metadata/colors';
import { isHexColor, toHex } from '/models/lib/contrastColor';
import { MultiSelection } from '/client/lib/multiSelection';
import { Utils } from '/client/lib/utils';
import { listCan } from '/models/lib/listPermissions';
import { lazyListCardCount } from '/client/lib/lazyCards';
import { currentUserWith } from '/client/lib/currentUserWith';
import {
@@ -451,10 +452,30 @@ Template.listHeader.events({
});
Template.listActionPopup.helpers({
showsSplitLists() {
const board = ReactiveCache.getBoard(this.boardId);
return board?.allowsSplitLists === true
&& require('/client/lib/instanceFeatures').allowFeature('split-lists');
},
showsListPolicies() {
const board = ReactiveCache.getBoard(this.boardId);
return board?.allowsListPolicies === true
&& require('/client/lib/instanceFeatures').allowFeature('list-policies');
},
isBoardAdmin() {
return ReactiveCache.getCurrentUser()?.isBoardAdmin();
},
// Decided 2026-11-18 (TODO.md): a list that refuses the viewer's role a
// write (#4527) also refuses archiving it and archiving its cards, so the
// menu does not offer them (server/listPermissions.js refuses them anyway).
mayWriteList() {
const list = Template.currentData();
if (!list || !list.roleExceptions) return true;
const board = ReactiveCache.getBoard(list.boardId);
return !!(board && listCan(board, list, Meteor.userId(), 'write'));
},
isWipLimitEnabled() {
return Template.currentData().getWipLimit('enabled');
},
@@ -600,6 +621,11 @@ Template.listActionPopup.events({
Popup.back();
},
'click .js-set-wip-limit': Popup.open('setWipLimit'),
'click .js-list-policy': Popup.open('listPolicy'),
async 'click .js-toggle-list-split'(event) {
event.preventDefault();
await Lists.updateAsync(this._id, this.split === true ? { $unset: { split: '' } } : { $set: { split: true } });
},
'click .js-list-permissions': Popup.open('listPermissions'),
'click .js-copy-list': Popup.open('copyList'),
'click .js-move-list': Popup.open('moveList'),
+14
View File
@@ -1543,3 +1543,17 @@ body.mobile-mode .pop-over .content-wrapper {
.pop-over[data-popup='boardCardSettingsPopup'] .content-container > .clearfix {
display: none;
}
/* A heading over a group of a menu's entries (the list, card and swimlane
menus, 2026-11-20): not an entry - nothing to click. */
.pop-over .menu-group-heading {
margin: 0;
padding: 8px 10px 2px;
font-size: 0.8em;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 0.04em;
color: #6b778c;
cursor: default;
pointer-events: none;
}
+10 -9
View File
@@ -26,12 +26,6 @@ template(name="adminProblems")
+problemsSummary
else if isPane 'features-performance'
+featuresPerformance
else if isPane 'features-security'
+featuresSecurity
else if isPane 'features-delete'
+featuresDelete
else if isPane 'features-notifications'
+featuresNotifications
else if isPane 'features-backup'
+backupRunsStatus(settingsLink=true)
else if isPane 'report-security'
@@ -148,7 +142,7 @@ template(name="featuresPerformance")
.title {{_ 'cards-loading'}}
p.description {{_ 'cards-loading-description'}}
//- Admin Panel / Problems / Security.
//- Admin Panel / Settings / Security (moved from Problems on 2026-11-19).
template(name="featuresSecurity")
ul.setting-detail
li
@@ -166,6 +160,13 @@ template(name="featuresSecurity")
.materialCheckBox(class="{{#if disableAllImport}}is-checked{{/if}}")
span {{_ 'disable-all-import'}}
p.description {{_ 'disable-all-import-description'}}
//- The largest import upload (server/lib/importDiskSpace.js); empty is no
limit, only the free disk space.
li
label.flex
span {{_ 'import-max-megabytes'}}
input.js-import-max-megabytes(type="number" min="0" step="1" value="{{importMaxMegabytes}}" placeholder="{{_ 'import-max-megabytes-none'}}")
p.description {{_ 'import-max-megabytes-description'}}
li
a.flex.js-toggle-disable-all-export
.materialCheckBox(class="{{#if disableAllExport}}is-checked{{/if}}")
@@ -192,7 +193,7 @@ template(name="featuresSecurity")
span {{_ 'anonymize-export-users'}}
p.description {{_ 'anonymize-export-users-description'}}
//- Admin Panel / Problems / Delete.
//- Admin Panel / Settings / Delete (moved from Problems on 2026-11-19).
template(name="featuresDelete")
ul.setting-detail
li
@@ -202,7 +203,7 @@ template(name="featuresDelete")
p.description {{_ 'enable-permanent-delete-description'}}
p.description {{permanentDeleteRecoveryDescription}}
//- Admin Panel / Problems / Notifications.
//- Admin Panel / Settings / Activities and notifications (moved from Problems on 2026-11-19).
template(name="featuresNotifications")
ul.setting-detail
li
+17 -14
View File
@@ -298,19 +298,10 @@ Template.adminProblems.onDestroyed(function () {
// are now the single .js-left-menu-item one below.
const PROBLEMS_MENU = [
{ id: 'report-summary', icon: 'fa-list', labelKey: 'summary' },
{ separator: true },
// Two groups, each named by a heading rather than by another entry: there is
// nothing to click on a group title (docs/Features/All-Boards/Left-Menu.md). Both use an
// i18n key the app already has.
{ heading: true, labelKey: 'settings' },
// Moved here from Admin Panel / Features. They are settings rather than reports -
// which is what this heading says - but they are what an admin reaches for when
// something is unsafe or noisy, which is what this page is about. Performance
// sits with the reports below, beside the Speed / Tests / CPU usage streams it is
// about.
{ id: 'features-security', icon: 'fa-shield', labelKey: 'features-security', emoji: true },
{ id: 'features-delete', icon: 'fa-trash', labelKey: 'delete' },
{ id: 'features-notifications', icon: 'fa-bell', labelKey: 'features-notifications', emoji: true },
// Security, Delete and Notifications were a "Settings" group here; they are
// settings, not problems, and moved to Admin Panel / Settings on 2026-11-19
// (Security, Activities and notifications, Delete). Their old addresses
// redirect there (models/lib/adminUrls.js MOVED_PANES).
// Did last night's backup work? The status and history of the Admin Panel
// backup (backupRunsStatus.jade), with a link to its settings in Attachments /
// Backup. A failed or overdue backup is also listed on Summary.
@@ -535,7 +526,7 @@ function switchMenu(event, tmpl) {
// nothing to fetch. Everything else falls through to loadReport().
const SELF_LOADING_PANES = [
'report-summary',
'features-performance', 'features-security', 'features-delete', 'features-notifications',
'features-performance',
// backupRunsStatus.jade loads its own data (the backupHistory method).
'features-backup',
'report-security', 'report-speed', 'report-tests', 'report-cpu', 'report-ram', 'report-disk',
@@ -1270,6 +1261,10 @@ const featurePaneHelpers = {
disableAllExport() {
return (ReactiveCache.getCurrentSetting() || {}).disableAllExport;
},
importMaxMegabytes() {
const mb = (ReactiveCache.getCurrentSetting() || {}).importMaxMegabytes;
return mb > 0 ? mb : '';
},
disableImportAvatars() {
return (ReactiveCache.getCurrentSetting() || {}).disableImportAvatars;
},
@@ -1311,6 +1306,14 @@ const featurePaneEvents = {
'click .js-toggle-disable-all-export'() {
toggleSettingField('disableAllExport');
},
// Empty or 0 is no limit; anything else a whole number of megabytes.
'change .js-import-max-megabytes'(event) {
const setting = ReactiveCache.getCurrentSetting();
if (!setting) return;
const mb = Math.floor(Number(event.currentTarget.value));
Settings.update(setting._id, Number.isFinite(mb) && mb > 0
? { $set: { importMaxMegabytes: mb } } : { $unset: { importMaxMegabytes: '' } });
},
'click .js-toggle-disable-import-avatars'() {
toggleSettingField('disableImportAvatars');
},
@@ -187,6 +187,7 @@ template(name="orgRow")
| {{_ 'yes'}}
else
| {{_ 'no'}}
td.org-feature-profile {{featureProfileNames}}
td.text-center
input.js-toggle-org-feature(type="checkbox", data-feature="orgSharedTemplates", checked=orgData.orgSharedTemplates)
td.text-center
@@ -227,6 +228,7 @@ template(name="teamRow")
| {{_ 'yes'}}
else
| {{_ 'no'}}
td.team-feature-profile {{featureProfileNames}}
td.text-center
input.js-toggle-team-feature(type="checkbox", data-feature="teamSharedTemplates", checked=teamData.teamSharedTemplates)
td.text-center
@@ -285,6 +287,7 @@ template(name="peopleRow")
| {{_ 'yes'}}
else
| {{_ 'no'}}
td.people-feature-profile {{featureProfileName}}
td.account-active-status
if userData.loginDisabled
span.text-red.js-toggle-active-status(data-user-id=userData._id, data-is-active="false", title="{{_ 'admin-people-user-inactive'}}")
+67 -26
View File
@@ -661,6 +661,10 @@ function peopleDocs(tpl) {
// that had no date and showed "-", although the people publication
// sends it.
lastConnectionDate: 1,
// #6837: the Feature profiles column decides from these three.
featureProfileId: 1,
teams: 1,
orgs: 1,
},
}).fetch();
// The server's order, not minimongo's: `$in` does not preserve it.
@@ -672,6 +676,9 @@ const PEOPLE_COLUMNS = [
{ labelKey: 'username' },
{ labelKey: 'email' },
{ labelKey: 'admin' },
// #6837: which feature profile applies to the person - edited in Admin Panel
// / Settings / Feature profiles, shown here so it can be found from People.
{ labelKey: 'feature-profiles' },
{ labelKey: 'active-person' },
{ labelKey: 'location' },
{ labelKey: 'accounts-lockout-status' },
@@ -697,6 +704,8 @@ const TEAM_COLUMNS = [
{ labelKey: 'website' },
{ labelKey: 'createdAt' },
{ labelKey: 'active-team' },
// #6837: the feature profiles assigned to this team (Settings / Feature profiles).
{ labelKey: 'feature-profiles' },
{ headerTemplate: 'teamFeatureHeader',
headerData: { labelKey: 'team-shared-templates', feature: 'teamSharedTemplates' } },
{ headerTemplate: 'teamFeatureHeader',
@@ -713,6 +722,8 @@ const ORG_COLUMNS = [
{ labelKey: 'website' },
{ labelKey: 'createdAt' },
{ labelKey: 'active-org' },
// #6837: the feature profiles assigned to this organization.
{ labelKey: 'feature-profiles' },
{ headerTemplate: 'orgFeatureHeader',
headerData: { labelKey: 'org-shared-templates', feature: 'orgSharedTemplates' } },
{ headerTemplate: 'orgFeatureHeader',
@@ -1464,34 +1475,47 @@ Template.rolesGeneral.events({
// Feature #3313 "Shared templates": admin view of users' shareable template
// boards, grouped by Organization / Team / email Domain. The three checkboxes
// are LIVE view filters (no Save button) — each toggles a grouping dimension and
// the selection is remembered (persisted in localStorage) so it survives reload.
const SHARED_TEMPLATES_SCOPE_KEY = 'sharedTemplatesScopes';
const SHARED_TEMPLATES_VALID_SCOPES = ['organizations', 'teams', 'domains'];
// write the instance setting Settings.sharedTemplatesScopes at once (no Save
// button, like every checkbox here): it is both which groupings this view lists
// and which group kinds every user may share a template board with
// (models/lib/sharedTemplatesScopes.js). It used to live in this browser's
// localStorage, so it differed per browser and was empty for everyone else.
const sharedScopes = require('/models/lib/sharedTemplatesScopes');
function loadSharedTemplatesScopes() {
try {
const raw = window.localStorage.getItem(SHARED_TEMPLATES_SCOPE_KEY);
const arr = raw ? JSON.parse(raw) : [];
return Array.isArray(arr)
? arr.filter(s => SHARED_TEMPLATES_VALID_SCOPES.includes(s))
: [];
} catch (e) {
return [];
}
return sharedScopes.sharedTemplatesScopes(ReactiveCache.getCurrentSetting());
}
function saveSharedTemplatesScopes(scopes) {
const setting = ReactiveCache.getCurrentSetting();
if (!setting) return;
Settings.update(setting._id, {
$set: { sharedTemplatesScopes: sharedScopes.normalizeScopes(scopes) },
});
}
// An install that has never stored the setting takes over the ticks an admin
// made in this browser while it was localStorage, once; the old key is then
// dropped so it cannot come back.
function carryOverLegacyScopes() {
let legacy = [];
try {
window.localStorage.setItem(SHARED_TEMPLATES_SCOPE_KEY, JSON.stringify(scopes));
const raw = window.localStorage.getItem(sharedScopes.LEGACY_STORAGE_KEY);
legacy = sharedScopes.normalizeScopes(raw ? JSON.parse(raw) : []);
window.localStorage.removeItem(sharedScopes.LEGACY_STORAGE_KEY);
} catch (e) {
// ignore storage errors (e.g. private mode)
return;
}
const setting = ReactiveCache.getCurrentSetting();
if (legacy.length && setting && setting.sharedTemplatesScopes === undefined) {
saveSharedTemplatesScopes(legacy);
}
}
Template.templatesGeneral.onCreated(function () {
// Restore the previously-checked scopes (empty by default → nothing shown).
this.selectedScopes = new ReactiveVar(loadSharedTemplatesScopes());
carryOverLegacyScopes();
// The instance setting, reactively: another admin's change shows here too.
this.selectedScopes = { get: loadSharedTemplatesScopes };
// Raw rows returned by the admin-only method (one entry per user whose
// Templates board is non-empty).
this.sharedTemplates = new ReactiveVar([]);
@@ -1587,31 +1611,48 @@ Template.templatesGeneral.events({
'click a.js-toggle-template-scope'(event, tpl) {
event.preventDefault();
const scope = $(event.currentTarget).data('scope');
const current = tpl.selectedScopes.get().slice();
const idx = current.indexOf(scope);
if (idx >= 0) {
current.splice(idx, 1);
} else {
current.push(scope);
}
tpl.selectedScopes.set(current);
saveSharedTemplatesScopes(current);
saveSharedTemplatesScopes(sharedScopes.toggleScope(tpl.selectedScopes.get(), scope));
},
});
// #6837: the names of the feature profiles a team or organization is named in,
// in the page's order (the first applies to a member without their own), or '-'.
function groupProfileNames(field, id) {
const { storedProfiles } = require('/models/lib/featureProfiles');
const names = storedProfiles(ReactiveCache.getCurrentSetting())
.filter(profile => id && (profile[field] || []).includes(id)).map(profile => profile.name);
return names.length ? names.join(', ') : '-';
}
Template.orgRow.helpers({
orgData() {
return this.org || ReactiveCache.getOrg(this.orgId);
},
featureProfileNames() {
const org = this.org || ReactiveCache.getOrg(this.orgId);
return groupProfileNames('orgIds', org && org._id);
},
});
Template.teamRow.helpers({
teamData() {
return this.team || ReactiveCache.getTeam(this.teamId);
},
featureProfileNames() {
const team = this.team || ReactiveCache.getTeam(this.teamId);
return groupProfileNames('teamIds', team && team._id);
},
});
Template.peopleRow.helpers({
// #6837: the feature profile that applies to this person, or '-'.
featureProfileName() {
// The row's user, found the way userData below finds it.
const id = this._id || (this.user && this.user._id);
const doc = (id && ReactiveCache.getUser(id)) || this.user || null;
const profile = require('/models/lib/featureProfiles').profileForUser(ReactiveCache.getCurrentSetting(), doc);
return profile ? profile.name : '-';
},
loginCountries() {
const userId = this.user && this.user._id;
return (this.countries || []).map(country => ({ ...country, userId }));
@@ -97,7 +97,7 @@ template(name="problemsSummary")
input.js-problem-check(type="checkbox" data-stream="{{area.stream}}")
i.fa.fa-exclamation-triangle
span.admin-problem-path {{_ 'admin-panel'}} → {{_ 'problems'}} → {{areaLabel area.stream}}
span.admin-problem-count {{area.count}} {{_ 'new-problems'}}
span.admin-problem-count {{_ 'new-problems-count' count=area.count}}
.admin-problem-actions
button.js-ack-checked.primary {{_ 'acknowledge'}}
button.js-clear-checked {{_ 'clear-problems'}}
@@ -104,9 +104,11 @@ Template.problemsSummary.helpers({
// A key of its own: List Sync's "never synced" may be translated as
// "never synced", which reads wrong beside "Last Run".
if (!d || !d.at) return TAPi18n.__('data-health-never-run');
// "<when> - <checks that found something>/<checks>"
// "<when> - Checks with findings: <found> / <checks>". A bare "8/31"
// left the admin guessing what was counted.
const at = new Date(d.at).toISOString().replace('T', ' ').slice(0, 16) + ' UTC';
const text = `${at} - ${d.found}/${d.checks}`;
const found = TAPi18n.__('data-health-checks-found', { found: d.found, checks: d.checks });
const text = `${at} - ${found}`;
return d.error ? `${text} - ${d.error}` : text;
},
repairRunning() {
+375 -326
View File
@@ -26,7 +26,20 @@ template(name="setting")
//- templates are global, so the pane renders here.
+statistics
else if isTableVisibilityModeSetting
+tableVisibilityModeSettings
//- Security, Activities and notifications and Delete below moved
here from Admin Panel / Problems (2026-11-19); their templates and
handlers stay in adminProblems.jade / adminProblems.js.
+tableVisibilityModeSettings(part="appearance")
else if isFeaturesSetting
+tableVisibilityModeSettings(part="features")
else if isFeatureProfilesSetting
+tableVisibilityModeSettings(part="profiles")
else if isPrivacySecuritySetting
+featuresSecurity
else if isActivitiesSetting
+featuresNotifications
else if isDeleteSetting
+featuresDelete
else if isAnnouncementSetting
+announcementSettings
else if isAccessibilitySetting
@@ -322,335 +335,371 @@ template(name='email')
//- groups under it rather than as several pages.
template(name='tableVisibilityModeSettings')
ul#tableVisibilityMode-setting.setting-detail
//- Every group here writes the INSTANCE settings, so it is site-admin only.
//- The one exception is "Change color" below, which an Organization's own
//- admin sets for their Organization (models/lib/tenantAdmin.js themeTarget).
if isSiteAdmin
li
h2.admin-pane-group-title {{_ 'all-boards-hide'}}
//- One checkbox per setting instead of a Yes/No pair: each of these is on or
//- off, and the group's own title already says what ticking one means (All
//- Boards: Hide …). Same checkbox as everywhere else in the Admin Panel -
//- Announcement's "Active System-Wide Announcement" - so it has the plain
//- square when off, the green tick when on, and the animation between.
//- The Save button below reads the ticks, as it read the radios.
li.tableVisibilityMode-form
//- "Public boards", under the "All Boards: Hide" title above: ticked hides
//- them, which is what allowPrivateOnly does. The setting's own key keeps its
//- sentence - boardBody.jade shows it as the message on a board you may not
//- open, where a two-word label would say nothing.
a.flex.js-toggle-all-boards-hide
.materialCheckBox#accounts-allowPrivateOnly(class="{{#if allowPrivateOnly}}is-checked{{/if}}")
span {{_ 'public-boards'}}
li.tableVisibilityMode-form
//- #4475: ticked forbids anyone who is not a site admin from creating
//- new boards. Same Save button and same collection as the setting
//- above - only the checked key differs.
a.flex.js-toggle-all-boards-hide
.materialCheckBox#accounts-boardCreationAdminOnly(class="{{#if boardCreationAdminOnly}}is-checked{{/if}}")
span {{_ 'board-creation-admin-only'}}
li.tableVisibilityMode-form
//- #4575: ticked lets a board admin open an Instance or Public board
//- to editing by every signed-in user. Off: no board can.
a.flex.js-toggle-all-boards-hide
.materialCheckBox#accounts-allowInstanceEditing(class="{{#if allowInstanceEditing}}is-checked{{/if}}")
span {{_ 'instance-editing-allowed'}}
li.hideBoardActivities-form
a.flex.js-toggle-all-boards-hide
.materialCheckBox#hide-board-activities(class="{{#if currentSetting.hideBoardActivitiesOnAllBoards}}is-checked{{/if}}")
span {{_ 'board-activities'}}
li.tableVisibilityMode-form
a.flex.js-toggle-all-boards-hide
.materialCheckBox#hide-card-counter-list(class="{{#if currentSetting.hideCardCounterList}}is-checked{{/if}}")
span {{_ 'card-counter-list'}}
li.tableVisibilityMode-form
a.flex.js-toggle-all-boards-hide
.materialCheckBox#hide-board-member-list(class="{{#if currentSetting.hideBoardMemberList}}is-checked{{/if}}")
span {{_ 'board-member-list'}}
li.tableVisibilityMode-form
.title {{_ 'wait-spinner'}}
+selectSpinnerName(spinnerName=currentSetting.spinnerName)
//- #4421: an org whose "Public" means "public within our organization"
//- rather than public on the internet can replace the wording shown
//- under Private/Public in the board visibility popup and the
//- create-board popup. Empty = unchanged i18n default text
//- (imports/i18n/lib/visibilityDesc.js).
li.tableVisibilityMode-form
.title {{_ 'custom-private-desc'}}
.form-group
textarea.wekan-form-control#custom-private-board-desc(data-editor-submit=".js-visibility-all-boards-save" rows="2" placeholder="{{_ 'custom-private-desc-placeholder'}}")= currentSetting.customPrivateBoardDesc
li.tableVisibilityMode-form
.title {{_ 'custom-public-desc'}}
.form-group
textarea.wekan-form-control#custom-public-board-desc(data-editor-submit=".js-visibility-all-boards-save" rows="2" placeholder="{{_ 'custom-public-desc-placeholder'}}")= currentSetting.customPublicBoardDesc
li
//- One Save per section, at its end, above the rule that closes it. It writes
//- this section's fields and nothing else, so saving one group can never
//- overwrite what you were editing in another.
button.js-visibility-all-boards-save.primary {{_ 'save'}}
li.admin-pane-group-separator
hr
//- #6736: which optional features this WeKan offers. A ticked feature is
//- on for everyone; an unticked one is hidden from the interface (not
//- greyed out), keeps its data, and changes no permission. The rows come
//- from models/lib/instanceFeatures.js, so the page and the places that
//- hide a feature read the same catalog.
li
h2.admin-pane-group-title {{_ 'features'}}
li.tableVisibilityMode-form
.title {{_ 'features-desc'}}
each featureRows
li.tableVisibilityMode-form.js-feature-row(data-feature=key)
a.flex.js-toggle-feature
.materialCheckBox.js-feature-enabled(class="{{#if enabled}}is-checked{{/if}}")
span {{_ labelKey}}
if awaitingApproval
span.feature-awaiting-approval {{_ 'feature-awaiting-approval'}}
.feature-desc {{_ descKey}}
li.tableVisibilityMode-form
a.flex.js-toggle-feature
.materialCheckBox#feature-approval-required(class="{{#if currentSetting.featureApprovalRequired}}is-checked{{/if}}")
span {{_ 'feature-approval-required'}}
li.tableVisibilityMode-form
a.flex.js-toggle-feature
.materialCheckBox#feature-preview-admins(class="{{#if currentSetting.featurePreviewAdmins}}is-checked{{/if}}")
span {{_ 'feature-preview-admins'}}
li.tableVisibilityMode-form
.title {{_ 'feature-pilot-users'}}
.form-group
textarea.wekan-form-control#feature-pilot-users(data-editor-submit=".js-visibility-features-save" rows="2" placeholder="{{_ 'feature-pilot-users-placeholder'}}")= featurePilotUsernames
//- The card fields every board shows: one tick per field type of Board
//- Settings / Card, all ticked by default. Unticked hides it on every
//- card, minicard and Board Settings / Card - visibility only, no data or
//- board setting changes. No ordering here: the order is each board's own.
//- models/lib/cardFieldVisibility.js
li.tableVisibilityMode-form
.title {{_ 'card-field-visibility'}}
.feature-desc {{_ 'card-field-visibility-desc'}}
each cardFieldRows
li.tableVisibilityMode-form.js-card-field-row(data-card-field=key)
a.flex.js-toggle-feature
.materialCheckBox.js-card-field-enabled(class="{{#if enabled}}is-checked{{/if}}")
span.card-field-visibility-label
each icon in icons
i.fa(class=icon)
| {{title}}
li
button.js-visibility-features-save.primary {{_ 'save'}}
span.js-visibility-features-status
//- #2460: SQRL sign-in, and #4198: public boards on the fediverse
(ActivityPub) - optional features this WeKan offers, each off by
default and saved as soon as it is switched.
li.tableVisibilityMode-form
a.flex.js-toggle-sqrl
.materialCheckBox#sqrl-enabled(class="{{#if currentSetting.sqrlEnabled}}is-checked{{/if}}")
span {{_ 'sqrl-enabled'}}
.feature-desc {{_ 'sqrl-desc'}}
li.tableVisibilityMode-form
a.flex.js-toggle-activity-pub
.materialCheckBox#activity-pub-enabled(class="{{#if currentSetting.activityPubEnabled}}is-checked{{/if}}")
span {{_ 'activity-pub-enabled'}}
.feature-desc {{_ 'activity-pub-desc'}}
li.admin-pane-group-separator
hr
//- #2217: boards may show their Rules to members, read-only. Off by
default; each board admin then decides on the board's Rules page.
li
h2.admin-pane-group-title {{_ 'rules'}}
li.tableVisibilityMode-form
a.flex.js-toggle-rules-read-only
.materialCheckBox#rules-read-only-for-members(class="{{#if currentSetting.rulesReadOnlyForMembers}}is-checked{{/if}}")
span {{_ 'rules-read-only-for-members'}}
.feature-desc {{_ 'rules-read-only-for-members-desc'}}
li.admin-pane-group-separator
hr
//- Optional APIs (models/lib/optionalApis.js): REST APIs in the shape of
Trello's, Jira's, GitHub's and Gitea's, so their clients can use WeKan
as their backend. Each is off until ticked, and has no rights of its
own: it is WeKan's REST API, with the caller's own permissions.
li
h2.admin-pane-group-title {{_ 'optional-apis'}}
li.tableVisibilityMode-form
.title {{_ 'optional-apis-desc'}}
each optionalApiRows
li.tableVisibilityMode-form.js-optional-api-row(data-api=key)
a.flex.js-toggle-feature
.materialCheckBox.js-optional-api-enabled(class="{{#if enabled}}is-checked{{/if}}")
span {{_ labelKey}}
.feature-desc {{_ descKey}}
.feature-desc
code {{base}}
li
button.js-optional-apis-save.primary {{_ 'save'}}
span.js-optional-apis-status
li.admin-pane-group-separator
hr
li
h2.admin-pane-group-title {{_ 'date'}}
li.tableVisibilityMode-form
a.flex.js-toggle-date-format
.materialCheckBox#global-date-format-enabled(class="{{#if currentSetting.hideDateFormat}}is-checked{{/if}}")
span {{_ 'date-format'}}:
select.wekan-form-control#global-date-format(aria-label="{{_ 'date-format'}}")
option(value="YYYY-MM-DD" selected="{{#if isGlobalDateFormat 'YYYY-MM-DD'}}selected{{/if}}") {{_ 'date-format-yyyy-mm-dd'}} · {{_ 'time'}}
option(value="DD-MM-YYYY" selected="{{#if isGlobalDateFormat 'DD-MM-YYYY'}}selected{{/if}}") {{_ 'date-format-dd-mm-yyyy'}} · {{_ 'time'}}
option(value="MM-DD-YYYY" selected="{{#if isGlobalDateFormat 'MM-DD-YYYY'}}selected{{/if}}") {{_ 'date-format-mm-dd-yyyy'}} · {{_ 'time'}}
option(value="YYYY-MM-DD-date-only" selected="{{#if isGlobalDateFormat 'YYYY-MM-DD-date-only'}}selected{{/if}}") {{_ 'date'}}: {{_ 'date-format-yyyy-mm-dd'}}
option(value="DD-MM-YYYY-date-only" selected="{{#if isGlobalDateFormat 'DD-MM-YYYY-date-only'}}selected{{/if}}") {{_ 'date'}}: {{_ 'date-format-dd-mm-yyyy'}}
option(value="MM-DD-YYYY-date-only" selected="{{#if isGlobalDateFormat 'MM-DD-YYYY-date-only'}}selected{{/if}}") {{_ 'date'}}: {{_ 'date-format-mm-dd-yyyy'}}
li
button.js-visibility-date-save.primary {{_ 'save'}}
li.admin-pane-group-separator
hr
li
h2.admin-pane-group-title {{_ 'settings-group-url'}}
li
a(href="/support" style="text-decoration: underline; color: blue;") {{_ 'support'}}
li
a.flex.js-toggle-support
.materialCheckBox(class="{{#if currentSetting.supportPageEnabled}}is-checked{{/if}}")
span {{_ 'support-page-enabled'}}
li
.support-content(class="{{#if currentSetting.supportPageEnabled}}{{else}}hide{{/if}}")
ul
li
a.flex.js-toggle-support-public
.materialCheckBox(class="{{#if currentSetting.supportPagePublic}}is-checked{{/if}}")
span {{_ 'public'}}
li
.title {{_ 'support-title'}}
textarea#support-title.wekan-form-control(data-editor-submit=".js-visibility-url-save")= currentSetting.supportTitle
li
.title {{_ 'support-content'}}
textarea#support-page-text.wekan-form-control(data-editor-submit=".js-visibility-url-save")= currentSetting.supportPageText
li.tableVisibilityMode-form
.title {{_ 'custom-help-link-url'}}
.form-group
input.wekan-form-control#custom-help-link-url(type="text", placeholder="" value="{{currentSetting.customHelpLinkUrl}}")
li.tableVisibilityMode-form
.title {{_ 'custom-legal-notice-link-url'}}
.form-group
input.wekan-form-control#legalNoticevalue(type="text", placeholder="" value="{{currentSetting.legalNotice}}")
li.tableVisibilityMode-form
.title {{_ 'automatic-linked-url-schemes'}}
.description {{_ 'automatic-linked-url-schemes-hint'}}
.form-group
textarea#automatic-linked-url-schemes.wekan-form-control(data-editor-submit=".js-visibility-url-save")= currentSetting.automaticLinkedUrlSchemes
li
button.js-visibility-url-save.primary {{_ 'save'}}
li.admin-pane-group-separator
hr
li
//- wekan/wekan#3069: autolink bare "<prefix>NNNN" tokens (e.g. "#1234")
//- found in card descriptions/comments to an external issue tracker.
//- Leaving either field empty keeps this feature off (no-op).
h2.admin-pane-group-title {{_ 'external-link-pattern'}}
p.description {{_ 'external-link-pattern-description'}}
li.tableVisibilityMode-form
.title {{_ 'external-link-pattern-prefix'}}
.form-group
input.wekan-form-control#external-link-pattern-prefix(type="text", placeholder="#" value="{{currentSetting.externalLinkPatternPrefix}}")
li.tableVisibilityMode-form
.title {{_ 'external-link-pattern-url'}}
.form-group
input.wekan-form-control#external-link-pattern-url(type="text", placeholder="https://issues.example.com/browse/PROJ-{number}" value="{{currentSetting.externalLinkPatternUrl}}")
//- #1463: more rules, with {identifier}, and abbreviations for it.
li.tableVisibilityMode-form
.title {{_ 'external-link-rules'}}
p.description {{_ 'external-link-rules-description'}}
.form-group
textarea.wekan-form-control#external-link-rules(rows="4" placeholder="[{identifier}:{number}] = https://spirateam.example.com/SpiraTeam/{identifier}/{number}.aspx")= currentSetting.externalLinkRules
li.tableVisibilityMode-form
.title {{_ 'external-link-identifier-aliases'}}
.form-group
input.wekan-form-control#external-link-identifier-aliases(type="text", placeholder="TK=Task, IN=Incident" value="{{currentSetting.externalLinkIdentifierAliases}}")
li
button.js-visibility-external-link-pattern-save.primary {{_ 'save'}}
li.admin-pane-group-separator
hr
li
//- The group title IS the field's label here: the group holds one field, so a
//- title above a label that says the same thing said it twice. The group title
//- keeps its size and takes the field's existing translation.
h2.admin-pane-group-title {{_ 'custom-product-name'}}
li.tableVisibilityMode-form
.form-group
textarea.wekan-form-control#product-name(data-editor-submit=".js-visibility-product-name-save" rows="2" placeholder="")= currentSetting.productName
li
button.js-visibility-product-name-save.primary {{_ 'save'}}
//- The site theme. Same picker as the per-user "Change color", one layer
//- below it: whoever has not chosen a theme of their own sees this one
//- (docs/Theme/Theme.md). It applies immediately - the picker has no Save
//- button, like the per-user one.
if isSiteAdmin
li.admin-pane-group-separator
hr
li
h2.admin-pane-group-title {{_ 'change-color'}}
//- The site admin's colour is the one every Organization that has not set
//- its own inherits, so their pane says so; an Organization's own admin is
//- setting only their own and needs no such line.
//- Three panes of Admin Panel / Settings share this template and its
//- handlers (2026-11-19): Appearance, Features and Feature profiles. `part`
//- says which groups this pane shows; every field keeps its id and its Save.
if isPart 'features'
if isSiteAdmin
h3.admin-pane-subgroup-title {{_ 'theme-override-all-tenants'}}
li.tableVisibilityMode-form
+themeColorPicker(scope="admin")
//- #6736: which optional features this WeKan offers. A ticked feature is
//- on for everyone; an unticked one is hidden from the interface (not
//- greyed out), keeps its data, and changes no permission. The rows come
//- from models/lib/instanceFeatures.js, so the page and the places that
//- hide a feature read the same catalog.
li
h2.admin-pane-group-title {{_ 'features'}}
li.tableVisibilityMode-form
.title {{_ 'features-desc'}}
each featureRows
li.tableVisibilityMode-form.js-feature-row(data-feature=key)
a.flex.js-toggle-feature
.materialCheckBox.js-feature-enabled(class="{{#if enabled}}is-checked{{/if}}")
span {{_ labelKey}}
if awaitingApproval
span.feature-awaiting-approval {{_ 'feature-awaiting-approval'}}
.feature-desc {{_ descKey}}
li.tableVisibilityMode-form
a.flex.js-toggle-feature
.materialCheckBox#feature-approval-required(class="{{#if currentSetting.featureApprovalRequired}}is-checked{{/if}}")
span {{_ 'feature-approval-required'}}
li.tableVisibilityMode-form
a.flex.js-toggle-feature
.materialCheckBox#feature-preview-admins(class="{{#if currentSetting.featurePreviewAdmins}}is-checked{{/if}}")
span {{_ 'feature-preview-admins'}}
li.tableVisibilityMode-form
.title {{_ 'feature-pilot-users'}}
.form-group
textarea.wekan-form-control#feature-pilot-users(data-editor-submit=".js-visibility-features-save" rows="2" placeholder="{{_ 'feature-pilot-users-placeholder'}}")= featurePilotUsernames
//- The card fields every board shows: one tick per field type of Board
//- Settings / Card, all ticked by default. Unticked hides it on every
//- card, minicard and Board Settings / Card - visibility only, no data or
//- board setting changes. No ordering here: the order is each board's own.
//- models/lib/cardFieldVisibility.js
li.tableVisibilityMode-form
.title {{_ 'card-field-visibility'}}
.feature-desc {{_ 'card-field-visibility-desc'}}
each cardFieldRows
li.tableVisibilityMode-form.js-card-field-row(data-card-field=key)
a.flex.js-toggle-feature
.materialCheckBox.js-card-field-enabled(class="{{#if enabled}}is-checked{{/if}}")
span.card-field-visibility-label
each icon in icons
i.fa(class=icon)
| {{title}}
li
button.js-visibility-features-save.primary {{_ 'save'}}
span.js-visibility-features-status
if isSiteAdmin
li.admin-pane-group-separator
hr
//- #2460: SQRL sign-in, and #4198: public boards on the fediverse
(ActivityPub) - optional features this WeKan offers, each off by
default and saved as soon as it is switched.
li.tableVisibilityMode-form
a.flex.js-toggle-sqrl
.materialCheckBox#sqrl-enabled(class="{{#if currentSetting.sqrlEnabled}}is-checked{{/if}}")
span {{_ 'sqrl-enabled'}}
.feature-desc {{_ 'sqrl-desc'}}
li.tableVisibilityMode-form
a.flex.js-toggle-activity-pub
.materialCheckBox#activity-pub-enabled(class="{{#if currentSetting.activityPubEnabled}}is-checked{{/if}}")
span {{_ 'activity-pub-enabled'}}
.feature-desc {{_ 'activity-pub-desc'}}
li.admin-pane-group-separator
hr
//- #2217: boards may show their Rules to members, read-only. Off by
default; each board admin then decides on the board's Rules page.
li
h2.admin-pane-group-title {{_ 'rules'}}
li.tableVisibilityMode-form
a.flex.js-toggle-rules-read-only
.materialCheckBox#rules-read-only-for-members(class="{{#if currentSetting.rulesReadOnlyForMembers}}is-checked{{/if}}")
span {{_ 'rules-read-only-for-members'}}
.feature-desc {{_ 'rules-read-only-for-members-desc'}}
li.admin-pane-group-separator
hr
//- Optional APIs (models/lib/optionalApis.js): REST APIs in the shape of
Trello's, Jira's, GitHub's and Gitea's, so their clients can use WeKan
as their backend. Each is off until ticked, and has no rights of its
own: it is WeKan's REST API, with the caller's own permissions.
li
h2.admin-pane-group-title {{_ 'optional-apis'}}
li.tableVisibilityMode-form
.title {{_ 'optional-apis-desc'}}
each optionalApiRows
li.tableVisibilityMode-form.js-optional-api-row(data-api=key)
a.flex.js-toggle-feature
.materialCheckBox.js-optional-api-enabled(class="{{#if enabled}}is-checked{{/if}}")
span {{_ labelKey}}
.feature-desc {{_ descKey}}
.feature-desc
code {{base}}
li
button.js-optional-apis-save.primary {{_ 'save'}}
span.js-optional-apis-status
else if isPart 'profiles'
if isSiteAdmin
//- #6837: feature profiles - named sets of the features above that their
users do not see, assigned to users, teams or organizations. Opt-in: a
user with no profile sees everything, and a user with one is told so
(models/lib/featureProfiles.js). Visibility only, like the ticks above.
li.tableVisibilityMode-form
.title {{_ 'feature-profiles'}}
.feature-desc {{_ 'feature-profiles-desc'}}
each profile in featureProfileRows
li.tableVisibilityMode-form.js-feature-profile(data-profile-id=profile._id)
.form-group
label {{_ 'feature-profile-name'}}
input.wekan-form-control.js-feature-profile-name(type="text" value=profile.name maxlength="100")
.title {{_ 'feature-profile-hides'}}
each row in profile.rows
a.flex.js-toggle-feature.js-feature-profile-hide(data-feature=row.key)
.materialCheckBox(class="{{#if row.hidden}}is-checked{{/if}}")
span {{_ row.labelKey}}
.form-group
label {{_ 'feature-profile-users'}}
textarea.wekan-form-control.js-feature-profile-users(rows="2" placeholder="{{_ 'feature-pilot-users-placeholder'}}")= profile.usernames
.form-group
label {{_ 'feature-profile-teams'}}
textarea.wekan-form-control.js-feature-profile-teams(rows="2")= profile.teams
.form-group
label {{_ 'feature-profile-orgs'}}
textarea.wekan-form-control.js-feature-profile-orgs(rows="2")= profile.orgs
button.js-feature-profile-remove(type="button") {{_ 'feature-profile-remove'}}
li
button.js-feature-profile-add(type="button") {{_ 'feature-profile-add'}}
button.js-feature-profiles-save.primary(type="button") {{_ 'save'}}
span.js-feature-profiles-status
else
//- Every group here writes the INSTANCE settings, so it is site-admin only.
//- The one exception is "Change color" below, which an Organization's own
//- admin sets for their Organization (models/lib/tenantAdmin.js themeTarget).
if isSiteAdmin
li
h2.admin-pane-group-title {{_ 'all-boards-hide'}}
//- One checkbox per setting instead of a Yes/No pair: each of these is on or
//- off, and the group's own title already says what ticking one means (All
//- Boards: Hide …). Same checkbox as everywhere else in the Admin Panel -
//- Announcement's "Active System-Wide Announcement" - so it has the plain
//- square when off, the green tick when on, and the animation between.
//- The Save button below reads the ticks, as it read the radios.
li.tableVisibilityMode-form
//- "Public boards", under the "All Boards: Hide" title above: ticked hides
//- them, which is what allowPrivateOnly does. The setting's own key keeps its
//- sentence - boardBody.jade shows it as the message on a board you may not
//- open, where a two-word label would say nothing.
a.flex.js-toggle-all-boards-hide
.materialCheckBox#accounts-allowPrivateOnly(class="{{#if allowPrivateOnly}}is-checked{{/if}}")
span {{_ 'public-boards'}}
li.tableVisibilityMode-form
//- #4475: ticked forbids anyone who is not a site admin from creating
//- new boards. Same Save button and same collection as the setting
//- above - only the checked key differs.
a.flex.js-toggle-all-boards-hide
.materialCheckBox#accounts-boardCreationAdminOnly(class="{{#if boardCreationAdminOnly}}is-checked{{/if}}")
span {{_ 'board-creation-admin-only'}}
li.tableVisibilityMode-form
//- #4575: ticked lets a board admin open an Instance or Public board
//- to editing by every signed-in user. Off: no board can.
a.flex.js-toggle-all-boards-hide
.materialCheckBox#accounts-allowInstanceEditing(class="{{#if allowInstanceEditing}}is-checked{{/if}}")
span {{_ 'instance-editing-allowed'}}
li.hideBoardActivities-form
a.flex.js-toggle-all-boards-hide
.materialCheckBox#hide-board-activities(class="{{#if currentSetting.hideBoardActivitiesOnAllBoards}}is-checked{{/if}}")
span {{_ 'board-activities'}}
li.tableVisibilityMode-form
a.flex.js-toggle-all-boards-hide
.materialCheckBox#hide-card-counter-list(class="{{#if currentSetting.hideCardCounterList}}is-checked{{/if}}")
span {{_ 'card-counter-list'}}
li.tableVisibilityMode-form
a.flex.js-toggle-all-boards-hide
.materialCheckBox#hide-board-member-list(class="{{#if currentSetting.hideBoardMemberList}}is-checked{{/if}}")
span {{_ 'board-member-list'}}
li.tableVisibilityMode-form
.title {{_ 'wait-spinner'}}
+selectSpinnerName(spinnerName=currentSetting.spinnerName)
//- #4421: an org whose "Public" means "public within our organization"
//- rather than public on the internet can replace the wording shown
//- under Private/Public in the board visibility popup and the
//- create-board popup. Empty = unchanged i18n default text
//- (imports/i18n/lib/visibilityDesc.js).
li.tableVisibilityMode-form
.title {{_ 'custom-private-desc'}}
.form-group
textarea.wekan-form-control#custom-private-board-desc(data-editor-submit=".js-visibility-all-boards-save" rows="2" placeholder="{{_ 'custom-private-desc-placeholder'}}")= currentSetting.customPrivateBoardDesc
li.tableVisibilityMode-form
.title {{_ 'custom-public-desc'}}
.form-group
textarea.wekan-form-control#custom-public-board-desc(data-editor-submit=".js-visibility-all-boards-save" rows="2" placeholder="{{_ 'custom-public-desc-placeholder'}}")= currentSetting.customPublicBoardDesc
li
//- One Save per section, at its end, above the rule that closes it. It writes
//- this section's fields and nothing else, so saving one group can never
//- overwrite what you were editing in another.
button.js-visibility-all-boards-save.primary {{_ 'save'}}
li.admin-pane-group-separator
hr
li
h2.admin-pane-group-title {{_ 'date'}}
li.tableVisibilityMode-form
a.flex.js-toggle-date-format
.materialCheckBox#global-date-format-enabled(class="{{#if currentSetting.hideDateFormat}}is-checked{{/if}}")
span {{_ 'date-format'}}:
select.wekan-form-control#global-date-format(aria-label="{{_ 'date-format'}}")
option(value="YYYY-MM-DD" selected="{{#if isGlobalDateFormat 'YYYY-MM-DD'}}selected{{/if}}") {{_ 'date-format-yyyy-mm-dd'}} · {{_ 'time'}}
option(value="DD-MM-YYYY" selected="{{#if isGlobalDateFormat 'DD-MM-YYYY'}}selected{{/if}}") {{_ 'date-format-dd-mm-yyyy'}} · {{_ 'time'}}
option(value="MM-DD-YYYY" selected="{{#if isGlobalDateFormat 'MM-DD-YYYY'}}selected{{/if}}") {{_ 'date-format-mm-dd-yyyy'}} · {{_ 'time'}}
option(value="YYYY-MM-DD-date-only" selected="{{#if isGlobalDateFormat 'YYYY-MM-DD-date-only'}}selected{{/if}}") {{_ 'date'}}: {{_ 'date-format-yyyy-mm-dd'}}
option(value="DD-MM-YYYY-date-only" selected="{{#if isGlobalDateFormat 'DD-MM-YYYY-date-only'}}selected{{/if}}") {{_ 'date'}}: {{_ 'date-format-dd-mm-yyyy'}}
option(value="MM-DD-YYYY-date-only" selected="{{#if isGlobalDateFormat 'MM-DD-YYYY-date-only'}}selected{{/if}}") {{_ 'date'}}: {{_ 'date-format-mm-dd-yyyy'}}
li
button.js-visibility-date-save.primary {{_ 'save'}}
li.admin-pane-group-separator
hr
li
h2.admin-pane-group-title {{_ 'settings-group-url'}}
li
a(href="/support" style="text-decoration: underline; color: blue;") {{_ 'support'}}
li
a.flex.js-toggle-support
.materialCheckBox(class="{{#if currentSetting.supportPageEnabled}}is-checked{{/if}}")
span {{_ 'support-page-enabled'}}
li
.support-content(class="{{#if currentSetting.supportPageEnabled}}{{else}}hide{{/if}}")
ul
li
a.flex.js-toggle-support-public
.materialCheckBox(class="{{#if currentSetting.supportPagePublic}}is-checked{{/if}}")
span {{_ 'public'}}
li
.title {{_ 'support-title'}}
textarea#support-title.wekan-form-control(data-editor-submit=".js-visibility-url-save")= currentSetting.supportTitle
li
.title {{_ 'support-content'}}
textarea#support-page-text.wekan-form-control(data-editor-submit=".js-visibility-url-save")= currentSetting.supportPageText
li.tableVisibilityMode-form
.title {{_ 'custom-help-link-url'}}
.form-group
input.wekan-form-control#custom-help-link-url(type="text", placeholder="" value="{{currentSetting.customHelpLinkUrl}}")
li.tableVisibilityMode-form
.title {{_ 'custom-legal-notice-link-url'}}
.form-group
input.wekan-form-control#legalNoticevalue(type="text", placeholder="" value="{{currentSetting.legalNotice}}")
li.tableVisibilityMode-form
.title {{_ 'automatic-linked-url-schemes'}}
.description {{_ 'automatic-linked-url-schemes-hint'}}
.form-group
textarea#automatic-linked-url-schemes.wekan-form-control(data-editor-submit=".js-visibility-url-save")= currentSetting.automaticLinkedUrlSchemes
li
button.js-visibility-url-save.primary {{_ 'save'}}
li.admin-pane-group-separator
hr
li
//- wekan/wekan#3069: autolink bare "<prefix>NNNN" tokens (e.g. "#1234")
//- found in card descriptions/comments to an external issue tracker.
//- Leaving either field empty keeps this feature off (no-op).
h2.admin-pane-group-title {{_ 'external-link-pattern'}}
p.description {{_ 'external-link-pattern-description'}}
li.tableVisibilityMode-form
.title {{_ 'external-link-pattern-prefix'}}
.form-group
input.wekan-form-control#external-link-pattern-prefix(type="text", placeholder="#" value="{{currentSetting.externalLinkPatternPrefix}}")
li.tableVisibilityMode-form
.title {{_ 'external-link-pattern-url'}}
.form-group
input.wekan-form-control#external-link-pattern-url(type="text", placeholder="https://issues.example.com/browse/PROJ-{number}" value="{{currentSetting.externalLinkPatternUrl}}")
//- #1463: more rules, with {identifier}, and abbreviations for it.
li.tableVisibilityMode-form
.title {{_ 'external-link-rules'}}
p.description {{_ 'external-link-rules-description'}}
.form-group
textarea.wekan-form-control#external-link-rules(rows="4" placeholder="[{identifier}:{number}] = https://spirateam.example.com/SpiraTeam/{identifier}/{number}.aspx")= currentSetting.externalLinkRules
li.tableVisibilityMode-form
.title {{_ 'external-link-identifier-aliases'}}
.form-group
input.wekan-form-control#external-link-identifier-aliases(type="text", placeholder="TK=Task, IN=Incident" value="{{currentSetting.externalLinkIdentifierAliases}}")
li
button.js-visibility-external-link-pattern-save.primary {{_ 'save'}}
li.admin-pane-group-separator
hr
li
//- The group title IS the field's label here: the group holds one field, so a
//- title above a label that says the same thing said it twice. The group title
//- keeps its size and takes the field's existing translation.
h2.admin-pane-group-title {{_ 'custom-product-name'}}
li.tableVisibilityMode-form
.form-group
textarea.wekan-form-control#product-name(data-editor-submit=".js-visibility-product-name-save" rows="2" placeholder="")= currentSetting.productName
li
button.js-visibility-product-name-save.primary {{_ 'save'}}
//- The site theme. Same picker as the per-user "Change color", one layer
//- below it: whoever has not chosen a theme of their own sees this one
//- (docs/Theme/Theme.md). It applies immediately - the picker has no Save
//- button, like the per-user one.
if isSiteAdmin
li.admin-pane-group-separator
hr
li
h2.admin-pane-group-title {{_ 'settings-group-logo'}}
h2.admin-pane-group-title {{_ 'change-color'}}
//- The site admin's colour is the one every Organization that has not set
//- its own inherits, so their pane says so; an Organization's own admin is
//- setting only their own and needs no such line.
if isSiteAdmin
h3.admin-pane-subgroup-title {{_ 'theme-override-all-tenants'}}
li.tableVisibilityMode-form
//- One checkbox, like the All Boards group above and like Announcement's
//- "Active System-Wide Announcement": ticked = the logo is hidden. The
//- group's Save below writes it, as it wrote the Yes/No pair.
a.flex.js-toggle-hide-logo
.materialCheckBox#hide-logo(class="{{#if currentSetting.hideLogo}}is-checked{{/if}}")
span {{_ 'hide-logo'}}
li.tableVisibilityMode-form
.title {{_ 'custom-login-logo-image-url'}}
.form-group
input.wekan-form-control#custom-login-logo-image-url(type="text", placeholder="" value="{{currentSetting.customLoginLogoImageUrl}}")
input.js-site-logo-upload(type="file" data-kind="login" accept="image/png,image/jpeg,image/gif,image/webp" aria-label="{{_ 'upload'}} {{_ 'custom-login-logo-image-url'}}")
li.tableVisibilityMode-form
.title {{_ 'custom-login-logo-link-url'}}
.form-group
input.wekan-form-control#custom-login-logo-link-url(type="text", placeholder="" value="{{currentSetting.customLoginLogoLinkUrl}}")
li.tableVisibilityMode-form
.title {{_ 'text-below-custom-login-logo'}}
.form-group
textarea#text-below-custom-login-logo.wekan-form-control(data-editor-submit=".js-visibility-logo-save")= currentSetting.textBelowCustomLoginLogo
li.tableVisibilityMode-form
.title {{_ 'login-background-color'}}
.form-group
input.wekan-form-control#login-background-color(type="text", placeholder="#1b365d" value="{{currentSetting.loginBackgroundColor}}")
li.tableVisibilityMode-form
.title {{_ 'custom-top-left-corner-logo-image-url'}}
.form-group
input.wekan-form-control#custom-top-left-corner-logo-image-url(type="text", placeholder="" value="{{currentSetting.customTopLeftCornerLogoImageUrl}}")
input.js-site-logo-upload(type="file" data-kind="header" accept="image/png,image/jpeg,image/gif,image/webp" aria-label="{{_ 'upload'}} {{_ 'custom-top-left-corner-logo-image-url'}}")
li.tableVisibilityMode-form
span.js-site-logo-upload-status(role="status" aria-live="polite")
li.tableVisibilityMode-form
.title {{_ 'custom-top-left-corner-logo-link-url'}}
.form-group
input.wekan-form-control#custom-top-left-corner-logo-link-url(type="text", placeholder="" value="{{currentSetting.customTopLeftCornerLogoLinkUrl}}")
li.tableVisibilityMode-form
.title {{_ 'custom-top-left-corner-logo-height'}}
.form-group
input.wekan-form-control#custom-top-left-corner-logo-height(type="text", placeholder="" value="{{currentSetting.customTopLeftCornerLogoHeight}}")
li
button.js-visibility-logo-save.primary {{_ 'save'}}
+themeColorPicker(scope="admin")
if isSiteAdmin
li.admin-pane-group-separator
hr
li
h2.admin-pane-group-title {{_ 'settings-group-logo'}}
li.tableVisibilityMode-form
//- One checkbox, like the All Boards group above and like Announcement's
//- "Active System-Wide Announcement": ticked = the logo is hidden. The
//- group's Save below writes it, as it wrote the Yes/No pair.
a.flex.js-toggle-hide-logo
.materialCheckBox#hide-logo(class="{{#if currentSetting.hideLogo}}is-checked{{/if}}")
span {{_ 'hide-logo'}}
li.tableVisibilityMode-form
.title {{_ 'custom-login-logo-image-url'}}
.form-group
input.wekan-form-control#custom-login-logo-image-url(type="text", placeholder="" value="{{currentSetting.customLoginLogoImageUrl}}")
input.js-site-logo-upload(type="file" data-kind="login" accept="image/png,image/jpeg,image/gif,image/webp" aria-label="{{_ 'upload'}} {{_ 'custom-login-logo-image-url'}}")
li.tableVisibilityMode-form
.title {{_ 'custom-login-logo-link-url'}}
.form-group
input.wekan-form-control#custom-login-logo-link-url(type="text", placeholder="" value="{{currentSetting.customLoginLogoLinkUrl}}")
li.tableVisibilityMode-form
.title {{_ 'text-below-custom-login-logo'}}
.form-group
textarea#text-below-custom-login-logo.wekan-form-control(data-editor-submit=".js-visibility-logo-save")= currentSetting.textBelowCustomLoginLogo
li.tableVisibilityMode-form
.title {{_ 'login-background-color'}}
.form-group
input.wekan-form-control#login-background-color(type="text", placeholder="#1b365d" value="{{currentSetting.loginBackgroundColor}}")
li.tableVisibilityMode-form
.title {{_ 'custom-top-left-corner-logo-image-url'}}
.form-group
input.wekan-form-control#custom-top-left-corner-logo-image-url(type="text", placeholder="" value="{{currentSetting.customTopLeftCornerLogoImageUrl}}")
input.js-site-logo-upload(type="file" data-kind="header" accept="image/png,image/jpeg,image/gif,image/webp" aria-label="{{_ 'upload'}} {{_ 'custom-top-left-corner-logo-image-url'}}")
li.tableVisibilityMode-form
span.js-site-logo-upload-status(role="status" aria-live="polite")
li.tableVisibilityMode-form
.title {{_ 'custom-top-left-corner-logo-link-url'}}
.form-group
input.wekan-form-control#custom-top-left-corner-logo-link-url(type="text", placeholder="" value="{{currentSetting.customTopLeftCornerLogoLinkUrl}}")
li.tableVisibilityMode-form
.title {{_ 'custom-top-left-corner-logo-height'}}
.form-group
input.wekan-form-control#custom-top-left-corner-logo-height(type="text", placeholder="" value="{{currentSetting.customTopLeftCornerLogoHeight}}")
li
button.js-visibility-logo-save.primary {{_ 'save'}}
template(name='announcementSettings')
ul#announcement-setting.setting-detail
+115 -4
View File
@@ -147,6 +147,15 @@ Template.setting.onCreated(function () {
this.layoutSetting = new ReactiveVar(false);
this.webhookSetting = new ReactiveVar(false);
this.sharedLabelsSetting = new ReactiveVar(false);
// 2026-11-19: what WeKan offers and who sees it, in one place - Features and
// Feature profiles split out of Visibility (now Appearance), and Security,
// Activities and notifications and Delete moved here from Admin Panel /
// Problems, where settings sat among the reports.
this.featuresSetting = new ReactiveVar(false);
this.featureProfilesSetting = new ReactiveVar(false);
this.privacySecuritySetting = new ReactiveVar(false);
this.activitiesSetting = new ReactiveVar(false);
this.deleteSetting = new ReactiveVar(false);
// The pane the URL asks for. `/settings/global-webhooks` opens Global
// Webhooks; the bare `/settings` opens the default, which the route resolved
// for us, so this is always a real pane id. Reactive, so following a link to
@@ -186,6 +195,11 @@ Template.setting.onDestroyed(function () {
const SETTINGS_PANE_VARS = {
'version-setting': 'versionSetting',
'tableVisibilityMode-setting': 'tableVisibilityModeSetting',
'features-setting': 'featuresSetting',
'feature-profiles-setting': 'featureProfilesSetting',
'privacy-security-setting': 'privacySecuritySetting',
'activities-setting': 'activitiesSetting',
'delete-setting': 'deleteSetting',
'announcement-setting': 'announcementSetting',
'accessibility-setting': 'accessibilitySetting',
'translation-setting': 'translationSetting',
@@ -214,10 +228,19 @@ function settingsMenu(user) {
const items = [
// First, and open by default - see Template.setting.onCreated.
{ id: 'version-setting', icon: 'fa-info-circle', labelKey: 'info', emoji: true },
// Labelled just 'Visibility' now. The pane id and the tableVisibilityMode
// key are unchanged, so the 141 translations of the pane's own contents are
// untouched; only the menu label points at the new key.
{ id: 'tableVisibilityMode-setting', icon: 'fa-eye', labelKey: 'visibility', emoji: true },
// Appearance (2026-11-19; it was Visibility): how this WeKan looks - what
// All Boards shows, dates, URLs, the product name, colours and logos. The
// pane id is unchanged, so an Organization admin's one pane (Change color)
// is still this one.
{ id: 'tableVisibilityMode-setting', icon: 'fa-paint-brush', labelKey: 'appearance', emoji: true },
// What this WeKan offers and who sees it: the optional features, then the
// profiles that hide some of them from chosen people.
{ id: 'features-setting', icon: 'fa-toggle-on', labelKey: 'features', emoji: true },
{ id: 'feature-profiles-setting', icon: 'fa-eye-slash', labelKey: 'feature-profiles', emoji: true },
// Moved from Admin Panel / Problems: settings, not reports.
{ id: 'privacy-security-setting', icon: 'fa-shield', labelKey: 'features-security', emoji: true },
{ id: 'activities-setting', icon: 'fa-bell', labelKey: 'activities-and-notifications', emoji: true },
{ id: 'delete-setting', icon: 'fa-trash', labelKey: 'delete', emoji: true },
{ id: 'announcement-setting', icon: 'fa-bullhorn', labelKey: 'admin-announcement', emoji: true },
{ id: 'accessibility-setting', icon: 'fa-universal-access', labelKey: 'accessibility', emoji: true },
// PWA is an acronym, not a translated string - a literal label, like the
@@ -245,6 +268,11 @@ function activeSettingId(inst) {
const panes = [
['versionSetting', 'version-setting'],
['tableVisibilityModeSetting', 'tableVisibilityMode-setting'],
['featuresSetting', 'features-setting'],
['featureProfilesSetting', 'feature-profiles-setting'],
['privacySecuritySetting', 'privacy-security-setting'],
['activitiesSetting', 'activities-setting'],
['deleteSetting', 'delete-setting'],
['announcementSetting', 'announcement-setting'],
['accessibilitySetting', 'accessibility-setting'],
['translationSetting', 'translation-setting'],
@@ -306,6 +334,26 @@ Template.setting.helpers({
const inst = Template.instance();
return inst.sharedLabelsSetting && inst.sharedLabelsSetting.get();
},
isFeaturesSetting() {
const inst = Template.instance();
return inst.featuresSetting && inst.featuresSetting.get();
},
isFeatureProfilesSetting() {
const inst = Template.instance();
return inst.featureProfilesSetting && inst.featureProfilesSetting.get();
},
isPrivacySecuritySetting() {
const inst = Template.instance();
return inst.privacySecuritySetting && inst.privacySecuritySetting.get();
},
isActivitiesSetting() {
const inst = Template.instance();
return inst.activitiesSetting && inst.activitiesSetting.get();
},
isDeleteSetting() {
const inst = Template.instance();
return inst.deleteSetting && inst.deleteSetting.get();
},
isLoading() {
const inst = Template.instance();
return inst.loading && inst.loading.get();
@@ -524,14 +572,43 @@ Template.setting.events({
// user, visible only to that user), so the site admin's page asks for them.
Template.tableVisibilityModeSettings.onCreated(function () {
this.featurePilotUsernames = new ReactiveVar('');
// #6837: the feature profiles, with the names of what they apply to. The
// page edits these rows; Save sends them all (saveFeatureProfiles).
this.featureProfiles = new ReactiveVar([]);
if (tenantAdmin.isSiteAdmin(ReactiveCache.getCurrentUser())) {
Meteor.callAsync('getFeaturePilotUsernames')
.then(names => this.featurePilotUsernames.set(names.join(', ')))
.catch(() => {});
Meteor.callAsync('getFeatureProfiles')
.then(profiles => this.featureProfiles.set(profiles.map(p => ({ ...p,
teams: p.teams.join('\n'), orgs: p.orgs.join('\n'), usernames: p.usernames.join(', ') }))))
.catch(() => {});
}
});
// #6837: the profile rows as the page shows them now, edits included.
function readFeatureProfiles(instance) {
return instance.$('.js-feature-profile').toArray().map(row => {
const $row = $(row);
return {
_id: row.dataset.profileId || undefined,
name: $row.find('.js-feature-profile-name').val() || '',
hidden: $row.find('.js-feature-profile-hide').toArray()
.filter(a => $(a).find('.materialCheckBox').hasClass('is-checked')).map(a => a.dataset.feature),
usernames: $row.find('.js-feature-profile-users').val() || '',
teams: $row.find('.js-feature-profile-teams').val() || '',
orgs: $row.find('.js-feature-profile-orgs').val() || '',
};
});
}
Template.tableVisibilityModeSettings.helpers({
// Which of the three panes this is: 'appearance' (the default), 'features'
// or 'profiles' (Template.setting renders it once per pane).
isPart(part) {
const data = Template.currentData() || {};
return (data.part || 'appearance') === part;
},
featureRows() {
return instanceFeatures.featureRows(ReactiveCache.getCurrentSetting());
},
@@ -551,6 +628,13 @@ Template.tableVisibilityModeSettings.helpers({
featurePilotUsernames() {
return Template.instance().featurePilotUsernames.get();
},
featureProfileRows() {
return Template.instance().featureProfiles.get().map(profile => ({
...profile,
rows: instanceFeatures.FEATURES.map(feature => ({ key: feature.key, labelKey: feature.labelKey,
hidden: (profile.hidden || []).includes(feature.key) })),
}));
},
isGlobalDateFormat(format) {
return (ReactiveCache.getCurrentSetting()?.globalDateFormat || 'YYYY-MM-DD') === format;
},
@@ -692,6 +776,33 @@ Template.tableVisibilityModeSettings.events({
status.text(error.reason || error.message);
}
},
// #6837: add a profile, remove one, and save them all.
'click button.js-feature-profile-add'(event, instance) {
event.preventDefault();
instance.featureProfiles.set([...readFeatureProfiles(instance),
{ name: '', hidden: [], usernames: '', teams: '', orgs: '' }]);
},
'click button.js-feature-profile-remove'(event, instance) {
event.preventDefault();
const index = instance.$('.js-feature-profile').index($(event.currentTarget).closest('.js-feature-profile'));
instance.featureProfiles.set(readFeatureProfiles(instance).filter((p, i) => i !== index));
},
async 'click button.js-feature-profiles-save'(event, instance) {
event.preventDefault();
const status = instance.$('.js-feature-profiles-status');
try {
const result = await Meteor.callAsync('saveFeatureProfiles', readFeatureProfiles(instance)
.map(({ _id, ...rest }) => (_id ? { _id, ...rest } : rest)));
const profiles = await Meteor.callAsync('getFeatureProfiles');
instance.featureProfiles.set(profiles.map(p => ({ ...p,
teams: p.teams.join('\n'), orgs: p.orgs.join('\n'), usernames: p.usernames.join(', ') })));
const unknown = [...result.unknown.usernames, ...result.unknown.teams, ...result.unknown.orgs];
status.text(unknown.length ? `${TAPi18n.__('feature-profile-unknown')} ${unknown.join(', ')}` : TAPi18n.__('feature-saved'));
} catch (error) {
status.text(error.reason || error.error || error.message);
}
},
async 'click button.js-visibility-features-save'(event, instance) {
event.preventDefault();
const states = {};
@@ -0,0 +1,20 @@
/* The Scrum meeting helpers (docs/Features/Scrum/Meetings.md). */
.daily-standup {
min-width: 220px;
}
.daily-standup-speaker {
font-size: 1.4em;
margin: 4px 0;
}
.daily-standup-clock {
font-size: 2em;
font-variant-numeric: tabular-nums;
margin: 4px 0;
}
.daily-standup-clock.is-overtime {
color: #c0392b;
}
.daily-standup-order {
margin-block: 4px;
padding-inline-start: 20px;
}
@@ -0,0 +1,26 @@
//- The Scrum meeting helpers of the board menu (models/lib/scrumMeetings.js,
docs/Features/Scrum/Meetings.md).
template(name="dailyStandupPopup")
.daily-standup.js-daily-standup
if running
with view
if done
p.daily-standup-done {{_ 'standup-done' time=(clockOf elapsedSeconds)}}
button.js-standup-reset(type="button") {{_ 'start'}}
else
p.daily-standup-position {{position}} / {{count}}
h3.daily-standup-speaker= speakerName
p.daily-standup-clock(class="{{#if overtime}}is-overtime{{/if}}") {{clockOf remainingSeconds}}
p.quiet {{_ 'standup-total' time=(clockOf elapsedSeconds)}}
button.primary.js-standup-next(type="button") {{_ 'next'}}
button.js-standup-reset(type="button") {{_ 'stop'}}
else
ol.daily-standup-order
each person in order
li= person.name
p
button.js-standup-shuffle(type="button")
i.fa.fa-random
| {{_ 'standup-shuffle'}}
p.quiet {{_ 'standup-minutes'}}: {{minutes}}
button.primary.js-standup-start(type="button" disabled=noPeople) {{_ 'start'}}
@@ -0,0 +1,92 @@
// The Scrum meeting helpers of the board menu (models/lib/scrumMeetings.js,
// docs/Features/Scrum/Meetings.md): the daily standup timer, kept in this
// browser only, and the button that makes a retrospective board.
import { Meteor } from 'meteor/meteor';
import { Template } from 'meteor/templating';
import { ReactiveVar } from 'meteor/reactive-var';
import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
import getSlug from 'limax';
import { ReactiveCache } from '/imports/reactiveCache';
import { TAPi18n } from '/imports/i18n';
import { Utils } from '/client/lib/utils';
import { allowFeature } from '/client/lib/instanceFeatures';
import Lists from '/models/lists';
const meetings = require('/models/lib/scrumMeetings');
const { DEFAULT_SCRUM_SETTINGS } = require('/models/lib/scrum');
const settingsOf = board => ({ ...DEFAULT_SCRUM_SETTINGS, ...(board && board.scrum) });
// Whether the board menu offers each: the instance's feature AND the board's
// Scrum setting.
export function showsStandupTimer(board) {
return Boolean(board) && allowFeature('standup-timer') && settingsOf(board).standupTimer !== false;
}
export function showsRetrospectiveBoard(board) {
return Boolean(board) && allowFeature('retrospective-board') && settingsOf(board).retrospectiveBoard !== false;
}
const nameOf = userId => {
const user = ReactiveCache.getUser(userId);
return (user && (user.profile?.fullname || user.username)) || userId;
};
Template.dailyStandupPopup.onCreated(function () {
const board = Utils.getCurrentBoard();
const people = (board?.activeMembers?.() || board?.members || []).filter(m => m.isActive !== false).map(m => m.userId);
this.order = new ReactiveVar(meetings.shuffle(people));
this.state = new ReactiveVar(null);
this.now = new ReactiveVar(Date.now());
this.minutes = meetings.standupMinutes(settingsOf(board).standupMinutes);
this.timer = Meteor.setInterval(() => this.now.set(Date.now()), 1000);
});
Template.dailyStandupPopup.onDestroyed(function () {
Meteor.clearInterval(this.timer);
});
Template.dailyStandupPopup.helpers({
order() { return Template.instance().order.get().map(userId => ({ userId, name: nameOf(userId) })); },
noPeople() { return !Template.instance().order.get().length; },
minutes() { return Template.instance().minutes; },
running() { return Boolean(Template.instance().state.get()); },
view() {
const tpl = Template.instance();
const view = meetings.standupView(tpl.state.get(), tpl.now.get());
return view && { ...view, speakerName: view.speaker ? nameOf(view.speaker) : '' };
},
clockOf(seconds) { return meetings.clock(seconds); },
});
Template.dailyStandupPopup.events({
'click .js-standup-shuffle'(event, tpl) { tpl.order.set(meetings.shuffle(tpl.order.get())); },
'click .js-standup-start'(event, tpl) {
tpl.now.set(Date.now());
tpl.state.set(meetings.startStandup(tpl.order.get(), tpl.minutes, Date.now()));
},
'click .js-standup-next'(event, tpl) {
tpl.now.set(Date.now());
tpl.state.set(meetings.nextSpeaker(tpl.state.get(), Date.now()));
},
'click .js-standup-reset'(event, tpl) { tpl.state.set(null); },
});
// A new private board of the reader's for one retrospective: its lists Start
// doing, Stop doing, Keep doing and Action items. Board creation is the
// server's (createBoardWithInitialSwimlanes, with its "who may create
// boards" check); the lists are the new board admin's own inserts.
export async function createRetrospectiveBoard(board) {
const plan = meetings.retrospectivePlan(board.title, new Date(), (key, fallback, options) => {
const text = TAPi18n.__(key, options);
return text && text !== key ? text : fallback;
});
const slug = getSlug(plan.title) || 'board';
const boardId = await Meteor.callAsync('createBoardWithInitialSwimlanes', {
title: plan.title, slug, permission: 'private', type: 'board', migrationVersion: 1,
swimlanes: [{ title: TAPi18n.__('default'), sort: 0 }],
});
for (const [sort, title] of plan.lists.entries()) {
await Lists.insertAsync({ title, boardId, sort, swimlaneId: '' });
}
FlowRouter.go('board', { id: boardId, slug });
return boardId;
}
+15
View File
@@ -785,3 +785,18 @@ body.sidebar-resizing-active {
background: var(--wekan-popup-background, #fff);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
/* Board Settings / Board View: the heading over each group of views, as in
the Board View menu (models/lib/boardViewSettings.js BOARD_VIEW_GROUPS). */
.board-view-settings .board-view-settings-group-heading {
padding: 8px 4px 2px;
font-size: 0.8em;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 0.04em;
color: #6b778c;
border-top: 1px solid #dfe1e6;
}
.board-view-settings .board-view-settings-group-heading:first-child {
border-top: 0;
}
+26 -14
View File
@@ -755,24 +755,20 @@ template(name="boardMenuPopup")
a.js-open-board-date-settings(title="{{_ 'date'}}")
i.fa.fa-calendar
| {{_ 'date'}}
//- All Boards Settings: what the All Boards page shows of this board
(card counters, member avatars), card aging, auto-archive and personal
list widths. It was commented out for the #4214 "icons random dance";
the All Boards tiles now read one fetch of getAllBoardsTileData, not
reactive cursors, so the loop it caused cannot return. The popup hides
its own counter and avatar rows when Admin Panel turns those off.
li
a.js-board-info-on-my-boards(title="{{_ 'board-info-on-my-boards'}}")
i.fa.fa-id-card-o
| {{_ 'board-info-on-my-boards'}}
//- "Board backgrounds" was here. It was the list of pictures uploaded to
this board, and that list is drawn inside Change Background Image now -
under the upload that adds to it - so a second entry to the same list
was a second place to look for one thing.
//Bug Board icons random dance https://github.com/wekan/wekan/issues/4214
//if currentUser.isBoardAdmin
//
unless currentSetting.hideBoardMemberList
//
unless currentSetting.hideCardCounterList
//
li
//
a.js-board-info-on-my-boards(title="{{_ 'board-info-on-my-boards'}}")
//
i.fa.fa-id-card-o
//
| {{_ 'board-info-on-my-boards'}}
hr
else if rulesReadable
//- #2217: a member of a board that shows its Rules reads them here; the
@@ -875,6 +871,18 @@ template(name="boardMenuPopup")
| {{_ 'since-last-visit-count' count=sinceVisitCount}}
else
| {{_ 'since-last-visit'}}
//- The Scrum meeting helpers (client/components/boards/scrum/scrumMeetings.jade),
each hidden by its Admin Panel feature and by the board's Scrum settings.
if showsStandupTimer
li
a.js-open-daily-standup
i.fa.fa-hourglass-half
| {{_ 'daily-standup'}}
if showsRetrospectiveBoard
li
a.js-create-retrospective-board
i.fa.fa-refresh
| {{_ 'retrospective-board'}}
unless currentBoard.isTemplatesBoard
if currentUser.isBoardAdmin
// li
@@ -920,6 +928,9 @@ template(name="boardViewSettingsPopup")
h4 {{_ 'description'}}
.board-view-settings-rows.js-board-view-sortable
each boardViewRows
//- The same groups as the Board View menu; only rows are dragged.
if groupLabelKey
.board-view-settings-group-heading {{_ groupLabelKey}}
.board-view-settings-row.js-board-view-row(data-view="{{view}}")
unless ../publicBoardsHidden
.board-view-settings-column
@@ -1001,6 +1012,7 @@ template(name="boardListSettingsPopup")
span
i.fa.fa-columns
| {{_ 'same-width-for-all-lists'}}
+boardFlowListSettings
//- #2489: Board Settings / WIP Limit Groups - a shared WIP limit across two or
more of this board's lists together, on top of the existing per-list
+23 -2
View File
@@ -547,6 +547,17 @@ function openRulesViewFromBoardMenu(mode) {
}
Template.boardMenuPopup.events({
'click .js-open-daily-standup': Popup.open('dailyStandup'),
async 'click .js-create-retrospective-board'() {
const board = Utils.getCurrentBoard();
if (!board) return;
Popup.close();
try {
await require('/client/components/sidebar/scrumMeetings').createRetrospectiveBoard(board);
} catch (error) {
window.alert((error && (error.reason || error.error)) || String(error));
}
},
'click .js-open-rules-list-view'(event) { event.preventDefault(); openRulesViewFromBoardMenu('list'); },
'click .js-open-rules-workflow-view'(event) { event.preventDefault(); openRulesViewFromBoardMenu('workflow'); },
'click .js-open-rules-bots-view'(event) { event.preventDefault(); openRulesViewFromBoardMenu('bots'); },
@@ -780,8 +791,13 @@ Template.boardViewSettingsPopup.helpers({
boardViewRows() {
const board = Utils.getCurrentBoard();
// #6736: views the instance disabled are not rows; their board settings stay.
const ordered = boardViewSettings.orderedBoardViews(board).filter(v => allowBoardView(v.view));
return ordered.map(v => ({
// Grouped as the Board View menu is (BOARD_VIEW_GROUPS): a heading over
// each group, the board's order inside it.
const ordered = boardViewSettings.groupedBoardViews(
boardViewSettings.orderedBoardViews(board).filter(v => allowBoardView(v.view)));
const headingOf = group => (boardViewSettings.BOARD_VIEW_GROUPS.find(g => g.group === group) || {}).labelKey;
return ordered.map((v, i) => ({
groupLabelKey: i === 0 || ordered[i - 1].group !== v.group ? headingOf(v.group) : null,
view: v.view,
labelKey: v.labelKey,
icon: `fa ${v.icon}`,
@@ -993,6 +1009,11 @@ Template.wipLimitGroupsPopup.events({
});
Template.boardMenuPopup.helpers({
// The Scrum meeting helpers (scrumMeetings.js).
showsStandupTimer() { return require('/client/components/sidebar/scrumMeetings').showsStandupTimer(Utils.getCurrentBoard()); },
showsRetrospectiveBoard() {
return require('/client/components/sidebar/scrumMeetings').showsRetrospectiveBoard(Utils.getCurrentBoard());
},
sinceVisitCount() {
return Template.instance().sinceVisitCount.get();
},
@@ -52,6 +52,8 @@ template(name="editSwimlaneTitleForm")
i.fa.fa-times-thin
template(name="swimlaneActionPopup")
//- Grouped under headings (2026-11-20), as the list and card menus are; every
entry keeps its own condition.
if currentUser
//- Copy link, FIRST and above every permission check: a swimlane has an
address now, and copying it is reading, not editing - somebody who may
@@ -59,6 +61,7 @@ template(name="swimlaneActionPopup")
The rows below are all guarded because they change the board.
models/lib/boardItemUrl.js, docs/Features/General/Board-Item-Links.md
ul.pop-over-list
li.menu-group-heading {{_ 'menu-group-share'}}
li: a.js-copy-swimlane-link
i.fa.fa-link
span
@@ -83,6 +86,7 @@ template(name="swimlaneActionPopup")
like copying a link it is READING - so it sits above the rows that change
the board and is not guarded by them.
ul.pop-over-list
li.menu-group-heading {{_ 'menu-group-export'}}
li: a.js-export-swimlane
i.fa.fa-upload
span {{_ 'export'}}
@@ -95,6 +99,7 @@ template(name="swimlaneActionPopup")
unless currentUser.isReadOnly
unless currentUser.isReadAssignedOnly
ul.pop-over-list
li.menu-group-heading {{_ 'add'}}
li: a.js-add-swimlane
i.fa.fa-plus
span
@@ -115,12 +120,14 @@ template(name="swimlaneActionPopup")
if currentUser.isBoardAdmin
hr
ul.pop-over-list
li.menu-group-heading {{_ 'appearance'}}
li: a.js-set-swimlane-color
i.fa.fa-paint-brush
| {{_ 'select-color'}}
unless this.isTemplateContainer
hr
ul.pop-over-list
li.menu-group-heading {{_ 'menu-group-move-copy'}}
li: a.js-copy-swimlane
i.fa.fa-clipboard
| {{_ 'copy-swimlane'}}
@@ -130,6 +137,7 @@ template(name="swimlaneActionPopup")
| {{_ 'move-swimlane'}}
hr
ul.pop-over-list
li.menu-group-heading {{_ 'archives'}}
li: a.js-close-swimlane
i.fa.fa-archive
| {{_ 'archive-swimlane'}}
+8 -2
View File
@@ -463,7 +463,13 @@ body.swimlane-resizing-active * {
/* #2805: one shared list header row for all swimlanes (Board Settings /
Swimlane). The other swimlanes do not repeat the first swimlane's list
headers; those stay at the top through the same sticky rule as Sticky list
headers (#3847, lists/list.css), which the setting turns on. */
headers (#3847, lists/list.css), which the setting turns on.
!important: the desktop list header layout sets `display: block !important`
(lists/list.css `.list:not(.list-collapsed):not(.mobile-view) .list-header`,
boardHeader.css `.desktop-mode .list-header`), and a plain `display: none`
loses to any !important one, so every swimlane kept its headers. Between
!important declarations specificity decides, and this selector (0,5,0)
outranks those (0,4,0 at most). tests/sharedListRow6902.test.cjs. */
.board-canvas.shared-list-headers .js-swimlane:not(.is-first-swimlane) .list-header {
display: none;
display: none !important;
}
+6 -6
View File
@@ -13,6 +13,12 @@ template(name="headerUserBar")
= currentUser.username
template(name="memberMenuPopup")
//- #6837: a feature profile hides features on purpose, and says so, so a
hidden feature is never taken for a missing one (models/lib/featureProfiles.js).
with featureProfileNotice
p.feature-profile-notice.quiet(role="note")
i.fa.fa-eye-slash(aria-hidden="true")
| {{_ 'feature-profile-notice' name=name count=hiddenCount}}
ul.pop-over-list
with currentUser
//- #6732: at the top - Show My / Show Board Dependencies, Import, Export.
@@ -231,12 +237,6 @@ template(name="editProfilePopup")
input#anonymizeButton.primary.wide(type="button" value="{{_ 'anonymize-account'}}")
template(name="supportPopup")
ul.pop-over-list
li
+viewer
= currentSetting.supportPopupText
template(name="changePasswordPopup")
+atForm(state='changePwd')
-1
View File
@@ -121,7 +121,6 @@ Template.memberMenuPopup.events({
'click .js-sqrl': Popup.open('sqrl'),
'click .js-hidden-boards': Popup.open('hiddenBoards'),
'click .js-change-language': Popup.open('changeLanguage'),
'click .js-support': Popup.open('support'),
async 'click .js-logout'(event) {
event.preventDefault();
if (Meteor.user()?.authenticationMethod === 'saml') {
+3
View File
@@ -4,6 +4,7 @@ import '/client/components/cards/cardDate.jade';
import '/client/components/cards/cardDescription.jade';
import '/client/components/cards/cardDetails.jade';
import '/client/components/cards/cardFlowtime.jade';
import '/client/components/cards/cardFlow.jade';
import '/client/components/cards/cardPomodoro.jade';
import '/client/components/cards/cardStickers.jade';
import '/client/components/cards/cardTextNotes.jade';
@@ -23,6 +24,7 @@ import '/client/components/cards/cardDetails.js';
import '/client/components/cards/cardAddFields.js';
import '/client/components/cards/cardDrawing.js';
import '/client/components/cards/cardFlowtime.js';
import '/client/components/cards/cardFlow.js';
import '/client/components/cards/cardPomodoro.js';
import '/client/components/cards/cardStickers.js';
import '/client/components/cards/cardTextNotes.js';
@@ -44,6 +46,7 @@ import '/client/components/cards/cardDetails.css';
import '/client/components/cards/cardAddFields.css';
import '/client/components/cards/cardDrawing.css';
import '/client/components/cards/cardFlowtime.css';
import '/client/components/cards/cardFlow.css';
import '/client/components/cards/cardPomodoro.css';
import '/client/components/cards/cardTime.css';
import '/client/components/cards/checklists.css';
+3
View File
@@ -2,12 +2,15 @@ import '/client/components/lists/list.jade';
import '/client/components/lists/listBody.jade';
import '/client/components/lists/listHeader.jade';
import '/client/components/lists/listPermissions.jade';
import '/client/components/lists/listFlowPolicies.jade';
import '/client/components/lists/minilist.jade';
import '/client/components/lists/list.js';
import '/client/components/lists/listBody.js';
import '/client/components/lists/listHeader.js';
import '/client/components/lists/listPermissions.js';
import '/client/components/lists/listFlowPolicies.js';
import '/client/components/lists/list.css';
import '/client/components/lists/listFlowPolicies.css';
+3
View File
@@ -4,6 +4,7 @@ import '/client/components/sidebar/sidebarOriginalPositions.jade';
import '/client/components/sidebar/sidebarCustomFields.jade';
import '/client/components/sidebar/sidebarFilters.jade';
import '/client/components/sidebar/sidebarSearches.jade';
import '/client/components/sidebar/scrumMeetings.jade';
import '/client/components/sidebar/sidebar.js';
import '/client/components/sidebar/sidebarArchives.js';
@@ -13,7 +14,9 @@ import '/client/components/sidebar/sidebarSinceLastVisit.js';
import '/client/components/sidebar/sidebarCustomFields.js';
import '/client/components/sidebar/sidebarFilters.js';
import '/client/components/sidebar/sidebarSearches.js';
import '/client/components/sidebar/scrumMeetings.js';
import '/client/components/sidebar/sidebar.css';
import '/client/components/sidebar/sidebarSearches.css';
import '/client/components/sidebar/scrumMeetings.css';
+57
View File
@@ -0,0 +1,57 @@
// #6924: the card shortcuts open ONLY their popup. `d` (Due date), Shift+M
// (Move card) and Shift+C (Copy card) on a hovered or selected minicard used
// to open the card first, and Shift+M / Shift+C went through the card's
// hamburger menu too - three things for one key. Now the popup opens by
// itself, next to the minicard, as a click on a minicard's due date or label
// opens only its popup; on an opened card, Move / Copy open next to the card's
// hamburger without showing the menu first.
//
// The popup is opened directly, so these are the rules a click would meet.
// Each one is the condition the opened card renders that control under, and
// tests/cardShortcutPopup.test.cjs ties every rule to that template:
// due cardDetails.jade: `if currentBoard.allowsDueDate`, then the date
// badge (`if canModifyCard`) when the card has a due date, or the add
// `+` (`if canModifyCard` / `unless currentUser.isWorker`) when not;
// move cardDetailsActionsPopup: `if cardMenuWrites` / `if currentUser.isBoardAdmin`;
// copy cardDetailsActionsPopup: `if cardMenuWrites` / `unless currentUser.isWorker`.
// cardMenuWrites (cardDetails.js) is: may modify the card, or is a member who
// is neither read-only nor read-assigned-only.
//
// Pure, no Meteor imports, so the test drives it without a browser.
export const CARD_SHORTCUT_POPUPS = Object.freeze({
due: 'editCardDueDate',
move: 'moveCard',
copy: 'copyCard',
});
// facts: { canModifyCard, isBoardAdmin, isWorker, isReadOnly,
// isReadAssignedOnly, allowsDueDate, hasDue } - booleans.
// Returns the popup name to open, or null when a click could not open it.
export function cardShortcutPopup(action, facts = {}) {
const f = facts || {};
const cardMenuWrites = Boolean(f.canModifyCard) || !(f.isReadOnly || f.isReadAssignedOnly);
switch (action) {
case 'due':
if (f.allowsDueDate === false || !f.canModifyCard) return null;
if (!f.hasDue && f.isWorker) return null;
return CARD_SHORTCUT_POPUPS.due;
case 'move':
return cardMenuWrites && f.isBoardAdmin ? CARD_SHORTCUT_POPUPS.move : null;
case 'copy':
return cardMenuWrites && !f.isWorker ? CARD_SHORTCUT_POPUPS.copy : null;
default:
return null;
}
}
const SAFE_ID = /^[A-Za-z0-9_-]+$/;
// The minicard element of a card, to anchor its popup: the hovered one when it
// is that card (a card can be on the board more than once), else the first.
// null for an id that is not a plain id, so it never reaches a selector.
export function findMinicard(root, cardId, hovered = null) {
if (!root || typeof cardId !== 'string' || !SAFE_ID.test(cardId)) return null;
if (hovered && hovered.getAttribute && hovered.getAttribute('data-card-id') === cardId) return hovered;
return root.querySelector(`.js-minicard[data-card-id="${cardId}"]`) || null;
}
@@ -265,9 +265,6 @@ export class BoardSwimlaneListDialog {
const lanes = this.swimlanes();
if (!lanes.some(lane => lane._id === this.selectedSwimlaneId.get())) this.setFirstSwimlaneId();
if (!this.lists().some(list => list._id === this.selectedListId.get())) this.setFirstListId();
if (this.selectedCardId && !this.cards().some(card => card._id === this.selectedCardId.get())) {
this.selectedCardId.set('');
}
this.loading.set(false);
},
onStop: error => {
+30 -1
View File
@@ -10,6 +10,33 @@ export class BoardSwimlaneListCardDialog extends BoardSwimlaneListDialog {
constructor(tpl, callbacks = {}) {
super(tpl, callbacks);
this.selectedCardId = new ReactiveVar(this.cardOption.cardId || '');
this.cardsLoading = new ReactiveVar(true);
// #6917: the destination's cards come from a picker-owned subscription,
// not from the `board` publication, which ships no cards at all for a
// board that loads lazily (Card loading = lazy, or 'auto' above the
// threshold). Subscribing inside the template's autorun stops the previous
// list's subscription when another board, swimlane or list is chosen, and
// the last one when the popup closes.
this.tpl.autorun?.(() => {
const boardId = this.selectedBoardId.get();
const listId = this.selectedListId.get();
const swimlaneId = this.selectedSwimlaneId.get();
const request = (this._cardsRequest = (this._cardsRequest || 0) + 1);
this.cardsLoading.set(true);
if (!boardId || !listId || !swimlaneId) return;
this.tpl.subscribe('destinationCards', boardId, listId, swimlaneId, {
onReady: () => {
if (this._disposed || request !== this._cardsRequest) return;
// A remembered card is checked here, once this list's cards are
// there - the board being ready says nothing about its cards.
const cardId = this.selectedCardId.get();
if (cardId && !this.cards().some(card => card._id === cardId)) {
this.selectedCardId.set('');
}
this.cardsLoading.set(false);
},
});
});
}
getDefaultOption() {
@@ -37,7 +64,9 @@ export class BoardSwimlaneListCardDialog extends BoardSwimlaneListDialog {
});
const swimlaneId = this.selectedSwimlaneId.get();
if (list && swimlaneId) {
return list.cards(swimlaneId).sort((a, b) => a.sort - b.sort);
// Unfiltered: the open board's Filter describes that board, and must not
// empty the dropdown of the destination (#6917).
return list.cardsUnfiltered(swimlaneId).sort((a, b) => a.sort - b.sort);
} else {
return [];
}
+10 -1
View File
@@ -11,7 +11,8 @@ const { isBoardViewAvailable, isFeatureAvailable } = require('/models/lib/instan
// calls this, and every list's card loop reads boardView(): with the whole user
// document here, a card open (a user write) re-ran every list and Blaze then
// re-evaluated every minicard.
const PREVIEW_USER_FIELDS = ['featurePreview', 'isAdmin'];
// #6837: and the three that pick the user's feature profile.
const PREVIEW_USER_FIELDS = ['featurePreview', 'isAdmin', 'featureProfileId', 'teams', 'orgs'];
export function allowBoardView(view) {
return isBoardViewAvailable(ReactiveCache.getCurrentSetting(), currentUserWith(PREVIEW_USER_FIELDS), view);
@@ -25,3 +26,11 @@ export function allowFeature(key) {
// {{#if allowFeature 'board-summary'}} in a template.
Template.registerHelper('allowFeature', key => allowFeature(key));
// #6837: the profile that hides features for the signed-in user, so the
// interface can say so - a hidden feature must never look like a missing one.
export function featureProfileNotice() {
return require('/models/lib/featureProfiles').featureProfileNotice(
ReactiveCache.getCurrentSetting(), currentUserWith(PREVIEW_USER_FIELDS));
}
Template.registerHelper('featureProfileNotice', () => featureProfileNotice());
+54 -29
View File
@@ -10,7 +10,8 @@ import { Utils } from '/client/lib/utils';
import { newHistoryRequestId, runKeystroke } from '/client/lib/historyKeyRequest';
import { historyRequestStorage, refreshPendingHistoryRequest } from '/client/lib/historyKeyRecovery';
import { findDueDateControl } from '/client/lib/dueDateHotkey';
import { cardMenuStep } from '/client/lib/cardMenuHotkey';
import { findCardMenuOpener } from '/client/lib/cardMenuHotkey';
import { cardShortcutPopup, findMinicard } from '/client/lib/cardShortcutPopup';
// Late-bind Sidebar to avoid circular dependency (sidebar.js needs its template first)
let _Sidebar;
@@ -424,39 +425,67 @@ export function openDueDateEditorOfOpenedCard() {
return true;
}
// #6755: with no card opened, `d` on a hovered or selected minicard - the
// card every other card shortcut here acts on - opens that card and then
// its Due date editor, rather than doing nothing until the card is opened.
const minicardId = Session.get('selectedCard') || getHoveredCardId();
const minicard = minicardId && ReactiveCache.getCard(minicardId);
if (!minicard || !Utils.canModifyCard(minicard)) return false;
Utils.goCardId(minicardId);
setTimeout(() => clickDueDateControlWhenRendered(minicardId), 0);
return true;
// card every other card shortcut here acts on - opens its Due date editor.
// #6924: only the editor, next to the minicard, as a click on the
// minicard's due date does; the card itself stays closed.
return openCardShortcutPopupAtMinicard('due');
}
hotkeys('d, shift+d', (event) => {
event.preventDefault();
openDueDateEditorOfOpenedCard();
});
// #6904: Shift+M opens Move card and Shift+C opens Copy card, through the
// opened card's own hamburger menu (client/lib/cardMenuHotkey.js), so the
// menu's permissions decide whether there is anything to open. With no card
// opened, the hovered or selected minicard is opened first, as for `d`.
// Shift keeps them apart from `m` (assign yourself) and `c` (archive).
function runCardMenuActionWhenRendered(cardId, action) {
// #6904: Shift+M opens Move card and Shift+C opens Copy card. Shift keeps them
// apart from `m` (assign yourself) and `c` (archive).
// #6924: each opens ONLY its popup. The popup is opened directly, so
// cardShortcutPopup (client/lib/cardShortcutPopup.js) applies the rules the
// controls a click would use are rendered under - the hamburger menu's Move
// card / Copy card items, the due date badge and its `+` - and without them
// nothing opens.
function cardShortcutFacts(card) {
const user = ReactiveCache.getCurrentUser();
const board = ReactiveCache.getBoard(card.boardId);
return {
canModifyCard: Utils.canModifyCard(card),
isBoardAdmin: Boolean(user && user.isBoardAdmin && user.isBoardAdmin()),
isWorker: Boolean(user && user.isWorker && user.isWorker()),
isReadOnly: Boolean(user && user.isReadOnly && user.isReadOnly()),
isReadAssignedOnly: Boolean(user && user.isReadAssignedOnly && user.isReadAssignedOnly()),
allowsDueDate: !board || board.allowsDueDate !== false,
hasDue: Boolean(card.getDue && card.getDue()),
};
}
// Opens the popup next to `anchor`, with the card as its data context - as
// the minicard's own menu and date badges open theirs (minicard.js,
// cardDate.js openDateEditor).
function openCardShortcutPopup(action, card, anchor) {
const name = cardShortcutPopup(action, cardShortcutFacts(card));
if (!name || !anchor) return false;
Popup.open(name).call(card, { currentTarget: anchor, target: anchor, preventDefault() {} });
return true;
}
// With no card opened: the hovered or selected minicard, the card every other
// card shortcut here acts on. The card is not opened.
function openCardShortcutPopupAtMinicard(action) {
const minicardId = Session.get('selectedCard') || getHoveredCardId();
const minicard = minicardId && ReactiveCache.getCard(minicardId);
if (!minicard) return false;
const anchor = findMinicard(document, minicardId, $('.js-minicard:hover').get(0));
return openCardShortcutPopup(action, minicard, anchor);
}
// #6840: an opened card's details render a moment after the route names it,
// so the popup waits for the card's hamburger to anchor to, and gives up
// after 3 seconds.
function openCardShortcutPopupWhenRendered(cardId, action) {
const started = Date.now();
let menuOpened = false;
const step = () => {
if (Utils.getCurrentCardId() !== cardId) return;
const result = cardMenuStep(document, {
cardId, action, menuOpened, dataOf: element => Blaze.getData(element),
});
if (result === 'clicked-item') return;
if (result === 'no-item') {
Popup.close();
const card = ReactiveCache.getCard(cardId);
const anchor = card && findCardMenuOpener(document, { cardId, dataOf: element => Blaze.getData(element) });
if (anchor) {
openCardShortcutPopup(action, card, anchor);
return;
}
if (result === 'opened-menu') menuOpened = true;
if (Date.now() - started < 3000) setTimeout(step, 50);
};
step();
@@ -466,14 +495,10 @@ export function openCardMenuActionOfOpenedCard(action) {
const cardId = Utils.getCurrentCardId();
if (cardId) {
if (!ReactiveCache.getCard(cardId)) return false;
runCardMenuActionWhenRendered(cardId, action);
openCardShortcutPopupWhenRendered(cardId, action);
return true;
}
const minicardId = Session.get('selectedCard') || getHoveredCardId();
if (!minicardId || !ReactiveCache.getCard(minicardId)) return false;
Utils.goCardId(minicardId);
setTimeout(() => runCardMenuActionWhenRendered(minicardId, action), 0);
return true;
return openCardShortcutPopupAtMinicard(action);
}
hotkeys('shift+m', (event) => {
event.preventDefault();
+5 -2
View File
@@ -884,9 +884,12 @@ export const Utils = {
// never chosen. The three states matter — see showDragHandles() below.
dragHandlesPreference() {
// #6745: read by every minicard - one field, not the whole user document.
const currentUser = currentUserWith(['profile.showDesktopDragHandles']);
// #6919: the profile's own value when the client has the profile, else the
// one userDesktopDragHandles publishes under a top-level field of its own.
const currentUser = currentUserWith(['profile.showDesktopDragHandles', 'desktopDragHandlesPreference']);
const fromProfile = currentUser && (currentUser.profile || {}).showDesktopDragHandles;
const stored = currentUser
? (currentUser.profile || {}).showDesktopDragHandles
? (fromProfile !== undefined ? fromProfile : currentUser.desktopDragHandlesPreference)
// Not logged in: the same three states, kept in localStorage. A MISSING
// key is "never chosen"; the string 'false' is a deliberate "off".
: window.localStorage.getItem('showDesktopDragHandles');
+16 -2
View File
@@ -23,7 +23,16 @@ import {
resolvePaneId,
adminPath,
adminRoutePath,
movedPanePath,
} from '/models/lib/adminUrls';
// A pane that moved (models/lib/adminUrls.js MOVED_PANES): its old address
// redirects to the new one, so a bookmark keeps working. A trigger redirects
// with the `redirect` it is handed, never FlowRouter.go() (see below).
const redirectMovedPane = page => (context, redirect) => {
const to = movedPanePath(page, (context.params || {}).pane);
if (to) redirect(to);
};
// The All Boards page's URLs: /allboards/starred, /allboards/templates,
// /allboards/remaining, /allboards/workspaces/<name>/<sub-name>.
// docs/Features/All-Boards/URLs.md
@@ -371,9 +380,11 @@ FlowRouter.route('/share-target', {
},
});
// No sign-in guard: Admin Panel / Settings / Visibility marks the Support page
// Public or not, and the template says "only for logged-in users" to a signed-out
// visitor of a page that is not public (the publication then sends no text).
FlowRouter.route('/support', {
name: 'support',
triggersEnter: [ensureSignedInUnlessSandstorm],
action() {
Session.set('currentBoard', null);
Session.set('currentList', null);
@@ -843,6 +854,7 @@ FlowRouter.route('/import/:source', {
FlowRouter.route(adminRoutePath('settings'), {
name: 'setting',
triggersEnter: [
redirectMovedPane('settings'),
ensureSignedInUnlessSandstorm,
() => {
Session.set('currentBoard', null);
@@ -887,7 +899,8 @@ Object.keys(ADMIN_PAGES).forEach(page => {
// unknown one falls back to the default rather than 404ing a bookmark.
FlowRouter.route(`${cfg.legacyBase}/:pane`, {
triggersEnter: [
(context, redirect) => redirect(adminPath(page, (context.params || {}).pane)),
(context, redirect) => redirect(movedPanePath(page, (context.params || {}).pane)
|| adminPath(page, (context.params || {}).pane)),
],
action() {},
});
@@ -953,6 +966,7 @@ FlowRouter.route(adminRoutePath('people'), {
FlowRouter.route(adminRoutePath('problems'), {
name: 'problems',
triggersEnter: [
redirectMovedPane('problems'),
ensureSignedInUnlessSandstorm,
() => {
Session.set('currentBoard', null);
+45 -3
View File
@@ -16,16 +16,58 @@ curl -H "Authorization: Bearer t7iYB86mXoLfP_XsMegxF41oKT7iiA9lDYiKVtXcctl" \
## Result example
```shell
{
[
{
"_id": "AzEeHS7KAGeYZCcak",
"boardId": "YRgy7Ku6uLFv2pYwZ",
"title": "Create Auth Code",
"description": "Create Auth Code for application.",
"listId": "RPRtDTQMKpShpgqoj"
"listId": "RPRtDTQMKpShpgqoj",
"dueAt": "2026-11-30T12:00:00.000Z",
"assignees": ["Ji7nMxZPTcqBDhdNa"],
"sort": 1,
"modifiedAt": "2026-11-19T10:00:00.000Z",
"dateLastActivity": "2026-11-19T10:00:00.000Z",
"labelIds": ["fHTCkZ"],
"members": ["Ji7nMxZPTcqBDhdNa"],
"customFields": [{ "_id": "jN7WWYvD8ywjgcpbM", "value": "Customer A" }]
},
{
...
]
```
Only active (not archived) cards, in their sort order. A field the card does
not have is left out.
# Retrieve cards by list id
| API URL / Code Link | Requires Admin Auth | HTTP Method |
| :--- | :--- | :--- |
| /api/boards/:boardId/lists/:listId/cards | `no` - a board member | `GET` |
```shell
curl -H "Authorization: Bearer t7iYB86mXoLfP_XsMegxF41oKT7iiA9lDYiKVtXcctl" \
-X GET \
http://localhost:3000/api/boards/YRgy7Ku6uLFv2pYwZ/lists/RPRtDTQMKpShpgqoj/cards
```
The same fields as by swimlane, with `swimlaneId` in place of `listId`.
## Fields for syncing
Both card lists carry what a client needs to keep a copy of a board without
a `GET` per card ([#6928](https://github.com/wekan/wekan/issues/6928)):
- `modifiedAt` and `dateLastActivity` - a card whose values did not change
since the last sync can be skipped;
- `labelIds` - the board's label ids, as in `GET /api/boards/:boardId`;
- `members` - user ids;
- `customFields` - `[{ "_id": "<custom field id>", "value": ... }]`. The value
of an **admin-only** custom field is `null` unless the caller is an admin of
the board, exactly as in the single-card `GET`.
Checklists, comments and attachments are still only in the single-card `GET`.
# Add Card to List-Board-Swimlane
| API URL / Code Link | Requires Admin Auth | HTTP Method |
+1 -1
View File
@@ -1,6 +1,6 @@
# Optional APIs: Trello, Jira, GitHub and Gitea compatible
Admin Panel → Settings → Visibility → **Optional APIs** turns on REST APIs in
Admin Panel → Settings → Features → **Optional APIs** turns on REST APIs in
the shape of other trackers' APIs (#4930). An app or script written for Trello,
Jira, GitHub or Gitea can then use this WeKan as its backend: what it saves is
stored in WeKan's database, on WeKan boards, and is seen in WeKan like any
+2
View File
@@ -43,6 +43,8 @@ When calling a production Wekan server, ensure it is running via HTTPS and has a
### Cards
| HTTP Method | Url | Short Description |
| :--- | :--- | :--- |
| `GET` | `/api/boards/:boardId/lists/:listId/cards` | [The active cards of a list, with the fields for syncing.](Cards.md#retrieve-cards-by-list-id) |
| `GET` | `/api/boards/:boardId/swimlanes/:swimlaneId/cards` | [The active cards of a swimlane, with the fields for syncing.](Cards.md#retrieve-cards-by-swimlane-id) |
| `POST` | `/api/boards/:boardId/lists/:listId/cards` | [Add a card to a list, board, and swimlane.](Cards.md#add-card-to-list-board-swimlane) |
| `PUT` | `/api/boards/:boardId/lists/:fromListId/cards/:cardId` | [Update a card.](Cards.md#update-a-card) |
| `DELETE` | `/api/boards/:boardId/lists/:listId/cards/:cardId` | [Delete a card.](Cards.md#update-a-card) |
@@ -114,7 +114,7 @@ may mark an abandoned redo branch `superseded`.
The existing filesystem-integrity inventory covers attachments and avatars. The
same paced audit also covers registered logs and verified recovery generations.
Missing files, changed sizes, invalid signed baselines and changed checksums are
reported in Admin Panel → Problems → Security. Intentional application deletion
reported in Admin Panel → Problems → Security Report. Intentional application deletion
removes its inventory entry as part of the authorized operation and is not called
tampering.
+2 -2
View File
@@ -364,7 +364,7 @@ never quietly narrowed.
#### D.9 The singletons (problem 6)
Per-tenant branding reuses the fields Admin Panel / Settings / Visibility already
Per-tenant branding reuses the fields Admin Panel / Settings / Appearance already
has: the org document carries an `org`-prefixed copy of each, and a non-empty one
replaces the instance value for that tenant's requests
(`tenantBranding()`), so no rendering code changed — the client reads the same
@@ -382,7 +382,7 @@ host.
| `orgLegalNotice` | the legal notice URL |
**The site theme** is the one branding field an Organization's own admin sets from
the Admin Panel rather than from the org row: Admin Panel / Settings / Visibility /
the Admin Panel rather than from the org row: Admin Panel / Settings / Appearance /
**Change color**, the same shared picker as Board Settings and Member Settings
([Change color](../../Features/General/Theme/Change-Color.md)). The site admin's pane says under the title that
their colour is the one every Organization without one of its own inherits; an
@@ -44,6 +44,12 @@
],
"handling": "Six visible fields in ordinary/local wrapper Details; sprint and release names require the same board. Internal Scrum snapshots and revisions are excluded."
},
{
"fields": [
"flow"
],
"handling": "The Kanban and Scrum flow fields (models/lib/cardFlow.js: blocked and why, class of service, MoSCoW, WSJF) are not in card emails yet; blockedBy is a user id and is never written into a message."
},
{
"fields": [
"archived",
+19 -4
View File
@@ -36,7 +36,12 @@ The bare `/admin/settings` still resolves; it *redirects* to
| URL | Pane | Pane id |
| --- | --- | --- |
| `/admin/settings/version` | Version | `version-setting` |
| `/admin/settings/visibility` | Visibility | `tableVisibilityMode-setting` |
| `/admin/settings/appearance` | Appearance | `tableVisibilityMode-setting` |
| `/admin/settings/features` | Features | `features-setting` |
| `/admin/settings/feature-profiles` | Feature profiles | `feature-profiles-setting` |
| `/admin/settings/security` | Security | `privacy-security-setting` |
| `/admin/settings/activities` | Activities and notifications | `activities-setting` |
| `/admin/settings/delete` | Delete | `delete-setting` |
| `/admin/settings/announcement` | Announcement | `announcement-setting` |
| `/admin/settings/accessibility` | Accessibility | `accessibility-setting` |
| `/admin/settings/translation` | Translation | `translation-setting` |
@@ -75,9 +80,6 @@ OAuth providers and Passwordless login each have their own menu entry.
| URL | Pane | Pane id |
| --- | --- | --- |
| `/admin/problems/summary` | Summary | `report-summary` |
| `/admin/problems/security` | Security | `features-security` |
| `/admin/problems/delete` | Delete | `features-delete` |
| `/admin/problems/notifications` | Notifications | `features-notifications` |
| `/admin/problems/backup` | Backup (status and history; settings stay in Attachments / Backup) | `features-backup` |
| `/admin/problems/security-report` | Security Report | `report-security` |
| `/admin/problems/impersonation` | Impersonation Report | `report-impersonation` |
@@ -179,6 +181,19 @@ They used to hand the pane over in a `Session` value the page consumed once.
Every pane has an address now, so they redirect to it: the pane ends up in the
URL, where it can be linked, bookmarked and gone back to.
### Panes that moved
A pane that moved keeps its old address as a redirect, decided by `MOVED_PANES`
in `models/lib/adminUrls.js` (`movedPanePath`) and applied by the routes before
anything renders - both on the new form and on the old two-segment form:
| Old URL | Redirects to | Since |
| --- | --- | --- |
| `/admin/settings/visibility` | `/admin/settings/appearance` | 2026-11-19 |
| `/admin/problems/security` | `/admin/settings/security` | 2026-11-19 |
| `/admin/problems/delete` | `/admin/settings/delete` | 2026-11-19 |
| `/admin/problems/notifications` | `/admin/settings/activities` | 2026-11-19 |
## How a page opens the pane
The route resolves the slug and puts the **pane id** in a Session value —
+57 -23
View File
@@ -5,11 +5,25 @@ your member menu (top right). Site administrators have instance-wide access;
Organization administrators have access only to their permitted scope.
**The directory you are in mirrors the menu.** A menu path is a docs path:
Admin Panel / Settings / Visibility is
[`Settings/Visibility.md`](Settings/Visibility.md), Admin Panel / People / Teams is
Admin Panel / Settings / Appearance is
[`Settings/Appearance.md`](Settings/Appearance.md), Admin Panel / People / Teams is
[`People/Teams.md`](People/Teams.md), and so on. The tab bar has four sections, and
each has its own left menu — the shared design behind both is
[Left Menu](../All-Boards/Left-Menu.md).
[Left Menu](../All-Boards/Left-Menu.md). Every pane has its own address,
`/admin/<tab>/<pane>` ([Admin Panel URLs](Admin-Panel-URLs.md)).
**One question per tab:**
| Tab | Answers |
| --- | --- |
| [Settings](Settings/README.md) | What does this WeKan offer, how does it look, and how does it behave? |
| [People](People/README.md) | Who may sign in, who do they belong to, and what may they do? |
| [Attachments](Attachments/README.md) | Where are files kept, how big may they be, and are they backed up? |
| [Problems](Problems/README.md) | What is going wrong, what is running, and what happened? |
Which setting decides whether somebody sees or may use something - the instance,
a feature profile, the board, a role - is explained in one place:
[Who sees and can do what](Who-Sees-What.md).
## Settings
@@ -19,12 +33,18 @@ running. [Section index](Settings/README.md).
| Menu path | Page |
| --- | --- |
| Admin Panel / Settings / Version | [Version.md](Settings/Version.md) |
| Admin Panel / Settings / Visibility | [Visibility.md](Settings/Visibility.md) |
| Admin Panel / Settings / Appearance | [Appearance.md](Settings/Appearance.md) |
| Admin Panel / Settings / Features | [Features.md](Settings/Features.md) |
| Admin Panel / Settings / Feature profiles | [Feature-Profiles.md](Settings/Feature-Profiles.md) |
| Admin Panel / Settings / Security | [Security.md](Settings/Security.md) |
| Admin Panel / Settings / Activities and notifications | [Activities-and-Notifications.md](Settings/Activities-and-Notifications.md) |
| Admin Panel / Settings / Delete | [Delete.md](Settings/Delete.md) |
| Admin Panel / Settings / Announcement | [Announcement.md](Settings/Announcement.md) |
| Admin Panel / Settings / Accessibility | [Accessibility.md](Settings/Accessibility.md) |
| Admin Panel / Settings / Translation | [Translation.md](Settings/Translation.md) |
| Admin Panel / Settings / PWA | [PWA.md](Settings/PWA.md) |
| Admin Panel / Settings / Global Webhooks | [Global-Webhooks.md](Settings/Global-Webhooks.md) |
| Admin Panel / Settings / Shared labels | [Shared-Labels.md](Settings/Shared-Labels.md) |
## People
@@ -33,7 +53,6 @@ Who may sign in, who they belong to, and what they may do.
| Menu path | Page |
| --- | --- |
| Admin Panel / People / Login | [Login.md](People/Login.md) |
| Admin Panel / People / E-mail | [E-mail.md](People/E-mail.md) |
| Admin Panel / People / Notifications | [Notifications.md](People/Notifications.md) |
| Admin Panel / People / Domains | [Domains.md](People/Domains.md) |
@@ -41,8 +60,14 @@ Who may sign in, who they belong to, and what they may do.
| Admin Panel / People / Teams | [Teams.md](People/Teams.md) |
| Admin Panel / People / People | [People.md](People/People.md) |
| Admin Panel / People / Locked Users | [Locked-Users.md](People/Locked-Users.md) |
| Admin Panel / People / Audit log | [Audit-Log.md](People/Audit-Log.md) |
| Admin Panel / People / Roles | [Roles.md](People/Roles.md) |
| Admin Panel / People / Shared templates | [Shared-Templates.md](People/Shared-Templates.md) |
| Admin Panel / People / Login | [Login.md](People/Login.md) |
| Admin Panel / People / SAML, LDAP, OAuth2, CAS, Header login, OAuth login providers, Passwordless login | [Login.md](People/Login.md#provider-settings) |
The People, Teams and Organizations tables also show the
[feature profile](Settings/Feature-Profiles.md) that applies.
## Attachments
@@ -55,10 +80,11 @@ in menu order, starting with **Backup**, which is also the pane that opens.
Instance health: what is broken, what is running, and the paginated report tables.
[Section index](Problems/README.md).
The left menu is two named groups. **Settings** — Security and Notifications, the
two panes that came from the removed Features tab. **Reports** — Security Report,
Impersonation Report, Performance, Speed, Tests, CPU usage, Broken Cards, Files,
Rules, Boards, Cards and Recovery. Every report is one shared
**Summary** first, then **Backup** (did the backup work), then the **Reports**
group: Security Report, Impersonation Report, Password length, Performance, Speed,
Tests, CPU usage, Memory usage, Disk usage, Instrumentation, Broken Cards, Files
Report, Rules Report, Boards Report, Cards Report, Recovery, Offices, API,
Database problems, Filesystem integrity and Email. Every report is one shared
[table page](../General/Table.md): a search box, a total, `page X / N` and
prev/next.
@@ -69,20 +95,28 @@ Auth) and SMTP are handled by Sandstorm itself: you add and remove users there.
is no longer a **Sandstorm** pane in Attachments — see
[Attachments](Attachments/README.md#sandstorm--removed-from-the-menu).
## Two panes that are gone
## Panes that moved or are gone
- **Features** — removed. Performance, Security and Notifications are panes of
Admin Panel / Problems now.
- **Accounts** — removed. Its three settings live with what they are about: Allow
e-mail change in [People / E-mail](People/E-mail.md), Username change and Self
delete user account in [People / Login](People/Login.md).
When following an older link or bookmark - every old address redirects:
Renames to know when following an older link: **Layout** is
[PWA](Settings/PWA.md) — its branding and All Boards settings moved to
[Visibility](Settings/Visibility.md); **Boards visibility** is
[Visibility](Settings/Visibility.md); **Registration** is
[People / Login](People/Login.md); **Info** is
[Settings / Version](Settings/Version.md).
- **Settings / Visibility** (2026-11-19) is [Appearance](Settings/Appearance.md);
its Features group is [Features](Settings/Features.md) and its feature profiles
are [Feature profiles](Settings/Feature-Profiles.md).
- **Problems / Security, Delete and Notifications** (2026-11-19) are
[Settings / Security](Settings/Security.md),
[Settings / Delete](Settings/Delete.md) and
[Settings / Activities and notifications](Settings/Activities-and-Notifications.md):
they are settings, not reports.
- **Features** tab — removed (2026-07); its panes went to Problems, and from there
to Settings as above. Performance is still a Problems report.
- **Accounts** tab — removed. Its three settings live with what they are about:
Allow e-mail change in [People / E-mail](People/E-mail.md), Username change and
Self delete user account in [People / Login](People/Login.md).
- **Layout** is [PWA](Settings/PWA.md) — its branding and All Boards settings moved
to [Appearance](Settings/Appearance.md). **Boards visibility** is
[Appearance](Settings/Appearance.md). **Registration** is
[People / Login](People/Login.md). **Info** is
[Settings / Version](Settings/Version.md).
## Related
@@ -95,5 +129,5 @@ Renames to know when following an older link: **Layout** is
## Implementation validation
[Validation report](Validation.md): all 48 panes, backup fixes, test evidence
and external-service verification limits.
[Validation report](Validation.md): the panes, backup fixes, test evidence and
external-service verification limits.
@@ -48,7 +48,7 @@ branding and its own administrators. It is off unless the server is started with
corner logo, the custom help link and the legal notice URL. Each one that is set
replaces the instance value on this Organization's domains; each one left empty
keeps the instance value. The **theme colour** is set in
[Settings / Visibility / Change color](../Settings/Visibility.md) instead, by that
[Settings / Appearance / Change color](../Settings/Appearance.md#change-color) instead, by that
Organization's own admin.
Deactivating an Organization takes its domains off the air without losing any of this.
@@ -0,0 +1,36 @@
# Admin Panel / Problems / Boards Report
Every board on the instance, with its visibility, members, organizations and
teams. Address: `/admin/problems/boards`. Site administrators only, and over
the whole instance, not only the boards the administrator is a member of.
## The table
The shared [table page](../../General/Table.md), 10 rows a page, in the boards'
default sort order, fetched one page at a time from the server
(`boardsReport` publication, `getBoardsReportCount` method,
`server/publications/boards.js`):
| Column | Holds |
| --- | --- |
| Title | shortened to 30 characters |
| Id | the board id |
| Permission | `public`, `instance` or `private` |
| Archived? | Yes or No |
| Members | user names of the active members; a removed member is not listed ([#5122](https://github.com/wekan/wekan/issues/5122)) |
| Organizations | the organizations the board is shared with |
| Teams | the teams the board is shared with |
## Search and filter
- The search box applies when Enter is pressed and matches the board title,
case-insensitively.
- **Permission** - All, Public, Instance or Private - narrows the list to boards
of that visibility and starts again from page 1.
The pane is read-only.
## Related
- [Organizations](../People/Organizations.md) and [Teams](../People/Teams.md)
- [Cards Report](Cards-Report.md)
@@ -0,0 +1,36 @@
# Admin Panel / Problems / Broken Cards
Cards that cannot be shown on a board as they are. Address:
`/admin/problems/broken-cards`. Site administrators only, over every board of
the instance, whether or not the administrator is a member.
## What counts as broken
A card that has no board, no swimlane or no list (the field is missing or
empty), or whose type is not one of the card types WeKan knows
(`BROKEN_CARDS_SELECTOR` in `server/publications/cards.js`).
## The table
The shared [table page](../../General/Table.md), 10 rows a page, sorted by
board and then newest first, fetched one page at a time from the server
(`brokenCardsReport` publication, `getBrokenCardsReportCount` method):
| Column | Holds |
| --- | --- |
| Card Title | shortened to 30 characters |
| Id | the card id |
| Board, Swimlane, List | the titles of those that exist; an empty cell is the part that is missing |
| Type | the card's type |
| Created at | when the card was created |
The search box applies when Enter is pressed and matches the card title,
case-insensitively.
## Repairing
This pane only lists. The repair is on [Summary](Summary.md): the
**Broken cards** problem there has a **Repair broken cards** button, which runs
the repair over every board and says how many cards it fixed and how many have
no board at all and cannot be placed anywhere. Opening a board also repairs its
own cards ([Repairs.md](Repairs.md)).
@@ -0,0 +1,30 @@
# Admin Panel / Problems / Cards Report
Every card on the instance, with where it is and who is on it. Address:
`/admin/problems/cards`. Site administrators only, over every board, whether or
not the administrator is a member.
## The table
The shared [table page](../../General/Table.md), 10 rows a page, sorted by
board and then newest first, fetched one page at a time from the server
(`cardsReport` publication, `getCardsReportCount` method,
`server/publications/cards.js`). Only the columns below are sent, not whole
card documents:
| Column | Holds |
| --- | --- |
| Card Title | shortened to 30 characters |
| Board, Swimlane, List | the titles of each |
| Members | user names of the card's members |
| Assignees | user names of the card's assignees |
The search box applies when Enter is pressed and matches the card title,
case-insensitively. The total is counted once when the pane opens or the search
changes, not on every page. The pane is read-only.
## Related
- [Broken Cards](Broken-Cards.md) - the cards that are missing a board, swimlane
or list.
- [Boards Report](Boards-Report.md)
@@ -0,0 +1,62 @@
# Admin Panel / Problems / Database problems
What the database said, read for the administrator: which database said it,
what it means, and what to do. Address: `/admin/problems/database`. Site
administrators only.
## Where the rows come from
The `database` stream of the `eventlog` collection, written by
`server/lib/databaseProblems.js`:
- **What the database said.** Every uncaught error of a method or publication
passes `Meteor._debug`; one whose text looks like a database or process
resource failure (MongoDB, SQLite, PostgreSQL, MySQL, MariaDB, SAP HANA,
`SQLSTATE`, out of memory, `EMFILE`, read-only filesystem, a malformed
database image, an oversized document) is recorded. The startup, process
error and busy-write retry handlers record theirs too.
- **What WeKan measured.** The database health probe
(`server/lib/databaseHealth.js`, at startup and every five minutes on one
server of the installation) records restarts, a data directory on a network
filesystem, storage latency and disk space running out; startup records an
index it had to create (`server/lib/mongoStartup.js`).
Each message is classified by the pure rules in `models/lib/databaseErrors.js`
(for example `connection-lost`, `disk-full`, `auth-failed`, `mysql-syntax`,
`deadlock`, `timeout`, `duplicate-key`, `database-corrupt`,
`memory-exhausted`, and `unclassified` for anything no rule knows). The same
problem on the same database is recorded at most once a minute.
A FerretDB **canary** - an operation WeKan never issues, such as server-side
JavaScript, dropping a database or SQL that looks injected - is not a database
problem: it goes to the [Security Report](Security-Report.md) instead.
## The table
The same read-only event table as the other streams
([Security Report](Security-Report.md)), newest first, 10 rows a page, with a
search box that filters as you type. On this stream:
| Column | Holds |
| --- | --- |
| Category | which database: `mongodb`, `sqlite`, `postgresql`, `mysql`, `mariadb`, `hana` or `unknown` |
| Name | the kind of problem, for example `disk`, `auth`, `syntax`, `timeout` or `health` |
| Severity | the rule's severity |
| Action | the classifier's rule id |
| Source | the operation, or `Meteor._debug`, or `health` |
| Detail | what it means and what to do, then `—` and what the database itself said |
The search also finds the database name, the rule id and words of the
database's own message.
Acknowledge or clear the stream on [Summary](Summary.md). Rows older than
`EVENTLOG_RETENTION_DAYS` (default 90) are deleted daily. The rows are also on
`GET /api/admin/problems/database`
([REST API](../../../API/REST-API.md#admin-panel-problems)).
## Related
- [Supported databases](../../../Databases/Supported.md)
- [Recovery.md](Recovery.md) - SQLite corruption and the recovery history.
- [FerretDB remediation design](../../../Security/Remediation/FerretDB.md) -
the database canaries.
@@ -0,0 +1,56 @@
# Admin Panel / Problems / Filesystem integrity
Whether this server stopped cleanly, what crashed it, and whether the
continuous backup failed - plus the read-only file status checks. Address:
`/admin/problems/integrity`. Site administrators only.
## File status checks
At the top of the pane, the same checks as on the Files Report and Recovery
panes: **Check files and history**, **Check file types and extensions** and
**Check missing and untracked files**, with **Cancel check** while one runs and
**Download status summary** when one has finished. They change no file and no
record. See [File-status.md](File-status.md).
## Where the rows come from
The `integrity` stream of the `eventlog` collection:
| Name | Severity | Recorded when | Written by |
| --- | --- | --- | --- |
| `DowntimeBleed` (category `availability`) | `high` | the previous run left no clean-shutdown mark and the server was down for more than three minutes: a crash | `server/lib/uptimeWatch.js` |
| `DowntimeBleed` (category `availability`) | `low` | no clean-shutdown mark, but back within three minutes: a quick restart | `server/lib/uptimeWatch.js` |
| `CrashBleed` (category `crash`) | `critical` | an uncaught exception or an unhandled promise rejection, with its message | `server/lib/uptimeWatch.js` |
| `ContinuousBackup` (category `backup`) | `high` | the continuous backup stream failed | `server/continuousBackup.js` |
WeKan writes a heartbeat every minute and marks a clean stop on `SIGTERM` or
`SIGINT`; the next start compares the two. A clean stop and a first run are not
recorded. A database that is only momentarily unreachable is not a crash: it is
recorded on [Database problems](Database-problems.md) instead.
The daily scan of stored files (same name, size, modification time, md5,
sha256 and sha512, signed with ed25519) and the hourly change history audit
report what they find to the [Security Report](Security-Report.md), as
**StorageBleed** and **HistoryIntegrity**, not to this stream. They can be
turned off with `WEKAN_INTEGRITY_SCAN=false` and
`WEKAN_HISTORY_INTEGRITY_SCAN=false`; `WEKAN_INTEGRITY_PRIVATE_KEY` supplies the
signing key instead of one generated and kept in the database.
## The table
The same read-only event table as the other streams
([Security Report](Security-Report.md)): Date and time, Category, Name,
Severity, Action, Source, Username, IPv4, Location, IPv6, Location, Attempts
and Detail, newest first, 10 rows a page, with a search box that filters as you
type.
Acknowledge or clear the stream on [Summary](Summary.md). Rows older than
`EVENTLOG_RETENTION_DAYS` (default 90) are deleted daily. The rows are also on
`GET /api/admin/problems/integrity`
([REST API](../../../API/REST-API.md#admin-panel-problems)).
## Related
- [Security remediation design](../../../Security/Remediation/WeKan.md),
section 13.
- [Continuous backup](../../../Backup/Backup.md)
@@ -0,0 +1,41 @@
# Admin Panel / Problems / Impersonation Report
Every time an administrator acted as another user, and why. Address:
`/admin/problems/impersonation`. Site administrators only: the publication
sends nothing, and the count method refuses, for anybody who is not
`isAdmin`.
## Where the rows come from
The `impersonatedUsers` collection. A row is written when:
| Reason | Written when |
| --- | --- |
| `clickedImpersonate` | an administrator impersonates a user from Admin Panel / People (the `impersonate` method) |
| `restCreateToken: <reason>` | an administrator creates a login token for another user through the REST API; the reason is required and kept, up to 500 characters |
| `exportJSON`, `exportJSONattachment`, `exportExcel`, `exportExcelCard`, `exportCardPDF`, or the export type | a board, card or attachment is exported while impersonating, with the board it was exported from |
Nothing in this pane deletes or changes a row.
## The table
The shared [table page](../../General/Table.md), newest first, 10 rows a page,
fetched one page at a time from the server (`impersonationReport` publication,
`getImpersonationReportCount` method):
| Column | Holds |
| --- | --- |
| Date | when it happened |
| Admin | the administrator; click the name for the Edit user popup |
| Impersonated user | the user acted as, when there was one; click for Edit user |
| Board | the board id, for exports |
| Reason | one of the reasons above |
The search box applies when Enter is pressed. It matches, case-insensitively,
the admin, user, board and attachment ids and the reason
(`models/lib/impersonationReportQuery.js`) - ids, not user names.
## Related
- [People](../People/People.md) - where impersonation starts.
- [REST API](../../../API/REST-API.md)
@@ -0,0 +1,36 @@
# Admin Panel / Problems / Performance
How WeKan loads a board's cards. Address: `/admin/problems/performance`. Site
administrators only. The pane is a description, with nothing to click or
save: it sits beside Speed, Tests and CPU usage because it is what decides how
much a big board costs to open.
## What it says
**Card loading** is automatic, per board, by size (`models/lib/cardsLoading.js`):
- a board with more than the threshold of cards (default **500**) loads lazily:
each list loads only the cards that are visible (infinite scroll) and the
counts come from the server;
- a smaller board loads every card, for the simplest and fully featured
behaviour.
## Environment variables
There is no setting in the Admin Panel. Operators can force a mode:
| Variable | Values | Default |
| --- | --- | --- |
| `CARDS_LOADING` | `auto`, `all` or `lazy`; anything else is `auto` | `auto` |
| `CARDS_LOADING_LAZY_THRESHOLD` | a card count; `0` makes every `auto` board lazy; an invalid or negative value is the default | `500` |
`all` sends every non-archived card of a board to each viewer; filtering,
search, counts, sorting and drag and drop then run in the browser. `lazy`
sends only the visible window of each list, through a windowed publication per
list.
## Related
- [Large-Boards.md](Large-Boards.md) - what a large board loads, and the
measurements behind the threshold.
- [Speed](Speed.md) and [CPU usage](CPU-usage.md).
@@ -58,11 +58,17 @@ sample stream into just two events per episode, with **hysteresis** to prevent
flapping:
- enter the high state after `WEKAN_RAM_HIGH_SAMPLES` (3) consecutive samples at/above
`WEKAN_RAM_HIGH_PERCENT` (default 90% RAM used) **OR** at/above
`WEKAN_SWAP_HIGH_PERCENT` (default 25% swap used — any real swapping is already a
performance problem);
`WEKAN_RAM_HIGH_PERCENT` (default 90% RAM used), **or** with swap at/above
`WEKAN_SWAP_HIGH_PERCENT` (default 25% swap used) **while RAM is also** at/above
`WEKAN_RAM_LOW_PERCENT` (default 80%);
- leave it after `WEKAN_RAM_LOW_SAMPLES` (3) consecutive samples with RAM below
`WEKAN_RAM_LOW_PERCENT` (default 80%) and swap below the swap threshold;
`WEKAN_RAM_LOW_PERCENT`.
Swap alone is not memory pressure. A machine running many programs keeps their
idle pages in swap while plenty of RAM is free; a developer laptop at RAM 52% and
swap 60% used to be reported as "high RAM usage started (>= 90%)", high severity.
Swap now counts only when RAM is tight as well, and the start row says which of
the two started it: `(RAM >= 90%)` or `(swap >= 25% with RAM >= 80%)`.
- it tracks the peak RAM% and peak swap% seen during the episode for the end row.
### Report — Admin Panel → Problems → Memory Usage
@@ -71,13 +77,15 @@ Episodes are written to the `eventLog` collection on the **`ram`** stream (a new
`securityCategories`-style stream alongside `cpu`), and shown by the existing
`eventStreamReport` template (paginated, searchable, read-only). Two rows per episode:
- **start** (`detected`): `high RAM usage started (>= 90%): RAM 7.4/8.0 GB (92%),
- **start** (`detected`): `high RAM usage started (RAM >= 90%): RAM 7.4/8.0 GB (92%),
swap 0.6/2.0 GB (30%), load …, WeKan: <activity>`
- **end** (`remediated`): `high RAM usage ended after 42s (peak RAM 96%, peak swap
41%, back under 80%): RAM 5.1/8.0 GB (64%), swap 0.1/2.0 GB (5%)`
Severity: `high` when RAM is at ≥ 95% or swap is at/above its threshold when the
period starts, else `medium`. The end row is `info`, so it does not count as a new
Severity: `high` when RAM is at ≥ 95% when the period starts, else `medium`. The
rows are named `HighRamUsage` (they were `RamBleed`, as if they were a
vulnerability; the old rows are renamed at startup) and carry no CWE: this is how
busy the machine is, not an attack. The end row is `info`, so it does not count as a new
problem.
Above the rows, a live line shows the current RAM use (percentage and used / total
+52 -60
View File
@@ -18,60 +18,53 @@ stream, `GET /api/admin/problems/:stream` one page of a stream, and
## The Status overview (Problems → Summary)
The **Summary** tab shows a **Status** overview at the top:
The **Summary** pane ([Summary.md](Summary.md)) shows a **Status** overview at
the top:
- **In progress** — every migration or repair running right now (database text
migration, board data-repair, recovery/maintenance, cron migration, attachment
migration), gathered from the persisted status collections so it is accurate even
across a restart.
- **Problems** — detected issues: broken cards, and any failing login-page check.
- **Login page checks** — the known causes that make the login page show
**"Must be logged in"** or sit on the logo + **"Loading, please wait."** spinner
(see **[Login-Problems.md](Login-Problems.md)**).
migration, board data-repair, recovery/maintenance, attachment migration),
gathered from the persisted status collections so it is accurate even across
a restart.
- **Problems** — detected issues: broken cards, lists missing their swimlane, a
failed or overdue backup, data health findings, and any failing login-page
check — the known causes that make the login page show **"Must be logged
in"** or sit on the logo + **"Loading, please wait."** spinner (see
**[Login-Problems.md](Login-Problems.md)**).
Below that is the acknowledge list of the Security / Speed / Tests problem streams.
The Security Report also records denied passwordless code requests after five
requests per source address in one minute. Meteor's per-connection Accounts
limit still applies independently.
Attempts that Meteor 3.5.3's security fixes refuse - a crashing DDP message,
a `__proto__` update field, a malformed `import()` request, an OAuth token of
another application - are recorded as **Meteor DDP**, **Meteor allow-deny**,
**Meteor dynamic-import** and **Meteor OAuth**
([details](../../../Security/Meteor-3.5.3-Security-Fixes-2026-10-22.md)).
An import or export refused by the transfer boundary (a cycle, a non-plain
object, a size limit) is **ImportExportValidation**. One that failed for
another reason - a library that threw, as sanitize-html 2.18.0 did on nested
`<iframe>` - is **ImportExportFailure**: detected, never an attempt, and it
never disables the account of the user whose import or export it was.
Below that are the data health scan and the acknowledge / clear list of the
problem streams. What each stream records is on its own page: the Security
Report also records denied passwordless code requests, the Meteor 3.5.3
refusals and import / export validation, see
[Security-Report.md](Security-Report.md).
## The menu, in two named groups
## The menu
**Settings** — the panes that hold server-wide feature switches, which are
settings rather than reports but are what an admin reaches for when something is
unsafe or noisy:
Admin Panel / Problems opens on **Summary**, then **Backup**, then the
**Reports** group.
- **Security** — how rich text is rendered (links as plain text, all code as plain
text) and the import / export privacy switches (disable all import / export,
avatars, anonymize users). All enforced server-side.
- **Delete** — allow Global Admins to permanently purge soft-deleted content.
The switch is off by default and enabling it deletes nothing by itself.
- **Notifications** — disable all activities, all notifications, or watching, for
deployments that must limit activity tracking
([#5820](https://github.com/wekan/wekan/issues/5820)).
**Security**, **Delete** and **Notifications** used to be a "Settings" group
here. They are settings, not problems, and on 2026-11-19 they moved to Admin
Panel / Settings as [Security](../Settings/Security.md),
[Delete](../Settings/Delete.md) and
[Activities and notifications](../Settings/Activities-and-Notifications.md).
Their old `/admin/problems/...` addresses redirect there.
- **Summary** — what is running, what is wrong, and the new-problem count of
each stream, with the repair, acknowledge and clear buttons.
- **Backup** — did the Admin Panel backup work: the last successful backup,
the last failure and its error, the next scheduled run, and the history of
the last runs. Its settings stay in Admin Panel / Attachments / Backup; a
failed or overdue backup is also listed on Summary
([Backup.md](../../../Backup/Backup.md)).
**Reports** — Security Report, Impersonation Report, Password length, Performance, Speed, Tests, CPU
usage, Instrumentation, Broken Cards, Files Report, Rules Report, Boards Report,
Cards Report, Recovery, Offices, API, Database problems, Filesystem integrity and
Email.
Report tables use the shared [table page](../../General/Table.md):
a search box, the total, `page X / N`, prev/next, and one page of rows fetched from
the server at a time. **Performance** sits with the Speed / Tests / CPU usage streams
it configures: card loading is automatic per board size, with
**Reports** — Security Report, Impersonation Report, Password length,
Performance, Speed, Tests, CPU usage, Memory Usage, Disk usage,
Instrumentation, Broken Cards, Files Report, Rules Report, Boards Report, Cards
Report, Recovery, Offices, API, Database problems, Filesystem integrity and
Email. Report tables use the shared [table page](../../General/Table.md): a
search box, the total, `page X / N`, prev/next, and one page of rows fetched
from the server at a time. **Performance** sits with the Speed / Tests / CPU
usage streams: card loading is automatic per board size, with
`CARDS_LOADING=all|lazy|auto` and `CARDS_LOADING_LAZY_THRESHOLD` for operators.
## Detailed pages in this directory
@@ -117,39 +110,38 @@ rather than what it shows.
Every pane of this tab, in the order the menu shows them. The slug is what
the address uses: `/admin/problems/<slug>`.
Security, Delete and Notifications are no longer in this list: they moved to
Admin Panel / Settings (see [The menu](#the-menu) above).
| Menu path | URL slug | Page |
| --- | --- | --- |
| Problems / Summary | `summary` | — |
| Problems / Security | `security` | — |
| Problems / Delete | `delete` | — |
| Problems / Notifications | `notifications` | — |
| Problems / Summary | `summary` | [Summary.md](Summary.md) |
| Problems / Backup | `backup` | [Backup.md](../../../Backup/Backup.md#did-the-backup-work-history-health-and-monitoring) |
| Problems / Security Report | `security-report` | — |
| Problems / Impersonation Report | `impersonation` | — |
| Problems / Security Report | `security-report` | [Security-Report.md](Security-Report.md) |
| Problems / Impersonation Report | `impersonation` | [Impersonation-Report.md](Impersonation-Report.md) |
| Problems / Password length | `password-length` | [Password-length.md](Password-length.md) |
| Problems / Performance | `performance` | — |
| Problems / Speed | `speed` | — |
| Problems / Tests | `tests` | — |
| Problems / Performance | `performance` | [Performance.md](Performance.md) |
| Problems / Speed | `speed` | [Speed.md](Speed.md) |
| Problems / Tests | `tests` | [Tests.md](Tests.md) |
| Problems / CPU usage | `cpu` | [CPU-usage.md](CPU-usage.md) |
| Problems / Memory Usage | `ram` | [RAM-usage.md](RAM-usage.md) |
| Problems / Disk usage | `disk` | [Disk-usage.md](Disk-usage.md) |
| Problems / Instrumentation | `instrumentation` | [Instrumentation.md](Instrumentation.md) |
| Problems / Broken Cards | `broken-cards` | — |
| Problems / Broken Cards | `broken-cards` | [Broken-Cards.md](Broken-Cards.md) |
| Problems / Files Report | `files` | [File-status.md](File-status.md) |
| Problems / Rules Report | `rules` | — |
| Problems / Boards Report | `boards` | — |
| Problems / Cards Report | `cards` | — |
| Problems / Rules Report | `rules` | [Rules-Report.md](Rules-Report.md) |
| Problems / Boards Report | `boards` | [Boards-Report.md](Boards-Report.md) |
| Problems / Cards Report | `cards` | [Cards-Report.md](Cards-Report.md) |
| Problems / Recovery | `recovery` | [Recovery.md](Recovery.md) |
| Problems / Offices | `office` | [Offices.md](Offices.md) |
| Problems / API | `api` | [API.md](API.md) |
| Problems / Database problems | `database` | — |
| Problems / Filesystem integrity | `integrity` | — |
| Problems / Database problems | `database` | [Database-problems.md](Database-problems.md) |
| Problems / Filesystem integrity | `integrity` | [Filesystem-integrity.md](Filesystem-integrity.md) |
| Problems / Email | `mail` | [Bounces.md](../../General/Email/Bounces.md#when-something-goes-wrong) |
15 of these 26 panes has no page of its own yet. A dash is a
gap to fill, not a pane that does nothing - what the pane shows is described in
this README until somebody writes it up.
0 of these 23 panes has no page of its own: every pane above links one. A pane
added to the menu without a page gets a dash here and is counted in this
sentence.
[File status checks](File-status.md): inspect missing files, incomplete upload
metadata, detected types, storage references and available recovery evidence.
Loaded 100 of 819 files, more files were not shown because too many files have changed in this diff. Show more