Compare commits

..
132 Commits
Author SHA1 Message Date
github-actions[bot] 72bb3dc22e Bump versions for v13.33 2026-11-25 22:34:14 +00:00
Lauri Ojansivu df2259a2f2 Prepare v13.33 release 2026-11-26 00:33:04 +02:00
Lauri Ojansivu c10eace708 Updated ChangeLog.
Thanks to xet7 !
2026-11-25 22:59:32 +02:00
Lauri Ojansivu 31ab720792 Dependencies: @babel/cli uses glob 14.0.3, past CVE-2026-118773.
GitHub's dependency report: glob 9.0.0 to 14.0.1 keeps walking the
filesystem after its AbortSignal fired (GHSA-3g3m-2fjr-6pw4, medium).
WeKan's own glob is 14.0.3; the one left was @babel/cli's 13.0.6, a
development tool of npm-packages/meteor-reactive-cache that only calls
glob.sync and never passes a signal, so it was not reachable. An override
gives @babel/cli WeKan's glob too, the way archiver-utils already has
it; its own commander 14 stays. npm ls is clean, and babel src -d dist
finds its files with glob 14.

Thanks to xet7 !
2026-11-25 22:56:16 +02:00
Lauri Ojansivu 254adfd577 Docker entrypoint: no value read from the environment is logged, and db-ready says no credentials.
GitHub CodeQL code scanning alerts #617 and #618 (js/clear-text-logging,
high): the entrypoint's log and warn printed values read from the
environment - the port in the "waiting for database" line, and the
MONGO_URL_FILE path in its error. Running the same query locally showed
two more behind them: the FerretDB listen address and the WEKAN_DB value
repeated in its error. Each is now a fixed sentence that names the
variable, not its value; CodeQL's CleartextLogging query finds nothing
left in releases/ferretdb/.

And one CodeQL cannot see: db-ready's reason goes to the log AND onto
the public 'waiting for database' page. The driver never puts the
password in a message, but "Username contains unescaped characters"
names the username, so the userinfo of MONGO_URL is now taken out of
every message before it is printed.

Tests: tests/dockerEntrypoint.test.cjs (no log line interpolates the
port or the listen address, no thrown message is built from env, the
WEKAN_DB and MONGO_URL_FILE errors carry no value; db-ready run for real
hides the username and password of a malformed URL, and negative: keeps
the host and port of a refused connection), tests/envSecretFiles.test.cjs.

Thanks to GitHub CodeQL and xet7 !
2026-11-25 22:56:16 +02:00
Lauri Ojansivu 8a6f321560 Updated ChangeLog.
Thanks to xet7 !
2026-11-25 22:20:41 +02:00
Lauri Ojansivu 901d9d0eea Translations: Walloon in Walloon, not French, Catalan or invented words.
About 1340 of the 5804 Walloon values were not Walloon: French ("Ajouter
une checklist", "Quand le mimbe", "Supprimer la checklist ?", "Inviter
des djins"), Catalan/Occitan or invented ("Esportar la căte", "Scolar la
căte", "Mettre à jorn cătes", and "Mintrepond" for log in, move and
uploaded by alike), spelled with "ă" where Walloon writes "å", left in
English (the Todoist and Planner import instructions), or translations of
an older English text. Each is rewritten in Walloon with the file's own
vocabulary: cåte, tåvlea, djivêye, coridôr, djivêye di verifiaedje,
Ebaguer/Abaguer, Rimete, Rindjî, rîle, Priyî; the assignee is
"responsåve" throughout, the word the file already used. wa-RR is
Waray-Waray, not Walloon, and is unchanged.

Every correction is in audited-corrections.json, so a Transifex pull
that brings an old value back is repaired. Previously reviewed values
(r-items-list, flow-mr-mean) are kept. The corrected search operators
keep the old words as aliases (search-const.js), so a search typed the
old way still works; the predicate words, which have no aliases, are
left as they were. "date" is "date" in Walloon too, so it is marked as
the same as English on purpose.

Low confidence: long help texts, the flow-chart notes, computer
("Copiutrece"), cpu-cores ("Noyas CPU"), watching/muted ("Shuvou"/"Coy"),
and subtask, which is "dzo-tåche" in some strings and "sos-bouye" in
others.

Tests: tests/walloonCorrections20261125.test.cjs (no French, invented
words or "ă"; placeholders and key order as in English; old and new
operator words both search; negative: wa-RR stays Waray, and the old
Walloon word is no operator in English). Three older guards follow the
deliberate vocabulary (djivêye, rîle, rimetaedje).

Thanks to xet7 !
2026-11-25 22:20:27 +02:00
Lauri Ojansivu 0a2f0e2ae6 Updated ChangeLog.
Thanks to xet7 !
2026-11-25 21:40:37 +02:00
Lauri Ojansivu 3f0647e2d8 Board export: JSON without archived items, for moving a board to another WeKan.
A board export is a complete copy, archive included, so a board moved to
another WeKan brought years of archived cards, lists and swimlanes that then
had to be emptied by hand. The export popup now has "JSON (without archived
items)", ?archived=false at /api/boards/:boardId/export and at exportZip.

It leaves out the archived cards, lists and swimlanes, the cards on an
archived list or swimlane (a card restored while its list stayed archived
would otherwise arrive pointing at a list the new board does not have), and
what hangs off those cards: comments and checklists, which are read by the
exported card ids, and attachments, which are read by the board and so get
their own filter - the reporter's patch left an archived card's files, bytes
and all, in both export paths and in the .zip. The rules are pure, in
models/lib/exportArchivedFilter.js. An ordinary export is unchanged: still a
complete backup. Board activities are not filtered: they are history, and the
import tolerates a missing card id.

"without archived items" in all 244 languages. Low confidence: ace, ak, ay,
bi, bm, bo, bua, chr, csb, cv, dz, ee, ff, fj, fo, gn, gv, haw, iu, kl, ks,
kw, lg, lld, nah, nap, nd, nso, om, pap, qu, rn, rup, sah, sc, se, sm, ss,
tig, tlh, tpi, ts, ve, ve-CC, ve-PP, vo, wa, wa-RR, wal, wo, yi, zgh.

Tests: tests/exportExcludeArchived.test.cjs (the selectors against sample
cards, lists and attachments, the negative that an ordinary export keeps
everything, and that no whole-board attachment read is left unfiltered), and
tests/playwright/specs/export-without-archive-6946.e2e.js (the export through
the API with and without the archive, and the popup entry).

Thanks to Raymond-Voogt and xet7 !

Fixes #6946.
2026-11-25 21:40:18 +02:00
Lauri Ojansivu ad15f728a6 Merge remote-tracking branch 'origin/main' 2026-11-25 21:18:44 +02:00
Lauri Ojansivu 87e280135e Updated ChangeLog. 2026-11-25 18:22:03 +02:00
Lauri Ojansivu 586e44739b Tests: the Azurite test starts Azurite with its own node, so it no longer hangs.
Azurite's node_modules/.bin shim starts with `#!/usr/bin/env node`. Where no
node is on the PATH - the sandbox runs the suites by the full path of its
node - Azurite never started, the Azure SDK retried every request, and the
suite runner killed the test after 300 s. It now runs Azurite's script with
process.execPath: 3 tests in 4 s.

Thanks to xet7 !
2026-11-25 18:21:41 +02:00
Lauri Ojansivu e42c01c77d UCS App Center: the FerretDB UID check works on the distroless image, so v13.32 can be published.
The UCS App Center run for v13.32 stopped before uploading the portal draft:
"Selected FerretDB image must use UID 1000". The image does use UID 1000,
but the check ran `docker run --entrypoint id` in it, and the FerretDB image
is distroless since FerretDB's distroless runtime: there is no id program, so
the check failed on every image.

Now the UID is read without running anything in the image: its USER from
`docker image inspect`, and when that is a name (ferretdb:ferretdb), its uid
from the image's own /etc/passwd, copied out of a created container that is
removed again. The test drives that with a distroless-style passwd (1000
passes, 65532 or a missing user fails), and a negative test fails when the
publisher runs id, sh or another tool inside an image again.

Thanks to xet7 !
2026-11-25 18:21:40 +02:00
Lauri Ojansivu 0d370b84b1 Translations: Omi's Delete all orphans and Gitea database migration version, in every language.
Four new Gitea folder strings, used by Omi (copied into its catalogs):
gitea-db-migration-version, gitea-orphans-delete,
gitea-orphans-delete-confirm and gitea-orphans-delete-wrong-number. Each
language reuses its own word for orphans from gitea-orphans.

Low-confidence translations: chr, tlh, iu, kl, tig, wal, zgh, nah, vo, wa,
rup, csb, gv, kw, lld, ks, uz-AR, ve-PP, ff, gn, bm, wo, ay, qu, fj, bi.

Thanks to xet7 !
2026-11-25 18:21:40 +02:00
github-actions[bot] ffe26d7240 Bump versions for v13.32 2026-11-25 14:52:55 +00:00
Lauri Ojansivu 0fac491d09 Prepare v13.32 release 2026-11-25 16:51:43 +02:00
Lauri Ojansivu 4ed7bcd8cf Updated ChangeLog.
Thanks to xet7 !
2026-11-25 16:36:31 +02:00
Lauri Ojansivu 15bf930502 Minicard: the 24px caret and menu no longer make every card taller.
#6943 "larger cards": v13.31 gave the collapse caret and the card actions
menu a 24 x 24 target (WCAG 2.2, 2.5.8). Both float on the title's line, so
the line, and every minicard, grew by about 8px - more than any padding.

A -4px block margin takes the extra height back out of the line; the box
that is clicked stays 24 x 24, so axe's target-size rule still passes.

Tests: tests/minicardControls6943.test.cjs pins the size and the margin; the
UI test measures both targets at 24px or more and the card the same height
with and without them; tests/playwright/specs/45-axe-accessibility.e2e.js
passes.

Thanks to sirup and xet7 !
2026-11-25 16:35:28 +02:00
Lauri Ojansivu 8f27060b4e Database health: a nightly mongodump no longer raises the "documents per second" problem.
#6945: the probe compares MongoDB's scannedObjects between two probes, and
that counts every document read by anything. A nightly mongodump reads the
whole database, so its one interval went over 50,000 per second every
morning - 632,900 on an instance of 1.1 million cards - and the row said
"queries without a fitting index" while naming none, with nothing to fix.

A query without a fitting index is also a collection scan in MongoDB's
"Slow query" log, which the same probe already reads. Now the log is read
first, and the rate is reported only when a collection scan of the same
interval explains it (scanRateReportable). When the log cannot be read, the
rate alone decides, as before, so a missing index is never hidden. And the
scans of MongoDB's Database Tools themselves - mongodump and mongoexport,
named by their appName - are not reported as collection scans: they read
every collection whole by design.

Tests (tests/databaseHealthScans.test.cjs): a high rate with a scan, or
with the log unreadable, is reported; negative: a high rate with the log
read and no scan, and an ordinary rate, are not; the dump's own COLLSCAN
lines are no group, while the same scan by WeKan is; the probe reads the
log before it judges the rate, and nothing reports on the threshold alone.

Thanks to Raymond-Voogt and xet7 !

Fixes #6945.
2026-11-25 16:18:04 +02:00
Lauri Ojansivu b32a736c62 Data health: a user's emails or a card's custom fields that are not a list no longer end the scan.
The scan read u.emails and card.customFields with `|| []`, which lets a
single object or a scalar through - and older or imported data has them. The
first such user ended the whole scan with "object is not iterable", so 30 of
its 31 checks never ran.

Now both are read through asArray(), as the board members already were: a
field of the wrong shape is skipped, and every check runs. The repair of dead
custom field values leaves such a card as it is.

Tests: in tests/dataHealth6818.test.cjs, a user with an object and one with
a string for emails, and a card with an object for customFields - every check
is reported and the duplicate emails beside them are still found; negative:
no document field is iterated with a bare `|| []`.

Thanks to Raymond-Voogt and xet7 !

Fixes #6944.
2026-11-25 16:16:42 +02:00
Lauri Ojansivu f7c743313b Minicard: the card actions menu can be hidden like the collapse caret, and the content takes its place.
#6943: every minicard shows a collapse caret at its start and a card actions
menu at its end. The caret already has a row in Board Settings / Card (Card,
Show on Minicard: Collapse) and a tick in the Admin Panel's card fields; the
menu had neither.

Now the menu has both: the row "Card Actions" (the menu's own name, an
existing translation) right under Collapse, a board flag allowsMinicardMenu
that a board which never chose reads as on, and the Admin Panel tick that
comes with every row. Hiding section Card on the minicard hides both. The
opened card keeps its own menu with the same actions.

With the menu hidden and no drag handle beside it, the labels and custom
fields no longer keep the 84px corner free for it, and the title has the
whole line.

Tests: tests/minicardControls6943.test.cjs (rows, sections, the Admin Panel
overlay and the section overlay, template gates, CSS, schema), and
tests/playwright/specs/minicard-controls-6943.e2e.js: both hidden from Board
Settings / Card and from the Admin Panel, kept over a reload, the labels
wider, and shown again when ticked.

Thanks to sirup and xet7 !
2026-11-25 16:16:42 +02:00
Lauri Ojansivu 9f15776df8 Tests: the S3 encryption guard knows the Azure Blob adapter is not S3.
de7b622960 gave Azure Blob storage WeKan's own adapter,
server/lib/azureBlobAdapter.js, which defines addFileFromPath and
addFileFromStream as webdavAdapter.js does. The guard that every S3 write
carries the encryption found them and failed; they write to Azure, so they
are allowed beside WebDAV's.

Thanks to xet7 !
2026-11-25 16:10:22 +02:00
Lauri Ojansivu 638e12aef2 Updated ChangeLog.
Thanks to xet7 !
2026-11-25 08:01:35 +02:00
Lauri Ojansivu de7b622960 Azure Blob storage: WeKan's own adapter on @azure/storage-blob, without @azure/identity and MSAL - 36 MiB less.
@tweedegolf/sab-adapter-azure-blob required @azure/identity when it was
loaded, and with it @azure/msal-node, msal-common and msal-browser - 36
MiB in every bundle, msal-browser alone 17 - for one branch: Microsoft
Entra passwordless sign-in, taken only when neither a connection string
nor an account key is given. WeKan always gives one of them
(buildProviderConfig), so it never ran. WeKan's login with Azure AD and
B2C is OIDC (packages/wekan-oidc) and never used these packages either.

server/lib/azureBlobAdapter.js is the adapter interface the other
providers have, like server/lib/webdavAdapter.js: getFileAsStream with
an inclusive byte range (#6745), addFileFromPath, addFileFromStream,
removeFile (a missing file is no error) and listFiles ([name, size],
"container/prefix" lists the prefix), each { value, error }, and
configError for a configuration that cannot work. server/methods/backup.js
already used @azure/storage-blob directly. The package and the
@azure/msal-node override (GHSA-xcx6-jx8p-x3h5) are gone with what they
brought; Admin Panel / Attachments takes the same settings.

tests/azureBlobAdapter.test.cjs runs it against Azurite, Microsoft's
Azure Storage emulator, when it is installed (.tools/azurite): up from a
path and a stream, back whole and as a range, listed, removed, and the
errors - and checks the configuration errors without it.
tests/msalNodeAdvisory.test.cjs now pins that no @azure/identity or MSAL
package is locked. The rebuilt bundle has neither and boots; the source
audit allows the adapter's https://<account>.blob.core.windows.net.

Thanks to xet7 !
2026-11-25 08:01:22 +02:00
Lauri Ojansivu 09424fd9ba Release bundles: no TypeScript compiler, 23 MiB less - it is named in the bundle, and loaded nowhere.
prune-unreachable-npm.mjs had typescript in its policy, and its graph
kept it anyway: it counts every quoted package name as a reference, and
"typescript" is a language map's value and the devDependencies of the
package.json files rspack inlines into app/app.js, a Babel and a Prettier
parser name, Meteor's own typescript build plugin in packages/modules.js,
and i18next's optional peer dependency - which npm does not install
either. No server code loads it.

The typescript entry now says loadedOnly: for it, only a load counts -
require(), import, import(), export ... from, module.link(),
Npm.require(), require.resolve(), a dependency or a peer dependency that
is not optional - and its mentions are listed in the report as
mentionedNotLoaded. A load of any form still keeps it and says so. Every
other entry is unchanged: a mention still keeps its package.

On a bundle built from this source: 23 packages and 76.9 MiB pruned,
typescript among them; the bundle boots with FerretDB, nothing fails to
load, and Playwright's boards, cards and translations specs pass, 23 of 23.
tests/pruneUnreachableNpm.test.cjs: the mentions above prune it;
negative, each form of load keeps it, and a mention of another policy
package still keeps that one.

Thanks to xet7 !
2026-11-25 07:46:50 +02:00
Lauri Ojansivu af3b1af815 Updated ChangeLog.
Thanks to xet7 !
2026-11-25 07:29:40 +02:00
Lauri Ojansivu 1cd1be7238 Translations: one copy of each dictionary, on the server - 143 MiB less in every bundle, and no missing ones.
Every dictionary but English was in the bundle twice: a server asset the
server reads (140 MiB) and a client chunk for the browser (144 MiB). Now
the browser's module for a language is only its dictionary's hash, and
imports/i18n/tap.js fetches /i18n/<hash>.json from the server's copy
(server/i18nAssets.js): at the page's origin under ROOT_URL's path
prefix, once per dictionary, a failed fetch retried next time. The
browser keeps it a year, private and immutable; any other name is 404.
The client of v13.31's source: 41 MiB instead of 184 MiB.

The server assets were named <tag>.<hash>.json, and the build kept one
file per content: where two dictionaries are byte for byte the same
(en-IT, en-MY and en-YS are en-BR; en_SG, en_TR and en_ZA are en_AU),
only one name reached the bundle, and the server reading another failed
with ENOENT. Named by content alone, each such group is one file every
one of them reads: 237 files, every one the server names present.

Checked on a built bundle with FerretDB: a fi-FI Chromium shows the
sign-in page in Finnish from /wekan/i18n/<hash>.json under a /wekan
ROOT_URL; the file is fi.i18n.json byte for byte; en-IT answers 200.
Tests: the loader in both modes and a browser rspack build whose
language chunk holds only the hash; identical dictionaries share one
asset; the route's names, 404s and cache policy; tap.js's fetch; and a
Playwright spec (Finnish from the route; negative, other names 404).
The fetch() and cache-policy guards name the route.

Thanks to xet7 !
2026-11-25 07:29:07 +02:00
Lauri Ojansivu 524ea6a41e Tests: the cpu-exec wiring guard reads the entrypoint's named programs.
af2d29b293 gave each cpuExecPlan() call of the Docker entrypoint the
caller's own name for the program ({ ...cpuOptions(), name: 'FerretDB' }
and 'WeKan (node)'), so its messages name no path from the environment,
and the guard still looked for the bare cpuOptions() call. It now pins
both calls with their names.

Thanks to xet7 !
2026-11-25 07:24:40 +02:00
Lauri Ojansivu 21b0131b8c Release bundles: no test build's client assets, 16 MiB less in every one.
`meteor test` (build.sh's mocha run) has rspack write the test app's
assets to public/build-assets-local-test-app-test/, and public/ is copied
into every later build, so a release bundle built after the tests
carried six wasm and js files, 16 MiB, that only the test app asks for.
bundle-trim.mjs, which every release path runs, now drops each client
program's app/build-assets-local-*/ with its program.json entries; the
production app's build-assets/ and build-chunks/ stay. On v13.31's
client: 508 manifest entries left, every one on disk.

tests/bundleTrim.test.cjs: the test assets and their entries go and the
manifest keeps its read-only mode; negative, the production assets stay
and a second trim finds nothing more.

Thanks to xet7 !
2026-11-25 06:58:19 +02:00
Lauri Ojansivu c6bb8d06de Updated ChangeLog.
Thanks to xet7 !
2026-11-25 06:30:32 +02:00
Lauri Ojansivu ca788de4d7 Security downloads: a Helm chart version Artifact Hub has not scanned yet says so, and the newest scanned one is downloaded.
Artifact Hub scans a new chart version some hours after it is published
and until then answers its security report with an empty body, which the
download called "the answer is not JSON". Now status.txt says the version
is not scanned yet, and the newest of the five versions before it that is
scanned is downloaded into scanned-<version>/: v13.31 is not scanned yet,
so v13.30's report (473 findings) is there. The test pins both, and that
a package with no scanned version writes nothing more.

Thanks to xet7 !
2026-11-25 06:30:24 +02:00
Lauri Ojansivu ea58e01564 Updated ChangeLog.
The licenses entry moves from the released v13.31 section, which its
commit is not part of, to the new Upcoming section.

Thanks to xet7 !
2026-11-25 06:23:13 +02:00
Lauri Ojansivu af2d29b293 Docker entrypoint: log lines say what happens in fixed words, with nothing read from the environment.
GitHub CodeQL js/clear-text-logging, alerts 613-618, on
releases/ferretdb/wekan-entrypoint.mjs: cpu-exec's messages logged the
CPU feature list of WEKAN_REQUIRED_CPU_FEATURES, the program's path and
the qemu-user path, and the recovery and rotating-backup messages the
backup folder's path, all derived from the environment. None of them is
a secret, but the environment can hold one, and the administrator who
set them has them already. Now cpu-exec names the architecture and the
caller's own word for the program (FerretDB, WeKan (node)), and recovery
and backup say backup/, backup/prev/ or continuous-restore/ of the data
folder.

tests/dockerEntrypoint.test.cjs checks the messages, and a negative test
lists what a log or warn line of the entrypoint may interpolate, so a
path or the feature list cannot come back; it fails on the old code.

Thanks to GitHub CodeQL and xet7 !
2026-11-25 06:22:53 +02:00
Lauri Ojansivu 042473e69d Merge remote-tracking branch 'origin/main' 2026-11-25 04:17:27 +02:00
Lauri Ojansivu f3b9682577 Updated ChangeLog.
Thanks to xet7 !
2026-11-25 04:16:07 +02:00
Lauri Ojansivu e30a3129bb Licenses: permissive only, no GPL - not "copyfree".
The term does not fit: Apache-2.0 and MPL dependencies are allowed too,
which copyfree rejects. What is meant is permissive licenses only - MIT,
BSD, ISC, Apache-2.0 and the like - and no GPL, because GPL code would turn
the license of the whole program into GPL. The Code of Conduct, the
Continuous backup licence section, the Multiverse roadmap, the checklist
ding comments and the archived changelog lines say so now.

Thanks to xet7 !
2026-11-25 04:14:37 +02:00
github-actions[bot] a0ddbb5633 Bump versions for v13.31 2026-11-25 01:03:31 +00:00
Lauri Ojansivu 51b634b9ed Prepare v13.31 release 2026-11-25 03:02:25 +02:00
Lauri Ojansivu 3fdd2ff06f Updated ChangeLog.
Thanks to xet7 !
2026-11-25 01:31:37 +02:00
Lauri Ojansivu 599c284d2a Browser tests: closing a form that already closed itself is no failure.
BoardPage.closeComposers counted the open forms and then clicked the first
one's close button. The Add card form closes by itself after a card is
saved (#6827), so between the count and the click there was nothing to
click, and the click waited 15 seconds for it: #810's new-card-title-draft
spec failed that way in the everything run. A form gone by then is closed.

Thanks to xet7 !
2026-11-25 01:31:37 +02:00
Lauri Ojansivu e8a14e5421 Updated ChangeLog.
Thanks to xet7 !
2026-11-25 01:30:31 +02:00
Lauri Ojansivu 56e1ad0980 Fixes from the running everything tests: a PDF beside two empty boxes, two nameless panes, and seven tests that asked the wrong question.
Fixed in WeKan:
- The attachment slideshow showed #zip-viewer and #rich-viewer, two empty
  white boxes, beside every PDF, image and video: their id rule's
  display:flex outranked .hidden. A PDF got a third of a 1600px window,
  468px. tests/hiddenNotOutrankedById.test.cjs looks for the same mistake
  in every template and stylesheet.
- Admin Panel / Problems / API: a person link with a user id and no text
  had no name (axe link-name). personLinkLabel falls back to the
  account's name, then its id.
- Admin Panel / Attachments / Encrypt, hidden from the menu while
  ATTACHMENTS_PASSPHRASE is unset but still at its address, had no pane
  title. paneTitle() takes the page's own title for a pane with no menu
  entry.

The tests corrected, each to what the app now rightly does:
- attachment-content-search: one "added" history row per upload, the
  hash on the attachment (5ba1098521 removed the duplicate row).
- card-details-width: the resize handle is pressed once the window has
  settled; while it opens, its corner is below the window's edge.
- card-title-edit-and-move-6839 and card-window-touch-drag: a popup is
  moved toward the side with room, as far as there is; the card menu is
  1200px wide in a 1280px window and a drag keeps it 12px inside.
- editor-enter-preference and keep-add-card-form-open-6827: Escape goes
  back from Change Settings to the member menu first; closed until no
  popup is left.
- list-sync-time-estimates: the next sync waits for the previous one to
  release its lease, which comes after the card is written.

Thanks to xet7 !
2026-11-25 01:30:17 +02:00
Lauri Ojansivu 8afa64c435 Updated ChangeLog.
Thanks to xet7 !
2026-11-25 00:51:29 +02:00
Lauri Ojansivu 164dd5cdb0 Docker image: distroless base-nossl, without libssl and libgomp.
distroless cc-debian13 adds libssl3t64 and libgomp1 to glibc. Nothing in
the image loads either - node links OpenSSL 3.5 statically, and sharp,
canvas, bcrypt and argon2 need neither - and they were 20 of the base's
55 scanner findings, both HIGH ones among them. The image is now
gcr.io/distroless/base-nossl-debian13 plus gcc-14-base, libgcc-s1,
libstdc++6 and libatomic1 from Debian 13, each with its dpkg record; the
386 root is the same packages. That root, assembled for arm64 from the
registry and deb.debian.org, runs node and loads every arm64 native
module of the bundle, and Trivy finds 42 findings in it: 0 HIGH, 0
fixable.

Thanks to xet7 !
2026-11-25 00:51:28 +02:00
Lauri Ojansivu 03d96c2507 Updated ChangeLog.
Thanks to xet7 !
2026-11-25 00:32:22 +02:00
Lauri Ojansivu 130af564c9 Docker image: distroless, with a Node.js entrypoint and no shell.
Artifact Hub's Trivy report of v13.30 listed 218 vulnerabilities in
ghcr.io/wekan/wekan, 214 of them in Debian packages WeKan never runs
(util-linux, login, tar, coreutils, systemd libraries, sqlite) with no
Debian fix to update to. The image is now gcr.io/distroless/cc-debian13
plus libatomic1, node, WeKan, FerretDB and the MongoDB tools; that base
scans at 55 findings, 2 HIGH. Distroless publishes no linux/386, so for
386 the same Debian 13 packages are assembled into scratch, each with
its dpkg record; the release workflow reads both bases from the
Dockerfile and the image keeps all seven platforms. The wekan user
stays 999:999.

With no shell, releases/ferretdb/wekan-entrypoint.mjs replaces
wekan-entrypoint.sh, with the same decisions, exported and tested. It
runs sqlite-recovery.mjs with its own node: the shell entrypoint ran
/build/node, which the image never had, so every start with the bundled
FerretDB stopped with status 127 since v11.52. It also makes cpu-exec's
qemu-user decision itself. The UCS migration launcher and tools, the
UCS hook's volume preparation (ucs-release.py), the MongoDB tool
launchers (symlinks to mongo-tools) and the Nextcloud capability check
run node instead of sh.

Thanks to xet7 !
2026-11-25 00:32:06 +02:00
Lauri Ojansivu 0e1005059c Updated ChangeLog.
Thanks to xet7 !
2026-11-24 23:56:17 +02:00
Lauri Ojansivu 87b0638da1 Security downloads: Artifact Hub's whole security report of the Helm chart too.
releases/sec/download-artifacthub-security.sh saves the security report
Artifact Hub makes of https://artifacthub.io/packages/helm/wekan/wekan -
every image it scanned with Trivy, every target and every vulnerability,
as Artifact Hub answers it - to
.tools/log/sec/_artifacthub/helm/wekan/wekan/<datetime>/, with one file
per image and a SUMMARY.md of the counts per image and target and every
vulnerability, the most severe first, with its installed and fixed
version. The API is public, so it needs no login and runs in the
sandbox too. download-github-security.sh wekan runs it as well, in the
same datetime; --artifacthub names other packages, --no-artifacthub
skips it.

Thanks to xet7 !
2026-11-24 23:56:01 +02:00
Lauri Ojansivu 36ba5ed185 TODO: why Firefox needs a host - its sandbox, not only its NSS version.
Thanks to xet7 !
2026-11-24 21:28:51 +02:00
Lauri Ojansivu 498b48ada5 Updated ChangeLog. 2026-11-24 21:25:36 +02:00
Lauri Ojansivu b7ea0843dc Translations: Omi's job progress strings - Progress, Newest log lines, Errors - in every language.
For the progress bar, the newest lines and the errors of a running job on
Omi's Gitea folder pages. Added here first and copied into Omi's catalogs.

Low confidence, mostly "Newest log lines": ace, ak, ay, bm, bua, chr, csb, dz,
ee, ff, fj, gn, gv, iu, kl, ks, kw, lg, lld, nah, nap, qu, rup, sah, tig, tlh,
uz-AR, ve, ve-PP, vo, wa, wa-RR, wal, wo, zgh, szl.

Thanks to xet7 !
2026-11-24 21:25:12 +02:00
Lauri Ojansivu a2cb9f4416 Search: an operator whose translation is more than one word works, in every language.
The parser reads an operator as letters and marks followed by ":", so a
translated operator with a space, a hyphen or a stray "|" in it could never be
typed - 450 operator words in 142 languages, such as "pasgemaakte veld" for
customfield in Afrikaans and checklist in Arabic, so those operators did not
work at all in those languages. Each operator is now also known by its
compact form, and a query that types it as the help shows it, spaces and all,
is read as that operator; predicates the same.

Odia's operator words are one word each now, its error messages are readable,
and its old swimlane word "ସନ୍ତରଣ" (swimming), which did work, is still
accepted. tests/searchOperatorWords.test.cjs runs the real parser with every
language's own words and fails when one of its operators is not recognised.

Thanks to xet7 !
2026-11-24 21:11:36 +02:00
Lauri Ojansivu f146448d3c Updated ChangeLog. 2026-11-24 20:50:45 +02:00
Lauri Ojansivu b0d785e305 Translations: the last wrong-language words in Shona, Maltese, Odia, Luxembourgish, Serbian and Venetian.
- Shona (sn): the help and description texts that were English word for word
  with Shona between, written in Shona (688 values); a swimlane is mugwagwa.
- Maltese (mt): the half-English texts written in Maltese (1,105 values); a
  card is karta, not kard.
- Odia (or_IN): about 90 values whose words were split by English ("ପୁନ
  restore ସ୍ଥାପନ") written whole, a few with the wrong meaning rewritten, the
  stray "|" made the danda "।", and zero-width spaces removed.
- Luxembourgish (lb): the whiteboard is "Wäisstafel" - "Tafel" is the board.
- Serbian (sr): All Boards is „Све табле“ everywhere.
- Venetian (ve-CC): three Spanish search help texts in Venetian.

Search operator words were left as they are; Odia's are as garbled as the
rest were, and changing a word people type is a maintainer decision.
tests/wrongLanguageCorrections20261124b.test.cjs fails when any of these
faults comes back.

Low confidence: sn and mt throughout - written by script-checked translation,
not read by a speaker - and lb "Wäisstafel".

Thanks to xet7 !
2026-11-24 20:50:29 +02:00
Lauri Ojansivu 54a9f30f04 Tests: atTextInput is a template of the accounts package, as atInput is.
client/components/users/accountsAutocomplete.js hooks its onRendered, which
the template-existence guard took for a template missing from WeKan's own
Jade.

Thanks to xet7 !
2026-11-24 20:50:22 +02:00
Lauri Ojansivu d9e1172a54 Updated ChangeLog. 2026-11-24 20:17:20 +02:00
Lauri Ojansivu 7697e8250c Accessibility: the sign-in name field tells password managers it is the account, and a keyboard-only spec.
The sign-in and sign-up text fields come from the accounts package's
atTextInput, whose input carries no autocomplete attribute: the
autocomplete="username" config/accounts.js sets never reached the page, and
the sign-in "username or email" field had none at all, so a password manager
had to guess (WCAG 1.3.5, 3.3.8). Each account text field now gets its
purpose when it renders (models/lib/accountsAutocomplete.js).

tests/playwright/specs/48-keyboard-only.e2e.js walks the main tasks with the
keyboard alone and checks three criteria automated rules do not: signing in
with Tab, typing and Enter, with no CAPTCHA and pasting allowed (3.3.8); Tab
to a card, Enter opens it, Escape closes it, and cards added from a list's
Add Card ask for nothing already entered (2.1.1, 3.3.7); and every Admin
Panel pane puts its help button right after its title (3.2.6). Passes in
Chromium.

Thanks to xet7 !
2026-11-24 20:17:07 +02:00
Lauri Ojansivu a8a19ec408 Updated ChangeLog. 2026-11-24 20:02:45 +02:00
Lauri Ojansivu 7e1f9e89eb Docs: every feature topic in one folder under docs/Features, each with README.md as its main page.
- The General/ level is gone: its 109 files moved up into the folders of the
  same name, and its topic table is the "Shared topics" section of
  Features.md.
- Accessibility is one folder, docs/Features/Accessibility/, with the Admin
  Panel's accessibility page in it.
- Every folder's main page is README.md (110 X/X.md pages renamed with git mv,
  five merged with an existing README.md, 26 index pages added for folders
  that had none), so a folder opened on GitHub shows its page.
- The 73 "# Moved" forwarding pages are deleted, with the folders that held
  only them; every link that went to one goes to its final page.
- docs/Features/README.md has the website's "Features in WeKan" overview,
  each feature linking to its page here.

1,129 Markdown links in 262 files and 352 doc paths in code, tests, compose,
snap and release files follow. tests/docsFeaturesLayout.test.cjs fails when
General/ or a "# Moved" page comes back, a folder has no README.md, or a
relative link in the docs or README.md does not resolve.

Thanks to xet7 !
2026-11-24 20:02:06 +02:00
Lauri Ojansivu f510ba5961 Admin Panel / Problems: the report tables and the Email pane in every language, not English.
Spec 47 found the Problems report tables' column names, filter labels and
options ("Title", "Archived?", "Show", "All" ...) and the Email pane's
"Email service" and "Enable below email settings" written in English in the
code. 42 labels use translation keys now - 15 that already existed, 17 new
ones in every language - and the two field identifiers actionType and
activityType stay as they are. "ID" is a technical term the same in every
language, as URL and API are, for the translation tools.
tests/problemsTablesTranslated.test.cjs fails when a plain English label comes
back.

Low confidence: ace, ak, ay, bm, bua, chr, csb, cv, dz, ee, ff, fj, gn, gv,
haw, iu, kl, ks, kw, lg, lld, nah, nap, nd, qu, rup, sah, ss, szl, tig, tlh,
uz-AR, ve-PP, ve, vo, wa-RR, wa, wal, wo, zgh.

Thanks to xet7 !
2026-11-24 20:01:31 +02:00
Lauri Ojansivu ede639c1e8 Updated ChangeLog. 2026-11-24 19:15:59 +02:00
Lauri Ojansivu 6a7af5391a Accessibility: every Admin Panel pane and the most used popups pass the WCAG 2.2 AA rules, at 320 px and with reduced motion.
tests/playwright/specs/47-accessibility-everywhere.e2e.js scans every Admin
Panel pane and the member, list, swimlane and card details menus with axe,
checks 320 px reflow and that nothing animates when reduced motion is asked
for. What it found is fixed:

- names: every unnamed input and select of the Admin Panel is named by the
  label shown beside it; table page filters lost their label in
  models/lib/tablePage.js; people rows and avatar links name the person, and
  a person link's name starts with its visible initials (2.5.3);
- contrast: the feature descriptions, source badges, instrumentation headings
  and the default theme's menu hover pass 4.5:1;
- target size: checkbox rows, notification options and the Select all links
  are at least 24 x 24 px;
- the member menu's dependency toggles are checkboxes in a well-formed list;
- reduced motion: one rule in its own CSS layer makes every animation and
  transition instant, even those header.css marks !important.

Spec 47 passes in Chromium, and specs 45 and 46 still pass (39).
tests/accessibilitySpec47Fixes.test.cjs pins the fixes, and fails when a
settings select has no name.

Thanks to xet7 !
2026-11-24 19:14:11 +02:00
Lauri Ojansivu a8c606aeb9 Admin Panel / Problems / Recovery: the rule email text says what the pane does, in every language.
It said "This report does not retry or cancel delivery", which stopped being
true on 2026-09-30 when Review, Resend, Mark as sent and Drop were added. It
now says to open an attempt with Review to resend it, mark it as sent or drop
it, naming each language's own Review button; the first two sentences of
every translation are kept as they were.
tests/ruleEmailRecoveryDescription.test.cjs fails when a locale keeps the old
English sentence or does not name its Review button.

Low confidence: chr, ks, iu, kl, bo, dz, ace, ak, ay, bm, bua, cv, ee, ff, fj,
gn, gv, haw, ig, kw, lld, nah, nd, nso, qu, rn, rup, sah, se, ss, szl, tig,
tlh, to, ts, uz-AR, ve-PP, ve, vo, wa-RR, wa, wal, zgh.

Thanks to xet7 !
2026-11-24 18:31:23 +02:00
Lauri Ojansivu 9615e9d5dc Updated ChangeLog. 2026-11-24 18:12:57 +02:00
Lauri Ojansivu fc3ce32766 Translations: Omi's Test the token and Stop strings, in every language.
Eight gitea-* strings for Omi's Gitea folder pages: the button that asks
GitHub whether the saved token works and its four answers, and the Stop
button of a running import job and what it says. Added here first and copied
into Omi's catalogs, as every prototype's translations are.

Low confidence: chr, iu, kl, bo, dz, ay, gn, ff, bm, ee, ak, csb, cv, bua,
ba, gv, fj, bi, ace, ary, bho, kw, lld, nah, qu, rup, tig, tlh, vo, ve-PP,
ve, wal, zgh, ks, kok, sah, wa, szl, sc, to, sm, ti, tpi, wa-RR.

Thanks to xet7 !
2026-11-24 18:12:33 +02:00
Lauri Ojansivu a295038de4 Updated ChangeLog. 2026-11-24 17:52:07 +02:00
Lauri Ojansivu 60d49c0435 Translations: wrong-language and wrong-meaning words replaced in 25 languages.
6,633 values, in the language each locale tag names: Neapolitan and
Sicilian that were Italian, Luxembourgish that was German, Macedonian that
was Bulgarian, Latvian with Lithuanian letters, Venetian that was Zulu,
Vietnamese that was Malay; and words with the wrong meaning: a Serbian board
was "списи" (records) and a card "предмет" (an item), an Estonian board
"juhatus" (a management board), a Punjabi and Odia swimlane was swimming, a
Yoruba board a vehicle and a swimlane a boat, a Portuguese assignee an
administrator. Search operator words and date formats were left as they
were. Values earlier reviews pinned - Veps' MediaWiki words, the audited
Neapolitan rows, Macedonian agreement - were kept. Every placeholder is
English's (tests/wrongLanguageCorrections20261124b.test.cjs).

Low confidence: nap, scn, sn, or_IN, yo, rup, mt, wa-RR, lg, so, ps, sd.

Thanks to xet7 !
2026-11-24 17:50:42 +02:00
Lauri Ojansivu 5ba1098521 Server tests pass again: four faults the repaired test build found, fixed.
- A password sign-in refused by policy (PASSWORD_LOGIN_ENABLED=false,
  forgot password off, LDAP's password-login guard) was counted by the
  lockout as a wrong password, which threw its own 403 "Incorrect password"
  over the policy's error: the person was told the wrong thing, and enough
  attempts locked the account because of a setting. Policy refusals are no
  guesses now (loginFailureDecision.js).
- Auto-archive fetched its boards without their members, so boardActorId
  found nobody and every auto-archive was recorded as no user.
- Every upload got two "added" rows in the card history: the upload hook's
  and the content index's. The index writes its row only for an attachment
  that has none, and never for a durable rule copy, whose plan writes it.
- Not found is undefined from Meteor 3's findOneAsync: the Admin Panel
  addresses test accepts either.

meteor test --full-app: 699 passing, 0 failing (was 693 / 6).

Thanks to xet7 !
2026-11-24 17:49:56 +02:00
Lauri Ojansivu 788131193e Admin Panel / Problems / Summary: sign-in refusals grouped by reason, with count, latest account and how to fix it.
The person signing in still sees the same generic message whatever the
reason, so a signed-out visitor cannot tell "no such user" from "wrong
password". Every refusal is recorded with its precise reason
(models/lib/loginRefusals.js, server/lib/loginRefusals.js): wrong password,
unknown user, disabled account, brake, malformed request, and the LDAP
reasons, which the LDAP handler now records before returning its one generic
error - including the two messages that used to name the account. Problems /
Summary groups them like a status dashboard: one row per reason with its
count, first and latest time, latest account and address, the fix and the
Admin Panel pane where it is made, and each problem area lists its three most
frequent problems. Translated to every language.

Thanks to Raymond-Voogt and xet7 !

Fixes #6942,
2026-11-24 17:49:45 +02:00
Lauri Ojansivu 41ace09451 Merge remote-tracking branch 'origin/main' 2026-11-24 17:06:43 +02:00
Lauri Ojansivu e39e4a1200 The Meteor test build runs again: it no longer compiles the 190 MB legacy client bundle.
meteor test --full-app died before any test started with "FATAL ERROR:
Zone Allocation failed - process out of memory" once the help texts grew
every locale file. A larger tool heap did not help: in test mode the
whole client bundle was compiled again for legacy browsers as one file of
170 to 190 MB (it grew with each locale), and V8's compiler gave up on
it. No test uses the legacy browser build, so every meteor test run in
build.sh and package.json now passes --exclude-archs
web.browser.legacy,web.cordova. And Meteor 3.6's watcher subscribes to
the whole app directory without reading .meteorignore, so it walked all
of .tools/ and used up the inotify watches; the --once runs set
METEOR_WATCH_FORCE_POLLING=true.

With both, the server tests run to the end: 693 passing, 6 failing - the
first run in a long time, so those six are findings to look at.
tests/testBuildMemory.test.cjs keeps every run with both settings.

Thanks to xet7 !
2026-11-24 16:52:37 +02:00
Lauri Ojansivu 1678f86bf5 Updated ChangeLog. 2026-11-24 13:19:53 +02:00
Lauri Ojansivu 6cde02380a Admin Panel / Attachments / Encrypt: attachments on disk encrypted with ATTACHMENTS_PASSPHRASE, at the same addresses.
The last item of docs/Compliance/README.md's P3 list, on the maintainer's
decision: while ATTACHMENTS_PASSPHRASE is set (at least 16 characters), a
site administrator gets Admin Panel / Attachments / Encrypt, which
encrypts or decrypts every attachment on this server's disk in the
background with progress, and turns on encryption of new attachments.

- AES-256-CTR (server/lib/attachmentEncryption.js), so a download can
  start anywhere: the counter for any byte is the IV plus its block. The
  key is stretched from the passphrase with scrypt once per salt and kept
  in memory. Each file starts with WKATT1, the salt and its own IV; a file
  without the header is plain and read as before.
- Every read goes through FileStoreStrategyFilesystem.getReadStream, which
  decrypts - byte ranges included - so every address, preview, export and
  storage move is unchanged; the board export and the WebDAV move, which
  read the file directly, use the same decrypting read.
- New uploads are encrypted after their validation and indexing, which
  need the plain file; imports, e-mail to card and the REST API by an
  hourly sweep. Each changed attachment's meta.updatedAt is set, so the
  filesystem integrity scan sees the change explained. The runs and the
  switch are in the Audit log.
- On every platform, the snap and the Helm chart (from a Secret).

Tested against a live server (tests/playwright/specs/attachment-encryption.e2e.js):
an attachment encrypted on disk downloads at the same address, whole and
as a byte range, and decrypts back to the same bytes. Seven new strings,
translated in every language. Low confidence: ace, ak, ay, bi, bm, bo, bua,
chr, csb, dz, ee, ff, fj, gn, gv, haw, iu, kl, kok, ks, kw, lg, lld, nah,
nap, nd, nso, fur, mg, tlh, tig, ti, wal, om, ve-PP, ve-CC, rup, zgh, uz-AR,
sah, vo, wuu-Hans, se, qu, to, sm, ss, ts, ve, ny, rn, tn, st, wa, sc, scn.

Thanks to xet7 !
2026-11-24 13:19:44 +02:00
Lauri Ojansivu 54305cf205 Updated ChangeLog. 2026-11-24 06:04:10 +02:00
Lauri Ojansivu 57dbff0abd Escape closes a popup for a member who turned keyboard shortcuts off.
The hotkeys filter returned false for such a member before it reached its
"always handle escape" line, so every popup and menu stayed open on Escape
- a keyboard trap (WCAG 2.1.2, 1.4.13). Escape is let through first now.
Found by running tests/playwright/specs/feature-help.e2e.js against a live
server, whose seeded user has shortcuts off: its two failures were this,
and all three of its tests pass now, as do the accessibility, help and
shortcut specs. The help button's TODO.md item is done.

Thanks to xet7 !
2026-11-24 06:04:09 +02:00
Lauri Ojansivu d1224edee6 TODO.md: the compliance work is done, apart from a maintainer decision on encrypting attachments; the help button spec was run.
The laws and standards item is removed: WP-1 to WP-14 and the P3 list of
docs/Compliance/README.md are done and in the Upcoming changelog. What is
left - whether WeKan should encrypt attachments on disk itself - is under
Needs a maintainer decision, with the reasons. feature-help.e2e.js was run
against a live server: 1 passed, 2 failed, and the item says why.

Thanks to xet7 !
2026-11-24 05:58:25 +02:00
Lauri Ojansivu 02efca4e8b Updated ChangeLog. 2026-11-24 05:56:48 +02:00
Lauri Ojansivu a242275be8 Where I am signed in, with Sign out per session; and BACKUP_PASSPHRASE encrypts the Admin Panel backups.
The last of docs/Compliance/README.md's P3 list:

- Member Settings / Privacy and my data lists every session of the
  account - this browser first, when each signed in, and when last active
  where idle logout records it - each with Sign out, which ends just that
  one. A session is named by an opaque id, never its token or hash.
  Admin Panel / People's user popup has Log out everywhere for an account
  (adminLogoutUser, in the Audit log) (models/lib/sessionList.js,
  server/methods/sessions.js).
- BACKUP_PASSPHRASE encrypts every Admin Panel backup as it is written, to
  disk or to cloud storage: AES-256-GCM, the key stretched with scrypt, the
  salt and IV in the file's own header. A restore recognises the header,
  decrypts beside the file and removes the copy whatever happens; a wrong
  passphrase or a changed file is refused, and an older plain backup still
  restores (server/lib/backupEncryption.js). On every platform, the snap and
  the Helm chart (from a Secret).

App-level encryption of attachments on disk is left to a maintainer
decision (TODO.md): disk encryption covers it without changing every read
path.

Tested against a live server: tests/playwright/specs/backup-passphrase.e2e.js
writes an encrypted backup and restores it, and compliance-p3.e2e.js ends one
session of two. Four new strings, translated in every language. Low
confidence: ace, ak, ay, bi, bm, bua, chr, csb, cv, dz, ee, ff, fj, gn, gv,
haw, iu, kl, kok, ks, kw, lg, lld, nah, nd, nso, bo, fur, mai, bho, ary,
tig, ti, wal, ve-PP, ve-CC, ve, vo, tlh, zgh, wa, wa-RR, rup, sah, se, scn,
sc, sm, to, tpi, ts, ss, st, tn, rn, rw, ny, om, pap, qu, rm, szl, uz-AR,
ug, tt, yi, yue_CN, wuu-Hans, wo, xh.

Thanks to xet7 !
2026-11-24 05:56:38 +02:00
Lauri Ojansivu b7586ea449 Playwright: the hash-chained audit log, emergency access and the minimum age, against a live server.
tests/playwright/specs/compliance-p3.e2e.js runs them in a browser: real
audited actions are appended to the chain and it verifies, an edited row is
found; an emergency impersonation is kept with its note; with
REGISTRATION_MINIMUM_AGE set, the sign-up form without the age box is
refused and with it accepted, keeping nothing of the box. All three pass
in Chromium. The password-length sign-up spec ticks the age box when the
server asks for it.

Thanks to xet7 !
2026-11-24 05:41:18 +02:00
Lauri Ojansivu b535b74e4b Updated ChangeLog. 2026-11-24 05:35:34 +02:00
Lauri Ojansivu 77986e1d65 Emergency access, a hash-chained audit log, a minimum age on sign-up, and a records of processing draft.
From docs/Compliance/README.md's P3 list and row 2.2:

- Emergency access: Admin Panel / People's user popup has "Emergency
  access" with a note before Impersonate. It is kept as reason emergency
  with the note (shown in the Impersonation Report), and every other
  administrator who can sign in gets an e-mail at once; a failed e-mail
  never stops the impersonation (models/lib/emergencyAccess.js).
- The administrators' audit log is hash-chained: each row carries its
  place, the previous row's hash and its own. Its _id is its place, so two
  servers writing at once cannot both take it - the unique _id refuses the
  second, which takes the next. A daily check, and verifyAdminAuditChain,
  walk it from the oldest row kept and report an edited or removed row in
  Problems / Filesystem integrity (models/lib/auditChain.js).
- REGISTRATION_MINIMUM_AGE: the sign-up form asks "I am at least N years
  old" and a password sign-up without it is refused; administrators'
  accounts and identity providers' are not asked, and nothing is stored
  (models/lib/registrationAge.js). On every platform and the Helm chart.
- Records of processing (draft) in Admin Panel / Settings / Legal pages:
  every collection holding personal data, why, how long with this server's
  values, and the outside services this server really uses, as Markdown to
  complete (models/lib/ropaDraft.js).

Seven new strings, translated in every language. Low confidence: chr, dz,
bo, gv, ak, ay, bm, ee, ff, fj, gn, haw, bua, cv, ba, csb, ace, bi, fur, an,
ast-ES, co, fo, hsb, gd, ht, bho, as, iu, kl, kw, ks, nah, rup, sah, lld,
szl, sm, ss, nd, qu, om, pap, lg, rn, rw, nso, st, sn, ny, mai, kok, sc,
scn, nap, mg, la, ig, ky, ja-HI, tig, tlh, vo, ve-PP, wal, zgh, uz-AR, to,
tpi, ts, tn, ve, wa, wa-RR, wo, wuu-Hans, yi, yo, tk_TM, ug, tt, ti, oc, rm,
sd, ps. The wrong-language catalog values the translators saw are in
TODO.md.

Thanks to xet7 !
2026-11-24 05:35:15 +02:00
Lauri Ojansivu 77b9bc984a Problems / Summary says when a newer WeKan is available, from the administrator's own Check version.
docs/Compliance/README.md P3 ([CRA] Annex I Part II(8)): Check version in
Admin Panel / Settings / Version now keeps what it found
(versionChecks, one document), and Summary lists "A newer WeKan is
available" while that check named a newer WeKan than this server runs,
with the date of the check and that security fixes go into the newest
release only. WeKan still never asks wekan.fi on its own: Summary only
repeats the check an administrator ran, and a test pins that only the
button fetches.

Thanks to xet7 !
2026-11-24 05:18:03 +02:00
Lauri Ojansivu 92fc9b686a LOGIN_ADDRESS_RECORDED=false records no sign-in address, and USERS_ANONYMIZE_INACTIVE_AFTER_DAYS anonymises long-disabled accounts.
Two items of docs/Compliance/README.md's P3 list ([GDPR] Art. 5(1)(c) data
minimisation and 5(1)(e) storage limitation):

- LOGIN_ADDRESS_RECORDED=false: WeKan writes down no sign-in address at
  all - not on the account, not in Login locations or Offices; a sign-in
  with a short password is still listed, without where from. The lockout
  still counts failed sign-ins per address, to stop guessing.
- USERS_ANONYMIZE_INACTIVE_AFTER_DAYS: an account disabled for inactivity
  (USERS_DISABLE_INACTIVE_AFTER_DAYS) is anonymised that many days later,
  as Member Settings / Anonymize does - its data elsewhere erased first -
  in the same nightly run. Disabling now records loginDisabledAt, enabling
  clears it, and accounts disabled before it existed start their clock
  now. Never an administrator, an account disabled by hand or by LDAP, or
  one enabled again; off unless set.

Both on every platform, the snap and the Helm chart.

Thanks to xet7 !
2026-11-24 05:08:23 +02:00
Lauri Ojansivu 923f766617 Updated ChangeLog. 2026-11-24 04:55:58 +02:00
Lauri Ojansivu 292d1db00d WCAG 2.2 AA: the axe scan runs its rules and passes, focus is never hidden, and a statement draft.
docs/Compliance/README.md WP-13 (rows 6.1 and 6.3), run in Chromium against
a live server:

- tests/playwright/specs/45-axe-accessibility.e2e.js runs axe's wcag22aa
  rules too. Its one finding, 2.5.8 Target Size, was the minicard's card
  actions menu and collapse caret: each is at least 24 x 24 pixels now.
- The scan visits the legal pages, Admin Panel / Problems / Compliance,
  the Audit log and Settings / Legal pages too. What it found there is
  fixed: the Problems menu's group heading and the Compliance status
  words had too little contrast, so had an Audit log row's error text,
  and Legal pages' section headings skipped a level.
- A new check tabs through a board and fails when a focused control is
  hidden behind the header or a popup (2.4.11), counting only when focus
  really moved. Move list and Move swimlane already serve 2.5.7.
- Admin Panel / Settings / Accessibility offers Start from WeKan's draft:
  an accessibility statement with the compliance status, what is not
  accessible, feedback, the enforcement procedure and the date, filled only
  into an empty text.
- The docs say WCAG 2.2 AA.

Thanks to xet7 !
2026-11-24 04:55:40 +02:00
Lauri Ojansivu aa9a4ba2ea Accepting the terms works: the account keeps the acceptance, and the box can be ticked.
Found by running tests/playwright/specs/legal-acceptance.e2e.js against a
live server:

- The users schema did not know legalAcceptances, so collection2 dropped
  every acceptance without an error: the dialog closed, and the next sign-in
  asked again. It is in the schema now.
- The global form rules hide native checkboxes, so the acceptance dialog,
  the sign-up box and the Published and Require acceptance switches of
  Admin Panel / Settings / Legal pages had nothing to tick. They are shown,
  with the whole line as the target, and the Accept button looks disabled
  until every page is ticked.
- The gate re-reads the requirement before it refuses anything, so one
  turned off elsewhere - another server process, or the database - never
  blocks anybody for the minute until the next refresh.

The spec waits for the page the acceptance reloads. And
tests/crossSiteRequest.test.cjs allows the data-access log's raw handler,
which only listens for a finished 200 and never answers or reads the
cookie.

Thanks to xet7 !
2026-11-24 04:55:33 +02:00
Lauri Ojansivu 558694b7af Updated ChangeLog. 2026-11-24 04:17:43 +02:00
Lauri Ojansivu eb144f07c9 Admin Panel / Problems / Compliance: the settings the laws and standards look for, checked.
docs/Compliance/README.md WP-12: a read-only checklist, second in the
Problems menu - two-factor authentication required, idle sign-out, HTTPS
with HSTS, sign-in address retention, the audit log kept 2190 days or more
(for information: HIPAA), the privacy notice published, the imprint
published (for information: Germany and Austria), the security contact for
security.txt, and the continuous backup encrypted. Each row says OK, Check
or For information, shows the value this server has, and links to the
pane that changes it. models/lib/complianceChecks.js decides from the facts
getComplianceChecks reads, for site administrators only; it changes
nothing.

Fourteen new strings, translated in every language. Low confidence: chr,
bo, dz, gv, bua, ay, gn, ff, bm, ak, ee, fj, bi, ace, cv, ba, csb, hsb, br,
co, fur, fo, haw, ary, bho, an, iu, kl, kw, nah, qu, rup, sah, se, szl, lld,
ks, sm, lg, rn, rw, nso, ss, st, nd, om, pap, mg, la, nap, scn, tig, wal,
ve-PP, tlh, vo, zgh, wuu-Hans, to, ve, uz-AR, ve-CC, wa, wa-RR.

Thanks to xet7 !
2026-11-24 04:17:23 +02:00
Lauri Ojansivu 1319f01e17 Data access in the Audit log, and AUDIT_LOG_STDOUT=json for a SIEM.
docs/Compliance/README.md WP-11 (rows 4.2 and 4.3 b):

- Admin Panel / People / Audit log has a Data access tab: who downloaded
  what - a board as JSON, CSV, Excel, PDF or ZIP, a chart, a card, every
  board, a person's data, an Admin Panel list - one row per person, day,
  kind and target with a count, the first and last time and the last
  address, never a row per download. A raw middleware in front of every
  route (server/lib/dataAccessLog.js) counts each export that answers 200,
  and a test fails when an export route is not in its list. Kept as the
  audit log (ADMIN_AUDIT_RETENTION_DAYS); erasing an account removes its
  username and address from it. Export CSV on the tab.
- AUDIT_LOG_STDOUT=json writes every audit row, security problem and data
  access also to stdout as one JSON line ({"wekan":"audit"|"security"|
  "data-access", ...}), with only the fields the Admin Panel shows - the
  arguments as stored, already redacted (models/lib/auditStdout.js). On
  every platform's settings, the snap and the Helm chart.
- The admin CSV exports obey Admin Panel's switch that turns all export
  off.

Five new strings, translated in every language. Low confidence: ace, ak,
ay, bi, bm, bo, bua, chr, csb, cv, dz, ee, ff, fj, gn, gv, haw, fur, co, ba,
bho, as, br, an, ast-ES, ha, ht, fo, iu, kl, ks, kw, nah, lld, rup, qu, sah,
se, szl, nap, scn, sc, rm, pap, lg, rn, nd, ss, nso, st, sn, ny, om, mai,
kok, la, sm, mi, tig, ve-PP, vo, wal, tlh, zgh, uz-AR, to, tpi, ts, ve, wa,
wa-RR, wo, yo, yi.

Thanks to xet7 !
2026-11-24 04:17:13 +02:00
Lauri Ojansivu b1ffeb5dc7 Updated ChangeLog. 2026-11-24 03:45:41 +02:00
Lauri Ojansivu ea95943687 CSV exports for access reviews and incidents, and one's own sign-in history.
docs/Compliance/README.md WP-10 (rows 3.8, 4.3 a and 5.6): Export CSV on
Admin Panel / People, Problems / Boards, Problems / Security and the Audit
log gives the whole list, not the page on screen, and People and Boards
also give Boards and roles as CSV - one row per board member with the
role, for every board, the access review itself.
server/routes/adminCsvExport.js serves them to a site administrator only,
streamed from a cursor, and records every download - a refused one too -
in the Audit log as exportAdminCsv. Each dataset
(models/lib/adminCsvExport.js) reads only the fields it names, so no
password, token, two-factor secret or key can reach a file, and a cell a
spreadsheet would run as a formula is written as text.

Member Settings / Privacy and my data lists Where I signed in from: each
address of the account, how often, first and last time
(getMyLoginHistory, one's own only).

Three new strings, translated in every language. Low confidence: ace, ak,
ay, bi, bm, bo, bua, chr, csb, cv, dz, ee, ff, fj, fo, fur, gn, gv, haw, ba,
bho, ary, co, an, ast-ES, iu, kl, kw, nah, lld, rup, nap, scn, sc, szl, ks,
kok, mai, sah, se, om, qu, rm, pap, nd, ss, nso, sm, sn, rn, lg, ny, mg,
tig, tlh, to, tpi, ts, tn, uz-AR, ve-CC, ve-PP, ve, vo, wa-RR, wa, wal, wo,
zgh, tk_TM, ug, tt. The wrong-language values the translators saw are
listed in TODO.md.

Thanks to xet7 !
2026-11-24 03:44:59 +02:00
Lauri Ojansivu 1652c86f55 security.txt, the support period and an SBOM on every release, and an operator guide for GDPR, HIPAA and NIS2.
docs/Compliance/README.md WP-9 (rows 5.2, 5.3 and 5.5):

- /.well-known/security.txt and /security.txt (RFC 9116) are made from the
  security contact of Admin Panel / Settings / Legal pages: one Contact per
  address (an e-mail becomes mailto:, only https: URLs are kept), Expires
  180 days ahead, Canonical from ROOT_URL. 404 while no contact is set.
- SECURITY.md has a Support period: security fixes go into the newest
  release only, with no backports.
- The sbom job of release-all.yml writes the CycloneDX SBOM with npm's own
  npm sbom from the tagged package-lock.json and attaches it as
  wekan-<version>-sbom.cdx.json; Admin Panel / Settings / Version links the
  one of the running version. The Docker image attestation stays off.
- docs/Security/Compliance/README.md: what WeKan provides for GDPR, HIPAA,
  NIS2, ISO 27001 and SOC 2, the recommended settings, encryption at rest,
  break-glass access, and DPA/BAA notes.

Thanks to xet7 !
2026-11-24 03:44:47 +02:00
Lauri Ojansivu 4bb8661822 Updated ChangeLog. 2026-11-24 03:22:24 +02:00
Lauri Ojansivu adf479272a Terms and privacy notice: versioned acceptance, required per page by an administrator.
Admin Panel / Settings / Legal pages has Require acceptance for the terms
of use and the privacy notice (docs/Compliance/README.md WP-8, row 1.7).
While it is on, an account that has not accepted the current version of
each such page sees only the acceptance dialog after signing in, and the
server refuses every method outside an allowlist and sends nothing from
its publications (server/requireLegalAcceptance.js, built like
REQUIRE_2FA's gate). A new version of the text is asked for again; only
the version that is current when accepting is recorded, so an older text
cannot be accepted for a newer one. Each acceptance is kept as
legalAcceptances.<page> = { version, at }, shown in Member Settings /
Privacy and my data and part of Download my data. The sign-up form shows
an optional "I accept" checkbox meanwhile. The REST API is not gated.

Seven new strings, translated in every language. Low confidence: ace, ak,
ay, ba, bm, bo, bua, chr, csb, cv, dz, ee, ff, fj, gn, gv, haw, fur, hsb,
iu, kl, ks, kw, lg, lld, nah, nap, nd, nso, ig, mi, kok, mai, la, rup,
sah, qu, se, szl, ss, sc, scn, om, ny, pap, rn, sm, sn, st, rm, oc, sd, ps,
or_IN, tig, tlh, vo, ve-PP, wal, wa, zgh, uz-AR, ve-CC, wuu-Hans.

Venetian (ve-CC) and Veps (ve-PP) had Venda, and Waray (wa-RR) had
Walloon (and one English value), in the legal-pages strings and some
older ones; those are now in the tag's own language, with a guard
(tests/wrongLanguageCorrections20261124.test.cjs). Low confidence for
those three.

Thanks to xet7 !
2026-11-24 03:21:55 +02:00
Lauri Ojansivu 6bdc8382ef Updated ChangeLog.
Thanks to xet7 !
2026-11-24 02:59:22 +02:00
Lauri Ojansivu 176771109c Retention: the audit log, board activities and workload absences each have a limit an operator sets.
ADMIN_AUDIT_RETENTION_DAYS replaces the fixed year of the administrators'
audit log (365 by default, 0 keeps it, HIPAA sets 2190 or more).
ACTIVITIES_RETENTION_DAYS removes board activity rows older than that, and
WORKLOAD_ABSENCE_RETENTION_DAYS absences that ended that long ago, both off
by default; the change history of cards is never removed.
WORKLOAD_ABSENCE_TYPE_RECORDED=false stores every new absence as "other", so
no sick leave is recorded. Admin Panel / Settings / Legal pages shows every
personal-data collection with its retention and the value of its setting on
this server. Listed on every platform, the Helm chart included
(docs/Compliance/README.md WP-7, rows 2.5, 2.7 and 2.8).

Thanks to xet7 !
2026-11-24 02:59:10 +02:00
Lauri Ojansivu c71dc2833a Updated ChangeLog.
Thanks to xet7 !
2026-11-24 02:44:27 +02:00
Lauri Ojansivu 29a41bd51c Legal pages: privacy notice, terms, cookie notice and imprint, and Member Settings / Privacy and my data.
An operator publishes them in Admin Panel / Settings / Legal pages; anybody,
signed in or not, reads the published ones at /privacy, /terms, /cookies and
/imprint, linked from the login page and from Member Settings / Privacy and
my data, which also holds Download my data. The imprint has its structured
fields, shown only when filled; the privacy contacts (privacy contact, data
protection officer, EU representative, security contact) are shown on the
privacy notice. The pane offers a privacy notice draft built from the
personal-data inventory, and the inventory itself. Saving is for site
administrators only and is in the Audit log; nothing is written from the
browser. A page's version goes up when what a reader sees changes. Matomo,
when an operator turns it on, now runs with disableCookies. The 30 new
interface strings are translated into every language; low confidence: the
Tigre strings for privacy, published and authority, and Aromanian "Cuprins".
(docs/Compliance/README.md WP-6, rows 1.8 and 7.1 to 7.5.)

Thanks to xet7 !
2026-11-24 02:44:07 +02:00
Lauri Ojansivu 4726ad3f5f Updated ChangeLog.
Thanks to xet7 !
2026-11-24 01:57:28 +02:00
Lauri Ojansivu 7a25e33ca7 Download my data: everything WeKan holds about a person, as a ZIP of JSON.
Member Settings / Download my data and GET /api/user/export give the
signed-in person their account without secrets and every row of every
collection the personal-data inventory says holds their data, with a
manifest of what is in it and what is not, and why. Of a shared board, card
or list only their own part. Secrets are removed at every depth. An
administrator can export any account with userId=, recorded in the Audit
log. The menu label is translated in every language (docs/Compliance/README.md
WP-5; WP-4 recorded there too).

Thanks to xet7 !
2026-11-24 01:57:14 +02:00
Lauri Ojansivu 5dff6c0ec9 Erasing a person removes their data from every collection the inventory lists, on deletion and on anonymisation.
Deleting an account removed only the users document and its board, card and
list memberships; 40 collections the personal-data inventory marks for
deletion or anonymisation kept the person - workload, time entries, sign-in
addresses, sessions, jobs, credentials, notifications, reactions, event-log
tallies. models/lib/userErasure.js holds a rule per collection and runs on
deletion (Users.after.remove) and anonymisation (anonymizeUser); an invoiced
time entry is kept without the person, and an anonymised account keeps its
references. Integrity-checked delivery records are reduced to ids by their
compaction, which the inventory now names. Anonymisation replaces services
whole and clears sign-in addresses, passkeys, SQRL, push and ntfy, e-mail to
card and the e-mail buffer. The inventory's gap list is empty
(docs/Compliance/README.md WP-4).

Thanks to xet7 !
2026-11-24 01:57:13 +02:00
Lauri Ojansivu 9220467ffc Updated ChangeLog.
Thanks to xet7 !
2026-11-24 01:09:19 +02:00
Lauri Ojansivu 2dc887f305 TODO and Compliance: four of the bugs found while documenting are fixed; trello-attachments-downloader waits for a push.
Thanks to xet7 !
2026-11-24 01:09:00 +02:00
Lauri Ojansivu 76fd0e4434 Attachment retention: the form accepts the per-run limit the retention runs with.
"At most per run" accepted up to 1000000, while the retention clamps to
100000, so a larger saved value was silently cut. The setting's default and
maximum are the retention's own DEFAULT_MAX_PER_RUN and MAX_MAX_PER_RUN now.

Thanks to xet7 !
2026-11-24 01:09:00 +02:00
Lauri Ojansivu ebbfacf43b Problems / Summary: the database, integrity and mail lines are named by their panes.
Their line read "Admin Panel -> Problems -> database" (and integrity, mail):
STREAM_LABEL_KEY had no entry for them. They now say Database problems,
Filesystem integrity and Email, the keys their panes have in the Problems
menu, and a test requires every stream of EVENT_STREAMS to have the same
name there as in the menu.

Thanks to xet7 !
2026-11-24 01:09:00 +02:00
Lauri Ojansivu 7042d228e6 Broken cards: the Summary counts and repairs the cards of an unknown type that the pane lists.
The Broken cards pane listed a card whose type is not one of the four WeKan
shows; the Summary's "Broken cards N" and its repair looked only at a missing
board, swimlane or list, so such a card was never counted and never fixed.
"Broken" is one definition now, brokenCardsSelector of
models/lib/brokenCardsRepair.js, used by the pane, the count and the repair,
and the repair gives such a card the plain card type.

Thanks to xet7 !
2026-11-24 01:08:53 +02:00
Lauri Ojansivu 4cb1bbfe57 Login lockout: the increasing delay after a wrong password is applied.
The delay per user and source address (1 second after the first wrong
password, doubling up to 30) never ran: the server's startup and the Admin
Panel's reload built the lockout's settings from failuresBeforeLockout,
lockoutPeriod and failureWindow only, so loginDelayBase reached the decision
as undefined, which is "delays off". Every setting is now read from one list,
models/lib/lockoutConfig.js, by both and by the model's helpers; a stored 0
still switches the delay off, and an unreadable setting still falls back to
its default. The reload gets that per-setting fallback too.

Thanks to xet7 !
2026-11-24 01:08:40 +02:00
Lauri Ojansivu 1d02a73d7c TODO: the Dependabot and CodeQL alerts of the repositories it was turned on for, and the 16 where it is still off.
From the security download of 2026-11-24 00:30: the open alerts of
ferretdb-test, hx, minio-metadata and trello-attachments-downloader, the
ferretdb-test Dependabot update that cannot resolve, hx's CodeQL alerts in
copied and generated files, trello-attachments-downloader's missing workflow
permissions, and the repositories where Dependabot still answers 403.

Thanks to xet7 !
2026-11-24 00:48:30 +02:00
Lauri Ojansivu 95475d5d2e TODO: what Dependabot finds in the repositories it was turned on for; the pushes, the Pages deploy and the Dependabot closings are done.
Done and out: every repository is pushed, wekan.fi's Pages deploy succeeded
(2026-11-23), and the Dependabot pull requests and alerts that waited to be
closed by hand are closed. New, from the security download of 2026-11-24:
the critical and high dependency advisories in minio-metadata, hx,
ferretdb-test, trello-attachments-downloader and nekan, now that Dependabot
is on; the caddy plugins' otel update that fails on every run; wena's
Release desktop for linux-armel and linux-mips64le; and WeKan's dev-only
glob 13.0.6, a maintainer decision.

Thanks to xet7 !
2026-11-24 00:29:29 +02:00
github-actions[bot] bb4b3a5e5e Bump versions for v13.30 2026-11-23 22:00:01 +00:00
Lauri Ojansivu 7e52757357 Prepare v13.30 release 2026-11-23 23:58:51 +02:00
Lauri Ojansivu 90b2b8b9bc TODO and ChangeLog: only omi and wekan.fi still wait for a push; the TODO and Hall of Fame rules in the Upcoming release.
CHANGELOG-big.md was over its 450,000-byte budget, so the oldest release it
kept went to old-CHANGELOG/2026/10.md (releases/changelog-archive.mjs).

Thanks to xet7 !
2026-11-23 23:56:22 +02:00
Lauri Ojansivu 1e1970d6bf CLAUDE.md, AGENTS.md: the published advisories are read to the last page - there are more than 100.
Thanks to xet7 !
2026-11-23 23:49:53 +02:00
Lauri Ojansivu 6993eca51e Updated ChangeLog.
Thanks to xet7 !
2026-11-23 23:26:12 +02:00
Lauri Ojansivu b0c9ef955c Security download: the Advisory Database, dependency advisories and the organization's advisory list too.
releases/sec/download-github-security.sh writes, beside each repository's
own security advisories: advisory-database/, each GHSA's entry in the global
GitHub Advisory Database (WeKan's are never there: wekan/wekan is in no
ecosystem it covers); dependency-advisories/, the reviewed advisories that
affect the exact package versions of the dependency graph, asked with
/advisories?ecosystem=...&affects=name@version; and once per run
<org>/_organization/, every advisory of the organization. --no-advisories
skips them. Tests against a stand-in gh, positive and negative.

Thanks to xet7 !
2026-11-23 23:25:57 +02:00
Lauri Ojansivu 75b5e38df9 Hall of Fame: OidcRaceBleed is accounted for; every Hall of Fame update fills in missing GHSAs and CVEs.
GHSA-6944-p22h-3qpx, the OIDC login race of meifukun's report, was published
on 2026-11-20 with no Hall of Fame row; the fix was in v9.97 (#4897). The
row is on wekan.fi now. Here: its Problems-coverage reason (the fix refuses
nothing), the regression inventory (153 -> 154, guarded by
oidcLoginStateIsolation and securityMeifukun), and OIDCBleed mapped to
oidcBleed.test.cjs - securityMeifukun called the race "OidcBleed", which is
another row.

CLAUDE.md, AGENTS.md: a new security issue updates the Hall of Fame, and
every update compares the published advisories with it: a GHSA without a row
gets one, an assigned CVE replaces "CVE requested", an advisory that is not
public is named. A requested CVE is not a TODO item.

Thanks to meifukun and xet7 !
2026-11-23 23:25:57 +02:00
Lauri Ojansivu 06d3660817 Updated ChangeLog.
Thanks to xet7 !
2026-11-23 23:03:59 +02:00
Lauri Ojansivu fada1fac12 Snap Store pages show what is new in the newest release.
The Snap Store has no API for a revision's own changelog: the dashboard's
"Add changelog" is a web form only. So Push Snap to Store puts "What's new in
WeKan v<version>" - the release's In short paragraph from CHANGELOG-big.md,
linking its changes at the tag - at the top of the wekan, wekan-ondra and
wekan-gantt-gpl listings with snapcraft upload-metadata and SNAP_AUTH.

The page text is kept in releases/snap-listing/<snap>.md, as the store has it
now; edit it there. wekan's feature list alone is 4047 of the 4096 bytes a
description may have, so it is cut at whole lines and ends with a link to the
whole file - read from the file each release, nothing is lost for good. The
title, summary, license and icon are sent back as the store has them. Only
for the newest release, and a failure does not fail the push.

Thanks to xet7 !
2026-11-23 23:03:49 +02:00
Lauri Ojansivu 3153d75048 TODO: done items out; CLAUDE.md, AGENTS.md: every TODO update checks every item for being done.
Removed, because they are done and released: the ListLockMoveBleed and
BounceBleed advisories (published, the fixes in v13.28), the Snap Store
review of v13.27 (#6929 closed, 13.29 on every channel), the changelog
entries for the work in v13.28, and the help button's translations (every
locale, v13.28); what is left of the help button is its Playwright spec.

Every update of TODO.md now checks every item: done and not released moves
to the Upcoming section of CHANGELOG-big.md, done and released is removed,
and a published advisory leaves TODO.md whole.

Thanks to xet7 !
2026-11-23 23:01:51 +02:00
Lauri Ojansivu 03715d7208 TODO: the ListLockMoveBleed and BounceBleed advisories are published; their CVE numbers are still to come.
Thanks to xet7 !
2026-11-23 22:57:38 +02:00
Lauri Ojansivu 95639bcac0 Merge remote-tracking branch 'origin/main' 2026-11-23 22:15:13 +02:00
Lauri Ojansivu 7c2304b74f Updated ChangeLog.
Thanks to xet7 !
2026-11-23 22:12:39 +02:00
Lauri Ojansivu d041debbe9 wekan-ondra and wekan-gantt-gpl snaps on every architecture wekan has, on all channels.
The variants had amd64 and arm64 only: snap-variants builds those natively,
and snap-launchpad, the only builder of armhf, ppc64el, s390x and riscv64,
built only the wekan name. Each snap-launchpad leg now makes both variants
from the wekan snap it just built (releases/snap-rename.sh, name and title
only), releases them to stable, candidate, beta and edge, and attaches them
to the GitHub Release. Push Snap to Store fills in each missing architecture
of a variant from the release's wekan snap, instead of only when a release
has no variant at all. Release All Missing expects them from v13.30, not for
older releases: completing an older one after a newer one would upload an
older version as the highest revision and take stable back to it.

Thanks to xet7 !
2026-11-23 22:12:30 +02:00
Lauri Ojansivu e3c0892f71 Updated ChangeLog.
Thanks to xet7 !
2026-11-23 21:46:08 +02:00
Lauri Ojansivu c2602fcd86 Admin Panel recovery list shows cancelled notifications only while recent.
A cancelled activity notification is a permanent receipt, kept so a delayed
writer cannot recreate its payload, and the recovery report listed every one
ever written. Since #6768 cancels expired notifications automatically, the
list grew into dozens of pages of old rows that hid the recoverable ones.
Pending notifications are always listed; cancelled receipts only while their
activity is newer than ACTIVITY_NOTIFICATION_RECOVERY_CANCELLED_DAYS (default
14, 0 lists none). Read-side only: no receipt is removed.

Thanks to Raymond-Voogt and xet7 !

Fixes #6941.
2026-11-23 21:45:05 +02:00
Lauri Ojansivu c54e70f777 Time can be logged on imported cards whose spentTime was stored as null.
The board import stored spentTime: card.spentTime || null, and MongoDB and
FerretDB refuse the $inc that logs time on a null, so /cards/updateAsync
failed on every such card. The importers now store a Number. The Cards and
Boards before.update hooks turn an $inc of a stored non-number into the $set
of the sum (models/lib/spentTime.js) - not an update pipeline, which FerretDB
v1, Minimongo and allow/deny refuse. The startup step spenttime-null-repair
resets the stored nulls to 0. Checked against FerretDB: the bare $inc and the
pipeline are both refused there, the hook's $set and the repair step work.

Thanks to Raymond-Voogt and xet7 !

Fixes #6940.
2026-11-23 21:45:05 +02:00
github-actions[bot] 183ced3106 Bump versions for v13.29 2026-11-23 16:57:01 +00:00
Lauri Ojansivu 2f65e04748 Prepare v13.29 release 2026-11-23 18:55:49 +02:00
Lauri Ojansivu a39a1b227c Updated ChangeLog.
Thanks to xet7 !
2026-11-23 18:54:53 +02:00
Lauri Ojansivu 938689d594 Merge remote-tracking branch 'origin/main' 2026-11-23 01:45:40 +02:00
Lauri Ojansivu 5471f416e1 build.sh, build.bat, run-everything.sh: EVERYTHING runs one by one unless another mode is asked for.
Two Playwright workers per browser ran the machine out of RAM, so a bare
./build.sh --run-everything, build.bat --run-everything and
releases/run-everything.sh now run one stage and one worker at a time.
two-worker is still there when it is named.

Thanks to xet7 !
2026-11-23 01:37:58 +02:00
Lauri Ojansivu 4dde05662f build.sh, build.bat: Tests 1 is EVERYTHING one by one, 2 EVERYTHING two-worker.
The guards that pin the menu's order follow, with the reason.

Thanks to xet7 !
2026-11-23 01:31:13 +02:00
1327 changed files with 170089 additions and 113900 deletions

No files matched your search

+4 -2
View File
@@ -93,8 +93,10 @@ jobs:
unset credentials
docker pull "ghcr.io/wekan/wekan:v$VERSION"
# Old releases lack the connection-bound Nextcloud authentication.
docker run --rm --entrypoint /bin/sh "ghcr.io/wekan/wekan:v$VERSION" -ec \
'test -f /build/nextcloud-exapp-capability.json && test -x /build/ferretdb'
# node, not /bin/sh: the image is distroless and has no shell. Every
# image, old or new, has /usr/local/bin/node.
docker run --rm --entrypoint /usr/local/bin/node "ghcr.io/wekan/wekan:v$VERSION" -e \
'const fs = require("fs"); fs.statSync("/build/nextcloud-exapp-capability.json"); fs.accessSync("/build/ferretdb", fs.constants.X_OK)'
node --test exapp/tests/*.test.mjs
image="ghcr.io/wekan/wekan-exapp:v$VERSION"
if docker buildx imagetools inspect "$image" > .tools/exapp-image.txt 2> .tools/exapp-image-error.txt; then
+120 -12
View File
@@ -76,7 +76,9 @@ run-name: Release v${{ inputs.new_version }}
# native runner. core24 allows stable and candidate (core26 does not).
# snap-variants publishes the SAME snap under the two older names
# people still have installed, wekan-ondra and wekan-gantt-gpl, on
# amd64 + arm64 - so one release publishes all THREE snaps. It needs
# amd64 + arm64, and each snap-launchpad leg makes them from its own
# wekan snap for ppc64el, s390x, riscv64 and armhf - so one release
# publishes all THREE snaps on every architecture. It needs
# SNAP_AUTH to carry the ACL for all three names.
# `snap set wekan database=ferretdb` switches the running backend to
# FerretDB v1 (snapcraft-core26.yaml is the core26 variant)
@@ -3998,18 +4000,43 @@ jobs:
# resolves to arm/v5 - Debian armel, SOFT-float - and the hard-float
# node-armv6 inside the armv6 bundle cannot run on that userland. Ask the
# base once, and treat a platform it does not publish exactly like a bundle
# that did not land. The base is read out of the Dockerfile so there is no
# second copy of its name here. arm64 is recorded as arm64/v8, which
# that did not land. The bases are read out of the Dockerfile so there is
# no second copy of their names here. arm64 is recorded as arm64/v8, which
# everyone writes as linux/arm64, so the implied /v8 is normalised away -
# the same normalisation the push-verify does below. It is the LAST FROM:
# the first is the bundle stage, which runs on the build machine
# (--platform=$BUILDPLATFORM) and is not what the image is made of.
base_image="$(awk '/^FROM /{base=$2} END{print base}' Dockerfile)"
base_plats="$(docker buildx imagetools inspect "$base_image" \
--format '{{range .Manifest.Manifests}}{{.Platform.OS}}/{{.Platform.Architecture}}{{if .Platform.Variant}}/{{.Platform.Variant}}{{end}} {{end}}' \
| sed 's#/v8 # #g')" || {
echo "::error::Cannot read the platform list of the base image ${base_image}."; exit 1; }
echo "Base image ${base_image} publishes: ${base_plats}"
# the same normalisation the push-verify does below.
#
# There are TWO bases since the image became distroless, and a platform
# needs both. runtime-root (debian:trixie) runs as the target CPU for
# every platform and must publish it exactly, for the arm/v6 reason
# above. The image's root is distroless, which publishes no linux/386,
# so the Dockerfile assembles that root itself - a `FROM scratch AS
# runtime-<arch>` stage - and such a platform needs only debian. The
# bundle stage runs on the build machine (--platform=$BUILDPLATFORM)
# and is not what the image is made of.
plats_of() {
docker buildx imagetools inspect "$1" \
--format '{{range .Manifest.Manifests}}{{.Platform.OS}}/{{.Platform.Architecture}}{{if .Platform.Variant}}/{{.Platform.Variant}}{{end}} {{end}}' \
| sed 's#/v8 # #g; s#/v8$##'
}
root_image="$(awk '$1 == "FROM" && $NF == "runtime-root" {print $2}' Dockerfile)"
distroless_image="$(awk '$1 == "FROM" && $NF == "distroless" {print $2}' Dockerfile)"
assembled="$(awk '$1 == "FROM" && $2 == "scratch" && $NF ~ /^runtime-/ {sub(/^runtime-/, "", $NF); print "linux/" $NF}' Dockerfile | tr '\n' ' ')"
if [ -z "$root_image" ] || [ -z "$distroless_image" ]; then
echo "::error::The Dockerfile names no runtime-root or distroless stage."; exit 1
fi
root_plats="$(plats_of "$root_image")" || {
echo "::error::Cannot read the platform list of the base image ${root_image}."; exit 1; }
distroless_plats="$(plats_of "$distroless_image")" || {
echo "::error::Cannot read the platform list of the base image ${distroless_image}."; exit 1; }
echo "Base image ${root_image} publishes: ${root_plats}"
echo "Base image ${distroless_image} publishes: ${distroless_plats}"
echo "Root assembled by the Dockerfile for: ${assembled:-none}"
base_plats=""
for p in $root_plats; do
case " $distroless_plats $assembled " in *" $p "*) base_plats="$base_plats $p" ;; esac
done
base_image="${root_image} and ${distroless_image}"
echo "Both bases cover: ${base_plats}"
base_has() { case " $base_plats " in *" $1 "*) return 0 ;; *) return 1 ;; esac; }
platforms=""; want=""; arches=""
@@ -5448,6 +5475,47 @@ jobs:
echo "No ${MATRIX_ARCH} snap to attach - the build produced none."
fi
# wekan-ondra and wekan-gantt-gpl on this architecture too. They ARE
# wekan under another snap name, so they are made from the snap this leg
# just built - releases/snap-rename.sh changes `name:` and `title:` in
# meta/snap.yaml and nothing else - instead of three Launchpad builds of
# one program. snap-variants builds them natively for amd64 and arm64 only,
# so until this step ppc64el, s390x, riscv64 and armhf users of the two
# older names were left on whatever the store last had. Each goes to every
# channel, like wekan, and onto the GitHub Release, so "Push Snap to
# Store" (snap-store below) finishes any the store keeps processing.
- name: Publish wekan-ondra and wekan-gantt-gpl ${{ matrix.arch }} from this snap (all channels)
if: ${{ always() && steps.bundle.outputs.available == 'true' && steps.launchpad.outputs.built == 'true' }}
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_AUTH }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MATRIX_ARCH: ${{ matrix.arch }}
run: |
set -euo pipefail
src="wekan_${VERSION}_${MATRIX_ARCH}.snap"
if [ ! -s "$src" ] || [ "$(head -c4 "$src")" != "hsqs" ]; then
echo "::error::No usable $src to make the ${MATRIX_ARCH} variant snaps from - see the build step above."
exit 1
fi
sudo apt-get install -y squashfs-tools >/dev/null
# Their own directory: the wekan steps above glob *_<arch>.snap here.
mkdir -p variant-snaps
failed=""
for pair in 'wekan-ondra:Wekan Ondra' 'wekan-gantt-gpl:Wekan Gantt GPL'; do
name="${pair%%:*}"
title="${pair#*:}"
out="$(bash releases/snap-rename.sh "$src" "$name" "$title" variant-snaps)"
echo "OK: $out"
# Attached first: the GitHub Release is what snap-store releases
# from, so a store refusal here is still finished there.
bash releases/github-release-upload.sh "${GITHUB_REPOSITORY:-wekan/wekan}" "v${VERSION}" "$out" || failed="$failed attach:$name"
SNAP_UPLOAD_LABEL="$out" bash releases/snap-upload-retry.sh "$out" stable,candidate,beta,edge || failed="$failed store:$name"
done
if [ -n "$failed" ]; then
echo "::error::${MATRIX_ARCH} variant snaps not fully published:$failed. snap-store below retries the store from the GitHub Release; Release All Missing re-makes one that was not attached."
exit 1
fi
# Always, as the last step: the run summary then answers "what worked and what
# did not" for the whole release at a glance, instead of eighteen job logs. A
# step that failed has already printed an ::error:: saying why; this names the
@@ -5501,6 +5569,46 @@ jobs:
# Repository synchronization is a required, separately visible release job.
# It used to be an optional step inside snap-variants, so continue-on-error and
# a receive-pack pre-flight could skip it while the snaps still published.
# The software bill of materials of this release (docs/Compliance/README.md
# WP-9; [CRA] Annex I Part II(1)): every npm package the release is built
# from, as CycloneDX JSON, from the tagged package-lock.json - no install,
# so it lists what the lock pins and nothing a build machine happened to
# have. Attached to the GitHub Release as wekan-<version>-sbom.cdx.json and
# linked from Admin Panel / Settings / Version. Not the Docker image
# attestation, which stays off (tests/dockerProvenance.test.cjs).
sbom:
name: SBOM (CycloneDX)
needs: [prepare, release]
if: ${{ !cancelled() && needs.prepare.result == 'success' && needs.release.result == 'success' }}
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: write
env:
VERSION: ${{ needs.prepare.outputs.version }}
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: refs/tags/v${{ needs.prepare.outputs.version }}
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ env.NODE_VERSION }}
- name: Write the CycloneDX SBOM from package-lock.json
id: sbom
run: |
# npm's own (npm 10 and later): no package to download, and the npm
# of the Node.js this release is built with.
npm sbom --sbom-format cyclonedx --package-lock-only --omit dev \
> "wekan-${VERSION}-sbom.cdx.json"
test -s "wekan-${VERSION}-sbom.cdx.json"
- name: Attach it to the release
# On always(), so a Cancel after the file was written still attaches
# it (tests/releaseAttachOwnFiles.test.cjs).
if: ${{ always() && steps.sbom.outcome == 'success' }}
run: gh release upload "v${VERSION}" "wekan-${VERSION}-sbom.cdx.json" --clobber --repo "$GITHUB_REPOSITORY"
update-ondra-gantt-repos:
needs: [prepare, release]
if: ${{ !cancelled() && needs.prepare.result == 'success' && needs.release.result == 'success' }}
+57 -16
View File
@@ -143,27 +143,40 @@ jobs:
run: |
set -euo pipefail
mkdir -p snaps
# A release cut before v13.22 has no wekan-ondra or wekan-gantt-gpl
# snap attached (snap-variants did not attach them). A variant IS
# wekan with another name and title, so it is made from the
# release's wekan snaps (releases/snap-rename.sh), as Release All
# Missing does.
if ! gh release download "$TAG" --repo "$GITHUB_REPOSITORY" --dir snaps --pattern "${SNAP}_*.snap"; then
case "$SNAP" in
wekan-ondra) title='Wekan Ondra' ;;
wekan-gantt-gpl) title='Wekan Gantt GPL' ;;
*) echo "::error::Release $TAG has no ${SNAP}_*.snap to push: its snap job did not attach one (snap-native and snap-launchpad attach wekan). Re-run that job of the release, or Release All Missing, then this workflow."; exit 1 ;;
esac
mkdir -p wekan-snaps
if ! gh release download "$TAG" --repo "$GITHUB_REPOSITORY" --dir wekan-snaps --pattern "wekan_*.snap"; then
echo "::error::Release $TAG has neither ${SNAP}_*.snap nor a wekan_*.snap to make it from. Re-run the release's snap jobs, or Release All Missing, then this workflow."
gh release download "$TAG" --repo "$GITHUB_REPOSITORY" --dir snaps --pattern "${SNAP}_*.snap" || true
case "$SNAP" in
wekan-ondra) title='Wekan Ondra' ;;
wekan-gantt-gpl) title='Wekan Gantt GPL' ;;
*) title='' ;;
esac
if [ -z "$title" ]; then
if ! ls snaps/"${SNAP}"_*.snap >/dev/null 2>&1; then
echo "::error::Release $TAG has no ${SNAP}_*.snap to push: its snap job did not attach one (snap-native and snap-launchpad attach wekan). Re-run that job of the release, or Release All Missing, then this workflow."
exit 1
fi
sudo apt-get install -y squashfs-tools >/dev/null
else
# A variant IS wekan with another name and title, so one the release
# lacks is made from the release's wekan snap of that architecture
# (releases/snap-rename.sh), as Release All Missing does. Per
# ARCHITECTURE, not only when the release has none at all: a release
# with the amd64 and arm64 variants snap-variants builds, but not the
# ppc64el, s390x, riscv64 or armhf ones, used to push those two and
# leave every other architecture of the variant behind.
mkdir -p wekan-snaps
if ! gh release download "$TAG" --repo "$GITHUB_REPOSITORY" --dir wekan-snaps --pattern "wekan_*.snap"; then
if ! ls snaps/"${SNAP}"_*.snap >/dev/null 2>&1; then
echo "::error::Release $TAG has neither ${SNAP}_*.snap nor a wekan_*.snap to make it from. Re-run the release's snap jobs, or Release All Missing, then this workflow."
exit 1
fi
fi
for f in wekan-snaps/wekan_*.snap; do
[ -e "$f" ] || continue
rest="$(basename "$f")"; rest="${rest#wekan_}"
[ -e "snaps/${SNAP}_${rest}" ] && continue
command -v unsquashfs >/dev/null 2>&1 || sudo apt-get install -y squashfs-tools >/dev/null
bash releases/snap-rename.sh "$f" "$SNAP" "$title" snaps
echo "::notice::$TAG had no ${SNAP}_${rest}; made it from the release's wekan snap."
done
echo "::notice::$TAG had no ${SNAP} snap; made it from the release's wekan snaps."
fi
ls -l snaps
- name: Push ${{ matrix.snap }} to the Snap Store, releasing to ${{ needs.plan.outputs.channels }}
@@ -193,3 +206,31 @@ jobs:
CHANNELS: ${{ needs.plan.outputs.channels }}
SNAP: ${{ matrix.snap }}
run: bash releases/snap-store-release-newest.sh "$SNAP" "$CHANNELS"
# "What's new in WeKan v<version>" - the release's In short paragraph
# from CHANGELOG-big.md - on the snap's Snap Store page. The store has no
# API for a revision's own changelog (the dashboard's "Add changelog" is a
# web form only), so it goes on the listing: releases/snap-listing.mjs
# writes the text and releases/snap-listing-update.sh sends it with
# `snapcraft upload-metadata`, the store's title, summary, license and
# icon kept as they are. Only for the NEWEST release: run for an older
# tag, this workflow would put that older What's new back on the page.
# continue-on-error: the snaps are released by now; a page that kept the
# previous text is an ::error:: to read, not a release to redo.
- name: Show what is new in ${{ needs.plan.outputs.tag }} on the ${{ matrix.snap }} Snap Store page
if: ${{ always() && steps.snapcraft.outcome == 'success' }}
continue-on-error: true
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_AUTH }}
GH_TOKEN: ${{ github.token }}
TAG: ${{ needs.plan.outputs.tag }}
SNAP: ${{ matrix.snap }}
run: |
set -euo pipefail
newest="$(gh release view --repo "$GITHUB_REPOSITORY" --json tagName --jq .tagName)"
if [ "$TAG" != "$newest" ]; then
echo "$TAG is not the newest release ($newest): the $SNAP page keeps the newest one's What's new."
exit 0
fi
command -v mksquashfs >/dev/null 2>&1 || sudo apt-get install -y squashfs-tools >/dev/null
gh api -H 'Accept: application/vnd.github.raw' "repos/$GITHUB_REPOSITORY/contents/CHANGELOG-big.md?ref=$TAG" > changelog-big.md
bash releases/snap-listing-update.sh "$SNAP" "${TAG#v}" changelog-big.md
+1 -1
View File
@@ -104,7 +104,7 @@ jobs:
# The standard WeKan release already published the migration tools inside
# the app image on Docker Hub, GHCR and Quay. upload checks anonymous pulls
# with mirror fallback and runs start.sh --check before any portal write.
# with mirror fallback and runs start.mjs --check before any portal write.
- name: Upload or finish the UCS portal draft
id: upload
if: steps.config.outputs.enabled == 'true' && steps.portal.outputs.skip != 'true'
+35
View File
@@ -767,6 +767,21 @@ directly after the merge.
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.
- **Every time `TODO.md` is updated, check EVERY item in it for being done
already** - not only the one that prompted the update. Releases are frequent,
so an item is often finished, and even released, while it still sits there.
Check from the source, not from the wording: the code, `git log`, the issue's
state, the Snap Store or the GitHub Release. Then:
- **done and NOT released yet** (its commit is not an ancestor of the newest
release's `Prepare v… release` commit: `git merge-base --is-ancestor
<commit> <prepare-commit>`) - move it: remove it from `TODO.md` and write
its entry in `# Upcoming WeKan ® release`, linking the commit;
- **done and ALREADY released** - just remove it from `TODO.md`. Its release
is a record, and an entry is never added to a released section afterwards;
- **partly done** - shorten it to what is left, and say what was released.
A security advisory is the same: once its fix is released and its GHSA
published, it is done, and nothing about it stays in WeKan's `TODO.md` - not
the advisory and not the wait for its CVE number.
- 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
@@ -995,6 +1010,26 @@ have cost a released section its accuracy:
the change in Audit-Stars.md. Match by the report's subject and reporter, not by
a nearby advisory - a GHSA about something else is no upgrade. Until the GHSA
exists, the row stays at 3 and its Process cell says the GHSA is awaited.
- **Every new security issue updates the Hall of Fame, and every Hall of Fame
update fills in the GHSA and CVE details that are missing.** Compare the
published advisories (`releases/sec/download-github-security.sh` saves them,
or `https://api.github.com/repos/wekan/wekan/security-advisories?state=published`
read to its LAST page - there are more than 100, so one `per_page=100`
request misses the oldest, which then look unpublished) with
`hall-of-fame/index.html`:
- a **published GHSA with no row** gets one - the row, its own page,
`Audit-Icons.md`, `Audit-Stars.md`, the page's exact URLs in wekan.fi's
`releases/risk-baseline.json`, and a catalog key or a recorded reason in
`tests/hallOfFameProblemsCoverage.test.cjs` - even when the fix shipped long
before the advisory, as OidcRaceBleed's did (GHSA-6944-p22h-3qpx, 2026-11-23);
- a row whose advisory has a **CVE assigned** gets it in its CVE cell, on the
index AND on its own page, in place of "CVE requested";
- a row linking an advisory that is **not public** (the API answers 404) is
named to the maintainer: it is a draft or was closed, and readers get a
404 from it.
A CVE that is requested but not assigned yet is NOT a TODO item: requesting
it is part of publishing the advisory, and the CVE cell says "CVE requested"
until the next Hall of Fame update finds the number.
- **On the Hall of Fame index page, the Process and Vulnerabilities cells are
collapsed.** Those two columns carry the prose — how the report arrived, and the
whole story of the vulnerability — so the page would be one wall of text and the
+1056 -1044
View File
File diff suppressed because it is too large. Load diff
+44 -40
View File
@@ -5,57 +5,61 @@ each one changed and the project status are in
Written by `node releases/changelog-short.mjs` from CHANGELOG-big.md:
make changes there.
# v13.28 2026-11-23 WeKan ® release
# v13.33 2026-11-26 WeKan ® release
A board can be a **Shop** with invoices and order email, the
**Admin Panel** can be
limited to chosen addresses, all **webhooks** can be turned off at once, the
**Cloud Panel** exists only in a
Cloud Admin container with the `CLOUD` variable (**CloudPanelBleed**), a forged
bounce report can no longer stop email (**BounceBleed**), and every setting that
turns something off is **refused on the server**. The **audit log**, **sign-in
address retention** and a **personal-data inventory** begin the missing law and
standard features, and every **feature page** of the docs has one shape.
The Docker entrypoint logs **no value read from the environment**
(two GitHub CodeQL alerts). A **board export without archived items** moves a
board to another WeKan without its archive, the **UCS App Center** publisher
works with the distroless FerretDB image again, and **Walloon** is Walloon
instead of French and invented words. Omi gets its Gitea orphan strings in every
language, and the Azure Blob test no longer hangs.
[All changes in v13.28](CHANGELOG-big.md#v1328-2026-11-23-wekan--release)
[All changes in v13.33](CHANGELOG-big.md#v1333-2026-11-26-wekan--release)
# v13.27 2026-11-22 WeKan ® release
# v13.32 2026-11-25 WeKan ® release
**CodeQL** alert #611 is fixed: the **autolink rules** find the
links already in a card's text in linear time, so a description built of
thousands of brackets no longer takes seconds to render.
Every bundle, snap and Docker image is **about 220 MiB
smaller**: translations are one copy on the server, and neither a test build's
files, the TypeScript compiler nor Azure's sign-in libraries ship any more.
Languages that are a copy of another, such as en-IT, no longer fail on the
server. Minicards are **compact again**, and their caret and menu can be
hidden; the health checks survive odd data and a nightly **mongodump**. The
Docker image's start no longer logs paths read
from the environment, as **GitHub CodeQL** found, and the documentation says
the license rule plainly: **permissive licenses, no GPL**.
[All changes in v13.27](CHANGELOG-big.md#v1327-2026-11-22-wekan--release)
[All changes in v13.32](CHANGELOG-big.md#v1332-2026-11-25-wekan--release)
# v13.26 2026-11-22 WeKan ® release
# v13.31 2026-11-25 WeKan ® release
New **Workload and capacity**, **Budget and billing** and **Cloud
Panel** pages: hours against working time, each board's cost and margin with
**expenses**, **fees**, **quotes** and **invoices** in **PDF**, **Excel** and
**e-invoice**, and many customer domains merged into one WeKan. WordPress,
Ghost, Blogger and static sites import and export under **Website**, and a
public board can show itself as a **website**. The **Venda** and **Klingon**
translations hold only their own language, the move and copy pickers show names
without numbers (#6135), and unused code is removed.
A person can **download everything WeKan holds about them**
and **be erased everywhere**; an operator publishes a **privacy notice, terms
and imprint**, can **require accepting them**, and limits how long records are
kept. Administrators **export their lists as CSV**, see **who downloaded what**,
check a **Compliance** checklist; the pages pass **WCAG 2.2 AA** checks, and
every
release carries a **CycloneDX SBOM**, with **security.txt** from the security
contact. **Problems / Summary** groups **sign-in refusals by reason** with the
fix for each, the **delay after a wrong password** is applied at last, the
**Docker image is distroless**, and the server tests pass again.
[All changes in v13.26](CHANGELOG-big.md#v1326-2026-11-22-wekan--release)
[All changes in v13.31](CHANGELOG-big.md#v1331-2026-11-25-wekan--release)
# v13.25 2026-11-21 WeKan ® release
# v13.30 2026-11-23 WeKan ® release
**CodeQL** alerts #605-#610 in the **OneNote** and **Sandstorm
grain** formats are fixed: comments in imported HTML are removed to a fixed
point, SandChat user ids come from a cryptographic generator, and the guards
that missed these shapes now find them anywhere in the tree.
The **wekan-ondra** and **wekan-gantt-gpl** snaps are published on
every architecture the wekan snap has, on all four channels, and each **Snap
Store page** shows what is new in the newest release. **Time tracking**
works again on imported cards whose spent time was stored empty, and the
**Admin Panel recovery list** no longer fills up with old cancelled
notifications.
[All changes in v13.25](CHANGELOG-big.md#v1325-2026-11-21-wekan--release)
[All changes in v13.30](CHANGELOG-big.md#v1330-2026-11-23-wekan--release)
# v13.24 2026-11-21 WeKan ® release
# v13.29 2026-11-23 WeKan ® release
Six more of **Microsoft**'s tools are imported and exported under
the Microsoft heading: **Azure DevOps Boards**, **Microsoft Lists**,
**Microsoft Project** (XML), **Outlook** (.msg in, .eml out), **Teams** and
**OneNote**, the last two also fetched from Microsoft Graph. **Sandstorm** grain
backups of twelve apps are imported and nine exported, and **Vietnamese** no
longer shows Malay text.
**EVERYTHING** tests now run one stage and one worker at a time by
default, so a full test run no longer runs the machine out of RAM; the
two-worker mode stays available when asked for.
[All changes in v13.24](CHANGELOG-big.md#v1324-2026-11-21-wekan--release)
[All changes in v13.29](CHANGELOG-big.md#v1329-2026-11-23-wekan--release)
+35
View File
@@ -767,6 +767,21 @@ directly after the merge.
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.
- **Every time `TODO.md` is updated, check EVERY item in it for being done
already** - not only the one that prompted the update. Releases are frequent,
so an item is often finished, and even released, while it still sits there.
Check from the source, not from the wording: the code, `git log`, the issue's
state, the Snap Store or the GitHub Release. Then:
- **done and NOT released yet** (its commit is not an ancestor of the newest
release's `Prepare v… release` commit: `git merge-base --is-ancestor
<commit> <prepare-commit>`) - move it: remove it from `TODO.md` and write
its entry in `# Upcoming WeKan ® release`, linking the commit;
- **done and ALREADY released** - just remove it from `TODO.md`. Its release
is a record, and an entry is never added to a released section afterwards;
- **partly done** - shorten it to what is left, and say what was released.
A security advisory is the same: once its fix is released and its GHSA
published, it is done, and nothing about it stays in WeKan's `TODO.md` - not
the advisory and not the wait for its CVE number.
- 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
@@ -995,6 +1010,26 @@ have cost a released section its accuracy:
the change in Audit-Stars.md. Match by the report's subject and reporter, not by
a nearby advisory - a GHSA about something else is no upgrade. Until the GHSA
exists, the row stays at 3 and its Process cell says the GHSA is awaited.
- **Every new security issue updates the Hall of Fame, and every Hall of Fame
update fills in the GHSA and CVE details that are missing.** Compare the
published advisories (`releases/sec/download-github-security.sh` saves them,
or `https://api.github.com/repos/wekan/wekan/security-advisories?state=published`
read to its LAST page - there are more than 100, so one `per_page=100`
request misses the oldest, which then look unpublished) with
`hall-of-fame/index.html`:
- a **published GHSA with no row** gets one - the row, its own page,
`Audit-Icons.md`, `Audit-Stars.md`, the page's exact URLs in wekan.fi's
`releases/risk-baseline.json`, and a catalog key or a recorded reason in
`tests/hallOfFameProblemsCoverage.test.cjs` - even when the fix shipped long
before the advisory, as OidcRaceBleed's did (GHSA-6944-p22h-3qpx, 2026-11-23);
- a row whose advisory has a **CVE assigned** gets it in its CVE cell, on the
index AND on its own page, in place of "CVE requested";
- a row linking an advisory that is **not public** (the API answers 404) is
named to the maintainer: it is a draft or was closed, and readers get a
404 from it.
A CVE that is requested but not assigned yet is NOT a TODO item: requesting
it is part of publishing the advisory, and the CVE cell says "CVE requested"
until the next Hall of Fame update finds the number.
- **On the Hall of Fame index page, the Process and Vulnerabilities cells are
collapsed.** Those two columns carry the prose — how the report arrived, and the
whole story of the vulnerability — so the page would be one wall of text and the
+1 -1
View File
@@ -7,7 +7,7 @@ For all code at WeKan GitHub Organization https://github.com/wekan
- The AI a human works with is thanked in one place only: https://wekan.fi/sponsors , under "AI donated by. All code and PRs verified by xet7", where Claude, Codex and GitHub Copilot are listed with the other sponsors. There were too many AI mentions before, so they were all moved to that one page.
- Maintainer Lauri Ojansivu (xet7) commits directly to the `main` branch as `Lauri Ojansivu <x@xet7.org>`, and an AI working for the maintainer commits the same way, under that same name. Everyone else sends a pull request.
- All code in pull requests need to have permission already to add it to WeKan with MIT license, and will become MIT license.
- For any dependencies, permissive licenses like https://copyfree.org are preferred
- For any dependencies, permissive licenses (MIT, BSD, ISC, Apache-2.0 and the like) are preferred. No GPL: GPL code would turn the license of the whole program into GPL
- For anything currently that is non-permissive (like GPL, AGPL, SSPL), those will be replaced with permissive-licensed alternatives
- All code is checked and validated by xet7 and many different security AI. If code is real working fix or feature, it usually will be merged.
- All known vulnerabilities have been fixed at newest WeKan, please upgrade https://wekan.fi/upgrade/
+152 -63
View File
@@ -1,17 +1,32 @@
# debian:trixie (Debian 13), not ubuntu:26.04: Ubuntu publishes no linux/386
# image, which stopped the image from ever building for i386. Debian ships every
# arch this image targets - amd64, arm64, 386, arm/v7, ppc64le, riscv64, s390x -
# so ONE base covers them all, and it is the same base WeKan's per-arch .zip
# bundles are already built in (releases/... build-extra-arches).
# The image is DISTROLESS: gcr.io/distroless/base-nossl-debian13 - glibc, CA
# certificates and tzdata - plus the C++ runtime node needs (libstdc++6,
# libgcc-s1, libatomic1), and nothing else. Not distroless cc-debian13: that
# adds libssl3t64 and libgomp1, which nothing here loads - node links OpenSSL
# statically, and no native module needs either - and which were 20 of its 55
# scanner findings. No shell, no apt, no
# coreutils, util-linux, login, tar or systemd libraries. Those were most of
# Artifact Hub's Trivy report of the image (218 findings in v13.30, 214 of them
# Debian packages WeKan never runs, none with a fix to update to). What runs is
# node, WeKan, and the static Go binaries FerretDB and the MongoDB tools; the
# entrypoint is Node.js (releases/ferretdb/wekan-entrypoint.mjs) because there
# is no bash to run a shell script with.
#
# The ONE it does not ship is arm/v6: debian:trixie's manifest list has arm/v5
# and arm/v7 and nothing between them. That matters because containerd treats a
# LOWER ARM variant as compatible, so a linux/arm/v6 request does not fail - it
# quietly resolves to the arm/v5 (armel, SOFT-float) image, whose loader and
# glibc cannot run the hard-float node-armv6 in the armv6 bundle. The docker job
# therefore asks this base what it publishes and drops a platform it lacks; see
# Distroless publishes amd64, arm64, arm/v7, ppc64le, s390x and riscv64. It
# publishes no linux/386, so for 386 the same root - the same Debian 13
# packages, each with its dpkg record so a scanner still sees them - is
# assembled from debian:trixie into scratch (the runtime-root stage). That is
# also where every platform gets the C++ runtime, the same way.
#
# arm/v6 has neither: debian:trixie's manifest list has arm/v5 and arm/v7 and
# nothing between them, and containerd treats a LOWER ARM variant as compatible,
# so a linux/arm/v6 request would quietly resolve to the arm/v5 (armel,
# SOFT-float) userland the hard-float node-armv6 cannot run on. The docker job
# therefore asks the bases what they publish and drops a platform they lack; see
# docs/Platforms/FOSS/Container/Docker/CPU-platforms.md.
# FROM runtime-${TARGETARCH} below needs the platform in the global scope.
ARG TARGETARCH
# ── Stage 1: the release bundle, prepared ON THE BUILD MACHINE ───────────────
#
# Everything a release bundle needs is already done when this runs: each
@@ -38,7 +53,7 @@ FROM --platform=$BUILDPLATFORM debian:trixie AS bundle
ARG TARGETARCH
ARG TARGETVARIANT
ARG VERSION=13.28
ARG VERSION=13.33
ARG DEBIAN_FRONTEND=noninteractive
COPY --chmod=755 releases/check-telemetry.py /tmp/check-telemetry.py
@@ -121,29 +136,116 @@ if got != want:
print(f'{path}: ELF machine {got}, as expected')
EOP
# /out is laid out as the image's root: the app at /build, node on PATH.
mkdir -p /out/usr/local/bin
# /out is laid out as the image's root: the app at /build, node on PATH, and
# the accounts. The image has no useradd, so /etc/passwd and /etc/group are
# written here: distroless's own root, nonroot and nobody, and wekan as
# 999:999 - the uid every earlier image's `useradd --system` gave it, which
# existing volumes are owned by and the Helm chart's init container chowns to.
# /owned holds what the wekan user must own: /data and its home.
mkdir -p /out/usr/local/bin /out/etc /owned/data /owned/home/wekan
cat > /out/etc/passwd <<'EOP'
root:x:0:0:root:/root:/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/sbin/nologin
nonroot:x:65532:65532:nonroot:/home/nonroot:/sbin/nologin
wekan:x:999:999:WeKan:/home/wekan:/sbin/nologin
EOP
cat > /out/etc/group <<'EOP'
root:x:0:
nogroup:x:65534:
nonroot:x:65532:
wekan:x:999:
EOP
mv bundle/node /out/usr/local/bin/node
chmod 755 /out/usr/local/bin/node
ln -s "/usr/local/bin/node" "/out/usr/local/bin/nodejs"
# The .zip's self-contained launchers start its bundled node; the image starts
# wekan-entrypoint.sh instead. /build/ferretdb (used by the entrypoint) and the
# per-arch MongoDB Database Tools stay, for backup/restore inside the container.
rm -f bundle/start-wekan.sh bundle/start-wekan.bat
# wekan-entrypoint.mjs instead. cpu-exec is a bash script, and the image has no
# bash: the entrypoint makes cpu-exec's decision itself, with the qemu-user that
# stays beside it. /build/ferretdb (used by the entrypoint) and the per-arch
# MongoDB Database Tools stay, for backup/restore inside the container.
rm -f bundle/start-wekan.sh bundle/start-wekan.bat bundle/cpu-exec
# The bundle's MongoDB tool launchers (mongodump, mongorestore, ...) are #!/bin/sh
# scripts that run the one program mongo-tools beside them (fetch-mongo-tools.sh).
# The image has no sh, but mongo-tools also picks the tool by the name it is run
# as, so here each launcher becomes a symlink to it: `docker exec wekan-app
# /build/mongodump ...` still works. Found by the line every launcher carries,
# so the list of tools is not written a second time here.
for launcher in $(grep -l 'mongo-tools beside this file' bundle/* 2>/dev/null); do
ln -sf mongo-tools "$launcher"
done
mv bundle /out/build
EOR
# ── Stage 2: the image, for the TARGET platform ──────────────────────────────
# ── Stage 2: what the distroless root lacks, for the TARGET platform ─────────
#
# The only work left that runs as the target CPU (under QEMU for all but amd64):
# the WeKan user, an OS update, and the three runtime packages the app needs.
FROM debian:trixie
LABEL maintainer="wekan"
LABEL org.opencontainers.image.ref.name="debian"
LABEL org.opencontainers.image.version="trixie"
LABEL org.opencontainers.image.source="https://github.com/wekan/wekan"
# The only work that runs as the target CPU (under QEMU for all but amd64):
# fetch the newest Debian 13 packages and unpack them. Nothing of this stage is
# in the image except what is copied out of /extra and /rootfs. Each package
# also leaves its dpkg record in var/lib/dpkg/status.d/, the way distroless
# records its own, so Trivy and the other scanners list it rather than miss it.
FROM debian:trixie AS runtime-root
ARG TARGETARCH
ARG DEBIAN_FRONTEND=noninteractive
RUN <<EOR
set -o xtrace
set -eo pipefail
apt-get update --assume-yes
apt-get upgrade --assume-yes
unpack() {
dest="$1"; shift
mkdir -p "$dest/var/lib/dpkg/status.d" /work
apt-get install --assume-yes --no-install-recommends "$@"
(cd /work && apt-get download "$@")
for pkg in "$@"; do
dpkg-deb --extract /work/"${pkg}"_*.deb "$dest"
dpkg-query --status "$pkg" > "$dest/var/lib/dpkg/status.d/$pkg"
done
rm -rf /work
}
# Every platform: the C++ runtime node needs (libstdc++.so.6, libgcc_s.so.1,
# libatomic.so.1), which distroless base-nossl does not have.
unpack /extra gcc-14-base libgcc-s1 libstdc++6 libatomic1
mkdir -p /rootfs
if [ "$TARGETARCH" = "386" ]; then
# distroless base-nossl-debian13's packages, for the one platform it does not publish.
unpack /rootfs base-files netbase tzdata ca-certificates libc6
for d in bin sbin lib; do [ -e "/rootfs/$d" ] || ln -s "usr/$d" "/rootfs/$d"; done
mkdir -p /rootfs/etc/ssl/certs /rootfs/tmp /rootfs/root /rootfs/home/nonroot
chmod 1777 /rootfs/tmp
chmod 700 /rootfs/root
# The certificate bundle update-ca-certificates made; the package's sources
# and its shell-script updater are not needed beside it.
cp /etc/ssl/certs/ca-certificates.crt /rootfs/etc/ssl/certs/ca-certificates.crt
rm -rf /rootfs/usr/share/ca-certificates /rootfs/usr/sbin/update-ca-certificates
printf 'passwd: files\ngroup: files\nhosts: files dns\n' > /rootfs/etc/nsswitch.conf
fi
rm -rf /var/lib/apt/lists/*
EOR
# ── Stage 3: the runtime root, per platform ──────────────────────────────────
#
# Not pinned to a digest, for the same reason debian:trixie is not: distroless
# rebuilds it whenever Debian publishes a security update, and every release
# should get those. A platform not listed here has no runtime root, and the
# build for it stops at FROM runtime-${TARGETARCH}.
FROM gcr.io/distroless/base-nossl-debian13:nonroot AS distroless
FROM distroless AS runtime-amd64
FROM distroless AS runtime-arm64
FROM distroless AS runtime-arm
FROM distroless AS runtime-ppc64le
FROM distroless AS runtime-s390x
FROM distroless AS runtime-riscv64
FROM scratch AS runtime-386
COPY --from=runtime-root /rootfs/ /
# ── Stage 4: the image ───────────────────────────────────────────────────────
#
# No RUN from here on: there is no shell to run one with. Everything is COPY.
FROM runtime-${TARGETARCH}
LABEL maintainer="wekan"
LABEL org.opencontainers.image.ref.name="distroless-base-nossl-debian13"
LABEL org.opencontainers.image.version="debian13"
LABEL org.opencontainers.image.source="https://github.com/wekan/wekan"
ENV \
DEBUG=false \
@@ -322,6 +424,16 @@ ENV \
WEKAN_IMPORT_RUN_STALE_MS="" \
EVENTLOG_RETENTION_DAYS="" \
LOGIN_ADDRESS_RETENTION_DAYS="" \
LOGIN_ADDRESS_RECORDED="" \
USERS_ANONYMIZE_INACTIVE_AFTER_DAYS="" \
REGISTRATION_MINIMUM_AGE="" \
BACKUP_PASSPHRASE="" \
ATTACHMENTS_PASSPHRASE="" \
ADMIN_AUDIT_RETENTION_DAYS="" \
AUDIT_LOG_STDOUT="" \
ACTIVITIES_RETENTION_DAYS="" \
WORKLOAD_ABSENCE_RETENTION_DAYS="" \
WORKLOAD_ABSENCE_TYPE_RECORDED="" \
CORS="" \
CORS_ALLOW_HEADERS="" \
CORS_EXPOSE_HEADERS="" \
@@ -387,44 +499,20 @@ ENV \
MONGO_URL_FILE="" \
S3_SECRET_KEY_FILE=""
RUN <<EOR
set -o xtrace
set -eo pipefail
# Create Wekan user. --create-home is required because --system users do not
# get a home directory by default.
useradd --user-group --system --create-home --home-dir /home/wekan wekan
# OS Updates
apt-get update --assume-yes
apt-get upgrade --assume-yes
# Runtime MIME detection and Node.js atomics. Nothing in this image compiles
# anything, so no compiler is installed (and none has to be purged).
# No docker-cli: it is a Go program whose Go 1.24 standard library was most of
# the image's vulnerability scan, for a client only the UCS migration used. That
# talks to the Docker socket itself now (releases/ucs-migration/docker-exec.mjs).
apt-get install --assume-yes --no-install-recommends file libatomic1
# Remove unused Go-based pebble binary shipped by base image to reduce CVE surface.
apt-get remove --purge --assume-yes pebble || true
rm -f /usr/bin/pebble
apt-get autoremove --assume-yes
apt-get clean --assume-yes
rm -Rf /var/lib/apt/lists/*
mkdir -p /data
chown wekan:wekan --recursive /data
EOR
COPY --from=runtime-root /extra/ /
# The bundle and its node, prepared in stage 1. npm is not in this image at all:
# nothing here installs anything, and the entrypoint never calls it.
COPY --from=bundle /out/ /
# Only /data and wekan's home are the wekan user's; /home itself stays root's.
COPY --from=bundle --chown=999:999 /owned/data /data
COPY --from=bundle --chown=999:999 /owned/home/wekan /home/wekan
# Database-backend selector entrypoint. Every arch's bundle now ships a FerretDB
# binary (baked into the .zip and moved to /build/ferretdb above); this script
# starts FerretDB v1 (SQLite) or leaves the DB external based on WEKAN_DB and the
# Database-backend selector entrypoint. Every arch's bundle ships a FerretDB
# binary (baked into the .zip and moved to /build/ferretdb above); this starts
# FerretDB v1 (SQLite) or leaves the DB external based on WEKAN_DB and the
# /build/.ferretdb-default marker (present only on MongoDB-less arches). See
# releases/ferretdb/wekan-entrypoint.sh.
COPY --chmod=755 releases/ferretdb/wekan-entrypoint.sh /build/wekan-entrypoint.sh
# releases/ferretdb/wekan-entrypoint.mjs.
COPY --chmod=644 releases/ferretdb/wekan-entrypoint.mjs /build/wekan-entrypoint.mjs
# #6492: standalone "recovering data" page the entrypoint serves as a brief bridge on
# the web port while a just-restored FerretDB comes back up during a data recovery.
COPY --chmod=644 releases/ferretdb/recovery-bridge.mjs /build/recovery-bridge.mjs
@@ -433,10 +521,11 @@ COPY --chmod=644 releases/ferretdb/recovery-bridge.mjs /build/recovery-bridge.mj
# for a reverse proxy to time out on.
COPY --chmod=644 releases/ferretdb/db-ready.mjs /build/db-ready.mjs
# UCS runs this same image with an explicit migration command. Only that
# temporary container receives the Docker socket; normal startup is unchanged.
# UCS runs this same image with an explicit migration command,
# `/usr/local/bin/node /opt/ucs-migration/start.mjs`. Only that temporary
# container receives the Docker socket; normal startup is unchanged.
COPY releases/ucs-migration /opt/ucs-migration
RUN chmod 755 /opt/ucs-migration/start.sh /opt/ucs-migration/tools/*
COPY --chmod=755 releases/ucs-migration/tools /opt/ucs-migration/tools
COPY releases/nextcloud/capability.json /build/nextcloud-exapp-capability.json
@@ -446,4 +535,4 @@ EXPOSE $PORT
STOPSIGNAL SIGKILL
WORKDIR /build
CMD ["bash", "/build/wekan-entrypoint.sh"]
CMD ["/usr/local/bin/node", "/build/wekan-entrypoint.mjs"]
+5 -5
View File
@@ -38,7 +38,7 @@ that by providing one-click installation on various platforms.
build.bat.
- [Features](https://github.com/wekan/wekan/tree/main/docs/Features):
- Real-time user interface
- [Help button](docs/Features/General/Help-Button.md): a ? at every feature place - board views, sidebar, Board and Member Settings,
- [Help button](docs/Features/Help-Button.md): a ? at every feature place - board views, sidebar, Board and Member Settings,
card sections, Admin Panel panes - shows What is it? and How it works? in your own language
- All Boards page, Drag drop reorder with one or Multi-Selection:
- Board icons at Remaining, (Sub)Workspaces, Archive
@@ -60,7 +60,7 @@ that by providing one-click installation on various platforms.
- Text and outlines: Markdown, Leo, OPML, Org mode
- Mail, calendars, chats and notes, each into the view it fits: Mail (mbox, .eml), iCalendar, Slack, Mattermost,
Telegram, WhatsApp, Discord, Rocket.Chat, Evernote
- [Website](docs/Features/Board-Sidebar/Board-Settings/Import-Export/Website/Website.md): WordPress (.xml, and Squarespace, Wix and others that write it),
- [Website](docs/Features/Board-Sidebar/Board-Settings/Import-Export/Website/README.md): WordPress (.xml, and Squarespace, Wix and others that write it),
WordPress REST API, Ghost, Blogger, Hugo / Jekyll / Eleventy / Astro (.zip of Markdown), HTML website and Medium (.zip), Substack
- Fetched from the service's API with your credentials: Planka, KanbanFlow, Basecamp, Microsoft To Do, OneNote and Teams,
Google Tasks and Keep
@@ -70,9 +70,9 @@ that by providing one-click installation on various platforms.
- Change Color: Board theme and background image, Swimlane, List, Card
- Overrides: 1 Admin Panel, 2 Board Settings, 3 Member Settings
- Professional services (PSA), from the user menu:
- [Workload and capacity](docs/Features/Workload/Workload.md): each person's hours against their working time across boards,
- [Workload and capacity](docs/Features/Workload/README.md): each person's hours against their working time across boards,
absences, public holidays, allocations, placeholders for roles, billable utilization against a target, skills and who could do the work
- [Budget and billing](docs/Features/Billing/Billing.md): rates and cost rates, budget against cost and forecast, margin and unbilled work,
- [Budget and billing](docs/Features/Billing/README.md): rates and cost rates, budget against cost and forecast, margin and unbilled work,
time by day and its approval, expenses, fixed fees and monthly retainers, quotes, invoices of a period
with VAT, payments and credit notes, as PDF, SVG, Excel, CSV and Peppol e-invoice, with the payment QR codes and
bank barcodes of many countries, in each currency's own decimals
@@ -119,7 +119,7 @@ that by providing one-click installation on various platforms.
Throughput Run Chart, Due Date Performance
- Overview: Statistics, Dashboard, Pulse, Workload, Distribution, Dependency Map, Activity Heatmap
- Communication and code: Email, Chat, Version Control,
[Website](docs/Features/Board-Sidebar/Board-Settings/Import-Export/Website/Website.md): the board as a website, which a public board can show at its own address instead of the kanban,
[Website](docs/Features/Board-Sidebar/Board-Settings/Import-Export/Website/README.md): the board as a website, which a public board can show at its own address instead of the kanban,
[Shop](docs/Features/Board-Header/Board-Views/Shop.md): the products on the cards as a web shop - cart, checkout, orders as cards, Budget and billing's payment methods - which a public board can show instead of the kanban
- The charts and reports each have PDF and Excel export
- Right Sidebar / Board Settings:
+20 -1
View File
@@ -74,7 +74,26 @@ the reports short and succinct. If we fail to understand the logic of your bug,
You can [Install WeKan](https://wekan.fi/install/) on your own computer
and scan it's vulnerabilities there.
## About WeKan Versions
## Support period
Security fixes are made in the newest WeKan release, and only there: there are
no long-term branches, and older releases do not get backports. Releases are
frequent - several a day when a fault is being chased - and every release
upgrades the one before it in place, so the supported version is always the
newest one at [GitHub Releases](https://github.com/wekan/wekan/releases).
Upgrade to it to get a fix. Sandstorm WeKan follows as the Sandstorm App Market
publishes it.
Every release carries its software bill of materials, every npm package it is
built from, as `wekan-<version>-sbom.cdx.json` (CycloneDX) on its GitHub Release
page; Admin Panel / Settings / Version links the one of the running version.
A WeKan whose administrator has set a security contact in Admin Panel /
Settings / Legal pages answers at `/.well-known/security.txt` ([RFC
9116](https://www.rfc-editor.org/rfc/rfc9116)) with that contact: report
something about that one server there, and something in WeKan itself as
described above.
There are 2 versions of WeKan: Standalone WeKan, and Sandstorm WeKan.
+1 -1
View File
@@ -1,5 +1,5 @@
appId: wekan-public/apps/77b94f60-dec9-0136-304e-16ff53095928
appVersion: "v13.28.0"
appVersion: "v13.33.0"
files:
userUploads:
- README.md
+49 -88
View File
@@ -15,114 +15,69 @@ the changelog only says what changed.
`tests/todoFile.test.cjs` checks this shape.
**Where things are** (2026-11-22). Each repository's own TODO.md has the
**Where things are** (2026-11-24). Each repository's own TODO.md has the
details; WeKan's are below.
| Repository | In progress, or not verified yet | Needs a person |
| --- | --- | --- |
| WeKan | The help button's texts in 176 of 232 languages; the test build that runs out of memory; the changelog of the newest work; Latvian with Lithuanian words; laws and standards WP-4 onwards; accessibility; the docs folders | Push; the CVEs and advisories of ListLockMoveBleed and BounceBleed after the release; the Snap Store review ([#6929](https://github.com/wekan/wekan/issues/6929)) |
| [gitea-patches](https://github.com/wekan/gitea-patches/blob/main/TODO.md) | 90 new upstream Gitea strings not yet in Finnish | Push; run "Migrate all Gitea to backups" with `--dry-run` first |
| [omi](https://github.com/wekan/omi/blob/main/TODO.md) | Delete and import not yet run on a real Gitea folder or against the real GitHub; the import has no reactions, review comments, LFS, Actions or fork branches | Push; stop and back up Gitea before the first real write |
| WeKan | - | The Firefox and WebKit stages, on a host; push the security fixes of ferretdb-test, hx, minio-metadata, trello-attachments-downloader and the caddy plugins; Dependabot off in 16 repositories; the dev-only glob 13 |
| [gitea-patches](https://github.com/wekan/gitea-patches/blob/main/TODO.md) | 90 new upstream Gitea strings not yet in Finnish | Run "Migrate all Gitea to backups" with `--dry-run` first |
| [omi](https://github.com/wekan/omi/blob/main/TODO.md) | Delete and import not yet run on a real Gitea folder or against the real GitHub; the import has no reactions, review comments, LFS, Actions or fork branches | Stop and back up Gitea before the first real write |
| [welite](https://github.com/wekan/welite/blob/main/TODO.md) | WeKan data folders: no zip archives, GridFS or object-storage downloads, avatars or cross-target builds yet; retro-browser acceptance | - |
| [weddy](https://github.com/wekan/weddy/blob/main/TODO.md) | 20 of WeKan's 174 templates in Go; attachments' Office preview and WebP thumbnails; more of WeKan's specs; Firefox and WebKit; netbsd/arm64 | Its "For the maintainer (on GitHub)" items |
| [caddy-ferretdb-plugin](https://github.com/wekan/caddy-ferretdb-plugin/blob/main/TODO.md) | The Windows SQLite URI fix, checked on Linux only | Close the otel Dependabot alert; push before caddy-wekan-plugin |
| [caddy-wekan-plugin](https://github.com/wekan/caddy-wekan-plugin/blob/main/TODO.md) | Weddy behind WeKan's newest settings; the Windows fixes, checked on Linux only | Push; close the otel Dependabot alert |
| [caddy-ferretdb-plugin](https://github.com/wekan/caddy-ferretdb-plugin/blob/main/TODO.md) | The Windows SQLite URI fix, checked on Linux only | Push the otel ignore rule |
| [caddy-wekan-plugin](https://github.com/wekan/caddy-wekan-plugin/blob/main/TODO.md) | Weddy behind WeKan's newest settings; the Windows fixes, checked on Linux only | Push the otel ignore rule |
| [node-patches](https://github.com/wekan/node-patches/blob/main/TODO.md) | The clone retry, until the next Release All | - |
| [wekango](https://github.com/wekan/wekango/blob/main/TODO.md) | The Windows and macOS fixes, checked on Linux only | Confirm the mongo-tools notice review |
| [weror](https://github.com/wekan/weror/blob/main/TODO.md) | - | Decide on the demo account that takes any password; close the rack Dependabot pull request |
| [wekan.fi](https://github.com/wekan/wekan.fi/blob/main/TODO.md) | - | Rerun the Pages deploy; the CVE numbers into the Hall of Fame |
| [weror](https://github.com/wekan/weror/blob/main/TODO.md) | - | Decide on the demo account that takes any password |
| [wekan.fi](https://github.com/wekan/wekan.fi/blob/main/TODO.md) | - | - |
| [wekan-meteor3-html4](https://github.com/wekan/wekan-meteor3-html4/blob/main/TODO.md) | Left out for now | - |
| wena | aros-i386 without AHI audio | Rerun Release all for haiku-amd64 |
| wena | aros-i386 without AHI audio | Rerun Release all for haiku-amd64; Release desktop's linux-armel and linux-mips64le |
| wepica | Left out: too old | - |
## In progress
Work being done now. Each item moves to the `# Upcoming WeKan ® release`
section of `CHANGELOG-big.md`, and to the docs, when it is committed.
- A help button (?) at the top of every feature's place, mirrored for
right-to-left languages, opening "What is it?" and "How it works?" for that
feature as plain text without links, in every language. Done: the button,
the popup, 161 places and the English texts. Translating the 323
descriptions: 176 of the 232 non-English locales are done (2026-11-22),
the rest are being translated, a few languages at a time. Not yet run: the
Playwright spec `feature-help.e2e.js`.
- The Meteor test build (`meteor test --full-app`) ran out of memory before
any test started after the help texts grew every locale file; the release
build (`meteor build`) still works. To find out why and fix it, then run
the Shop, webhooks and Admin Panel addresses server tests, and their
Playwright specs in Firefox and WebKit.
- The changelog entries for what landed since the last changelog update:
ListLockMoveBleed, the help button, the Shop's Product line kind, the
Meteor 3 hosting localhost limit, the Omi and WeLite translation keys, and
the translation rule for the prototypes.
- Wrong-language and wrong-meaning words seen by the help-text translators,
to correct once they are done with those files: Latvian (`lv`) has
Lithuanian words; Estonian (`et-EE`) calls a board "juhatus" (a company's
management board) in "Board Settings" and "Board View"; Aromanian (`rup`)
and Sicilian (`scn`) have Italian menu names; Northern Sami (`se`) has two
Finnish values; Shona (`sn`) has half-English menu names; Brazilian
Portuguese (`pt-BR`) calls an assignee "Administrador"; Somali (`so`) calls
card recurrence an automatic reset; Pashto and Sindhi (`ps`, `sd`) have odd
"Check Version" and "WIP Limit Groups" terms; Serbian (`sr`) uses списи,
предмет and Управа for board, card and Admin Panel; Macedonian (`mk`) has
Bulgarian values (Хора, Наблюдавай, Имейл, Описание, Разпределена от,
Поискан от); Luxembourgish (`lb`) is partly German; Punjabi and Odia (`pa`,
`or_IN`) call a swimlane "swimming"; Maltese (`mt`) has "Bord Ara" for
Board View.
- The docs folders keep their main page as `README.md` instead of a page named
after the folder, and `docs/Features/README.md` holds the website's feature
overview. Every topic in one folder at the `docs/Features/` level: the
`General/` level goes, its folders move up into the same-named folders, and
the folders of `# Moved` stubs are removed, with every link updated.
- Everything about accessibility in one folder, `docs/Features/Accessibility/`
(from `General/Accessibility/` and the Admin Panel's Accessibility page).
- Accessibility: every missing WCAG 2.2 AA feature added, and the accessibility
tests extended to every page, popup and Admin Panel pane - axe with the WCAG
2.2 rules, keyboard-only use, visible focus, 200 % zoom and 320 px reflow,
target size, reduced motion and every theme's contrast - run through build.sh.
- Laws and standards - GDPR, NIS2, ISO 27001, HIPAA and the others - checked
against what WeKan already has (`docs/Compliance/`). Done: the complete admin
audit log (WP-1), retention of sign-in addresses (WP-2) and the
personal-data inventory (WP-3). Next: complete erasure (WP-4, the 40
collections the inventory lists), a personal-data export (WP-5), legal pages
with accepted versions (WP-6), then WP-7 to WP-14.
- Found while documenting, to fix: the per-address login delay is never
applied; Broken Cards counts unknown card types in its list but not in the
Summary or its repair; the database, integrity and mail streams have no name
in the Summary; the Recovery pane's text says it does not retry or cancel;
the attachment retention form allows a larger per-run number than the
retention applies.
## For the maintainer: needs a person, not code
- Push `main` here and in the `.tools/w/` repositories with local commits:
gitea-patches, omi, welite, wekan.fi, charts and caddy-wekan-plugin.
- [GHSA-394w-8q99-q4qx](https://github.com/wekan/wekan/security/advisories/GHSA-394w-8q99-q4qx)
(ListLockMoveBleed) and
[GHSA-7w85-38ph-c96v](https://github.com/wekan/wekan/security/advisories/GHSA-7w85-38ph-c96v)
(BounceBleed): fixed in Upcoming; after the release, request the CVEs and
publish the advisories. The Hall of Fame says "CVE requested" for both.
- The Snap Store push of v13.27 failed and waits for the Store's manual review
([#6929](https://github.com/wekan/wekan/issues/6929)); nothing to change in
the code.
- Dependabot pull requests and alerts to close by hand: the
go.opentelemetry.io/otel/sdk/log update in caddy-ferretdb-plugin and
caddy-wekan-plugin (Dependabot cannot resolve their local `replace`, and the
version is already on main), weror's rack-3.1.21 branch (main has rack
3.2.9), nekan alert 207 and caddy-gitea-plugin alerts 1, 2, 4, 18, 24, 25
and 37.
- Push the security fixes committed locally on 2026-11-24, which close every
open Dependabot and CodeQL alert of the newest download once GitHub
re-scans: ferretdb-test (93, `a3b3058`), minio-metadata (5, `1ce090d`), hx
(47 Dependabot and 4 CodeQL, `02e5451` to `8f4699e` - htmx kept at 2.0.11, as
4.x drops the `htmx:afterOnLoad` event the fullmoon board uses) and
trello-attachments-downloader (6, and current upload/download-artifact,
`9c65a9f`). hx's two htmx CodeQL alerts may come back on the new copy, as
htmx still parses HTML and checks `javascript:` the same way: dismiss them as
vendored code if they do. nekan has 1 high its Dependabot does not list as
open (zod below 4.6.6, GHSA-mrhx-c7xc-m3w5).
- Dependabot is still off (403) in 16 repositories: migratemongo,
minio-express, waxe, we, webhook, wedos, wekan-aws, wekan-gantt-gpl,
wekan-ondra, wekan-openstore, wekan-openstore2, wekan-prometheus-exporter,
wekan-sandstorm-meteor3, wekan-test-alpha, wekanstudio and wodello. Of those,
we and wekan-sandstorm-meteor3 have a medium Babel advisory
(GHSA-968p-4wvh-cqc8, @babel/helpers and @babel/runtime below 7.26.10).
- caddy-ferretdb-plugin and caddy-wekan-plugin: push the `.github/dependabot.yml`
that ignores go.opentelemetry.io/otel/sdk/log, whose update fails on every run
(`42c839f`, `cdab5e43`).
- wena: rerun Release all for haiku-amd64 (the Haiku VM never answered SSH);
aros-i386 needs SDL's AHI audio driver off for i386, whose AROS toolchain has
no AHI headers - not cloned or built here, as there is no Docker.
- wekan.fi: rerun "Deploy static content to Pages", which failed with a 500
from GitHub's Pages API after its checks passed.
no AHI headers - not cloned or built here, as there is no Docker. Its
"Release desktop" also failed (2026-10-03, not run since): linux-armel and
linux-mips64le stopped with exit code 125 in their Docker emulation step.
- weror: decide whether the demo account `user@demo.test` may sign in with any
password, as its tests ask; restored as tested, and a risk if weror is
public.
- wekango: confirm the review of the new mongo-tools license notices (only
permissive attributions changed).
## Needs a maintainer decision on the intended contract
- WeKan's dev-only `glob` 13.0.6 under `@babel/cli`, which builds the vendored
`npm-packages/`, is in the range of GHSA-3g3m-2fjr-6pw4 (medium,
CVE-2026-118773: 9.0.0 to 14.0.1). The bundle's own `glob` is 14.0.3, which
is patched. `@babel/cli` 8.0.6 asks for `^13.0.0`, and the advisory names no
patched 13 (13.0.7 is inside its range), so the fix is an override to glob
14 - a major version over what `@babel/cli` asks for - or waiting for a
`@babel/cli` that takes 14.
## Repositories left out, and why
- wepica: too old; its failing Dependabot runs are not fixed (decided
@@ -137,13 +92,19 @@ section of `CHANGELOG-big.md`, and to the docs, when it is committed.
- 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.
- Firefox cannot run in the Flatpak sandbox either: Playwright's Firefox 159
needs NSS 3.126, newer than the runtime's, and with a newer NSS supplied it
still crashes, as its own sandbox cannot create a user namespace there -
the same as WebKit, and turning that sandbox off is not allowed. Run the Firefox stage on a host -
in particular the Shop, webhooks, Admin Panel addresses and accessibility
(47) specs, which pass in Chromium.
## Need accounts on the tools, or a running copy of one
The import/export review asked on 2026-11-20 (everything each tool with a
WeKan import or export can hold comes across, whole or in part) went through
every parser and formatter against the export format its header documents.
What it found is fixed and in the Upcoming release; the round trips are held
What it found is fixed and released; the round trips are held
by `tests/playwright/specs/export-import-round-trip.e2e.js` (41 formats, the
description, checklist, comment, dependency, label and due date) and
`tests/exportRoundTripFields.test.cjs` (32 formats in plain Node: start and
+7 -7
View File
@@ -41,7 +41,7 @@ if /I "%~1"=="--list" goto cli_list_exit
if /I "%~1"=="list" goto cli_list_exit
REM The same non-interactive EVERYTHING as `./build.sh --run-everything [mode]`.
if /I "%~1"=="--run-everything" (
if "%~2"=="" (set "WEKAN_EVERYTHING_MODE=two-worker") else (set "WEKAN_EVERYTHING_MODE=%~2")
if "%~2"=="" (set "WEKAN_EVERYTHING_MODE=sequential") else (set "WEKAN_EVERYTHING_MODE=%~2")
goto test_everything
)
call :cli_run %*
@@ -177,11 +177,11 @@ REM ===========================================================================
:menu_tests
echo.
echo -- Tests -- ^(0 = Back^)
echo 1^) EVERYTHING two-worker: one stage at a time, two Playwright workers
echo per browser; every database and all FerretDB tests remain sequential.
echo 1^) EVERYTHING one by one: one stage and one Playwright worker at a time
echo for minimum RAM usage; database and FerretDB stages stay sequential.
echo Logs in .tools\log\^<datetime^>\
echo 2^) EVERYTHING one by one: one stage and one Playwright worker at a time
echo for minimum RAM usage; database and FerretDB stages stay sequential
echo 2^) EVERYTHING two-worker: one stage at a time, two Playwright workers
echo per browser; every database and all FerretDB tests remain sequential
echo 3^) EVERYTHING at once: WeKan test jobs concurrently; database and
echo FerretDB stages remain sequential
echo 4^) Mocha ^(server-side^)
@@ -207,8 +207,8 @@ echo 19^) Playwright single spec: one spec on the browsers you choose; builds a
echo starts the test server when none is running on :3000
set "choice="
set /p "choice=Choose: "
if "%choice%"=="1" goto test_everything_two
if "%choice%"=="2" goto test_everything_one
if "%choice%"=="1" goto test_everything_one
if "%choice%"=="2" goto test_everything_two
if "%choice%"=="3" goto test_everything_all
if "%choice%"=="4" goto test_mocha
if "%choice%"=="5" goto test_import
+16 -7
View File
@@ -1335,7 +1335,7 @@ mongo_answers() {
}
function run_all_tests(){
local REQUESTED_MODE="${1:-two-worker}"
local REQUESTED_MODE="${1:-sequential}"
local RUN_MODE="$REQUESTED_MODE" PLAYWRIGHT_WORKERS=1
case "$REQUESTED_MODE" in
two-worker) RUN_MODE=sequential; PLAYWRIGHT_WORKERS=2 ;;
@@ -1540,7 +1540,15 @@ function run_all_tests(){
# skip themselves otherwise - they had never run here before. The app
# refuses to start without WRITABLE_PATH. The one-second email receipt
# sweep is what emailReceiptRetention.tests.js waits for.
mocha) EMAIL_RECEIPT_SWEEP_INTERVAL_MS=1000 WRITABLE_PATH="${WRITABLE_PATH:-..}" METEOR_LOCAL_DIR=.meteor/local-test meteor test --full-app --once --driver-package meteortesting:mocha --port 3100 || rc=$? ;;
# The test build ran out of memory (FATAL ERROR: Zone Allocation
# failed) once the help texts grew every locale: it recompiled the
# whole client bundle - one file of 170-190 MB - for legacy
# browsers, which no test uses. --exclude-archs skips that build.
# METEOR_WATCH_FORCE_POLLING: Meteor 3.6's watcher subscribes to
# the whole app directory and does not read .meteorignore, so it
# walked all of .tools/ and used up the inotify watches; a --once
# run watches nothing anyway.
mocha) METEOR_WATCH_FORCE_POLLING=true EMAIL_RECEIPT_SWEEP_INTERVAL_MS=1000 WRITABLE_PATH="${WRITABLE_PATH:-..}" METEOR_LOCAL_DIR=.meteor/local-test meteor test --full-app --once --driver-package meteortesting:mocha --port 3100 --exclude-archs web.browser.legacy,web.cordova || rc=$? ;;
# Every plain-node suite: the .cjs guards plus the stickers / Trello /
# OAuth2 .js tests. They need no server and no browser, and the whole-suite
# run did not run them at all once - a guard that was supposed to fail the
@@ -2008,7 +2016,7 @@ function floating_promises_checks(){
# releases/db-conformance.sh, which needs it a stage earlier). .tools/ is ignored
# by git and by Meteor, so a companion repo cannot reach a commit or a rebuild.
function run_everything(){
local EVERYTHING_MODE="${1:-two-worker}"
local EVERYTHING_MODE="${1:-sequential}"
acquire_everything_lock || return 1
trap 'trap - EXIT INT TERM; cleanup_everything_processes own; release_everything_lock' EXIT
trap 'trap - EXIT INT TERM; cleanup_everything_processes own; release_everything_lock; exit 130' INT TERM
@@ -3133,7 +3141,7 @@ cli_run() {
# on Windows): the same "EVERYTHING (sequential)" the Tests menu offers, without
# the menu.
case "${1:-}" in
--run-everything) run_everything "${2:-two-worker}"; exit $? ;;
--run-everything) run_everything "${2:-sequential}"; 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 $? ;;
@@ -3168,8 +3176,8 @@ while [ -z "$opt" ]; do
"Kill all dev servers|Kill all dev servers (free ports 3000/3001/3100/3101/4000/4001/8080)" ;;
"Tests")
choose "Tests" \
"EVERYTHING two-worker|Run EVERYTHING with stages one by one and two Playwright workers per browser; database and FerretDB stages stay sequential; logs in log/<datetime>/" \
"EVERYTHING one by one|Run EVERYTHING one stage and one Playwright worker at a time for minimum RAM usage; database and FerretDB stages stay sequential; logs in log/<datetime>/" \
"EVERYTHING two-worker|Run EVERYTHING with stages one by one and two Playwright workers per browser; database and FerretDB stages stay sequential; logs in log/<datetime>/" \
"EVERYTHING at once|Run EVERYTHING with the WeKan test jobs concurrently; database backends and FerretDB stages stay sequential; logs in log/<datetime>/" \
"EVERYTHING source one by one|Run EVERYTHING against Dev server nobuild on localhost:3000, one test at a time, all browsers" \
"Mocha (server-side)|Test Mocha unit + security + API-logic tests (server-side only, no browser)" \
@@ -3521,11 +3529,12 @@ for _once in 1; do
"Test Mocha unit + security + API-logic tests (server-side only, no browser)")
LOG="$(one_log mocha)"
echo "Running Mocha tests: meteor test --full-app --once --driver-package meteortesting:mocha --port 3100"
echo "Running Mocha tests: meteor test --full-app --once --driver-package meteortesting:mocha --port 3100 --exclude-archs web.browser.legacy,web.cordova"
echo "(server-side unit/security/API-logic tests; browser/client tests are covered by Playwright options)"
echo "Log: $LOG"
# --full-app so the integration tests that need the app's hooks run too.
EMAIL_RECEIPT_SWEEP_INTERVAL_MS=1000 WRITABLE_PATH="${WRITABLE_PATH:-..}" METEOR_LOCAL_DIR=.meteor/local-test meteor test --full-app --once --driver-package meteortesting:mocha --port 3100 2>&1 | tee "$LOG"
# --exclude-archs and the watcher off: see the mocha case above.
METEOR_WATCH_FORCE_POLLING=true EMAIL_RECEIPT_SWEEP_INTERVAL_MS=1000 WRITABLE_PATH="${WRITABLE_PATH:-..}" METEOR_LOCAL_DIR=.meteor/local-test meteor test --full-app --once --driver-package meteortesting:mocha --port 3100 --exclude-archs web.browser.legacy,web.cordova 2>&1 | tee "$LOG"
break
;;
@@ -7,7 +7,7 @@
//- the same `.sidebar-content` with a title and a back arrow above the view. So
//- it looks and behaves like the one on a board without pretending to be it.
//-
//- docs/Features/Board-Header/Search.md, docs/Features/General/Multi-Selection.md
//- docs/Features/Board-Header/Search.md, docs/Features/Multi-Selection.md
template(name="allBoardsSidebar")
//- The theme class goes on an ANCESTOR of `.sidebar`, never on it: every
@@ -42,7 +42,7 @@ template(name="allBoardsHomeSidebar")
what you are looking at, which belongs beside the page's name rather than
behind a panel you have to open. Search and Multi-Selection were in that bar
as well and are NOT repeated here: this view has offered both as rows since
it was written. docs/Features/All-Boards/All-Boards.md
it was written. docs/Features/All-Boards/README.md
a.sidebar-btn.js-open-boards-sort(class="{{#unless isBoardsSort 'custom'}}emphasis{{/unless}}")
i.fa.fa-sort
span {{_ 'sort-boards'}}
+1 -1
View File
@@ -29,7 +29,7 @@ import { errorMessage } from '/client/lib/errorMessage';
// The All Boards right sidebar. Its shell mirrors the board sidebar's; what it
// shows is this page's own. docs/Features/Board-Header/Search.md,
// docs/Features/General/Multi-Selection.md
// docs/Features/Multi-Selection.md
Template.allBoardsSidebar.helpers({
isSidebarOpen() {
+1 -1
View File
@@ -3,7 +3,7 @@ import Boards from '/models/boards';
import { Utils } from '/client/lib/utils';
import { TABLE_PAGE_ROWS_PER_PAGE } from '/models/lib/tablePage';
// The app's one rows-per-page (docs/Features/General/Table.md): the archive pages
// The app's one rows-per-page (docs/Features/Table.md): the archive pages
// like every other paginated page, whatever pager it draws.
const ARCHIVED_BOARDS_PER_PAGE = TABLE_PAGE_ROWS_PER_PAGE;
+14 -11
View File
@@ -1,7 +1,7 @@
/* The Admin Panel's selected left-menu row is painted by the SAME rules as the
second header bar. Flat themes below share structure and publish only their
values; exceptional and gradient themes retain explicit rules.
See docs/Features/General/Theme/Change-Color.md and docs/Features/All-Boards/Left-Menu.md. */
See docs/Features/Theme/Change-Color.md and docs/Features/All-Boards/Left-Menu.md. */
/* Ordinary solid-colour themes. */
@@ -41,7 +41,10 @@
small text; this blue keeps the hue and gives 5.14 and 4.59. */
--board-theme-accent: #2573a7;
--board-theme-dark: #216694;
--board-theme-hover: #2e90d0;
/* The hover of a popup menu item, under white bold text: #2e90d0 gave 3.49
(spec 47 found it on the list and swimlane menus); #277bb3 is 4.60 and
still lighter than the accent, so a hovered header item stays visible. */
--board-theme-hover: #277bb3;
--board-theme-emphasis: #b96229;
--board-theme-emphasis-hover: #a75825;
--board-theme-emphasis-close: #944e21;
@@ -1578,7 +1581,7 @@ THEME - Clear Blue
coloured main bar - the username and the board links in it were background
furniture. This bar is the header now, so its text is the header's text:
full white, like every other theme's, and like the page title beside it.
No other theme dims these. docs/Features/General/Theme/Change-Color.md */
No other theme dims these. docs/Features/Theme/Change-Color.md */
.board-color-clearblue#header-quick-access #header-new-board-icon,
.board-color-clearblue#header-quick-access #header-user-bar,
.board-color-clearblue#header-quick-access ul li {
@@ -1606,7 +1609,7 @@ THEME - Clear Blue
right for them; a slide is not a colour, so the variable cannot carry it and
clearblue's row came out flat #00798d while the Admin Panel's row beside it
slid. The Admin Panel's row has always been named in this rule; this is the
All Boards row joining it. docs/Features/General/Theme/Change-Color.md */
All Boards row joining it. docs/Features/Theme/Change-Color.md */
.board-color-clearblue#header #header-main-bar,
.board-color-clearblue#header-quick-access,
.board-color-clearblue .setting-content .content-body .side-menu ul li.active,
@@ -1943,7 +1946,7 @@ THEME - Natural
the main bar is gone and this one carries the theme, so the darker shade
painted Natural near-black instead of its green-grey. The shared
`#header, #header-quick-access` rule above provides the colour.
docs/Features/General/Theme/Change-Color.md */
docs/Features/Theme/Change-Color.md */
.board-color-natural.board-wrapper {
background-color: #dedede;
}
@@ -2067,7 +2070,7 @@ THEME - Modern
/* Same as Natural: `#333 !important` was the thin dark strip's colour, and it
painted Modern charcoal instead of its blue. The padding and font-size were
the strip's too - this bar sizes itself like every other theme's now.
docs/Features/General/Theme/Change-Color.md */
docs/Features/Theme/Change-Color.md */
.board-color-modern#header-quick-access ul {
overflow: visible;
}
@@ -4634,7 +4637,7 @@ clearblue uses on its own: the border under the bar is base x 0.8, the one
above it base x 0.6, the current tab base x 1.15, a selected minicard the
base mixed toward white. Derived rather than hand-picked so a sixth slide
theme is one line in the generator and not a page of guessed hexes.
docs/Features/General/Theme/Change-Color.md
docs/Features/Theme/Change-Color.md
=================*/
@@ -4930,7 +4933,7 @@ clearblue uses on its own: the border under the bar is base x 0.8, the one
above it base x 0.6, the current tab base x 1.15, a selected minicard the
base mixed toward white. Derived rather than hand-picked so a sixth slide
theme is one line in the generator and not a page of guessed hexes.
docs/Features/General/Theme/Change-Color.md
docs/Features/Theme/Change-Color.md
=================*/
@@ -5226,7 +5229,7 @@ clearblue uses on its own: the border under the bar is base x 0.8, the one
above it base x 0.6, the current tab base x 1.15, a selected minicard the
base mixed toward white. Derived rather than hand-picked so a sixth slide
theme is one line in the generator and not a page of guessed hexes.
docs/Features/General/Theme/Change-Color.md
docs/Features/Theme/Change-Color.md
=================*/
@@ -5522,7 +5525,7 @@ clearblue uses on its own: the border under the bar is base x 0.8, the one
above it base x 0.6, the current tab base x 1.15, a selected minicard the
base mixed toward white. Derived rather than hand-picked so a sixth slide
theme is one line in the generator and not a page of guessed hexes.
docs/Features/General/Theme/Change-Color.md
docs/Features/Theme/Change-Color.md
=================*/
@@ -5818,7 +5821,7 @@ clearblue uses on its own: the border under the bar is base x 0.8, the one
above it base x 0.6, the current tab base x 1.15, a selected minicard the
base mixed toward white. Derived rather than hand-picked so a sixth slide
theme is one line in the generator and not a page of guessed hexes.
docs/Features/General/Theme/Change-Color.md
docs/Features/Theme/Change-Color.md
=================*/
+2 -2
View File
@@ -69,7 +69,7 @@ Template.boardChangeTitlePopup.events({
if (newTitle) {
// The board this popup was opened FOR, when it was opened for one: the
// All Boards Table view opens this same popup from a row whose data
// context is that row's board (docs/Features/All-Boards/All-Boards.md), and on
// context is that row's board (docs/Features/All-Boards/README.md), and on
// that page there is no "current board" at all. The board header opens it
// with the current board as its context, so that side is unchanged.
const context = Template.currentData();
@@ -990,7 +990,7 @@ Template.boardViewMenu.helpers({
boardView() {
return Utils.boardView();
},
// The ? of the view that is on (docs/Features/General/Help-Button.md).
// The ? of the view that is on (docs/Features/Help-Button.md).
boardViewHelp() {
return boardViewHelpId(Utils.boardView());
},
+5 -5
View File
@@ -567,7 +567,7 @@
The cursor stays `pointer`, not `grab`: clicking this row is what opens the
workspace, and that is what a reader does with it nearly every time. Dragging
is the second gesture on the same element, exactly as it is on a board tile
with handles off. docs/Features/All-Boards/All-Boards.md */
with handles off. docs/Features/All-Boards/README.md */
.workspace-node .js-select-space[draggable="true"] {
user-select: none;
-webkit-user-select: none;
@@ -603,7 +603,7 @@
`flex: 1`, and without this a long workspace name shrinks its two neighbours
instead of ellipsing itself, which pushes the count off the row that is
supposed to be showing it. The phone rules said this already; the desktop
ones had not. docs/Features/All-Boards/All-Boards.md */
ones had not. docs/Features/All-Boards/README.md */
.workspace-node .workspace-count {
background: #ddd;
padding: 2px 6px;
@@ -714,7 +714,7 @@
which boards are in it.
So it keeps the same grey pill every other row has, and the rule that made it
white is gone rather than re-tinted: there is no accent behind it to contrast
with. docs/Features/All-Boards/All-Boards.md */
with. docs/Features/All-Boards/README.md */
.boards-right-grid {
min-height: 200px;
@@ -758,7 +758,7 @@
this the title would sit directly on top of the first row of board tiles.
The board tiles carry a 7px margin of their own, so 12px of margin here plus
that 7px is the same gap the Admin Panel's 12px gives above a flush pane.
docs/Features/All-Boards/All-Boards.md */
docs/Features/All-Boards/README.md */
.boards-right-grid > .admin-pane-title {
margin-bottom: 12px;
/* The pager and the tiles below start at the tiles' own 7px inset, so the
@@ -2232,7 +2232,7 @@ body.has-theme-board-tiles .board-list > li.js-board .board-list-card-count {
}
/* All Boards: the Table view.
* Design: docs/Features/All-Boards/All-Boards.md, which is docs/Features/General/Table-Page.md.
* Design: docs/Features/All-Boards/README.md, which is docs/Features/Table.md.
* Only what is particular to these rows; the table itself is tablePage.css. */
.all-boards-row {
cursor: default;
+5 -5
View File
@@ -117,14 +117,14 @@ template(name="boardList")
//- There is NO bar above the boards, and no second header bar either.
Every control of this page - Sort, Search, Multi-Selection, the view
menu and the actions on a selection - is in the right sidebar, and the
page is named by the FIRST header bar. docs/Features/All-Boards/All-Boards.md
page is named by the FIRST header bar. docs/Features/All-Boards/README.md
.boards-right-grid
//- The heading of the pane: which list of boards this is. It sits above
the view branch, so it is drawn ONCE whichever view is on - the board
icons and the Table are two ways of showing the same section, not two
sections.
The Admin Panel's own `paneTitle`, so the two pages have one heading
at one size and colour. docs/Features/All-Boards/All-Boards.md
at one size and colour. docs/Features/All-Boards/README.md
+paneTitle(allBoardsPaneTitle)
if showsBoardSelectionControls
.board-multiselection-controls
@@ -507,7 +507,7 @@ template(name="workspaceTree")
NOT the whole row either: the row also holds the ⋯ menu and the board
count, and a drag started on those is a drag of something else.
`dragstart` bubbles, so the handler stays on the row in both cases.
docs/Features/All-Boards/All-Boards.md
docs/Features/All-Boards/README.md
li.workspace-node(class="{{#if $eq id ../selectedWorkspaceId}}active{{/if}}" data-workspace-id="{{id}}")
.workspace-node-content
//- The caret that folds this workspace's own workspaces away, at
@@ -612,7 +612,7 @@ template(name="workspaceActionsPopup")
//-
//- Each names itself beside its icon where the bar has room, and the one rule
//- in header.css drops every label at 1000px and narrower, leaving the tooltips.
//- docs/Features/All-Boards/All-Boards.md
//- docs/Features/All-Boards/README.md
template(name="allBoardsHeaderButtons")
a.board-header-btn.js-open-boards-sort(title="{{_ 'sort-boards'}}" class="{{#unless isBoardsSort 'custom'}}emphasis{{/unless}}")
i.fa.fa-sort
@@ -631,7 +631,7 @@ template(name="allBoardsHeaderButtons")
board's own Multi-Selection has. It looked identical whether or not a
selection was running, so the one control that changes what a click on a
board does gave no sign it had changed it, and the only way out was to
find the row inside the sidebar. docs/Features/General/Multi-Selection.md
find the row inside the sidebar. docs/Features/Multi-Selection.md
a.board-header-btn.js-all-boards-sidebar-multiselection(
title="{{#if BoardMultiSelection.isActive}}{{_ 'multi-selection-on'}}{{else}}{{_ 'multi-selection'}}{{/if}}"
class="{{#if BoardMultiSelection.isActive}}emphasis{{/if}}")
+8 -8
View File
@@ -59,7 +59,7 @@ import {
} from '/models/lib/boardSortReorder';
// The sidebar the Search and Multi-Selection controls open. Its state is module
// scope, not a template instance: this bar and the sidebar are separate Blaze
// instances. docs/Features/Board-Header/Search.md, docs/Features/General/Multi-Selection.md
// instances. docs/Features/Board-Header/Search.md, docs/Features/Multi-Selection.md
import {
openAllBoardsSidebar,
closeAllBoardsSidebar,
@@ -397,11 +397,11 @@ Template.boardList.helpers({
// map catches events from the templates rendered inside it, so these fire for
// this bar's copy and the board header's map fires for its own. That is what
// lets one piece of markup mean "search cards" on a board and "search boards"
// here. docs/Features/Board-Header/Search.md, docs/Features/General/Multi-Selection.md
// here. docs/Features/Board-Header/Search.md, docs/Features/Multi-Selection.md
// Sort and the view menu, which were buttons in this page's second header bar
// and are rows of the sidebar's home view now. A Blaze event map only sees
// events inside its OWN template, so they had to move with their markup.
// docs/Features/All-Boards/All-Boards.md
// docs/Features/All-Boards/README.md
Template.allBoardsHomeSidebar.events({
// Titled "Sort Boards", from the key the app already has for that phrase -
// the same reasoning as the starred-boards popup: a `boardsSortPopup-title`
@@ -429,7 +429,7 @@ Template.allBoardsHomeSidebar.helpers({
// A Blaze event map only sees events inside its OWN template, so these are
// their own map rather than shared with the sidebar's: the same
// `js-all-boards-sidebar-search` markup exists in both places and each map
// fires for its own copy. docs/Features/All-Boards/All-Boards.md
// fires for its own copy. docs/Features/All-Boards/README.md
Template.allBoardsHeaderButtons.helpers({
// Every template registers the helpers IT uses. `BoardMultiSelection` is also
// a helper of boardList, but a Blaze template cannot see a sibling's helpers -
@@ -500,7 +500,7 @@ function goToAllBoards(tpl, menuValue) {
// The boards the page shows: the selected section, filtered by the search
// field, sorted and paged. Extracted from the `boards` helper so the Table
// view draws the SAME set - two copies of this would be two answers to
// "which boards am I looking at". docs/Features/All-Boards/All-Boards.md
// "which boards am I looking at". docs/Features/All-Boards/README.md
// How many archived boards the section shows at once. The publication is
// paginated and this is the page size it is asked for; the Archive is a place
// you go to find one board, not a list to scroll for ever.
@@ -721,7 +721,7 @@ Template.boardList.onCreated(function () {
// Shared with the right sidebar, which is a SEPARATE Blaze instance (it is
// rendered beside the page, not inside it) and carries this page's controls. Assigned onto the instance so every `tpl.selectedMenu` /
// `tpl.boardSearchVar` already written here keeps working unchanged.
// docs/Features/All-Boards/All-Boards.md
// docs/Features/All-Boards/README.md
this.selectedMenu = allBoardsMenuVar;
// Whatever the address named, else the section this user should land on:
// Starred when anything is starred, Remaining when nothing is - opening on an
@@ -1045,7 +1045,7 @@ Template.boardList.helpers({
// The Table view of the same boards the Lists view draws. Ten per page, the
// shared TABLE_PAGE_ROWS_PER_PAGE, and a rowTemplate because the Edit cell is a
// control and the row carries the board's colours.
// docs/Features/All-Boards/All-Boards.md
// docs/Features/All-Boards/README.md
tablePageData() {
const tpl = Template.instance();
const all = boardsForView(tpl);
@@ -1228,7 +1228,7 @@ Template.boardList.helpers({
// colour rather than two that drift apart. Its words are the section's own
// title key - the same key the first header bar names the page with, and the
// same one the highlighted menu row carries - so all three say the same
// thing. docs/Features/All-Boards/All-Boards.md
// thing. docs/Features/All-Boards/README.md
//
// `{ titleKey }` for a section, `{ label }` for a workspace: a workspace's
// name is what somebody typed, and a workspace called "starred" is not the
+1 -1
View File
@@ -3,7 +3,7 @@
//-
//- Left: Compose, the folders (Inbox = the list email to card puts new cards
in, Sent, All mail), the board's lists as folders and its labels as Gmail
labels. Right: the shared table page (docs/Features/General/Table.md) - one
labels. Right: the shared table page (docs/Features/Table.md) - one
page of messages, newest first. A row opens the card popup, as a message
opens in Gmail; its comments are the conversation.
template(name="emailView")
+12 -1
View File
@@ -227,6 +227,17 @@ const EXPORT_FORMAT_GROUPS = [
ext: 'json',
query: { attachments: 'false' },
},
{
// Leave the board's archive behind, so a migration to another instance
// starts clean instead of carrying every archived card/list/swimlane.
key: 'json-no-archive',
icon: 'fa-file-code-o',
labelKey: 'export-board-without-archive',
labelPrefix: 'JSON',
path: 'export',
ext: 'json',
query: { archived: 'false' },
},
{
key: 'zip',
icon: 'fa-file-archive-o',
@@ -250,7 +261,7 @@ const EXPORT_FORMAT_GROUPS = [
{ 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: 'rocketchat', icon: 'fa-comments', label: 'Rocket.Chat', path: 'export/rocketchat', ext: 'zip', scopes: BOARD_ONLY },
// Websites (docs/Features/Board-Sidebar/Board-Settings/Import-Export/Website.md).
// Websites (docs/Features/Board-Sidebar/Board-Settings/Import-Export/Website/README.md).
{ key: 'wordpress', icon: 'fa-wordpress', label: 'WordPress (.xml)', path: 'export/wordpress', ext: 'xml', scopes: BOARD_ONLY },
{ key: 'wordpressjson', icon: 'fa-wordpress', label: 'WordPress REST API (.json)', path: 'export/wordpressjson', ext: 'json', scopes: BOARD_ONLY },
{ key: 'ghost', icon: 'fa-file-text-o', label: 'Ghost', path: 'export/ghost', ext: 'json', scopes: BOARD_ONLY },
+1 -1
View File
@@ -1,5 +1,5 @@
/* /public — the Public Boards table.
* Design: docs/Features/All-Boards/Public.md, which is docs/Features/General/Table-Page.md.
* Design: docs/Features/All-Boards/Public.md, which is docs/Features/Table.md.
*
* ONLY the row's board colouring lives here. The table itself — its width, its
* columns, its cells, its controls row and its stacking below 800px — is
+1 -1
View File
@@ -1,6 +1,6 @@
//- /public — the boards anybody may open.
//- Design: docs/Features/All-Boards/Public.md, which is the Table page design
//- (docs/Features/General/Table.md).
//- (docs/Features/Table.md).
//-
//- The whole page is the shared table. It used to render `boardList`, the All
//- Boards page, with its query swapped for `{ permission: 'public' }` — which
+2 -2
View File
@@ -11,7 +11,7 @@ import {
} from '/models/lib/tablePage';
// /public — the boards anybody may open, as a table page.
// Design: docs/Features/All-Boards/Public.md (which is docs/Features/General/Table.md).
// Design: docs/Features/All-Boards/Public.md (which is docs/Features/Table.md).
//
// The page is ONLY the table. It used to render `boardList`, the All Boards page,
// with its query swapped for `{ permission: 'public' }` — which brought the
@@ -92,7 +92,7 @@ Template.publicBoards.helpers({
// `boardListHeaderBar`, whose `h1` says "Public". The shared table page
// prints a title only when one is supplied, precisely so a page that
// already has a heading does not show two - the same reason the Admin
// Panel panes supply none (docs/Features/General/Table.md).
// Panel panes supply none (docs/Features/Table.md).
header: buildHeader(COLUMNS),
// A row template, not `rows`: see COLUMNS above.
rowTemplate: 'publicBoardRow',
+7
View File
@@ -451,6 +451,13 @@ button.attachment-thumbnail-container.attachment-thumbnail-compact:active {
padding-inline-start: 1.2em;
will-change: transform;
}
/* An id selector outranks .hidden, so the display:flex above showed the
rich and zip viewers - two empty white boxes - beside every PDF, image or
video, each taking a third of the slideshow's width (#6612). */
#rich-viewer.hidden,
#zip-viewer.hidden {
display: none;
}
#rich-viewer li,
#zip-viewer li {
padding: 0.3em;
+2 -2
View File
@@ -1251,7 +1251,7 @@ template(name="cardDetailsActionsPopup")
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
a tooltip. docs/Features/Board-Item-Links.md
li
a.js-copy-card-link
i.fa.fa-link
@@ -1268,7 +1268,7 @@ template(name="cardDetailsActionsPopup")
a.js-card-qr-code
i.fa.fa-qrcode
| {{_ 'card-qr-code'}}
//- History of the whole card (docs/Features/General/History/History.md
//- History of the whole card (docs/Features/History/README.md
§7a): the SAME historyTable every other scope opens, `scope: 'card'`.
li
a.js-card-history
+2 -2
View File
@@ -1160,7 +1160,7 @@ Template.registerHelper('attachmentCount', function attachmentCount() {
Template.registerHelper('sectionCaret', section =>
caretClassFor(isCardSectionOpen(section)));
// The section's ? (docs/Features/General/Help-Button.md): which help it shows
// The section's ? (docs/Features/Help-Button.md): which help it shows
// is models/lib/featureHelp.js CARD_SECTION_HELP.
Template.cardSectionHeader.helpers({
sectionHelp() {
@@ -2012,7 +2012,7 @@ Template.cardDetailsActionsPopup.events({
// tooltip to name it - the one place a name cannot be read without hovering -
// and it is here now beside the swimlane's and the list's, so all three are
// copied the same way from the same kind of menu.
// docs/Features/General/Board-Item-Links.md
// docs/Features/Board-Item-Links.md
'click .js-card-qr-code': Popup.open('cardQrCode'),
'click .js-copy-card-link'(event, tpl) {
event.preventDefault();
+1 -1
View File
@@ -4,7 +4,7 @@ template(name="editCardSpentTimePopup")
.fields
label(for="time") {{_ 'time'}}
input.js-time-field#time(type="number" step="0.01" name="time" value="{{card.getSpentTime}}" placeholder=timeFormat autofocus)
//- Workload (docs/Features/Workload/Workload.md): what the card is
//- Workload (docs/Features/Workload/README.md): what the card is
estimated to take; what is left is this less the time spent.
label(for="estimated-hours") {{_ 'workload-estimated-hours'}}
input.js-estimated-hours-field#estimated-hours(type="number" min="0" max="10000" step="0.25" name="estimatedHours" value="{{card.getEstimatedHours}}")
+24
View File
@@ -82,6 +82,23 @@
.minicard .minicard-collapse:hover {
color: #4d4d4d;
}
/* WCAG 2.2, 2.5.8 Target Size (Minimum): the collapse caret and the card
actions menu are at least 24 x 24 CSS pixels to click or tap, though their
icons stay small (WP-13, tests/playwright/specs/45-axe-accessibility.e2e.js
runs axe's wcag22aa rules). */
.minicard .minicard-collapse,
.minicard .minicard-details-menu-with-handle {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 24px;
min-height: 24px;
/* #6943: ...without making the card taller. Both float on the title's
line, and a 24px box made every minicard's first line, and so every card,
taller than in v13.30. The negative margins take the extra height out of
the line while the box - what is clicked - stays 24 x 24. */
margin-block: -4px;
}
.minicard-details-menu-with-handle {
float: inline-end;
padding-inline-start: 10px;
@@ -178,6 +195,13 @@
display: block;
margin-inline-end: 84px;
}
/* #6943: the 84px beside the labels and the custom fields is the corner
that holds the card actions menu. With the menu hidden (Board Settings /
Card, or the Admin Panel) and no drag handle there, the content takes it. */
.minicard.minicard-no-menu:not(.minicard-with-handle) .minicard-labels,
.minicard.minicard-no-menu:not(.minicard-with-handle) .minicard-custom-fields {
margin-inline-end: 0;
}
.minicard .minicard-custom-field {
display: flex;
}
+6 -2
View File
@@ -15,6 +15,7 @@ template(name="minicard")
class="{{agingClass}}"
class="{{#if showCardColorOnMinicard}}{{#if colorClass}}minicard-{{colorClass}}{{/if}}{{/if}}"
class="{{#if minicardCollapsed}}minicard-collapsed{{/if}}"
class="{{#unless showMinicardMenu}}minicard-no-menu{{/unless}}"
class="{{#if hasUnreadComments}}minicard-unread-comments{{/if}}"
class="{{#if hasUnreadChanges}}minicard-unread-changes{{/if}}"
class="{{#if splitDoneHere}}minicard-split-done{{/if}}"
@@ -28,9 +29,12 @@ template(name="minicard")
.minicard-move-buttons.sr-only
a.js-card-move-up(href="#" role="button" aria-label="{{_ 'move-card-up'}}") {{_ 'move-card-up'}}
a.js-card-move-down(href="#" role="button" aria-label="{{_ 'move-card-down'}}") {{_ 'move-card-down'}}
//- #6943: Board Settings / Card (Card Actions) and the Admin Panel can
hide it; the opened card's own menu has the same actions.
if canModifyCard
a.minicard-details-menu-with-handle.js-open-minicard-details-menu(title="{{_ 'cardDetailsActionsPopup-title'}}")
i.fa.fa-bars
if showMinicardMenu
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
+3
View File
@@ -87,6 +87,9 @@ Template.minicard.helpers({
},
// #1591: the whole-minicard fold, same shape as a list's collapsed() helper.
showCollapseControl() { return minicardBoardOf(this)?.allowsMinicardCollapse !== false; },
// #6943: the card actions menu, unless Board Settings / Card or the Admin
// Panel hides it (allowsMinicardMenu, a flag a board that never set reads as on).
showMinicardMenu() { return minicardBoardOf(this)?.allowsMinicardMenu !== false; },
showLabelsAboveTitle() {
const board = minicardBoardOf(this);
return board?.labelsAboveTitleOnMinicard === true && (board.allowsMinicardCollapse === false || !Utils.getCardCollapseState(this));
+1 -1
View File
@@ -173,7 +173,7 @@ button:active:active {
it in the same menu was the themed one. Two buttons, one menu, two looks.
It is named in the SAME rules rather than given a copy of them, so the theme
accent and the hover and active states have one home.
docs/Features/General/Theme/Change-Color.md */
docs/Features/Theme/Change-Color.md */
input[type="submit"].primary,
button.primary,
.pop-over .at-form button.at-btn {
+1 -1
View File
@@ -1,4 +1,4 @@
/* The one History view (docs/Features/General/History/History.md §7).
/* The one History view (docs/Features/History/README.md §7).
Left pane of contributors, then search + pagination + Restore above the table.
RTL mirrors the whole thing: the pane moves to the right, the controls
reverse, and the columns follow the document direction. */
+1 -1
View File
@@ -1,6 +1,6 @@
//- THE History view. There is exactly ONE of these.
//-
//- docs/Features/General/History/History.md §7a: "Every non-card-group surface
//- docs/Features/History/README.md §7a: "Every non-card-group surface
//- is the same historyTable with a different changeHistory.page scope; there is
//- ONE implementation, parametrised by scope." The card-group menu, the whole
//- card, Member settings, Board settings, and the swimlane and list menus all
+1 -1
View File
@@ -14,7 +14,7 @@ import { historyRowOffersRestore } from '/models/lib/attachmentSoftDelete';
import { openAttachmentSlideshow } from '/client/components/cards/attachments';
// THE History view — one implementation for every scope
// (docs/Features/General/History/History.md §7a). The card-group menu, the whole
// (docs/Features/History/README.md §7a). The card-group menu, the whole
// card, Member settings, Board settings and the swimlane/list menus all render
// this same template with a different data context; there is no second copy of
// the table, the search, the pagination or the restore anywhere.
@@ -0,0 +1,72 @@
/* WP-8: the pages to accept, over everything, until they are accepted. */
.legal-acceptance-required {
position: fixed;
inset: 0;
z-index: 100000;
display: flex;
align-items: center;
justify-content: center;
overflow: auto;
background: rgba(0, 0, 0, 0.6);
}
.legal-acceptance-box {
max-width: 32rem;
width: calc(100% - 2rem);
margin: 1rem;
padding: 1.5rem;
border-radius: 6px;
background: #fff;
color: #222;
}
.legal-acceptance-box h2 {
margin-top: 0;
}
.legal-acceptance-page {
display: block;
margin: 0.5rem 0;
}
.legal-acceptance-error {
color: #b00020;
}
.legal-acceptances {
margin: 0.5rem 1rem;
font-size: 0.9em;
}
/* Native checkboxes, labelled: the global material form rules hide every
checkbox (as in scrumView.css), which left the acceptance dialog, the sign-up
box and the Legal pages switches with nothing to tick. The label around each
is the target, so the whole line ticks it. */
.legal-acceptance-page input[type="checkbox"],
.legal-page-check input[type="checkbox"],
.impersonate-emergency input[type="checkbox"],
.attachment-encryption-new input[type="checkbox"] {
display: inline-block;
visibility: visible;
position: static;
inset-inline-start: auto;
width: 18px;
height: 18px;
min-height: 0;
flex: 0 0 18px;
padding: 0;
margin: 0 0.4rem 0 0;
vertical-align: middle;
appearance: auto;
cursor: pointer;
}
.legal-acceptance-page,
.legal-page-check,
.impersonate-emergency label,
.attachment-encryption-new {
display: flex;
align-items: center;
gap: 0.25rem;
min-height: 24px;
cursor: pointer;
}
.js-legal-accept-submit[disabled] {
opacity: 0.5;
cursor: not-allowed;
}
/* Emergency access in People's user popup (P3): the note under the box. */
.impersonate-emergency textarea { width: 100%; margin-block: 0.25rem 0.5rem; }
@@ -0,0 +1,50 @@
//- WP-8 (models/lib/legalAcceptance.js): versioned acceptance of the terms and
//- the privacy notice.
//- After signing in, an account that has not accepted the current version of
//- a page that requires it sees only this. The server refuses everything else
//- meanwhile (server/requireLegalAcceptance.js).
template(name="legalAcceptanceRequired")
.legal-acceptance-required(role="dialog" aria-modal="true" aria-labelledby="legal-acceptance-title")
.legal-acceptance-box
h2#legal-acceptance-title {{_ 'legal-acceptance-title'}}
p {{_ 'legal-acceptance-text'}}
each missing
label.legal-acceptance-page
input.js-legal-accept(type="checkbox" data-page="{{page}}" data-version="{{version}}")
| {{_ 'legal-acceptance-accept-page' page=label version=version}}
|
a(href="/{{page}}" target="_blank" rel="noopener noreferrer" aria-label="{{label}}" title="{{label}}")
i.fa.fa-external-link
if error
p.legal-acceptance-error(role="alert") {{error}}
.buttonsContainer
button.primary.js-legal-accept-submit(type="button" disabled="{{notAllChecked}}") {{_ 'legal-acceptance-accept'}}
button.js-legal-acceptance-logout(type="button") {{_ 'log-out'}}
//- The sign-up form's checkbox (config/accounts.js), shown only while a page
//- requires acceptance. Ticking it accepts the versions required now; an
//- account that does not tick it is asked after signing in.
template(name="legalAcceptanceSignup")
if required
.at-input#acceptLegal
label.legal-acceptance-page
input#at-field-acceptLegal(type="checkbox" name="at-field-acceptLegal")
| {{_ 'legal-acceptance-signup'}}
+legalPageLinks
//- Member Settings / Privacy and my data: the versions this account accepted.
template(name="legalAcceptancesList")
if accepted.length
ul.legal-acceptances
each accepted
li {{label}}, {{_ 'legal-page-version' version=version}}, {{date}}
//- REGISTRATION_MINIMUM_AGE (models/lib/registrationAge.js): the sign-up
//- form's age confirmation, shown only while a minimum age is set.
template(name="registrationAgeSignup")
if age
.at-input#confirmAge
label.legal-acceptance-page
input#at-field-confirmAge(type="checkbox" name="at-field-confirmAge" required)
| {{_ 'registration-minimum-age' age=age}}
+125
View File
@@ -0,0 +1,125 @@
import { Meteor } from 'meteor/meteor';
import { Blaze } from 'meteor/blaze';
import { Template } from 'meteor/templating';
import { Tracker } from 'meteor/tracker';
import { ReactiveVar } from 'meteor/reactive-var';
import { TAPi18n } from '/imports/i18n';
import { legalLabel } from '/client/components/legal/legalPage';
import './legalAcceptance.jade';
// WP-8 (models/lib/legalAcceptance.js): after signing in, ask whether this
// account still has to accept the terms or the privacy notice, and if so show
// nothing but legalAcceptanceRequired. Accepting reloads the page, because
// every subscription the server left empty meanwhile has to be made again.
let overlay = null;
const requirement = new ReactiveVar(null);
function closeOverlay() {
if (!overlay) return;
Blaze.remove(overlay.view);
overlay.node.remove();
overlay = null;
}
function openOverlay() {
if (overlay) return;
const node = document.createElement('div');
document.body.appendChild(node);
overlay = { node, view: Blaze.render(Template.legalAcceptanceRequired, node) };
}
Template.legalAcceptanceRequired.onCreated(function () {
this.checked = new ReactiveVar([]);
this.error = new ReactiveVar('');
});
Template.legalAcceptanceRequired.helpers({
missing() {
return ((requirement.get() || {}).missing || []).map(m => ({ ...m, label: legalLabel(m.page) }));
},
notAllChecked() {
const missing = (requirement.get() || {}).missing || [];
return Template.instance().checked.get().length < missing.length;
},
error() { return Template.instance().error.get(); },
});
Template.legalAcceptanceRequired.events({
'change .js-legal-accept'(event, tpl) {
tpl.checked.set(tpl.findAll('.js-legal-accept:checked').map(input => input.dataset.page));
},
'click .js-legal-accept-submit'(event, tpl) {
const accepted = tpl.findAll('.js-legal-accept:checked')
.map(input => ({ page: input.dataset.page, version: Number(input.dataset.version) }));
Meteor.call('acceptLegalPages', accepted, error => {
if (error) {
// A page got a new version while it was open: show the new one.
tpl.error.set(TAPi18n.__(error.error === 'legal-page-changed' ? 'legal-acceptance-changed' : 'error-notAuthorized'));
Meteor.call('getLegalAcceptanceRequirement', (e, result) => { if (!e) requirement.set(result); });
return;
}
window.location.reload();
});
},
'click .js-legal-acceptance-logout'() {
Meteor.logout(() => closeOverlay());
},
});
// The sign-up checkbox: shown only while a page requires acceptance.
Template.legalAcceptanceSignup.onCreated(function () {
this.required = new ReactiveVar(false);
Meteor.call('getLegalAcceptanceRequirement', (error, result) => {
if (!error && result) this.required.set(result.required === true);
});
});
Template.legalAcceptanceSignup.helpers({
required() { return Template.instance().required.get(); },
});
// The sign-up age confirmation: shown only while REGISTRATION_MINIMUM_AGE is set.
Template.registrationAgeSignup.onCreated(function () {
this.age = new ReactiveVar(0);
Meteor.call('getRegistrationMinimumAge', (error, age) => { if (!error) this.age.set(age || 0); });
});
Template.registrationAgeSignup.helpers({
age() { return Template.instance().age.get(); },
});
Template.legalAcceptancesList.helpers({
accepted() {
const accepted = (requirement.get() || {}).accepted || {};
return Object.keys(accepted).map(page => ({
page,
label: legalLabel(page),
version: accepted[page].version,
date: accepted[page].at ? new Date(accepted[page].at).toLocaleDateString() : '',
}));
},
});
// Member Settings / Privacy and my data reads the accepted versions fresh.
Template.legalAcceptancesList.onCreated(() => {
Meteor.call('getLegalAcceptanceRequirement', (error, result) => { if (!error) requirement.set(result); });
});
Meteor.startup(() => {
let askedFor = null;
Tracker.autorun(() => {
const userId = Meteor.userId();
if (!userId) {
askedFor = null;
closeOverlay();
return;
}
if (askedFor === userId) return;
askedFor = userId;
Meteor.call('getLegalAcceptanceRequirement', (error, result) => {
if (error || !result || Meteor.userId() !== userId) return;
requirement.set(result);
if (result.missing && result.missing.length) openOverlay();
});
});
});
+34
View File
@@ -0,0 +1,34 @@
.legal-page {
max-width: 50em;
margin: 1.5em auto;
padding: 0 1em;
}
.legal-page-fields {
display: grid;
grid-template-columns: max-content 1fr;
gap: 0.25em 1em;
}
.legal-page-fields dt {
font-weight: bold;
}
.legal-page-fields dd {
margin: 0;
white-space: pre-wrap;
}
.legal-page-links {
display: flex;
flex-wrap: wrap;
gap: 0.5em 1.25em;
margin: 1.5em 0 0.5em;
}
.legal-inventory-table {
overflow-x: auto;
}
.legal-inventory-table td {
vertical-align: top;
padding: 0.2em 0.5em;
}
/* Admin Panel / Settings / Legal pages: each editor's heading, an h2 under the
pane title (heading order, WP-13), at the size the h3 had. */
.legal-page-editor-title { font-size: 1.17em; margin-block: 1em 0.5em; }
+41
View File
@@ -0,0 +1,41 @@
//- WP-6: one legal page - privacy notice, terms, cookie notice or imprint - as
//- the operator published it, with the links to the others. The same for
//- everybody, signed in or not.
template(name="legalPage")
.legal-page(role="article")
if loading
+spinner
else if page
h1 {{pageTitle}}
if page.url
p
a(href="{{page.url}}" target="_blank" rel="noopener noreferrer") {{page.url}}
if page.fields
dl.legal-page-fields
each page.fields
dt {{fieldLabel key}}
dd {{value}}
if page.body
.legal-page-body
+viewer
| {{page.body}}
if isPrivacy
if contacts.length
h2 {{_ 'privacy-contacts'}}
dl.legal-page-fields
each contacts
dt {{fieldLabel key}}
dd {{value}}
p.quiet {{_ 'legal-page-version' version=page.version}}
else
h1 {{pageTitle}}
p {{_ 'legal-page-not-published'}}
+legalPageLinks
//- The published legal pages, as a row of links: under every legal page, on the
//- login page and in Member Settings / Privacy and my data.
template(name="legalPageLinks")
if links.length
nav.legal-page-links(aria-label="{{_ 'legal-pages'}}")
each links
a(href="/{{_id}}") {{label}}
+52
View File
@@ -0,0 +1,52 @@
import { Meteor } from 'meteor/meteor';
import { ReactiveVar } from 'meteor/reactive-var';
import { TAPi18n } from '/imports/i18n';
// Its own templates: Admin Panel / Settings / Legal pages imports this file
// for legalLabel, and may run before the client's template imports do.
import './legalPage.jade';
// The published legal pages and the filled contacts, fetched once per page
// view from getLegalPages (server/methods/legalPages.js), which answers for
// signed-out visitors too.
const LABEL_KEYS = {
privacy: 'privacy-notice', terms: 'terms-of-use', cookies: 'cookie-notice', imprint: 'imprint',
name: 'imprint-name', legalForm: 'imprint-legal-form', representative: 'imprint-representative',
address: 'imprint-address', email: 'email', phoneOrForm: 'imprint-phone-or-form', register: 'imprint-register',
registerNumber: 'imprint-register-number', vatId: 'imprint-vat-id', supervisoryAuthority: 'imprint-supervisory-authority',
professionalRules: 'imprint-professional-rules', mediaDisclosure: 'imprint-media-disclosure',
privacyContact: 'privacy-contact', dpoContact: 'dpo-contact', euRepresentative: 'eu-representative',
securityContact: 'security-contact',
};
export const legalLabel = key => TAPi18n.__(LABEL_KEYS[key] || key);
const cache = new ReactiveVar(null);
let asked = false;
export function legalPages() {
if (!asked) {
asked = true;
Meteor.call('getLegalPages', (error, result) => cache.set(error ? { pages: [], contacts: [] } : result));
}
return cache.get();
}
Template.legalPage.helpers({
loading() { return legalPages() === null; },
page() {
const id = Session.get('legalPage');
return ((legalPages() || {}).pages || []).find(p => p._id === id) || null;
},
pageTitle() {
const id = Session.get('legalPage');
const page = ((legalPages() || {}).pages || []).find(p => p._id === id);
return (page && page.title) || legalLabel(id);
},
isPrivacy() { return Session.get('legalPage') === 'privacy'; },
contacts() { return (legalPages() || {}).contacts || []; },
fieldLabel(key) { return legalLabel(key); },
});
Template.legalPageLinks.helpers({
links() {
return ((legalPages() || {}).pages || []).map(p => ({ _id: p._id, label: p.title || legalLabel(p._id) }));
},
});
+1 -1
View File
@@ -173,7 +173,7 @@ template(name="listActionPopup")
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
models/lib/boardItemUrl.js, docs/Features/Board-Item-Links.md
h4.menu-group-heading {{_ 'menu-group-share'}}
ul.pop-over-list
li: a.js-copy-list-link
+1 -1
View File
@@ -713,7 +713,7 @@ Template.listMorePopup.events({
],
}).length === 0
) {
// Soft delete (docs/Features/Undo/Undo.md): mark the list + its cards deleted
// Soft delete (docs/Features/Undo/README.md): mark the list + its cards deleted
// (server cascades) instead of destroying them, so the delete is restorable
// and undoable (#1023). Replaces the old hard Cards.remove / Lists.remove.
Meteor.call('lists.softRemove', list._id);
+2 -2
View File
@@ -1,4 +1,4 @@
/* Budget and billing page (docs/Features/Billing/Billing.md). */
/* Budget and billing page (docs/Features/Billing/README.md). */
.billing-page {
padding: 1rem;
max-width: 100%;
@@ -145,7 +145,7 @@
.billing-page { padding: 0.5rem; }
}
/* Expenses, fees, time to approve and quotes (docs/Features/Billing/Billing.md). */
/* Expenses, fees, time to approve and quotes (docs/Features/Billing/README.md). */
.billing-hint {
color: #555;
font-size: 0.9em;
+1 -1
View File
@@ -1,4 +1,4 @@
//- Budget and billing (docs/Features/Billing/Billing.md): the boards the user
//- Budget and billing (docs/Features/Billing/README.md): the boards the user
is an admin of, each with its budget, what its work has cost and will cost,
the hourly rates, who invoices and how it is paid, and the invoices of the
time spent. The numbers come from the server (server/billing.js,
+1 -1
View File
@@ -1,4 +1,4 @@
// Budget and billing page (docs/Features/Billing/Billing.md). It asks the
// Budget and billing page (docs/Features/Billing/README.md). It asks the
// server for the numbers (billingBoards / billingBoard, server/billing.js) and
// writes through the other billing* methods.
import { Meteor } from 'meteor/meteor';
+1 -1
View File
@@ -1,5 +1,5 @@
/* The ? of a feature place and its popup (featureHelp.jade,
docs/Features/General/Help-Button.md).
docs/Features/Help-Button.md).
Every rule here uses the LOGICAL side - inline-end, inline-start - so the ?
that is at the right of a heading in English is at its left in Arabic or
+1 -1
View File
@@ -1,4 +1,4 @@
//- The ? of a feature place (docs/Features/General/Help-Button.md).
//- The ? of a feature place (docs/Features/Help-Button.md).
//-
//- `+featureHelp(id='workload')` with an id of models/lib/featureHelp.js. An id
//- that is not there draws nothing, so a place whose help is chosen at run time
+1 -1
View File
@@ -1,7 +1,7 @@
import { Template } from 'meteor/templating';
import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
// The ? of a feature place and its popup (docs/Features/General/Help-Button.md).
// The ? of a feature place and its popup (docs/Features/Help-Button.md).
// Which help a place shows is data: models/lib/featureHelp.js.
const {
featureHelp,
+1 -1
View File
@@ -29,7 +29,7 @@ import { readableAccent } from '/models/lib/contrastColor';
// The class the CHROME (the two top bars, the board wrapper) must carry, from the
// same order of themes the <body> autorun below applies:
// the user's own override, then the board's own colour on a board page, then the
// site theme (docs/Features/General/Theme/Change-Color.md). Registered as a Blaze helper so the
// site theme (docs/Features/Theme/Change-Color.md). Registered as a Blaze helper so the
// templates read ONE answer instead of each re-deriving part of the order - which is
// what left the top bars on the default colour while the buttons took the site theme.
Template.registerHelper('themeColorClass', () => {
+26
View File
@@ -1480,3 +1480,29 @@ body.has-login-background hr {
width: 100%;
height: auto;
}
/* WCAG 2.3.3 Animation from Interactions: somebody whose system asks for
reduced motion gets no animation and no transition anywhere - not only in
the three components that used to opt out on their own. The duration is
made effectively zero rather than `none`, so animationend/transitionend
listeners still fire and nothing waits forever for an event.
`!important` because component rules and inline styles set their own
durations - and INSIDE a cascade layer because some of those are
`!important` themselves on an id selector (header.css `#header-quick-access
.mobile-mode-toggle .board-header-btn { transition: ... !important }`),
which a plain `*` cannot outrank. An important declaration in a layer wins
over every unlayered important one, whatever its specificity. */
@layer wekan-reduced-motion {
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-delay: 0s !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
transition-delay: 0s !important;
scroll-behavior: auto !important;
}
}
}
+3
View File
@@ -140,6 +140,9 @@ template(name="userFormsLayout")
| {{_ 'legalNotice'}}
if getLegalNoticeWithWritTraduction
div
//- WP-6: the published legal pages - privacy notice, terms, cookie
//- notice, imprint - readable before signing in.
+legalPageLinks
div.at-form-lang
label(for="userform-set-language-select") {{_ 'changeLanguagePopup-title'}}
select.select-lang.js-userform-set-language#userform-set-language-select(aria-label="{{_ 'changeLanguagePopup-title'}}")
@@ -118,7 +118,7 @@
0.85 keeps the colour recognisable, rgb(68,142,191), while still being
visibly flatter than an enabled button beside it, which is the only thing
this rule is for. The `pointer-events: none` below is what actually makes it
unusable; the dimming only has to SAY so. docs/Features/General/Theme/Change-Color.md */
unusable; the dimming only has to SAY so. docs/Features/Theme/Change-Color.md */
.table-page-pagination button.disabled,
.boards-pagination button.disabled,
.table-view-pagination button.disabled {
@@ -129,7 +129,7 @@
pointer-events: none;
}
/* The ACTION buttons of the shared controls row (docs/Features/General/Table-Page.md):
/* The ACTION buttons of the shared controls row (docs/Features/Table.md):
Admin Panel / People's "Unlock all users" and "Teams". They sit in the same row
as the pager and are bare <button>s too, so without a rule here they fell
through to the forms.css fallbacks above and came out BLACK - then dark grey
+1 -1
View File
@@ -76,7 +76,7 @@ Popup.template.helpers({
return MAXIMIZABLE_POPUPS.has(this.popupName);
},
// The ? of this popup's feature, in its title bar
// (docs/Features/General/Help-Button.md): models/lib/featureHelp.js POPUP_HELP.
// (docs/Features/Help-Button.md): models/lib/featureHelp.js POPUP_HELP.
popupHelp() {
return popupHelpId(this.popupName);
},
+1 -1
View File
@@ -1,5 +1,5 @@
//- `themeColorClass` is the active theme: the user's own override, the board's
//- colour, or the site theme (docs/Features/General/Theme/Change-Color.md). This used to read the
//- colour, or the site theme (docs/Features/Theme/Change-Color.md). This used to read the
//- board's colour only, so every popup outside a board - the whole Admin Panel -
//- kept the stock blue whatever theme was chosen.
.pop-over.js-pop-over(
+1 -1
View File
@@ -1,4 +1,4 @@
//- Shared "Select Color" picker (docs/Features/General/Theme/Change-Color.md), used by Board Settings,
//- Shared "Select Color" picker (docs/Features/Theme/Change-Color.md), used by Board Settings,
Member Settings and Admin Panel / Settings / Visibility. Colors are shown as VISIBLE swatches grouped by category, with
the category name as a header above each group; the native color wheel(s) appear
for the flat (1) / clear (2) categories once such a color is selected. `data.scope`
+3 -3
View File
@@ -12,11 +12,11 @@ import {
customColorCount,
} from '/models/lib/themeCategories';
// Shared "Select Color" picker (docs/Features/General/Theme/Change-Color.md): VISIBLE color swatches grouped
// Shared "Select Color" picker (docs/Features/Theme/Change-Color.md): VISIBLE color swatches grouped
// by category (with the category name above each group) + native color wheel(s) for
// the flat/clear categories once such a color is selected.
//
// ONE template, rendered wherever a theme is chosen - the way docs/Features/General/Table.md
// ONE template, rendered wherever a theme is chosen - the way docs/Features/Table.md
// is one table page for every table. `data.scope` says whose theme is being set, and
// that is the only difference between the three places:
// 'board' — Board Settings / Change Color -> board.color
@@ -31,7 +31,7 @@ import {
// 2. the site theme set here in the Admin Panel (an Organization's own value
// replaces the instance's on that Organization's hosts)
// 3. the user's own override
// See docs/Features/General/Theme/Change-Color.md for the whole design.
// See docs/Features/Theme/Change-Color.md for the whole design.
const DEFAULT_WHEEL = ['#2573a7', '#6dd5fa']; // stock flat accent / second slide stop
+2 -2
View File
@@ -1,4 +1,4 @@
/* Workload page (docs/Features/Workload/Workload.md). */
/* Workload page (docs/Features/Workload/README.md). */
.workload-page {
padding: 1rem;
max-width: 100%;
@@ -176,7 +176,7 @@
.workload-cell { min-width: 5.5rem; }
}
/* Utilization and skills (docs/Features/Workload/Workload.md). */
/* Utilization and skills (docs/Features/Workload/README.md). */
.workload-person-utilization,
.workload-placeholder-skill,
.workload-candidates {
+1 -1
View File
@@ -1,4 +1,4 @@
//- Workload (docs/Features/Workload/Workload.md): week by week, how much work
//- Workload (docs/Features/Workload/README.md): week by week, how much work
the people of the viewer's boards have against the hours they have, with
their absences, the public holidays, allocations to boards and the roles a
board will need before anybody is named. The numbers come from the server
+1 -1
View File
@@ -1,4 +1,4 @@
// Workload page (docs/Features/Workload/Workload.md). It asks the server for a
// Workload page (docs/Features/Workload/README.md). It asks the server for a
// report (Meteor method workloadReport, server/workload.js) and draws it; the
// planning forms below the table write through the other workload* methods.
import { Meteor } from 'meteor/meteor';
+5 -1
View File
@@ -7,5 +7,9 @@
vertical-align: top;
}
.admin-audit-args { white-space: pre-wrap; word-break: break-all; font-size: 0.85em; }
.admin-audit-failed .admin-audit-error { color: #c0392b; }
/* Dark enough for WCAG 1.4.3 contrast on the failed row (WP-13 axe scan). */
.admin-audit-failed .admin-audit-error { color: #8a1c12; }
.admin-audit-log-pager { margin-top: 0.5rem; display: flex; gap: 0.5rem; align-items: center; }
/* WP-11: Audit log | Data access. */
.admin-audit-log-tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 0.5rem; }
.admin-audit-log-tabs button.is-active { font-weight: bold; border-bottom: 2px solid currentColor; }
+37 -2
View File
@@ -2,13 +2,25 @@ template(name="adminAuditLog")
//- Admin Panel / People / Audit log (models/lib/adminAudit.js): every
//- administrative action of a site administrator, newest first. The
//- arguments are shown as stored - passwords and secrets never are.
//- The Data access tab (WP-11, models/lib/dataAccessLog.js) is who
//- downloaded what: one row per person, day, kind and target, with a count.
.admin-audit-log
p {{_ 'admin-audit-log-info'}}
.admin-audit-log-tabs(role="tablist")
button.js-admin-audit-tab(type="button" role="tab" data-tab="audit" class="{{#if isTab 'audit'}}is-active{{/if}}" aria-selected="{{isTab 'audit'}}") {{_ 'admin-audit-log'}}
button.js-admin-audit-tab(type="button" role="tab" data-tab="access" class="{{#if isTab 'access'}}is-active{{/if}}" aria-selected="{{isTab 'access'}}") {{_ 'data-access'}}
if isTab 'audit'
p {{_ 'admin-audit-log-info'}}
else
p {{_ 'data-access-info'}}
.admin-audit-log-search
input.wekan-form-control.js-admin-audit-search(type="search" placeholder="{{_ 'search'}}" value=search)
each csvLinks
a.js-table-page-csv.button(href="{{url}}" data-dataset="{{name}}" download)
i.fa.fa-download
| {{_ labelKey}}
if loading
+spinner
else
else if isTab 'audit'
table.admin-audit-log-table
thead
tr
@@ -33,6 +45,29 @@ template(name="adminAuditLog")
else
tr
td(colspan="5") {{_ 'admin-audit-log-empty'}}
else
table.admin-audit-log-table.js-data-access-table
thead
tr
th {{_ 'admin-audit-log-when'}}
th {{_ 'admin-audit-log-who'}}
th {{_ 'data-access-what'}}
th {{_ 'data-access-times'}}
th IP
tbody
each rows
tr
td {{when firstAt}} – {{when at}}
td {{username}}
td
code {{kind}}
| {{target}}
td {{count}}
td {{ip}}
else
tr
td(colspan="5") {{_ 'data-access-empty'}}
unless loading
.admin-audit-log-pager
button.js-admin-audit-prev(type="button" disabled=noPrev) ‹
span {{page}} / {{pages}} ({{total}})
+16 -1
View File
@@ -1,16 +1,19 @@
import { ReactiveVar } from 'meteor/reactive-var';
import { Template } from 'meteor/templating';
import { adminCsvLinks } from '/client/lib/adminCsvLinks';
// Admin Panel / People / Audit log: pages of server/adminAudit.js's trail.
Template.adminAuditLog.onCreated(function () {
this.tab = new ReactiveVar('audit');
this.page = new ReactiveVar(1);
this.search = new ReactiveVar('');
this.result = new ReactiveVar({ rows: [], total: 0, page: 1, perPage: 50 });
this.loading = new ReactiveVar(true);
this.autorun(() => {
const options = { page: this.page.get(), search: this.search.get() };
const method = this.tab.get() === 'access' ? 'adminDataAccessPage' : 'adminAuditLogPage';
this.loading.set(true);
Meteor.call('adminAuditLogPage', options, (error, result) => {
Meteor.call(method, options, (error, result) => {
this.loading.set(false);
if (!error && result) this.result.set(result);
});
@@ -18,6 +21,13 @@ Template.adminAuditLog.onCreated(function () {
});
Template.adminAuditLog.helpers({
// WP-10: the whole log as CSV (server/routes/adminCsvExport.js); on the
// Data access tab (WP-11), the data-access log.
csvLinks() {
const name = Template.instance().tab.get() === 'access' ? 'data-access' : 'audit';
return adminCsvLinks([{ name, labelKey: 'export-csv' }]);
},
isTab(id) { return Template.instance().tab.get() === id; },
loading() { return Template.instance().loading.get(); },
rows() { return Template.instance().result.get().rows; },
total() { return Template.instance().result.get().total; },
@@ -42,6 +52,11 @@ Template.adminAuditLog.events({
clearTimeout(searchTimer);
searchTimer = setTimeout(() => { tpl.page.set(1); tpl.search.set(value); }, 300);
},
'click .js-admin-audit-tab'(event, tpl) {
tpl.result.set({ rows: [], total: 0, page: 1, perPage: 50 });
tpl.page.set(1);
tpl.tab.set(event.currentTarget.dataset.tab === 'access' ? 'access' : 'audit');
},
'click .js-admin-audit-prev'(event, tpl) { tpl.page.set(Math.max(1, tpl.page.get() - 1)); },
'click .js-admin-audit-next'(event, tpl) { tpl.page.set(tpl.page.get() + 1); },
});
+14 -3
View File
@@ -1,7 +1,7 @@
/* Admin Panel → Problems: the few styles that are NOT part of the shared table
page. Everything the reports have in common - title, status row, search +
pagination controls, and the table itself - now lives in tablePage.css and is
defined once. See docs/Features/General/Table-Page.md. */
defined once. See docs/Features/Table.md. */
/* The menu separator and the "Reports" group title are styled with the menu itself
(settingBody.css): the shared left menu renders `li.left-menu-separator` and
@@ -61,7 +61,9 @@
.instrumentation-area-head {
font-weight: 700;
font-size: 0.85em;
opacity: 0.7;
/* WCAG 1.4.3: a solid colour instead of opacity 0.7, which faded the
headings to 2.8:1 on the Admin Panel's #dedede; #4f5156 is 5.9:1 there. */
color: #4f5156;
}
.setting-content .content-body .main-body button.instrumentation-area,
button.instrumentation-area {
@@ -114,7 +116,8 @@ button.instrumentation-area.is-active {
font-variant-numeric: tabular-nums;
}
.instrumentation-area-num.has-errors {
color: #b04632;
/* #b04632 was 4.1:1 on #dedede; #9a3b29 keeps the red at 5.2:1. */
color: #9a3b29;
font-weight: 700;
}
@@ -127,3 +130,11 @@ button.instrumentation-area.is-active {
overflow-wrap: anywhere;
max-width: 32rem;
}
/* #6942: Problems / Summary as a status dashboard - each area's most frequent
kinds under it, and the sign-in refusals by reason with how to fix them. */
.admin-problem-top { margin: 0.25rem 0 0.75rem 2.2rem; padding: 0; list-style: none; font-size: 0.92em; }
.admin-problem-top li { margin: 0.15rem 0; overflow-wrap: anywhere; }
.admin-problem-kind { font-weight: 600; }
.admin-login-refusals { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.admin-login-refusals td { padding: 0.35rem 0.5rem; border-bottom: 1px solid rgba(128, 128, 128, 0.3); vertical-align: top; overflow-wrap: anywhere; }
@@ -52,6 +52,8 @@ template(name="adminProblems")
+eventStreamReport(stream="api")
else if isPane 'report-office'
+officeReport
else if isPane 'report-compliance'
+complianceReport
else if isPane 'report-password-length'
+passwordLengthReport
else if isPane 'report-webhooks'
@@ -61,12 +63,12 @@ template(name="adminProblems")
template(name="officeReport")
//- Where people log in from, grouped. Through the shared table page like every
//- other report here (docs/Features/General/Table.md).
//- other report here (docs/Features/Table.md).
+tablePage(tablePageData)
template(name="eventStreamReport")
//- Security / Speed / Tests / CPU usage all render through the shared table
//- page (docs/Features/General/Table.md). CPU usage additionally passes the live
//- page (docs/Features/Table.md). CPU usage additionally passes the live
//- figure as the status row between the title and the controls.
+tablePage(tablePageData)
+59 -46
View File
@@ -6,6 +6,7 @@ import { Tracker } from 'meteor/tracker';
import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
// The per-pane URLs of the Admin Panel. docs/Features/Admin-Panel/Admin-Panel-URLs.md
import { adminPath } from '/models/lib/adminUrls';
import { adminCsvLinks } from '/client/lib/adminCsvLinks';
import { TAPi18n } from '/imports/i18n';
import Attachments from '/models/attachments';
import Boards from '/models/boards';
@@ -93,7 +94,7 @@ function collectionResultsCount(collection) {
// --- adminProblems template ---
// Rows per page for the paginated reports (files, rules, boards, cards). The one
// rows-per-page of the whole app (docs/Features/General/Table.md), so every list pages
// rows-per-page of the whole app (docs/Features/Table.md), so every list pages
// alike - a report is not a different kind of page than People or Translation.
const REPORTS_PER_PAGE = TABLE_PAGE_ROWS_PER_PAGE;
@@ -298,6 +299,8 @@ 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' },
// What the laws and standards look for, checked (WP-12, models/lib/complianceChecks.js).
{ id: 'report-compliance', icon: 'fa-check-square-o', labelKey: 'compliance' },
// 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
@@ -450,7 +453,7 @@ Template.adminProblems.events({
},
// --- Controls: ONE handler each, for every table page ---
// The shared table page (docs/Features/General/Table.md) emits the same three
// The shared table page (docs/Features/Table.md) emits the same three
// controls for every report, so the report is identified by activeReport
// rather than by a per-report js- class. Twelve prev/next handlers and six
// search handlers collapsed to these.
@@ -529,6 +532,8 @@ function switchMenu(event, tmpl) {
// nothing to fetch. Everything else falls through to loadReport().
const SELF_LOADING_PANES = [
'report-summary',
// complianceReport.js asks getComplianceChecks itself.
'report-compliance',
'features-performance',
// backupRunsStatus.jade loads its own data (the backupHistory method).
'features-backup',
@@ -609,7 +614,7 @@ function openReportPane(tmpl, targetID) {
// currentPage/totalPages helpers, and the same click/keydown handlers, retyped
// with a different js- prefix each time. They now differ only in the COLUMN
// SPEC below; everything else - markup, layout, paging, search - comes from the
// shared table page. See docs/Features/General/Table.md.
// shared table page. See docs/Features/Table.md.
//
// A column is { label | labelKey, value(doc), align, nowrap, cls, userId(doc) }.
@@ -696,12 +701,12 @@ const REPORT_TABLES = {
},
// The name is URL-decoded, homoglyphs folded and invisible / exploit
// characters removed, so it is always shown as a plain, readable name.
{ label: 'Filename', value: d => cleanFileName(d.name) },
{ label: 'Size (kB)', align: 'end', value: d => fileSizeHelper(d.size) },
{ label: 'MIME Type', value: d => d.type },
{ label: 'Attachment ID', value: d => d._id },
{ label: 'Board ID', value: d => d.meta?.boardId },
{ label: 'Card ID', value: d => d.meta?.cardId },
{ labelKey: 'export-card-attachment-filename', value: d => cleanFileName(d.name) },
{ labelKey: 'problems-col-size-kb', align: 'end', value: d => fileSizeHelper(d.size) },
{ labelKey: 'problems-col-mime-type', value: d => d.type },
{ labelKey: 'attachment-id', value: d => d._id },
{ labelKey: 'board-id', value: d => d.meta?.boardId },
{ labelKey: 'card-id', value: d => d.meta?.cardId },
],
},
'report-rules': {
@@ -717,8 +722,8 @@ const REPORT_TABLES = {
trigger: rule.trigger(),
})),
columns: [
{ label: 'Rule Title', value: d => d.title },
{ label: 'Board Title', value: d => d.boardTitle },
{ labelKey: 'problems-col-rule-title', value: d => d.title },
{ labelKey: 'board-title', value: d => d.boardTitle },
{ label: 'actionType', value: d => d.action?.actionType },
{ label: 'activityType', value: d => d.trigger?.activityType },
],
@@ -727,14 +732,14 @@ const REPORT_TABLES = {
emptyKey: 'no-results',
docs: () => reportPageResults(Boards, 'report-boards'),
columns: [
{ label: 'Title', value: d => abbreviate(d.title) },
{ label: 'Id', value: d => abbreviate(d._id) },
{ label: 'Permission', value: d => d.permission },
{ label: 'Archived?', value: d => yesOrNo(d.archived) },
{ label: 'Members', value: d => memberNames(d.members) },
{ label: 'Organizations', value: d => (d.orgs || [])
{ labelKey: 'title', value: d => abbreviate(d.title) },
{ labelKey: 'problems-col-id', value: d => abbreviate(d._id) },
{ labelKey: 'problems-col-permission', value: d => d.permission },
{ labelKey: 'problems-col-archived', value: d => yesOrNo(d.archived) },
{ labelKey: 'members', value: d => memberNames(d.members) },
{ labelKey: 'organizations', value: d => (d.orgs || [])
.map(o => ReactiveCache.getOrg(o.orgId)?.orgDisplayName || o.orgId).join(', ') },
{ label: 'Teams', value: d => (d.teams || [])
{ labelKey: 'teams', value: d => (d.teams || [])
.map(t => ReactiveCache.getTeam(t.teamId)?.teamDisplayName || t.teamId).join(', ') },
],
},
@@ -746,12 +751,12 @@ const REPORT_TABLES = {
// minimongo": that is what made this report one endless page.
docs: () => reportPageResults(Cards, 'report-broken'),
columns: [
{ label: 'Card Title', value: d => abbreviate(d.title) },
{ label: 'Id', value: d => abbreviate(d._id) },
{ label: 'Board', value: d => abbreviate(d.board()?.title) },
{ label: 'Swimlane', value: d => abbreviate(d.swimlane()?.title) },
{ label: 'List', value: d => abbreviate(d.list()?.title) },
{ label: 'Type', value: d => d.type },
{ labelKey: 'problems-col-card-title', value: d => abbreviate(d.title) },
{ labelKey: 'problems-col-id', value: d => abbreviate(d._id) },
{ labelKey: 'board', value: d => abbreviate(d.board()?.title) },
{ labelKey: 'swimlane', value: d => abbreviate(d.swimlane()?.title) },
{ labelKey: 'list', value: d => abbreviate(d.list()?.title) },
{ labelKey: 'type', value: d => d.type },
{ labelKey: 'createdAt', nowrap: true, value: d => formatDate(d.createdAt) },
],
},
@@ -760,12 +765,12 @@ const REPORT_TABLES = {
// The publication's page, in the publication's order (see cards.js).
docs: () => reportPageResults(Cards, 'report-cards'),
columns: [
{ label: 'Card Title', value: d => abbreviate(d.title) },
{ label: 'Board', value: d => abbreviate(d.board()?.title) },
{ label: 'Swimlane', value: d => abbreviate(d.swimlane()?.title) },
{ label: 'List', value: d => abbreviate(d.list()?.title) },
{ label: 'Members', value: d => userIdNames(d.members) },
{ label: 'Assignees', value: d => userIdNames(d.assignees) },
{ labelKey: 'problems-col-card-title', value: d => abbreviate(d.title) },
{ labelKey: 'board', value: d => abbreviate(d.board()?.title) },
{ labelKey: 'swimlane', value: d => abbreviate(d.swimlane()?.title) },
{ labelKey: 'list', value: d => abbreviate(d.list()?.title) },
{ labelKey: 'members', value: d => userIdNames(d.members) },
{ labelKey: 'assignees', value: d => userIdNames(d.assignees) },
],
},
'report-impersonation': {
@@ -780,7 +785,8 @@ const REPORT_TABLES = {
{ labelKey: 'impersonation-user', value: d => userName(d.userId), userId: d => d.userId,
initials: d => userInitials(d.userId) },
{ labelKey: 'board', value: d => d.boardId },
{ labelKey: 'reason', value: d => d.reason },
// Emergency access (P3) shows its note: why, as the administrator wrote it.
{ labelKey: 'reason', value: d => (d.note ? `${d.reason}: ${d.note}` : d.reason) },
],
},
'report-recovery': {
@@ -809,7 +815,7 @@ const REPORT_TABLES = {
},
{ labelKey: 'date', nowrap: true, value: d => formatDate(d.createdAt) },
{ labelKey: 'recovery-event', value: d => d.type },
{ label: 'User ID', value: d => d.userId },
{ labelKey: 'problems-col-user-id', value: d => d.userId },
{ labelKey: 'username', value: d => d.username },
...addressReportColumns(),
{ labelKey: 'recovery-detail', value: d => d.detail },
@@ -836,14 +842,14 @@ function reportTablePageData(tmpl) {
emptyKey: spec.emptyKey,
searchTerm: cfg.search.get(),
filters: cfg.filter ? buildFilters([reportId === 'report-recovery' ? {
id: 'recovery-status', label: 'Show', options: [
{ value: 'all', label: 'All' }, { value: 'done', label: 'Done' },
{ value: 'failed', label: 'Failed' },
{ value: 'deleted', label: 'Deleted' },
id: 'recovery-status', labelKey: 'problems-filter-show', options: [
{ value: 'all', labelKey: 'problems-filter-all' }, { value: 'done', labelKey: 'done' },
{ value: 'failed', labelKey: 'problems-filter-failed' },
{ value: 'deleted', labelKey: 'problems-filter-deleted' },
],
} : {
id: 'board-permission', label: 'Permission', options: [
{ value: 'all', label: 'All' },
id: 'board-permission', labelKey: 'problems-col-permission', options: [
{ value: 'all', labelKey: 'problems-filter-all' },
{ value: 'public', labelKey: 'public' },
{ value: 'instance', labelKey: 'instance' },
{ value: 'private', labelKey: 'private' },
@@ -856,6 +862,11 @@ function reportTablePageData(tmpl) {
totalPages: info.totalPages,
hasPrev: info.hasPrev,
hasNext: info.hasNext,
// WP-10: every board, and who has which role on which board.
csvLinks: reportId === 'report-boards' ? adminCsvLinks([
{ name: 'boards', labelKey: 'export-csv' },
{ name: 'board-roles', labelKey: 'export-csv-board-roles' },
]) : [],
};
}
// Broken cards has no template of its own any more: it is a column spec in
@@ -878,13 +889,13 @@ const EVENTS_PER_PAGE = TABLE_PAGE_ROWS_PER_PAGE;
// cpuReportTitle - so the words are unchanged and there is only one of them.
const INSTRUMENTATION_COLUMNS = [
{ label: 'Type', value: row => row.kind },
{ label: 'Method or publication', value: row => row.name },
{ label: 'Calls', align: 'end', value: row => row.calls },
{ label: 'Completed', align: 'end', value: row => row.completed },
{ label: 'Errors', align: 'end', value: row => row.errors },
{ label: 'Avg ms', align: 'end', value: row => row.averageMs ?? '' },
{ label: 'Max ms', align: 'end', value: row => row.maxMs ?? '' },
{ labelKey: 'type', value: row => row.kind },
{ labelKey: 'problems-col-method', value: row => row.name },
{ labelKey: 'api-calls', align: 'end', value: row => row.calls },
{ labelKey: 'completed', align: 'end', value: row => row.completed },
{ labelKey: 'errors', align: 'end', value: row => row.errors },
{ labelKey: 'problems-col-avg-ms', align: 'end', value: row => row.averageMs ?? '' },
{ labelKey: 'problems-col-max-ms', align: 'end', value: row => row.maxMs ?? '' },
];
const { summarizeByArea, areaOf } = require('/models/lib/instrumentationAreas');
@@ -1194,6 +1205,8 @@ Template.eventStreamReport.helpers({
// problems" - it is "nothing has called the API", which on most instances
// means WITH_API is off.
emptyKey: t.stream === 'api' ? 'api-no-calls' : 'no-new-problems',
// WP-10: every summarised security problem, for an incident report.
csvLinks: t.stream === 'security' ? adminCsvLinks([{ name: 'security', labelKey: 'export-csv' }]) : [],
searchTerm: t.search.get(),
header: buildHeader(columnsFor(t.stream)),
rows: buildRows(rows, columnsFor(t.stream)),
@@ -1355,7 +1368,7 @@ for (const tpl of [Template.featuresPerformance, Template.featuresSecurity,
// so IPv4, IPv6, location and that person's successful-login count stay exact.
//
// Through the shared table page like every other report here
// (docs/Features/General/Table.md): same layout, same controls, same paginator.
// (docs/Features/Table.md): same layout, same controls, same paginator.
const OFFICES_PER_PAGE = 25;
const OFFICE_COLUMNS = [
@@ -0,0 +1,27 @@
//- Admin Panel / Attachments / Encrypt (server/lib/attachmentEncryptionRun.js),
//- offered only while ATTACHMENTS_PASSPHRASE is set: encrypt or decrypt every
//- attachment on this server's disk, and encrypt new ones as they arrive.
template(name="attachmentEncryption")
ul#attachment-encryption-setting.setting-detail
li
.description {{_ 'attachment-encryption-info'}}
if status
li
label.attachment-encryption-new
input.js-encrypt-new(type="checkbox" checked="{{status.encryptNew}}")
| {{_ 'attachment-encryption-new'}}
if status.counts
li
p {{_ 'attachment-encryption-counts' encrypted=status.counts.encrypted plain=status.counts.plain missing=status.counts.missing}}
if status.progress.action
li
p(role="status") {{_ 'attachment-encryption-progress' done=status.progress.done total=status.progress.total failed=status.progress.failed}}
if status.progress.error
p.quiet {{status.progress.error}}
li
button.primary.js-encrypt-all(type="button" disabled="{{status.progress.running}}") {{_ 'attachment-encryption-encrypt-all'}}
|
button.js-decrypt-all(type="button" disabled="{{status.progress.running}}") {{_ 'attachment-encryption-decrypt-all'}}
else
li
+spinner
@@ -0,0 +1,35 @@
import { Meteor } from 'meteor/meteor';
import { ReactiveVar } from 'meteor/reactive-var';
import { Template } from 'meteor/templating';
// Admin Panel / Attachments / Encrypt: the counts, the switch and the two runs
// (server/lib/attachmentEncryptionRun.js); polled while a run goes on.
Template.attachmentEncryption.onCreated(function () {
this.status = new ReactiveVar(null);
this.reload = () => Meteor.call('attachmentEncryptionStatus', (error, status) => { if (!error) this.status.set(status); });
this.reload();
this.timer = Meteor.setInterval(() => {
const s = this.status.get();
if (s && s.progress && s.progress.running) this.reload();
}, 2000);
});
Template.attachmentEncryption.onDestroyed(function () {
if (this.timer) Meteor.clearInterval(this.timer);
});
Template.attachmentEncryption.helpers({
status() { return Template.instance().status.get(); },
});
Template.attachmentEncryption.events({
'change .js-encrypt-new'(event, tpl) {
Meteor.call('setEncryptNewAttachments', event.currentTarget.checked, () => tpl.reload());
},
'click .js-encrypt-all'(event, tpl) {
Meteor.call('encryptAllAttachments', () => Meteor.setTimeout(tpl.reload, 500));
},
'click .js-decrypt-all'(event, tpl) {
Meteor.call('decryptAllAttachments', () => Meteor.setTimeout(tpl.reload, 500));
},
});
+5 -3
View File
@@ -206,7 +206,9 @@
/* Cloud storage (S3 / Azure / GCS): example value shown below each input. */
.attachments-content .cloud-input-example {
display: block;
color: #888;
/* WCAG 1.4.3: #888 was 2.6:1 and #6a737d 3.6:1 on the Admin Panel's
#dedede; #555 and #4a5159 are 5.5:1 and 6.0:1. */
color: #555;
font-size: 0.82em;
font-family: monospace;
word-break: break-all;
@@ -216,7 +218,7 @@
/* Cloud storage: where-to-find-this-value path shown below the example. */
.attachments-content .cloud-input-path {
display: block;
color: #6a737d;
color: #4a5159;
font-size: 0.82em;
line-height: 1.4;
margin-top: 2px;
@@ -233,7 +235,7 @@
/* Cloud storage: description text (English literal and translated). */
.attachments-content .cloud-input-desc {
display: block;
color: #6a737d;
color: #4a5159;
font-size: 0.82em;
line-height: 1.4;
margin-top: 2px;
+59 -57
View File
@@ -26,13 +26,15 @@ template(name="attachments")
li
.description {{_ 'default-save-storage-description'}}
.form-group
select.wekan-form-control.js-default-save-storage
select.wekan-form-control.js-default-save-storage(aria-label="{{_ 'default-save-storage'}}")
each defaultStorageOptions
option(value=value selected=selected) {{_ labelKey}}
.form-group
button.js-save-default-storage.primary {{_ 'save'}}
else if isRetentionActive
+authProviderSettings(retentionSettingsData)
else if isEncryptActive
+attachmentEncryption
else if isLimitsActive
ul#attachment-limits-setting.setting-detail
li
@@ -42,48 +44,48 @@ template(name="attachments")
li
.title {{_ 'attachment-upload-limit-label'}}
.form-group
select.wekan-form-control.js-attachment-limit-mode(data-field="attachmentsUploadMaxBytes")
select.wekan-form-control.js-attachment-limit-mode(data-field="attachmentsUploadMaxBytes" aria-label="{{_ 'attachment-upload-limit-label'}}")
each attachmentTransferLimitModeOptions 'attachmentsUploadMaxBytes'
option(value=value selected=selected) {{_ labelKey}}
.form-group(class="{{#if isAttachmentLimitMode 'attachmentsUploadMaxBytes' 'max-size'}}{{else}}hide{{/if}}")
input.wekan-form-control#attachments-upload-limit-value(type="number" min="1" step="any" value="{{attachmentTransferLimitValue 'attachmentsUploadMaxBytes'}}")
select.wekan-form-control.js-attachment-limit-unit(data-field="attachmentsUploadMaxBytes")
input.wekan-form-control#attachments-upload-limit-value(type="number" min="1" step="any" value="{{attachmentTransferLimitValue 'attachmentsUploadMaxBytes'}}" aria-label="{{_ 'attachment-upload-limit-label'}}: {{_ 'attachment-limit-mode-max-size'}}")
select.wekan-form-control.js-attachment-limit-unit(data-field="attachmentsUploadMaxBytes" aria-label="{{_ 'attachment-upload-limit-label'}}: {{_ 'attachment-limit-unit-bytes'}} / {{_ 'attachment-limit-unit-mb'}} / {{_ 'attachment-limit-unit-gb'}}")
each attachmentTransferLimitUnitOptions 'attachmentsUploadMaxBytes'
option(value=value selected=selected) {{_ labelKey}}
li
.title {{_ 'attachment-download-limit-label'}}
.form-group
select.wekan-form-control.js-attachment-limit-mode(data-field="attachmentsDownloadMaxBytes")
select.wekan-form-control.js-attachment-limit-mode(data-field="attachmentsDownloadMaxBytes" aria-label="{{_ 'attachment-download-limit-label'}}")
each attachmentTransferLimitModeOptions 'attachmentsDownloadMaxBytes'
option(value=value selected=selected) {{_ labelKey}}
.form-group(class="{{#if isAttachmentLimitMode 'attachmentsDownloadMaxBytes' 'max-size'}}{{else}}hide{{/if}}")
input.wekan-form-control#attachments-download-limit-value(type="number" min="1" step="any" value="{{attachmentTransferLimitValue 'attachmentsDownloadMaxBytes'}}")
select.wekan-form-control.js-attachment-limit-unit(data-field="attachmentsDownloadMaxBytes")
input.wekan-form-control#attachments-download-limit-value(type="number" min="1" step="any" value="{{attachmentTransferLimitValue 'attachmentsDownloadMaxBytes'}}" aria-label="{{_ 'attachment-download-limit-label'}}: {{_ 'attachment-limit-mode-max-size'}}")
select.wekan-form-control.js-attachment-limit-unit(data-field="attachmentsDownloadMaxBytes" aria-label="{{_ 'attachment-download-limit-label'}}: {{_ 'attachment-limit-unit-bytes'}} / {{_ 'attachment-limit-unit-mb'}} / {{_ 'attachment-limit-unit-gb'}}")
each attachmentTransferLimitUnitOptions 'attachmentsDownloadMaxBytes'
option(value=value selected=selected) {{_ labelKey}}
li
.title {{_ 'api-upload-limit-label'}}
.form-group
select.wekan-form-control.js-attachment-limit-mode(data-field="apiUploadMaxBytes")
select.wekan-form-control.js-attachment-limit-mode(data-field="apiUploadMaxBytes" aria-label="{{_ 'api-upload-limit-label'}}")
each attachmentTransferLimitModeOptions 'apiUploadMaxBytes'
option(value=value selected=selected) {{_ labelKey}}
.form-group(class="{{#if isAttachmentLimitMode 'apiUploadMaxBytes' 'max-size'}}{{else}}hide{{/if}}")
input.wekan-form-control#api-upload-limit-value(type="number" min="1" step="any" value="{{attachmentTransferLimitValue 'apiUploadMaxBytes'}}")
select.wekan-form-control.js-attachment-limit-unit(data-field="apiUploadMaxBytes")
input.wekan-form-control#api-upload-limit-value(type="number" min="1" step="any" value="{{attachmentTransferLimitValue 'apiUploadMaxBytes'}}" aria-label="{{_ 'api-upload-limit-label'}}: {{_ 'attachment-limit-mode-max-size'}}")
select.wekan-form-control.js-attachment-limit-unit(data-field="apiUploadMaxBytes" aria-label="{{_ 'api-upload-limit-label'}}: {{_ 'attachment-limit-unit-bytes'}} / {{_ 'attachment-limit-unit-mb'}} / {{_ 'attachment-limit-unit-gb'}}")
each attachmentTransferLimitUnitOptions 'apiUploadMaxBytes'
option(value=value selected=selected) {{_ labelKey}}
li
.title {{_ 'api-download-limit-label'}}
.form-group
select.wekan-form-control.js-attachment-limit-mode(data-field="apiDownloadMaxBytes")
select.wekan-form-control.js-attachment-limit-mode(data-field="apiDownloadMaxBytes" aria-label="{{_ 'api-download-limit-label'}}")
each attachmentTransferLimitModeOptions 'apiDownloadMaxBytes'
option(value=value selected=selected) {{_ labelKey}}
.form-group(class="{{#if isAttachmentLimitMode 'apiDownloadMaxBytes' 'max-size'}}{{else}}hide{{/if}}")
input.wekan-form-control#api-download-limit-value(type="number" min="1" step="any" value="{{attachmentTransferLimitValue 'apiDownloadMaxBytes'}}")
select.wekan-form-control.js-attachment-limit-unit(data-field="apiDownloadMaxBytes")
input.wekan-form-control#api-download-limit-value(type="number" min="1" step="any" value="{{attachmentTransferLimitValue 'apiDownloadMaxBytes'}}" aria-label="{{_ 'api-download-limit-label'}}: {{_ 'attachment-limit-mode-max-size'}}")
select.wekan-form-control.js-attachment-limit-unit(data-field="apiDownloadMaxBytes" aria-label="{{_ 'api-download-limit-label'}}: {{_ 'attachment-limit-unit-bytes'}} / {{_ 'attachment-limit-unit-mb'}} / {{_ 'attachment-limit-unit-gb'}}")
each attachmentTransferLimitUnitOptions 'apiDownloadMaxBytes'
option(value=value selected=selected) {{_ labelKey}}
@@ -125,17 +127,17 @@ template(name="attachments")
.form-group
label {{_ 'writable-path'}}
input.wekan-form-control#filesystem-path(type="text" value="{{filesystemPath}}" readonly)
input.wekan-form-control#filesystem-path(type="text" value="{{filesystemPath}}" readonly aria-label="{{_ 'writable-path'}}")
small.form-text.text-muted {{_ 'filesystem-path-description'}}
.form-group
label {{_ 'attachments-path'}}
input.wekan-form-control#attachments-path(type="text" value="{{attachmentsPath}}" readonly)
input.wekan-form-control#attachments-path(type="text" value="{{attachmentsPath}}" readonly aria-label="{{_ 'attachments-path'}}")
small.form-text.text-muted {{_ 'attachments-path-description'}}
.form-group
label {{_ 'avatars-path'}}
input.wekan-form-control#avatars-path(type="text" value="{{avatarsPath}}" readonly)
input.wekan-form-control#avatars-path(type="text" value="{{avatarsPath}}" readonly aria-label="{{_ 'avatars-path'}}")
small.form-text.text-muted {{_ 'avatars-path-description'}}
else if isGridFsActive
@@ -223,7 +225,7 @@ template(name="attachments")
.form-group
label Endpoint
small.form-text.cloud-input-label-tr {{_ 's3-endpoint'}}
input.wekan-form-control#s3-endpoint(type="text" value=cloudValue.s3.endpoint)
input.wekan-form-control#s3-endpoint(type="text" value=cloudValue.s3.endpoint aria-label="{{_ 's3-endpoint'}}")
small.form-text.cloud-input-example https://s3.eu-west-1.amazonaws.com
small.form-text.cloud-input-desc {{englishText 's3-endpoint-description'}}
if translatedDiffers 's3-endpoint-description'
@@ -234,7 +236,7 @@ template(name="attachments")
.form-group
label AWS Region
small.form-text.cloud-input-label-tr {{_ 's3-region'}}
input.wekan-form-control#s3-region(type="text" value=cloudValue.s3.region)
input.wekan-form-control#s3-region(type="text" value=cloudValue.s3.region aria-label="{{_ 's3-region'}}")
small.form-text.cloud-input-example eu-west-1
small.form-text.cloud-input-desc {{englishText 's3-region-description'}}
if translatedDiffers 's3-region-description'
@@ -245,7 +247,7 @@ template(name="attachments")
.form-group
label Bucket name
small.form-text.cloud-input-label-tr {{_ 's3-bucket'}}
input.wekan-form-control#s3-bucket(type="text" value=cloudValue.s3.bucket)
input.wekan-form-control#s3-bucket(type="text" value=cloudValue.s3.bucket aria-label="{{_ 's3-bucket'}}")
small.form-text.cloud-input-example wekan-s3-test-369341155299-eu-west-1-an
small.form-text.cloud-input-desc {{englishText 's3-bucket-description'}}
if translatedDiffers 's3-bucket-description'
@@ -256,7 +258,7 @@ template(name="attachments")
.form-group
label Access key ID
small.form-text.cloud-input-label-tr {{_ 's3-access-key'}}
input.wekan-form-control#s3-access-key(type="text" value=cloudValue.s3.accessKeyId)
input.wekan-form-control#s3-access-key(type="text" value=cloudValue.s3.accessKeyId aria-label="{{_ 's3-access-key'}}")
small.form-text.cloud-input-example AKIAIOSFODNN7EXAMPLE
small.form-text.cloud-input-desc {{englishText 's3-access-key-description'}}
if translatedDiffers 's3-access-key-description'
@@ -267,7 +269,7 @@ template(name="attachments")
.form-group
label Secret access key
small.form-text.cloud-input-label-tr {{_ 's3-secret-key'}}
input.wekan-form-control#s3-secret-key(type="password" placeholder=cloudSecretPlaceholder.s3.secretAccessKey)
input.wekan-form-control#s3-secret-key(type="password" placeholder=cloudSecretPlaceholder.s3.secretAccessKey aria-label="{{_ 's3-secret-key'}}")
small.form-text.cloud-input-example wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
small.form-text.cloud-input-desc {{englishText 'cloud-secret-keep-blank'}}
if translatedDiffers 'cloud-secret-keep-blank'
@@ -284,14 +286,14 @@ template(name="attachments")
//- Encryption at rest (models/lib/s3Encryption.js).
.form-group
label(for="s3-sse") {{_ 's3-sse'}}
select.wekan-form-control#s3-sse
select.wekan-form-control#s3-sse(aria-label="{{_ 's3-sse'}}")
option(value="" selected="{{s3SseSelected ''}}") {{_ 's3-sse-none'}}
option(value="AES256" selected="{{s3SseSelected 'AES256'}}") SSE-S3 (AES256)
option(value="aws:kms" selected="{{s3SseSelected 'aws:kms'}}") SSE-KMS (aws:kms)
small.form-text.text-muted {{_ 's3-sse-description'}}
.form-group
label(for="s3-sse-kms-key-id") {{_ 's3-sse-kms-key-id'}}
input.wekan-form-control#s3-sse-kms-key-id(type="text" value="{{cloudValue.s3.sseKmsKeyId}}" placeholder="arn:aws:kms:eu-north-1:111122223333:key/…")
input.wekan-form-control#s3-sse-kms-key-id(type="text" value="{{cloudValue.s3.sseKmsKeyId}}" placeholder="arn:aws:kms:eu-north-1:111122223333:key/…" aria-label="{{_ 's3-sse-kms-key-id'}}")
.form-group
button.js-test-cloud-connection.btn.btn-secondary(data-provider="s3") {{_ 'test-cloud-connection'}}
@@ -338,7 +340,7 @@ template(name="attachments")
.form-group
label Storage account name
small.form-text.cloud-input-label-tr {{_ 'azure-account-name'}}
input.wekan-form-control#azure-account-name(type="text" value=cloudValue.azure.accountName)
input.wekan-form-control#azure-account-name(type="text" value=cloudValue.azure.accountName aria-label="{{_ 'azure-account-name'}}")
small.form-text.cloud-input-example wekanstorage
small.form-text.cloud-input-desc {{englishText 'azure-account-name-description'}}
if translatedDiffers 'azure-account-name-description'
@@ -349,7 +351,7 @@ template(name="attachments")
.form-group
label Storage account key
small.form-text.cloud-input-label-tr {{_ 'azure-account-key'}}
input.wekan-form-control#azure-account-key(type="password" placeholder=cloudSecretPlaceholder.azure.accountKey)
input.wekan-form-control#azure-account-key(type="password" placeholder=cloudSecretPlaceholder.azure.accountKey aria-label="{{_ 'azure-account-key'}}")
small.form-text.cloud-input-example base64AccountKey==
small.form-text.cloud-input-desc {{englishText 'cloud-secret-keep-blank'}}
if translatedDiffers 'cloud-secret-keep-blank'
@@ -360,7 +362,7 @@ template(name="attachments")
.form-group
label Connection string
small.form-text.cloud-input-label-tr {{_ 'azure-connection-string'}}
input.wekan-form-control#azure-connection-string(type="password" placeholder=cloudSecretPlaceholder.azure.connectionString)
input.wekan-form-control#azure-connection-string(type="password" placeholder=cloudSecretPlaceholder.azure.connectionString aria-label="{{_ 'azure-connection-string'}}")
small.form-text.cloud-input-example DefaultEndpointsProtocol=https;AccountName=wekanstorage;AccountKey=...;EndpointSuffix=core.windows.net
small.form-text.cloud-input-desc {{englishText 'azure-connection-string-description'}}
if translatedDiffers 'azure-connection-string-description'
@@ -371,7 +373,7 @@ template(name="attachments")
.form-group
label Container name
small.form-text.cloud-input-label-tr {{_ 'azure-container'}}
input.wekan-form-control#azure-bucket(type="text" value=cloudValue.azure.bucket)
input.wekan-form-control#azure-bucket(type="text" value=cloudValue.azure.bucket aria-label="{{_ 'azure-container'}}")
small.form-text.cloud-input-example wekan-attachments
small.form-text.cloud-input-desc {{englishText 'azure-container-description'}}
if translatedDiffers 'azure-container-description'
@@ -427,7 +429,7 @@ template(name="attachments")
.form-group
label Project ID
small.form-text.cloud-input-label-tr {{_ 'gcs-project-id'}}
input.wekan-form-control#gcs-project-id(type="text" value=cloudValue.gcs.projectId)
input.wekan-form-control#gcs-project-id(type="text" value=cloudValue.gcs.projectId aria-label="{{_ 'gcs-project-id'}}")
small.form-text.cloud-input-example my-gcp-project-123456
small.form-text.cloud-input-desc {{englishText 'gcs-project-id-description'}}
if translatedDiffers 'gcs-project-id-description'
@@ -438,7 +440,7 @@ template(name="attachments")
.form-group
label Bucket name
small.form-text.cloud-input-label-tr {{_ 'gcs-bucket'}}
input.wekan-form-control#gcs-bucket(type="text" value=cloudValue.gcs.bucket)
input.wekan-form-control#gcs-bucket(type="text" value=cloudValue.gcs.bucket aria-label="{{_ 'gcs-bucket'}}")
small.form-text.cloud-input-example wekan-attachments
small.form-text.cloud-input-desc {{englishText 'gcs-bucket-description'}}
if translatedDiffers 'gcs-bucket-description'
@@ -449,7 +451,7 @@ template(name="attachments")
.form-group
label Service account key file path
small.form-text.cloud-input-label-tr {{_ 'gcs-key-filename'}}
input.wekan-form-control#gcs-key-filename(type="text" value=cloudValue.gcs.keyFilename)
input.wekan-form-control#gcs-key-filename(type="text" value=cloudValue.gcs.keyFilename aria-label="{{_ 'gcs-key-filename'}}")
small.form-text.cloud-input-example /data/gcs-service-account.json
small.form-text.cloud-input-desc {{englishText 'gcs-key-filename-description'}}
if translatedDiffers 'gcs-key-filename-description'
@@ -460,7 +462,7 @@ template(name="attachments")
.form-group
label Service account key (JSON)
small.form-text.cloud-input-label-tr {{_ 'gcs-credentials'}}
textarea.wekan-form-control#gcs-credentials(data-editor-submit=".js-save-cloud-settings" rows="4" placeholder=cloudSecretPlaceholder.gcs.credentials)
textarea.wekan-form-control#gcs-credentials(data-editor-submit=".js-save-cloud-settings" rows="4" placeholder=cloudSecretPlaceholder.gcs.credentials aria-label="{{_ 'gcs-credentials'}}")
small.form-text.cloud-input-example { "type": "service_account", "project_id": "my-gcp-project", "client_email": "wekan@my-gcp-project.iam.gserviceaccount.com", "private_key": "-----BEGIN PRIVATE KEY-----..." }
small.form-text.cloud-input-desc {{englishText 'gcs-credentials-description'}}
if translatedDiffers 'gcs-credentials-description'
@@ -496,18 +498,18 @@ template(name="attachments")
span {{_ 'storage-read'}}
.form-group
label {{_ 'webdav-endpoint'}}
input.wekan-form-control#webdav-endpoint(type="text" value=cloudValue.webdav.endpoint)
input.wekan-form-control#webdav-endpoint(type="text" value=cloudValue.webdav.endpoint aria-label="{{_ 'webdav-endpoint'}}")
small.form-text.cloud-input-example https://cloud.example.com/remote.php/dav/files/USER
.form-group
label {{_ 'username'}}
input.wekan-form-control#webdav-username(type="text" value=cloudValue.webdav.username)
input.wekan-form-control#webdav-username(type="text" value=cloudValue.webdav.username aria-label="{{_ 'username'}}")
.form-group
label {{_ 'webdav-password'}}
input.wekan-form-control#webdav-password(type="password" placeholder=cloudSecretPlaceholder.webdav.password)
input.wekan-form-control#webdav-password(type="password" placeholder=cloudSecretPlaceholder.webdav.password aria-label="{{_ 'webdav-password'}}")
small.form-text.cloud-input-desc {{_ 'cloud-secret-keep-blank'}}
.form-group
label {{_ 'webdav-folder'}}
input.wekan-form-control#webdav-folder(type="text" value=cloudValue.webdav.bucket)
input.wekan-form-control#webdav-folder(type="text" value=cloudValue.webdav.bucket aria-label="{{_ 'webdav-folder'}}")
.form-group
button.js-test-cloud-connection.btn.btn-secondary(data-provider="webdav") {{_ 'test-cloud-connection'}}
button.js-save-cloud-settings.btn.btn-primary(data-provider="webdav") {{_ 'save'}}
@@ -546,7 +548,7 @@ template(name="attachments")
if showBackupScope
.form-group
label {{_ 'backup-scope'}}
select.wekan-form-control.js-backup-scope
select.wekan-form-control.js-backup-scope(aria-label="{{_ 'backup-scope'}}")
if isSiteAdmin
option(value="") {{_ 'backup-scope-instance'}}
each backupScopes
@@ -568,7 +570,7 @@ template(name="attachments")
span {{_ 'backup-data'}}
.form-group
label {{_ 'backup-storage'}}
select.wekan-form-control.js-backup-storage
select.wekan-form-control.js-backup-storage(aria-label="{{_ 'backup-storage'}}")
option(value="filesystem" selected="{{backupStorageSelected 'filesystem'}}") {{_ 'filesystem-storage'}}
option(value="s3" selected="{{backupStorageSelected 's3'}}") {{_ 's3-minio-storage'}}
option(value="azure" selected="{{backupStorageSelected 'azure'}}") {{_ 'azure-blob-storage'}}
@@ -589,14 +591,14 @@ template(name="attachments")
h4 {{_ 'backup-schedule'}}
.form-group
label {{_ 'backup-frequency'}}
select.wekan-form-control.js-backup-frequency
select.wekan-form-control.js-backup-frequency(aria-label="{{_ 'backup-frequency'}}")
option(value="off" selected=scheduleOff) {{_ 'backup-frequency-off'}}
option(value="daily" selected=scheduleDaily) {{_ 'backup-frequency-daily'}}
option(value="weekly" selected=scheduleWeekly) {{_ 'backup-frequency-weekly'}}
option(value="monthly" selected=scheduleMonthly) {{_ 'backup-frequency-monthly'}}
.form-group
label {{_ 'backup-time'}}
input.wekan-form-control.js-backup-time(type="time" value=scheduleTime)
input.wekan-form-control.js-backup-time(type="time" value=scheduleTime aria-label="{{_ 'backup-time'}}")
.form-group
label {{_ 'backup-day-of-week'}}
//- One button per day, in the reader's own language, instead of a
@@ -655,7 +657,7 @@ template(name="attachments")
td {{path}}
.form-group
label {{_ 'backup-restore-mode'}}
select.wekan-form-control.js-restore-mode
select.wekan-form-control.js-restore-mode(aria-label="{{_ 'backup-restore-mode'}}")
option(value="add-missing") {{_ 'backup-restore-add-missing'}}
option(value="replace-all") {{_ 'backup-restore-replace-all'}}
.form-group
@@ -680,7 +682,7 @@ template(name="attachments")
span {{_ 'continuous-backup-enabled'}}
.form-group
label {{_ 'continuous-backup-target'}}
input.wekan-form-control.js-cb-target(type="text" value=cbSettings.target)
input.wekan-form-control.js-cb-target(type="text" value=cbSettings.target aria-label="{{_ 'continuous-backup-target'}}")
.form-group
label {{_ 'continuous-backup-include'}}
.checkbox-row
@@ -698,7 +700,7 @@ template(name="attachments")
span {{_ 'continuous-backup-logs'}}
.form-group
label {{_ 'continuous-backup-engine'}}
select.wekan-form-control.js-cb-engine
select.wekan-form-control.js-cb-engine(aria-label="{{_ 'continuous-backup-engine'}}")
option(value="auto" selected="{{cbEngineSelected 'auto'}}") {{_ 'continuous-backup-engine-auto'}}
option(value="oplog" selected="{{cbEngineSelected 'oplog'}}") {{_ 'continuous-backup-engine-oplog'}}
option(value="sqlite" selected="{{cbEngineSelected 'sqlite'}}") {{_ 'continuous-backup-engine-sqlite'}}
@@ -715,36 +717,36 @@ template(name="attachments")
span {{_ 'continuous-backup-encrypt'}}
.form-group
label {{_ 'continuous-backup-key-file'}}
input.wekan-form-control.js-cb-encryptionKeyFile(type="text" value=cbSettings.encryptionKeyFile placeholder="/etc/wekan/continuous-backup.key")
input.wekan-form-control.js-cb-encryptionKeyFile(type="text" value=cbSettings.encryptionKeyFile placeholder="/etc/wekan/continuous-backup.key" aria-label="{{_ 'continuous-backup-key-file'}}")
.form-group
label {{_ 'continuous-backup-upload'}}
select.wekan-form-control.js-cb-upload
select.wekan-form-control.js-cb-upload(aria-label="{{_ 'continuous-backup-upload'}}")
option(value="none" selected="{{cbUploadSelected 'none'}}") {{_ 'continuous-backup-upload-none'}}
option(value="s3" selected="{{cbUploadSelected 's3'}}") {{_ 's3-minio-storage'}}
option(value="azure" selected="{{cbUploadSelected 'azure'}}") {{_ 'azure-blob-storage'}}
option(value="gcs" selected="{{cbUploadSelected 'gcs'}}") {{_ 'gcs-storage'}}
.form-group
label {{_ 'continuous-backup-upload-prefix'}}
input.wekan-form-control.js-cb-uploadPrefix(type="text" value=cbSettings.uploadPrefix)
input.wekan-form-control.js-cb-uploadPrefix(type="text" value=cbSettings.uploadPrefix aria-label="{{_ 'continuous-backup-upload-prefix'}}")
if cbLitestream
.form-group
label {{_ 'continuous-backup-litestream-binary'}}
input.wekan-form-control.js-cb-litestreamBinary(type="text" value=cbSettings.litestreamBinary)
input.wekan-form-control.js-cb-litestreamBinary(type="text" value=cbSettings.litestreamBinary aria-label="{{_ 'continuous-backup-litestream-binary'}}")
.form-group
label {{_ 'continuous-backup-litestream-url'}}
input.wekan-form-control.js-cb-litestreamReplicaUrl(type="text" value=cbSettings.litestreamReplicaUrl placeholder="s3://bucket/wekan")
input.wekan-form-control.js-cb-litestreamReplicaUrl(type="text" value=cbSettings.litestreamReplicaUrl placeholder="s3://bucket/wekan" aria-label="{{_ 'continuous-backup-litestream-url'}}")
.form-group
label {{_ 'continuous-backup-sqlite-interval'}}
input.wekan-form-control.js-cb-sqliteIntervalSeconds(type="number" min="5" max="3600" value=cbSettings.sqliteIntervalSeconds)
input.wekan-form-control.js-cb-sqliteIntervalSeconds(type="number" min="5" max="3600" value=cbSettings.sqliteIntervalSeconds aria-label="{{_ 'continuous-backup-sqlite-interval'}}")
.form-group
label {{_ 'continuous-backup-file-scan'}}
input.wekan-form-control.js-cb-fileScanSeconds(type="number" min="30" max="86400" value=cbSettings.fileScanSeconds)
input.wekan-form-control.js-cb-fileScanSeconds(type="number" min="30" max="86400" value=cbSettings.fileScanSeconds aria-label="{{_ 'continuous-backup-file-scan'}}")
.form-group
label {{_ 'continuous-backup-base-every'}}
input.wekan-form-control.js-cb-baseEveryHours(type="number" min="1" max="720" value=cbSettings.baseEveryHours)
input.wekan-form-control.js-cb-baseEveryHours(type="number" min="1" max="720" value=cbSettings.baseEveryHours aria-label="{{_ 'continuous-backup-base-every'}}")
.form-group
label {{_ 'continuous-backup-keep-days'}}
input.wekan-form-control.js-cb-keepDays(type="number" min="1" max="3650" value=cbSettings.keepDays)
input.wekan-form-control.js-cb-keepDays(type="number" min="1" max="3650" value=cbSettings.keepDays aria-label="{{_ 'continuous-backup-keep-days'}}")
.form-group
button.js-cb-save.btn.btn-primary(type="button") {{_ 'save'}}
@@ -783,10 +785,10 @@ template(name="attachments")
td {{untilText}}
.form-group
label {{_ 'continuous-backup-restore-to'}}
input.wekan-form-control.js-cb-until(type="datetime-local")
input.wekan-form-control.js-cb-until(type="datetime-local" aria-label="{{_ 'continuous-backup-restore-to'}}")
.form-group
label {{_ 'continuous-backup-restore-what'}}
select.wekan-form-control.js-cb-what
select.wekan-form-control.js-cb-what(aria-label="{{_ 'continuous-backup-restore-what'}}")
option(value="database") {{_ 'continuous-backup-database'}}
option(value="files") {{_ 'attachments'}} / {{_ 'avatars'}} / {{_ 'continuous-backup-logs'}}
option(value="sqlite") {{_ 'continuous-backup-restore-sqlite'}}
@@ -796,7 +798,7 @@ template(name="attachments")
span {{_ 'continuous-backup-apply-on-restart'}}
.form-group
label {{_ 'backup-restore-mode'}}
select.wekan-form-control.js-cb-mode
select.wekan-form-control.js-cb-mode(aria-label="{{_ 'backup-restore-mode'}}")
option(value="add-missing") {{_ 'backup-restore-add-missing'}}
option(value="replace-all") {{_ 'backup-restore-replace-all'}}
.form-group
@@ -864,13 +866,13 @@ template(name="moveAttachments")
.move-storage-selects
.form-group
label {{_ 'move-scope'}}
select.wekan-form-control.js-move-scope
select.wekan-form-control.js-move-scope(aria-label="{{_ 'move-scope'}}")
option(value="attachments") {{_ 'attachments'}}
option(value="avatars") {{_ 'move-scope-avatars'}}
option(value="both") {{_ 'move-scope-both'}}
.form-group
label {{_ 'move-source'}}
select.wekan-form-control.js-move-source-storage
select.wekan-form-control.js-move-source-storage(aria-label="{{_ 'move-source'}}")
option(value="all") {{_ 'move-storage-all'}}
option(value="collectionfs") {{_ 'move-storage-collectionfs'}}
option(value="gridfs") {{_ 'move-storage-gridfs'}}
@@ -880,7 +882,7 @@ template(name="moveAttachments")
option(value="gcs") {{_ 'move-storage-gcs'}}
.form-group
label {{_ 'move-destination'}}
select.wekan-form-control.js-move-dest-storage
select.wekan-form-control.js-move-dest-storage(aria-label="{{_ 'move-destination'}}")
option(value="gridfs") {{_ 'move-storage-gridfs'}}
option(value="fs") {{_ 'move-storage-fs'}}
option(value="s3") {{_ 'move-storage-s3'}}
+20 -3
View File
@@ -4,7 +4,7 @@ import { Session } from 'meteor/session';
import { Tracker } from 'meteor/tracker';
import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
// The per-pane URLs of the Admin Panel. docs/Features/Admin-Panel/Admin-Panel-URLs.md
import { adminPath } from '/models/lib/adminUrls';
import { adminPath, adminPaneTitle } from '/models/lib/adminUrls';
import { leftMenuData, paneTitle } from '/models/lib/leftMenu';
const {
SANDSTORM_HIDDEN_ATTACHMENTS_PANES,
@@ -567,6 +567,16 @@ const BACKUP_MONTH_DAYS = Array.from({ length: 28 }, (_, i) => i + 1);
// The Attachments side menu, as data (docs/Features/All-Boards/Left-Menu.md).
// emoji:true reproduces the empty span.emoji-icon this page always rendered.
// Whether Encrypt is offered: asked once, as the server alone knows its
// environment (server/lib/attachmentEncryptionRun.js).
const encryptionAvailable = new ReactiveVar(false);
let encryptionAsked = false;
function askEncryptionAvailable() {
if (encryptionAsked) return;
encryptionAsked = true;
Meteor.call('attachmentEncryptionAvailable', (error, ok) => { if (!error) encryptionAvailable.set(ok === true); });
}
function attachmentsMenu(user) {
let items = [
// Backup first: it is what an admin comes to this page for most often, and it
@@ -582,6 +592,8 @@ function attachmentsMenu(user) {
// Delete old card attachments, purge deleted ones (#6789). Overrides the
// ATTACHMENTS_RETENTION_* environment variables, field by field.
{ id: 'retention', icon: 'fa-calendar-times-o', labelKey: 'attachment-retention', emoji: true },
// Shown only while ATTACHMENTS_PASSPHRASE is set (attachmentEncryptionAvailable).
...(encryptionAvailable.get() ? [{ id: 'encrypt', icon: 'fa-lock', labelKey: 'attachment-encryption', emoji: true }] : []),
{ id: 'gridfs', icon: 'fa-database', labelKey: 'mongodb-gridfs-storage', emoji: true },
{ id: 'filesystem', icon: 'fa-folder-open', labelKey: 'filesystem-storage', emoji: true },
{ id: 's3', icon: 'fa-cloud', labelKey: 's3-minio-storage', emoji: true },
@@ -621,14 +633,16 @@ Template.attachments.helpers({
},
menuItems() {
askEncryptionAvailable();
return leftMenuData(attachmentsMenu(ReactiveCache.getCurrentUser()),
Template.instance().activeSection.get(), 'js-attachments-menu');
},
// The heading above the pane: the open menu entry's own label
// (docs/Features/All-Boards/Left-Menu.md).
paneTitleData() {
return paneTitle(attachmentsMenu(ReactiveCache.getCurrentUser()),
Template.instance().activeSection.get());
const active = Template.instance().activeSection.get();
return paneTitle(attachmentsMenu(ReactiveCache.getCurrentUser()), active,
adminPaneTitle('attachments', active));
},
loading() {
return Template.instance().loading;
@@ -644,6 +658,9 @@ Template.attachments.helpers({
isRetentionActive() {
return Template.instance().activeSection.get() === 'retention';
},
isEncryptActive() {
return Template.instance().activeSection.get() === 'encrypt';
},
// The shared env-override form (authProviderSettings), on the catalog's
// attachmentRetention section.
retentionSettingsData() {
@@ -0,0 +1,8 @@
/* WP-12: Admin Panel / Problems / Compliance. */
.compliance-table { width: 100%; border-collapse: collapse; }
.compliance-table td { padding: 0.4rem 0.5rem; border-bottom: 1px solid rgba(128, 128, 128, 0.3); vertical-align: top; }
.compliance-table code { overflow-wrap: anywhere; }
.compliance-status { white-space: nowrap; }
.compliance-ok .compliance-status { color: #0b5a24; }
.compliance-warn .compliance-status { color: #7a3f00; }
.compliance-info .compliance-status { color: #1f4f80; }
@@ -0,0 +1,21 @@
//- Admin Panel / Problems / Compliance (WP-12, models/lib/complianceChecks.js):
//- the settings the laws and standards most asked about look for, read-only,
//- each with a link to the pane that changes it. docs/Security/Compliance/
//- says which matter for whom.
template(name="complianceReport")
.compliance-report
p.quiet {{_ 'compliance-info'}}
if loading
+spinner
else
table.compliance-table
tbody
each rows
tr(class="compliance-{{status}}")
td.compliance-status
i.fa(class="{{icon}}" aria-hidden="true")
| {{_ statusKey}}
td
a(href="{{href}}") {{_ labelKey}}
td
code {{value}}
@@ -0,0 +1,27 @@
import { Meteor } from 'meteor/meteor';
import { ReactiveVar } from 'meteor/reactive-var';
import { Template } from 'meteor/templating';
import { adminPath } from '/models/lib/adminUrls';
const { STATUS_KEYS } = require('/models/lib/complianceChecks');
const ICONS = { ok: 'fa-check-circle', warn: 'fa-exclamation-triangle', info: 'fa-info-circle' };
// The checks come from the server, which alone knows its environment
// (getComplianceChecks, server/methods/complianceChecks.js).
Template.complianceReport.onCreated(function () {
this.rows = new ReactiveVar(null);
Meteor.call('getComplianceChecks', (error, rows) => this.rows.set(error ? [] : rows));
});
Template.complianceReport.helpers({
loading() { return Template.instance().rows.get() === null; },
rows() {
return (Template.instance().rows.get() || []).map(row => ({
...row,
icon: ICONS[row.status] || ICONS.info,
statusKey: STATUS_KEYS[row.status] || STATUS_KEYS.info,
href: adminPath(row.pane.page, row.pane.slug),
}));
},
});
@@ -1,7 +1,7 @@
template(name='connectionMethod')
div.at-form-authentication
label {{_ 'authentication-method'}}
select.select-authentication
select.select-authentication(aria-label="{{_ 'authentication-method'}}")
each authentications
if isSelected value
option(value="{{value}}" selected) {{_ value}}
+1 -1
View File
@@ -3,7 +3,7 @@
reply, a spam complaint - and the addresses that bounced. Modelled on the
bounce settings of established mailing software (listmonk, Discourse): an
action per category after a count. server/emailBounces.js,
models/lib/emailBounce.js, docs/Features/General/Email/Bounces.md.
models/lib/emailBounce.js, docs/Features/Email/Bounces.md.
template(name="emailBounces")
li.email-bounces
h2 {{_ 'email-bounces'}}
@@ -44,6 +44,14 @@ template(name='statistics')
tr
th WeKan ® {{_ 'info'}}
td {{statistics.version}}
//- The software bill of materials of this release (WP-9): every npm
package it is built from, as CycloneDX JSON on its GitHub Release.
SBOM and CycloneDX are names, not words, so neither is translated.
if sbomUrl
tr
th SBOM
td
a(href="{{sbomUrl}}" target="_blank" rel="noopener noreferrer") CycloneDX JSON
//- The LABEL is translated; the VALUE never is. bundle.zip, Snap, Docker
and Sandstorm are the names of the things themselves - a package
format, a store, a product - not words describing them, and a reader
@@ -1,5 +1,6 @@
import { TAPi18n } from '/imports/i18n';
const { filesize } = require('filesize');
const { sbomUrl } = require('/models/lib/securityTxt');
Template.statistics.onCreated(function () {
this.info = new ReactiveVar({});
@@ -18,6 +19,10 @@ Template.statistics.onCreated(function () {
// entry that opens it. This file is just the statistics pane now.
Template.statistics.helpers({
// The SBOM of this release (WP-9), on its GitHub Release.
sbomUrl() {
return sbomUrl((Template.instance().info.get() || {}).version);
},
statistics() {
return Template.instance().info.get();
},
+1 -1
View File
@@ -31,7 +31,7 @@ const { paneHelpId } = require('/models/lib/featureHelp');
Template.registerHelper('isLeftMenuCollapsed', () => Utils.getLeftMenuCollapseState());
// The ? of the open pane (docs/Features/General/Help-Button.md): its help
// The ? of the open pane (docs/Features/Help-Button.md): its help
// depends on the page and on the open menu entry, which paneTitle() passes as
// `paneId`.
Template.paneTitle.helpers({
@@ -0,0 +1,75 @@
//- Admin Panel / Settings / Legal pages (WP-6, docs/Compliance/README.md):
//- each legal page as the operator publishes it, and the privacy contacts.
//- Saved through saveLegalPage / saveLegalContacts (server/methods/legalPages.js),
//- which are in the Audit log.
template(name="legalPagesSettings")
.legal-pages-settings
if loading
+spinner
else
each pages
section.legal-page-editor(data-page="{{_id}}")
h2.legal-page-editor-title
a(href="/{{_id}}" target="_blank" rel="noopener noreferrer") {{label}}
if version
span.quiet {{_ 'legal-page-version' version=version}}
label.legal-page-check
input.js-legal-enabled(type="checkbox" checked="{{enabled}}")
| {{_ 'legal-page-published'}}
if isAcceptable
//- WP-8: every account accepts the current version, and each new
//- one, before it can do anything else (server/requireLegalAcceptance.js).
label.legal-page-check
input.js-legal-require-acceptance(type="checkbox" checked="{{requireAcceptance}}")
| {{_ 'legal-page-require-acceptance'}}
label
| {{_ 'title'}}
input.js-legal-title.wekan-form-control(type="text" value="{{title}}" maxlength="200")
label
| {{_ 'legal-page-external-url'}}
input.js-legal-url.wekan-form-control(type="url" value="{{url}}")
if isImprint
each imprintFields
label
| {{label}}
input.wekan-form-control(class="js-legal-field" data-field="{{key}}" type="text" value="{{value}}")
label
| {{_ 'legal-page-text'}}
textarea.js-legal-body.wekan-form-control(rows="10")= body
if isPrivacy
button.js-legal-draft {{_ 'legal-privacy-draft'}}
button.primary.js-legal-save {{_ 'save'}}
section.legal-page-editor.js-legal-contacts
h2.legal-page-editor-title {{_ 'privacy-contacts'}}
each contactFields
label
| {{label}}
input.wekan-form-control(class="js-legal-contact" data-field="{{key}}" type="text" value="{{value}}")
button.primary.js-legal-contacts-save {{_ 'save'}}
if message
p.quiet(role="status") {{message}}
//- Row 2.2: a draft of the records of processing (GDPR Art. 30), from the
//- inventory, this server's retention values and the outside services it
//- uses (models/lib/ropaDraft.js), to copy and complete.
section.legal-page-editor.js-ropa
button.js-ropa-draft(type="button") {{_ 'ropa-draft'}}
if ropa
textarea.wekan-form-control.js-ropa-text(rows="14" readonly aria-label="{{_ 'ropa-draft'}}")= ropa
//- What this WeKan stores about people (models/lib/personalDataInventory.js):
//- what the privacy notice describes.
details.legal-inventory
summary {{_ 'data-inventory'}}
.legal-inventory-table
table
each inventory
tr
td
code {{collection}}
td {{categories}}
td {{purpose}}
td {{retention}}
td
if env
code {{env}}
if value
| = {{value}}
@@ -0,0 +1,91 @@
import { Meteor } from 'meteor/meteor';
import { ReactiveVar } from 'meteor/reactive-var';
import { TAPi18n } from '/imports/i18n';
import { legalLabel } from '/client/components/legal/legalPage';
const { PAGES, ACCEPTANCE_PAGES, IMPRINT_FIELDS, CONTACT_FIELDS } = require('/models/lib/legalPages');
const { draftPrivacyNotice, inventoryRows } = require('/models/lib/privacyNoticeDraft');
Template.legalPagesSettings.onCreated(function () {
this.docs = new ReactiveVar(null);
this.message = new ReactiveVar('');
this.reload = () => Meteor.call('getLegalPagesForAdmin', (error, docs) => {
if (error) this.message.set(error.reason || error.message);
this.docs.set(error ? [] : docs);
});
this.reload();
// The retention overview (WP-7): the inventory with the values this server's
// settings really have. Until it arrives, the inventory alone.
this.retention = new ReactiveVar(null);
this.ropa = new ReactiveVar('');
Meteor.call('getRetentionOverview', (error, rows) => { if (!error) this.retention.set(rows); });
});
Template.legalPagesSettings.helpers({
loading() { return Template.instance().docs.get() === null; },
message() { return Template.instance().message.get(); },
pages() {
const docs = Template.instance().docs.get() || [];
return PAGES.map(id => {
const doc = docs.find(d => d._id === id) || { _id: id };
return {
...doc,
label: legalLabel(id),
isImprint: id === 'imprint',
isPrivacy: id === 'privacy',
isAcceptable: ACCEPTANCE_PAGES.includes(id),
imprintFields: IMPRINT_FIELDS.map(key => ({ key, label: legalLabel(key), value: doc[key] || '' })),
};
});
},
inventory() { return Template.instance().retention.get() || inventoryRows(); },
ropa() { return Template.instance().ropa.get(); },
contactFields() {
const doc = (Template.instance().docs.get() || []).find(d => d._id === 'contacts') || {};
return CONTACT_FIELDS.map(key => ({ key, label: legalLabel(key), value: doc[key] || '' }));
},
});
Template.legalPagesSettings.events({
// The privacy notice's starting text, from what this WeKan really stores
// (models/lib/privacyNoticeDraft.js). Only into an empty text: it never
// replaces what the operator wrote.
'click .js-legal-draft'(event) {
event.preventDefault();
const body = event.currentTarget.closest('.legal-page-editor').querySelector('.js-legal-body');
if (!body.value.trim()) body.value = draftPrivacyNotice();
},
'click .js-ropa-draft'(event, tpl) {
event.preventDefault();
Meteor.call('getRopaDraft', (error, text) => {
if (error) tpl.message.set(error.reason || error.message);
else tpl.ropa.set(text);
});
},
'click .js-legal-save'(event, tpl) {
event.preventDefault();
const section = event.currentTarget.closest('.legal-page-editor');
const form = {
enabled: section.querySelector('.js-legal-enabled').checked,
title: section.querySelector('.js-legal-title').value,
url: section.querySelector('.js-legal-url').value,
body: section.querySelector('.js-legal-body').value,
};
const requireAcceptance = section.querySelector('.js-legal-require-acceptance');
if (requireAcceptance) form.requireAcceptance = requireAcceptance.checked;
section.querySelectorAll('.js-legal-field').forEach(input => { form[input.dataset.field] = input.value; });
Meteor.call('saveLegalPage', section.dataset.page, form, error => {
tpl.message.set(error ? (error.reason || error.message) : TAPi18n.__('feature-saved'));
tpl.reload();
});
},
'click .js-legal-contacts-save'(event, tpl) {
event.preventDefault();
const form = {};
tpl.findAll('.js-legal-contact').forEach(input => { form[input.dataset.field] = input.value; });
Meteor.call('saveLegalContacts', form, error => {
tpl.message.set(error ? (error.reason || error.message) : TAPi18n.__('feature-saved'));
tpl.reload();
});
},
});
@@ -1,6 +1,6 @@
//- Admin Panel / Problems / Password length (docs/Features/Admin-Panel/Problems/Password-length.md):
//- the minimum, whether it is enforced, and who signs in with a shorter
//- password - through the shared table page (docs/Features/General/Table.md).
//- password - through the shared table page (docs/Features/Table.md).
template(name="passwordLengthReport")
ul.setting-detail.password-length-settings
li
+4 -3
View File
@@ -9,7 +9,7 @@
!important` with nowrap cells, to force a horizontal scrollbar. With
`!important` that beat even the shared table page's own layout, which is
width:100% + table-layout:fixed with equal, wrapping columns precisely so it
CANNOT grow past the panel (docs/Features/General/Table-Page.md): every table page in the
CANNOT grow past the panel (docs/Features/Table.md): every table page in the
Admin Panel - Domains, Organizations, Teams, People, the Problems reports - had
its right-hand columns outside the window until you scrolled. The geometry is
gone; a table fits its panel and wraps (settingBody.css), and the People panes
@@ -130,7 +130,7 @@ table:not(.table-page-table) td:first-child {
}
/* `.unlock-all-btn` is gone. "Unlock all users" is an action of the shared
controls row now (docs/Features/General/Table-Page.md), and this rule was written for the
controls row now (docs/Features/Table.md), and this rule was written for the
old hand-written page header: a 20px top margin and a 28px height, next to a
"Teams" button that takes the shared 34px. In one flex row that put the two
buttons at visibly different heights AND on different baselines. The shared row
@@ -285,7 +285,7 @@ table:not(.table-page-table) td:first-child {
}
/* Admin Panel > People > Domains renders through the shared table page
(docs/Features/General/Table-Page.md), so its controls row, pagination and table are
(docs/Features/Table.md), so its controls row, pagination and table are
styled there - and its pager is themed by paginationControls.css like every
other pager. Nothing pane-specific is needed here any more. */
@@ -304,3 +304,4 @@ table:not(.table-page-table) td:first-child {
margin: 0;
flex: none;
}
+20 -6
View File
@@ -246,7 +246,7 @@ template(name="peopleRow")
| ⋯
if userData.loginDisabled
td.username
a.js-edit-people-avatar(data-user-id=userData._id)
a.js-edit-people-avatar(data-user-id=userData._id aria-label="{{#unless hasAvatarUrl}}{{userData.getInitials}} {{/unless}}{{_ 'change-avatar'}}: {{userData.username}}")
if hasAvatarUrl
.avatar
img.avatar-image(src="{{avatarSrc userData.profile.avatarUrl}}", alt="{{userData.username}}", title="{{_ 'change-avatar'}}")
@@ -255,7 +255,7 @@ template(name="peopleRow")
<s>{{ userData.username }}</s>
else if isUserLocked
td.username
a.js-edit-people-avatar(data-user-id=userData._id)
a.js-edit-people-avatar(data-user-id=userData._id aria-label="{{#unless hasAvatarUrl}}{{userData.getInitials}} {{/unless}}{{_ 'change-avatar'}}: {{userData.username}}")
if hasAvatarUrl
.avatar
img.avatar-image(src="{{avatarSrc userData.profile.avatarUrl}}", alt="{{userData.username}}", title="{{_ 'change-avatar'}}")
@@ -264,7 +264,7 @@ template(name="peopleRow")
| {{ userData.username }}
else
td.username
a.js-edit-people-avatar(data-user-id=userData._id)
a.js-edit-people-avatar(data-user-id=userData._id aria-label="{{#unless hasAvatarUrl}}{{userData.getInitials}} {{/unless}}{{_ 'change-avatar'}}: {{userData.username}}")
if hasAvatarUrl
.avatar
img.avatar-image(src="{{avatarSrc userData.profile.avatarUrl}}", alt="{{userData.username}}", title="{{_ 'change-avatar'}}")
@@ -321,10 +321,10 @@ template(name="peopleRow")
td {{ displayDate userData.createdAt 'LLL' }}
if userData.loginDisabled
td
input.selectUserChkBox(type="checkbox", disabled="disabled", id="{{userData._id}}")
input.selectUserChkBox(type="checkbox", disabled="disabled", id="{{userData._id}}", aria-label="{{userData.username}}")
else
td
input.selectUserChkBox(type="checkbox", id="{{userData._id}}")
input.selectUserChkBox(type="checkbox", id="{{userData._id}}", aria-label="{{userData.username}}")
template(name="editOrgPopup")
form
@@ -736,6 +736,20 @@ template(name="settingsUserPopup")
a.impersonate-user
i.fa.fa-user
| {{_ 'impersonate-user'}}
//- P3 (docs/Compliance/README.md): emergency access. Ticked, the
//- impersonation is recorded as emergency access with the note, and every
//- other administrator gets an e-mail at once (server/models/users.js
//- impersonate, models/lib/emergencyAccess.js).
//- P3: end every session of this account (adminLogoutUser, audited).
li
a.js-admin-logout-user
i.fa.fa-sign-out
| {{_ 'log-out-everywhere'}}
li.impersonate-emergency
label
input.js-impersonate-emergency(type="checkbox")
| {{_ 'impersonate-emergency'}}
textarea.js-impersonate-note.wekan-form-control(rows="2" maxlength="500" placeholder="{{_ 'impersonate-emergency-note'}}" aria-label="{{_ 'impersonate-emergency-note'}}")
br
hr
li
@@ -834,7 +848,7 @@ template(name="rolesGeneral")
button.js-custom-role-delete {{_ 'delete'}}
//- Roles Status: what each board role may do, READ-ONLY, below the Save
//- button. It is the shared table page (docs/Features/General/Table.md), so it
//- button. It is the shared table page (docs/Features/Table.md), so it
//- looks and behaves like every other Admin Panel table, and it follows the
//- checkboxes ABOVE the Save button - the working copy, not the saved
//- document - so an admin can see the effect of a change before saving it.
+23 -7
View File
@@ -28,6 +28,7 @@ import LockoutSettings from '/models/lockoutSettings';
import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
// The per-pane URLs of the Admin Panel. docs/Features/Admin-Panel/Admin-Panel-URLs.md
import { adminPath } from '/models/lib/adminUrls';
import { adminCsvLinks } from '/client/lib/adminCsvLinks';
import Org from '/models/org';
import Settings from '/models/settings';
import Team from '/models/team';
@@ -81,7 +82,7 @@ const TENANT_ORG_FIELDS = [
'orgLegalNotice',
];
// One rows-per-page for the whole app (docs/Features/General/Table.md): these four
// One rows-per-page for the whole app (docs/Features/Table.md): these four
// panes page exactly like every other paginated page in WeKan.
const orgsPerPage = TABLE_PAGE_ROWS_PER_PAGE;
const teamsPerPage = TABLE_PAGE_ROWS_PER_PAGE;
@@ -622,15 +623,15 @@ function firstPeoplePaneId(user) {
return items.length ? items[0].id : 'people-setting';
}
// Organizations through the shared table page (docs/Features/General/Table.md). Its
// Organizations through the shared table page (docs/Features/Table.md). Its
// rows are interactive - inline checkboxes and edit links - so it supplies a
// rowTemplate instead of a text-cell spec, and three of its headers carry a
// select-all pair, supplied as headerTemplate. Everything else - the layout, the
// pager, the search, the total - comes from the shared page.
// Teams: same shape as Organizations - interactive rows, three headers carrying
// a select-all pair. Same two slots (docs/Features/General/Table.md).
// a select-all pair. Same two slots (docs/Features/Table.md).
// People: interactive rows again, and two of its headers are templates - the
// new-user row and the select-all checkbox (docs/Features/General/Table.md).
// new-user row and the select-all checkbox (docs/Features/Table.md).
// One page of users: the ones the server put on this page, in its order.
//
// The 'people' publication applies limit/skip sorted createdAt:-1 server-side, so
@@ -796,6 +797,11 @@ Template.people.helpers({
hasNext: tpl.peoplePage.get() < totalPages,
total,
totalLabelKey: 'people-number',
// WP-10: every account, and who has which role on which board.
csvLinks: adminCsvLinks([
{ name: 'people', labelKey: 'export-csv' },
{ name: 'board-roles', labelKey: 'export-csv-board-roles' },
]),
};
},
teamTablePageData() {
@@ -1291,7 +1297,7 @@ function yesNo(value) {
}
Template.rolesGeneral.helpers({
// The shared table page's data context (docs/Features/General/Table.md).
// The shared table page's data context (docs/Features/Table.md).
rolesStatusTable() {
const tpl = Template.instance();
const working = tpl.workingRoles.get() || [];
@@ -2812,6 +2818,12 @@ Template.settingsTeamPopup.events({
});
Template.settingsUserPopup.events({
'click .js-admin-logout-user'(event) {
event.preventDefault();
const userId = this.userId || this.user?._id;
if (!userId) return;
Meteor.call('adminLogoutUser', userId, () => Popup.back());
},
'click .impersonate-user'(event) {
event.preventDefault();
const userId = this.userId || this.user?._id;
@@ -2827,7 +2839,11 @@ Template.settingsUserPopup.events({
return;
}
Meteor.call('impersonate', userId, (err) => {
const popup = event.currentTarget.closest('.pop-over-list');
const emergency = !!(popup && popup.querySelector('.js-impersonate-emergency:checked'));
const note = popup && popup.querySelector('.js-impersonate-note') ? popup.querySelector('.js-impersonate-note').value : '';
const args = emergency ? [userId, { emergency: true, note }] : [userId];
Meteor.call('impersonate', ...args, (err) => {
if (!err) {
// Meteor.connection.setUserId() triggers automatic cache invalidation
// No need to manually invalidate - let Meteor handle the user data refresh
@@ -2935,7 +2951,7 @@ Template.domainGeneral.onCreated(function () {
});
});
// Domains renders through the shared table page (docs/Features/General/Table.md):
// Domains renders through the shared table page (docs/Features/Table.md):
// one column spec instead of its own controls row, pagination markup and table.
const DOMAIN_COLUMNS = [
{ labelKey: "domain", value: d => d.domain },
@@ -88,6 +88,28 @@ template(name="problemsSummary")
i.fa.fa-search
| {{_ 'start'}}
//- #6942: why sign-ins were refused - one row per reason, how often, the
//- latest account and address, and how to fix it. The person signing in
//- still sees one generic message (models/lib/loginRefusals.js).
if loginRefusals.length
h2 {{_ 'login-refusals'}}
table.admin-login-refusals
tbody
each loginRefusals
tr
td
strong {{_ labelKey}}
td {{_ 'data-access-times'}} {{count}}
td
if at
| {{when at}}
if username
| · {{username}}
if ip
| · {{ip}}
td
a(href="{{paneHref pane}}") {{_ fixKey}}
h2 {{_ 'problems'}}
if hasProblems
p {{_ 'problems-summary-help'}}
@@ -98,6 +120,19 @@ template(name="problemsSummary")
i.fa.fa-exclamation-triangle
span.admin-problem-path {{_ 'admin-panel'}} → {{_ 'problems'}} → {{areaLabel area.stream}}
span.admin-problem-count {{_ 'new-problems-count' count=area.count}}
//- #6942: the area's most frequent kinds, as a status dashboard does.
if area.top.length
ul.admin-problem-top
each row in area.top
li
span.admin-problem-kind {{row.bleed}}
if row.source
span.quiet {{row.source}}
| · {{_ 'data-access-times'}} {{row.count}}
if row.at
| · {{when row.at}}
if row.who
| · {{row.who}}
.admin-problem-actions
button.js-ack-checked.primary {{_ 'acknowledge'}}
button.js-clear-checked {{_ 'clear-problems'}}
+22 -1
View File
@@ -16,10 +16,18 @@ const STREAM_LABEL_KEY = {
cpu: 'cpuReportTitle',
ram: 'memory-usage',
disk: 'sandstorm-disk-usage',
// These three showed their stream id - "database", "integrity", "mail" -
// instead of the name of their pane. The keys are the ones PROBLEMS_MENU in
// adminProblems.js names the panes with; tests/problemsSummaryLabels.test.cjs
// keeps every stream of EVENT_STREAMS here, with the menu's key.
database: 'databaseReportTitle',
integrity: 'integrityReportTitle',
mail: 'mailReportTitle',
};
Template.problemsSummary.onCreated(function () {
this.areas = new ReactiveVar([]);
this.loginRefusals = new ReactiveVar([]);
// "Broken cards N" repair button state (see the repairBrokenCards method in
// server/methods/repairBrokenCards.js).
this.repairRunning = new ReactiveVar(false);
@@ -39,6 +47,9 @@ Template.problemsSummary.onCreated(function () {
this.dataHealthResults = new ReactiveVar({});
this.dataHealthScanRequested = new ReactiveVar(false);
this.reload = () => {
Meteor.call('loginRefusalSummary', (err, res) => {
if (!err) this.loginRefusals.set(Array.isArray(res) ? res : []);
});
Meteor.call('eventLogProblemAreas', (err, res) => {
if (!err) this.areas.set(Array.isArray(res) ? res : []);
});
@@ -58,6 +69,15 @@ Template.problemsSummary.helpers({
areas() {
return Template.instance().areas.get();
},
loginRefusals() {
return Template.instance().loginRefusals.get();
},
paneHref(pane) {
return Array.isArray(pane) ? require('/models/lib/adminUrls').adminPath(pane[0], pane[1]) : '';
},
when(at) {
return at ? new Date(at).toLocaleString() : '';
},
hasProblems() {
return (Template.instance().areas.get() || []).length > 0;
},
@@ -145,7 +165,8 @@ Template.problemsSummary.events({
(res.cardsRescued || 0) +
(res.archivedCardsFixed || 0) +
(res.listsAssigned || 0) +
(res.swimlanesAssigned || 0);
(res.swimlanesAssigned || 0) +
(res.typesAssigned || 0);
// Cards with no boardId at all cannot be placed on any board, so say so
// explicitly instead of leaving a count that never reaches zero unexplained.
const unfixable = res.unfixable || 0;
+33 -4
View File
@@ -143,7 +143,10 @@
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.04em;
opacity: 0.6;
/* Full colour: at 0.6 opacity the heading failed WCAG 1.4.3 contrast
(axe, tests/playwright/specs/45-axe-accessibility.e2e.js, WP-13);
uppercase and bold already mark it as a heading. */
opacity: 1;
cursor: default;
}
.setting-content .content-body .side-menu ul li.left-menu-separator:hover,
@@ -237,7 +240,7 @@
So: fit the panel, wrap the text, and let a genuinely wide table scroll inside
`.main-body`, which keeps `overflow-x: auto` for exactly that. The shared table
page (docs/Features/General/Table-Page.md) already does this for itself - width:100% +
page (docs/Features/Table.md) already does this for itself - width:100% +
table-layout:fixed with equal, wrapping columns - and is excluded so its equal
columns are not turned back into content-sized ones. */
.setting-content .content-body .main-body table:not(.table-page-table) {
@@ -994,7 +997,8 @@ li.has-error .form-group .wekan-form-control {
"Clearly visible, is in use environment variable or admin panel setting"
(see client/components/settings/settingBody.js's ldapSourceLabelFor). */
.ldap-source-badge {
color: #767676;
/* WCAG 1.4.3: #767676 was 3.4:1 on the Admin Panel's #dedede; #555 is 5.5:1. */
color: #555;
font-size: 0.85em;
font-style: italic;
}
@@ -1012,10 +1016,35 @@ li.has-error .form-group .wekan-form-control {
with an update and waits for approval. */
#tableVisibilityMode-setting .feature-desc {
margin: 0 0 0.5em 2.2em;
opacity: 0.75;
/* WCAG 1.4.3: a solid colour instead of opacity 0.75, which faded it to
3.1:1 on the Admin Panel's #dedede; #4f5156 is 5.9:1 there. */
color: #4f5156;
font-size: 0.9em;
}
#tableVisibilityMode-setting .feature-awaiting-approval {
margin-inline-start: 0.5em;
font-weight: bold;
}
/* WCAG 2.5.8 Target Size (Minimum): a ticked row of the Admin Panel - a
materialCheckBox and its text inside one link (account webhook events and
fields, custom role capabilities, notification Yes/No) - was 18px tall with
12px to the next one. 24px is the minimum, so every such row is at least
that tall; the notification options get it in their popup too. */
.setting-content a.flex:has(> .materialCheckBox),
a.flex.js-notify-option {
min-height: 24px;
align-items: center;
}
/* The "Select all" / "Unselect all" icons in the Organizations and Teams table
headers were 12x16px. */
a.js-org-feature-all,
a.js-team-feature-all {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 24px;
min-height: 24px;
vertical-align: middle;
}
+57 -51
View File
@@ -44,6 +44,8 @@ template(name="setting")
+announcementSettings
else if isAccessibilitySetting
+accessibilitySettings
else if isLegalPagesSetting
+legalPagesSettings
else if isTranslationSetting
+translationSettings
else if isLayoutSetting
@@ -136,7 +138,7 @@ template(name="general")
ul
li
.title {{_ 'invite-people'}}
textarea#email-to-invite.wekan-form-control(data-editor-submit=".js-email-invite" rows='5', placeholder="{{_ 'email-addresses'}}")
textarea#email-to-invite.wekan-form-control(data-editor-submit=".js-email-invite" rows='5', placeholder="{{_ 'email-addresses'}}" aria-label="{{_ 'invite-people'}}")
li
.title {{_ 'to-boards'}}
.bg-white
@@ -156,7 +158,7 @@ template(name="general")
li.accounts-form
.title {{_ 'oidc-button-text'}}
.form-group
input.wekan-form-control#oidcBtnTextvalue(type="text", placeholder="" value="{{currentSetting.oidcBtnText}}")
input.wekan-form-control#oidcBtnTextvalue(type="text", placeholder="" value="{{currentSetting.oidcBtnText}}" aria-label="{{_ 'oidc-button-text'}}")
button.js-account-access-save.primary {{_ 'save'}}
//- LDAP has a section of its own now, drawn from the login settings
@@ -182,17 +184,17 @@ template(name="general")
span.ldap-source-badge ({{oauthProviderSourceLabel key 'enabled'}})
.form-group
label {{_ 'oauth-provider-client-id'}}
input.wekan-form-control(type="text" class="js-oauth-provider-field" data-provider="{{key}}" data-field="id" placeholder="{{idVar}}" value="{{oauthProviderFieldValue key 'id'}}")
input.wekan-form-control(type="text" class="js-oauth-provider-field" data-provider="{{key}}" data-field="id" placeholder="{{idVar}}" value="{{oauthProviderFieldValue key 'id'}}" aria-label="{{_ 'oauth-provider-client-id'}}")
span.ldap-source-badge ({{oauthProviderSourceLabel key 'id'}})
.form-group
label {{_ 'oauth-provider-secret'}}
.description {{oauthProviderSecretStatusText key}}
input.wekan-form-control(type="password" class="js-oauth-provider-secret" data-provider="{{key}}" placeholder="{{secretVar}}" value="" autocomplete="new-password")
input.wekan-form-control(type="password" class="js-oauth-provider-secret" data-provider="{{key}}" placeholder="{{secretVar}}" value="" autocomplete="new-password" aria-label="{{_ 'oauth-provider-secret'}}")
button.js-oauth-provider-save.primary(data-provider="{{key}}") {{_ 'save'}}
li.accounts-form
.title {{_ 'oauth-providers-login-style'}}
.form-group
select.wekan-form-control#oauth-providers-login-style
select.wekan-form-control#oauth-providers-login-style(aria-label="{{_ 'oauth-providers-login-style'}}")
each oauthLoginStyleOptions
option(value=value selected=selected)= label
span.ldap-source-badge ({{oauthSharedSourceLabel 'loginStyle'}})
@@ -228,10 +230,10 @@ template(name='email')
li.smtp-form
a.flex.js-toggle-admin-mail-settings
.materialCheckBox#admin-mail-settings-enabled(class="{{#if mailSettingsEnabled}}is-checked{{/if}}")
span Enable below email settings
span {{_ 'admin-email-settings-enable'}}
if mailSettingsEnabled
li.smtp-form
.title Email service
label.title(for="mail-service") {{_ 'admin-email-service'}}
.form-group
select.wekan-form-control#mail-service
each mailServices
@@ -241,12 +243,12 @@ template(name='email')
.title {{_ 'smtp-host'}}
.description {{_ 'smtp-host-description'}}
.form-group
input.wekan-form-control#mail-server-host(type="text", placeholder="smtp.domain.com" value="{{mailConfiguration.host}}")
input.wekan-form-control#mail-server-host(type="text", placeholder="smtp.domain.com" value="{{mailConfiguration.host}}" aria-label="{{_ 'smtp-host'}}")
li.smtp-form
.title {{_ 'smtp-port'}}
.description {{_ 'smtp-port-description'}}
.form-group
input.wekan-form-control#mail-server-port(type="text", placeholder="587" value="{{mailConfiguration.port}}")
input.wekan-form-control#mail-server-port(type="text", placeholder="587" value="{{mailConfiguration.port}}" aria-label="{{_ 'smtp-port'}}")
li.smtp-form
a.flex.js-toggle-tls
.materialCheckBox#mail-server-tls(class="{{#if mailConfiguration.secure}}is-checked{{/if}}")
@@ -254,16 +256,16 @@ template(name='email')
li.smtp-form
.title {{_ 'smtp-username'}}
.form-group
input.wekan-form-control#mail-server-username(type="text", placeholder="{{_ 'username'}}" value="{{mailConfiguration.username}}")
input.wekan-form-control#mail-server-username(type="text", placeholder="{{_ 'username'}}" value="{{mailConfiguration.username}}" aria-label="{{_ 'smtp-username'}}")
li.smtp-form
.title {{_ 'smtp-password'}}
.description {{passwordDescription}}
.form-group
input.wekan-form-control#mail-server-password(type="password", placeholder="{{_ 'password'}}" value="" autocomplete="new-password")
input.wekan-form-control#mail-server-password(type="password", placeholder="{{_ 'password'}}" value="" autocomplete="new-password" aria-label="{{_ 'smtp-password'}}")
li.smtp-form
.title {{_ 'send-from'}}
.form-group
input.wekan-form-control#mail-server-from(type="text", placeholder="WeKan <no-reply@domain.com>" value="{{mailConfiguration.from}}")
input.wekan-form-control#mail-server-from(type="text", placeholder="WeKan <no-reply@domain.com>" value="{{mailConfiguration.from}}" aria-label="{{_ 'send-from'}}")
li
button.mail-settings-save.primary {{_ 'save'}}
@@ -287,22 +289,22 @@ template(name='email')
.title {{_ 'email-templates-invite-subject'}}
.description {{_ 'email-templates-invite-vars-hint'}}
.form-group
input.wekan-form-control#email-template-invite-subject(type="text" value="{{currentSetting.inviteEmailSubjectTemplate}}")
input.wekan-form-control#email-template-invite-subject(type="text" value="{{currentSetting.inviteEmailSubjectTemplate}}" aria-label="{{_ 'email-templates-invite-subject'}}")
li.smtp-form
.title {{_ 'email-templates-invite-body'}}
.description {{_ 'email-templates-invite-vars-hint'}}
.form-group
textarea.wekan-form-control#email-template-invite-body(data-editor-submit=".js-email-templates-save" rows="4")= currentSetting.inviteEmailBodyTemplate
textarea.wekan-form-control#email-template-invite-body(data-editor-submit=".js-email-templates-save" rows="4" aria-label="{{_ 'email-templates-invite-body'}}")= currentSetting.inviteEmailBodyTemplate
li.smtp-form
.title {{_ 'email-templates-activity-subject'}}
.description {{_ 'email-templates-activity-vars-hint'}}
.form-group
input.wekan-form-control#email-template-activity-subject(type="text" value="{{currentSetting.activityEmailSubjectTemplate}}")
input.wekan-form-control#email-template-activity-subject(type="text" value="{{currentSetting.activityEmailSubjectTemplate}}" aria-label="{{_ 'email-templates-activity-subject'}}")
li.smtp-form
.title {{_ 'email-templates-activity-body'}}
.description {{_ 'email-templates-activity-vars-hint'}}
.form-group
textarea.wekan-form-control#email-template-activity-body(data-editor-submit=".js-email-templates-save" rows="4")= currentSetting.activityEmailBodyTemplate
textarea.wekan-form-control#email-template-activity-body(data-editor-submit=".js-email-templates-save" rows="4" aria-label="{{_ 'email-templates-activity-body'}}")= currentSetting.activityEmailBodyTemplate
li
button.js-email-templates-save.primary {{_ 'save'}}
@@ -313,7 +315,7 @@ template(name='email')
//- in server/models/settings.js. It restricts nothing about signing in.
.title {{_ 'email-domain-allowed-to-invite'}}
.form-group
input.wekan-form-control#mailDomainNamevalue(type="text", placeholder="" value="{{currentSetting.mailDomainName}}")
input.wekan-form-control#mailDomainNamevalue(type="text", placeholder="" value="{{currentSetting.mailDomainName}}" aria-label="{{_ 'email-domain-allowed-to-invite'}}")
li.accounts-form
//- One checkbox, not a Yes/No pair: the setting is on or off, and this is the
//- checkbox the rest of the Admin Panel uses (Announcement's "Active
@@ -373,7 +375,7 @@ template(name='tableVisibilityModeSettings')
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
textarea.wekan-form-control#feature-pilot-users(data-editor-submit=".js-visibility-features-save" rows="2" placeholder="{{_ 'feature-pilot-users-placeholder'}}" aria-label="{{_ 'feature-pilot-users'}}")= 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
@@ -462,7 +464,7 @@ template(name='tableVisibilityModeSettings')
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")
input.wekan-form-control.js-feature-profile-name(type="text" value=profile.name maxlength="100" aria-label="{{_ 'feature-profile-name'}}")
.title {{_ 'feature-profile-hides'}}
each row in profile.rows
a.flex.js-toggle-feature.js-feature-profile-hide(data-feature=row.key)
@@ -470,13 +472,13 @@ template(name='tableVisibilityModeSettings')
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
textarea.wekan-form-control.js-feature-profile-users(rows="2" placeholder="{{_ 'feature-pilot-users-placeholder'}}" aria-label="{{_ 'feature-profile-users'}}")= profile.usernames
.form-group
label {{_ 'feature-profile-teams'}}
textarea.wekan-form-control.js-feature-profile-teams(rows="2")= profile.teams
textarea.wekan-form-control.js-feature-profile-teams(rows="2" aria-label="{{_ 'feature-profile-teams'}}")= profile.teams
.form-group
label {{_ 'feature-profile-orgs'}}
textarea.wekan-form-control.js-feature-profile-orgs(rows="2")= profile.orgs
textarea.wekan-form-control.js-feature-profile-orgs(rows="2" aria-label="{{_ 'feature-profile-orgs'}}")= profile.orgs
button.js-feature-profile-remove(type="button") {{_ 'feature-profile-remove'}}
li
button.js-feature-profile-add(type="button") {{_ 'feature-profile-add'}}
@@ -539,11 +541,11 @@ template(name='tableVisibilityModeSettings')
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
textarea.wekan-form-control#custom-private-board-desc(data-editor-submit=".js-visibility-all-boards-save" rows="2" placeholder="{{_ 'custom-private-desc-placeholder'}}" aria-label="{{_ 'custom-private-desc'}}")= 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
textarea.wekan-form-control#custom-public-board-desc(data-editor-submit=".js-visibility-all-boards-save" rows="2" placeholder="{{_ 'custom-public-desc-placeholder'}}" aria-label="{{_ 'custom-public-desc'}}")= 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
@@ -601,23 +603,23 @@ template(name='tableVisibilityModeSettings')
span {{_ 'public'}}
li
.title {{_ 'support-title'}}
textarea#support-title.wekan-form-control(data-editor-submit=".js-visibility-url-save")= currentSetting.supportTitle
textarea#support-title.wekan-form-control(data-editor-submit=".js-visibility-url-save" aria-label="{{_ 'support-title'}}")= currentSetting.supportTitle
li
.title {{_ 'support-content'}}
textarea#support-page-text.wekan-form-control(data-editor-submit=".js-visibility-url-save")= currentSetting.supportPageText
textarea#support-page-text.wekan-form-control(data-editor-submit=".js-visibility-url-save" aria-label="{{_ 'support-content'}}")= 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}}")
input.wekan-form-control#custom-help-link-url(type="text", placeholder="" value="{{currentSetting.customHelpLinkUrl}}" aria-label="{{_ 'custom-help-link-url'}}")
li.tableVisibilityMode-form
.title {{_ 'custom-legal-notice-link-url'}}
.form-group
input.wekan-form-control#legalNoticevalue(type="text", placeholder="" value="{{currentSetting.legalNotice}}")
input.wekan-form-control#legalNoticevalue(type="text", placeholder="" value="{{currentSetting.legalNotice}}" aria-label="{{_ 'custom-legal-notice-link-url'}}")
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
textarea#automatic-linked-url-schemes.wekan-form-control(data-editor-submit=".js-visibility-url-save" aria-label="{{_ 'automatic-linked-url-schemes'}}")= currentSetting.automaticLinkedUrlSchemes
li
button.js-visibility-url-save.primary {{_ 'save'}}
@@ -632,21 +634,21 @@ template(name='tableVisibilityModeSettings')
li.tableVisibilityMode-form
.title {{_ 'external-link-pattern-prefix'}}
.form-group
input.wekan-form-control#external-link-pattern-prefix(type="text", placeholder="#" value="{{currentSetting.externalLinkPatternPrefix}}")
input.wekan-form-control#external-link-pattern-prefix(type="text", placeholder="#" value="{{currentSetting.externalLinkPatternPrefix}}" aria-label="{{_ 'external-link-pattern-prefix'}}")
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}}")
input.wekan-form-control#external-link-pattern-url(type="text", placeholder="https://issues.example.com/browse/PROJ-{number}" value="{{currentSetting.externalLinkPatternUrl}}" aria-label="{{_ 'external-link-pattern-url'}}")
//- #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
textarea.wekan-form-control#external-link-rules(rows="4" placeholder="[{identifier}:{number}] = https://spirateam.example.com/SpiraTeam/{identifier}/{number}.aspx" aria-label="{{_ 'external-link-rules'}}")= 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}}")
input.wekan-form-control#external-link-identifier-aliases(type="text", placeholder="TK=Task, IN=Incident" value="{{currentSetting.externalLinkIdentifierAliases}}" aria-label="{{_ 'external-link-identifier-aliases'}}")
li
button.js-visibility-external-link-pattern-save.primary {{_ 'save'}}
@@ -656,10 +658,10 @@ template(name='tableVisibilityModeSettings')
//- 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'}}
h2.admin-pane-group-title#product-name-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
textarea.wekan-form-control#product-name(data-editor-submit=".js-visibility-product-name-save" rows="2" placeholder="" aria-labelledby="product-name-title")= currentSetting.productName
li
button.js-visibility-product-name-save.primary {{_ 'save'}}
@@ -695,35 +697,35 @@ template(name='tableVisibilityModeSettings')
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.wekan-form-control#custom-login-logo-image-url(type="text", placeholder="" value="{{currentSetting.customLoginLogoImageUrl}}" aria-label="{{_ 'custom-login-logo-image-url'}}")
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}}")
input.wekan-form-control#custom-login-logo-link-url(type="text", placeholder="" value="{{currentSetting.customLoginLogoLinkUrl}}" aria-label="{{_ 'custom-login-logo-link-url'}}")
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
textarea#text-below-custom-login-logo.wekan-form-control(data-editor-submit=".js-visibility-logo-save" aria-label="{{_ 'text-below-custom-login-logo'}}")= 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}}")
input.wekan-form-control#login-background-color(type="text", placeholder="#1b365d" value="{{currentSetting.loginBackgroundColor}}" aria-label="{{_ 'login-background-color'}}")
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.wekan-form-control#custom-top-left-corner-logo-image-url(type="text", placeholder="" value="{{currentSetting.customTopLeftCornerLogoImageUrl}}" aria-label="{{_ 'custom-top-left-corner-logo-image-url'}}")
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}}")
input.wekan-form-control#custom-top-left-corner-logo-link-url(type="text", placeholder="" value="{{currentSetting.customTopLeftCornerLogoLinkUrl}}" aria-label="{{_ 'custom-top-left-corner-logo-link-url'}}")
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}}")
input.wekan-form-control#custom-top-left-corner-logo-height(type="text", placeholder="" value="{{currentSetting.customTopLeftCornerLogoHeight}}" aria-label="{{_ 'custom-top-left-corner-logo-height'}}")
li
button.js-visibility-logo-save.primary {{_ 'save'}}
@@ -739,7 +741,7 @@ template(name='announcementSettings')
ul
li
.title {{_ 'admin-announcement-title'}}
textarea#admin-announcement.wekan-form-control(data-editor-submit=".js-announcement-save")= currentAnnouncements.body
textarea#admin-announcement.wekan-form-control(data-editor-submit=".js-announcement-save" aria-label="{{_ 'admin-announcement-title'}}")= currentAnnouncements.body
li
button.js-announcement-save.primary {{_ 'save'}}
@@ -757,11 +759,15 @@ template(name='accessibilitySettings')
ul
li
.title {{_ 'accessibility-title'}}
textarea#admin-accessibility-title.wekan-form-control(data-editor-submit=".js-accessibility-save")= currentAccessibility.title
textarea#admin-accessibility-title.wekan-form-control(data-editor-submit=".js-accessibility-save" aria-label="{{_ 'accessibility-title'}}")= currentAccessibility.title
li
.title {{_ 'accessibility-content'}}
textarea#admin-accessibility-content.wekan-form-control(data-editor-submit=".js-accessibility-save")= currentAccessibility.body
textarea#admin-accessibility-content.wekan-form-control(data-editor-submit=".js-accessibility-save" aria-label="{{_ 'accessibility-content'}}")= currentAccessibility.body
li
//- WP-13, row 6.1: the statement's required parts, as a starting
//- text (models/lib/accessibilityStatementDraft.js); only into an
//- empty text, never over what the operator wrote.
button.js-accessibility-draft(type="button") {{_ 'legal-privacy-draft'}}
button.js-accessibility-save.primary {{_ 'save'}}
template(name='pwaSettings')
@@ -775,10 +781,10 @@ template(name='pwaSettings')
ul
li
.title {{_ 'custom-head-meta-tags'}}
textarea#custom-head-meta.wekan-form-control(data-editor-submit=".js-custom-head-save")= customHeadMetaTagsValue
textarea#custom-head-meta.wekan-form-control(data-editor-submit=".js-custom-head-save" aria-label="{{_ 'custom-head-meta-tags'}}")= customHeadMetaTagsValue
li
.title {{_ 'custom-head-link-tags'}}
textarea#custom-head-links.wekan-form-control(data-editor-submit=".js-custom-head-save")= customHeadLinkTagsValue
textarea#custom-head-links.wekan-form-control(data-editor-submit=".js-custom-head-save" aria-label="{{_ 'custom-head-link-tags'}}")= customHeadLinkTagsValue
li
a.flex.js-toggle-custom-manifest
.materialCheckBox(class="{{#if currentSetting.customManifestEnabled}}is-checked{{/if}}")
@@ -786,7 +792,7 @@ template(name='pwaSettings')
li
.custom-manifest-settings(class="{{#if currentSetting.customManifestEnabled}}{{else}}hide{{/if}}")
.title {{_ 'custom-head-manifest-content'}}
textarea#custom-manifest-content.wekan-form-control(data-editor-submit=".js-custom-head-save")= customManifestContentValue
textarea#custom-manifest-content.wekan-form-control(data-editor-submit=".js-custom-head-save" aria-label="{{_ 'custom-head-manifest-content'}}")= customManifestContentValue
li
button.js-custom-head-save.primary {{_ 'save'}}
li
@@ -798,7 +804,7 @@ template(name='pwaSettings')
ul
li
.title {{_ 'custom-assetlinks-content'}}
textarea#custom-assetlinks-content.wekan-form-control(data-editor-submit=".js-custom-assetlinks-save")= customAssetLinksContentValue
textarea#custom-assetlinks-content.wekan-form-control(data-editor-submit=".js-custom-assetlinks-save" aria-label="{{_ 'custom-assetlinks-content'}}")= customAssetLinksContentValue
li
button.js-custom-assetlinks-save.primary {{_ 'save'}}
template(name='selectSpinnerName')
@@ -807,13 +813,13 @@ template(name='selectSpinnerName')
//- which is what flex-wrap does on its own, so no width is guessed here or in a
//- media query (settingBody.css .spinner-select-row).
.spinner-select-row
select#spinnerName
select#spinnerName(aria-label="{{_ 'wait-spinner'}}")
each spinner in spinners
if isSelected spinner
option(value="{{spinner}}" selected) {{_ spinner}}
else
option(value="{{spinner}}") {{_ spinner}}
.spinner-preview(title="{{_ 'preview'}}" aria-label="{{_ 'preview'}}")
.spinner-preview(role="img" title="{{_ 'preview'}}" aria-label="{{_ 'preview'}}")
//- Follows the DROPDOWN, not the saved setting: an admin sees what they are
//- about to save before pressing Save.
+Template.dynamic(template=previewTemplate)
+17
View File
@@ -146,6 +146,7 @@ Template.setting.onCreated(function () {
this.translationSetting = new ReactiveVar(false);
this.announcementSetting = new ReactiveVar(false);
this.accessibilitySetting = new ReactiveVar(false);
this.legalPagesSetting = new ReactiveVar(false);
this.layoutSetting = new ReactiveVar(false);
this.webhookSetting = new ReactiveVar(false);
this.sharedLabelsSetting = new ReactiveVar(false);
@@ -204,6 +205,7 @@ const SETTINGS_PANE_VARS = {
'delete-setting': 'deleteSetting',
'announcement-setting': 'announcementSetting',
'accessibility-setting': 'accessibilitySetting',
'legal-pages-setting': 'legalPagesSetting',
'translation-setting': 'translationSetting',
'layout-setting': 'layoutSetting',
'webhook-setting': 'webhookSetting',
@@ -245,6 +247,9 @@ function settingsMenu(user) {
{ 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 },
// WP-6 (docs/Compliance/README.md): privacy notice, terms, cookie notice,
// imprint, and the privacy contacts.
{ id: 'legal-pages-setting', icon: 'fa-balance-scale', labelKey: 'legal-pages', emoji: true },
// PWA is an acronym, not a translated string - a literal label, like the
// Sandstorm entry in Admin Panel / Attachments.
{ id: 'translation-setting', icon: 'fa-globe', labelKey: 'translation', emoji: true },
@@ -282,6 +287,7 @@ function activeSettingId(inst) {
['deleteSetting', 'delete-setting'],
['announcementSetting', 'announcement-setting'],
['accessibilitySetting', 'accessibility-setting'],
['legalPagesSetting', 'legal-pages-setting'],
['translationSetting', 'translation-setting'],
['layoutSetting', 'layout-setting'],
['webhookSetting', 'webhook-setting'],
@@ -329,6 +335,10 @@ Template.setting.helpers({
const inst = Template.instance();
return inst.accessibilitySetting && inst.accessibilitySetting.get();
},
isLegalPagesSetting() {
const inst = Template.instance();
return inst.legalPagesSetting && inst.legalPagesSetting.get();
},
isLayoutSetting() {
const inst = Template.instance();
return inst.layoutSetting && inst.layoutSetting.get();
@@ -1046,6 +1056,13 @@ Template.accessibilitySettings.events({
$('.accessibility-content').slideDown();
}
},
'click button.js-accessibility-draft'(event) {
event.preventDefault();
const body = document.getElementById('admin-accessibility-content');
if (body && !body.value.trim()) {
body.value = require('/models/lib/accessibilityStatementDraft').draftAccessibilityStatement();
}
},
'click button.js-accessibility-save'(event, tpl) {
tpl.loading.set(true);
const title = $('#admin-accessibility-title').val().trim();
@@ -16,7 +16,7 @@ template(name="sharedLabelsSettings")
each scopeOptions
option(value=value selected=selected) {{_ labelKey}}
if needsScopeId
select.js-shared-label-scope-id
select.js-shared-label-scope-id(aria-label="{{_ scopeLabelKey}}")
each scopeIdOptions
option(value=value selected=selected) {{label}}
if isNew
@@ -55,6 +55,8 @@ Template.sharedLabelsSettings.helpers({
colorSink: { set: color => change(tpl, id, 'color', color) },
scopeOptions: Object.keys(SCOPE_LABELS).map(value => ({ value, labelKey: SCOPE_LABELS[value], selected: value === row.scope })),
needsScopeId: row.scope !== 'instance',
// The organization or team picker is named after the scope it picks for.
scopeLabelKey: SCOPE_LABELS[row.scope],
scopeIdOptions: scopeIds.map(o => ({ ...o, selected: o.value === row.scopeId })),
};
});
+1 -1
View File
@@ -1,4 +1,4 @@
/* The ONE table page layout. Design: docs/Features/General/Table-Page.md
/* The ONE table page layout. Design: docs/Features/Table.md
Used by every paginated admin table (Security, Speed, Tests, CPU usage, Files,
Rules, Boards, Cards, Impersonation, Recovery). Defined once here so a fix to
the layout reaches every page instead of one report at a time. */
+12 -4
View File
@@ -1,5 +1,5 @@
//- The ONE table page used by every paginated admin table.
//- Design + the list of pages that use it: docs/Features/General/Table.md
//- Design + the list of pages that use it: docs/Features/Table.md
//-
//- Rows, top to bottom: title, status, controls (search + pagination), table.
//- That order is the design; it is defined here once instead of being retyped in
@@ -36,7 +36,9 @@ template(name="tablePage")
//- render. They came from Admin Panel / People, where they were hand-written
//- into that page's own markup; they are general enough for any table.
each filters
select.js-table-page-filter(data-filter="{{id}}" title="{{_ labelKey}}")
//- Named by its labelKey, or by its plain label when a filter gives one
//- (adminProblems.js) - a select with neither has no accessible name.
select.js-table-page-filter(data-filter="{{id}}" title="{{#if labelKey}}{{_ labelKey}}{{else}}{{label}}{{/if}}" aria-label="{{#if labelKey}}{{_ labelKey}}{{else}}{{label}}{{/if}}")
each options
option(value="{{value}}" selected="{{selected}}")
if labelKey
@@ -48,6 +50,12 @@ template(name="tablePage")
if icon
i.fa(class="{{icon}}")
| {{_ labelKey}}
//- WP-10: the whole list as CSV (server/routes/adminCsvExport.js), for
//- the pages that pass csvLinks (client/lib/adminCsvLinks.js).
each csvLinks
a.js-table-page-csv.button(href="{{url}}" data-dataset="{{name}}" download)
i.fa.fa-download
| {{_ labelKey}}
if total
span.table-page-total
if totalLabelKey
@@ -146,7 +154,7 @@ template(name="tablePage")
.table-page-people
each users
span.table-page-person
a.member.edit-user.js-table-page-edit-user(data-user-id="{{userId}}" title="{{text}}")
a.member.edit-user.js-table-page-edit-user(data-user-id="{{userId}}" title="{{text}}" aria-label="{{personLinkLabel userId initials text avatarUrl}}")
if avatarUrl
img.avatar.avatar-image(src="{{avatarSrc avatarUrl}}" alt="{{text}}")
else
@@ -156,7 +164,7 @@ template(name="tablePage")
span.table-page-people-count {{count}}
else if userId
.table-page-single-person
a.member.edit-user.js-table-page-edit-user(data-user-id="{{userId}}" title="{{text}}")
a.member.edit-user.js-table-page-edit-user(data-user-id="{{userId}}" title="{{text}}" aria-label="{{personLinkLabel userId initials text userAvatarUrl}}")
if userAvatarUrl
img.avatar.avatar-image(src="{{avatarSrc userAvatarUrl}}" alt="{{text}}")
else
+28
View File
@@ -1,5 +1,6 @@
import { ReactiveVar } from 'meteor/reactive-var';
import { TAPi18n } from '/imports/i18n';
import { ReactiveCache } from '/imports/reactiveCache';
import { selectedMapProvider } from '/client/components/main/mapProvider';
import { openAttachmentSlideshow } from '/client/components/cards/attachments';
@@ -18,6 +19,33 @@ const { mapLinkFor } = require('/models/lib/mapLink');
// differ per report (each has its own state and its own method), so they stay
// with their page.
Template.tablePage.helpers({
// WCAG 2.5.3 Label in Name: a person's link shows their initials when they
// have no avatar image, and a speech-input user says what they see. The
// link's name ("E2E Test User (user1)") did not contain them ("ETU"), so it
// starts with them. With an avatar image the image's alt is the visible
// label, and that already is the name.
//
// A link always has a name (WCAG 4.1.2, axe link-name): a row can carry a
// user id with no text beside it - Problems / API names the account of an
// API call, not its person - so the name falls back to the account's own,
// and to its id when this client does not have the account.
personLinkLabel(userId, initials, text, avatarUrl) {
const user = userId
? ReactiveCache.getUser(userId, { fields: { username: 1, 'profile.initials': 1, 'profile.fullname': 1 } })
: null;
const own = user && ((user.profile && user.profile.fullname) || user.username);
const name = (typeof text === 'string' && text) || own || (typeof userId === 'string' ? userId : '');
if (avatarUrl) return name;
let shown = typeof initials === 'string' && initials ? initials : '';
if (!shown && user) {
shown = (user.getInitials && user.getInitials()) || '';
}
if (!shown || name.toLowerCase().includes(shown.toLowerCase())) return name;
return `${shown} ${name}`;
},
});
Template.tablePage.events({
// A user cell: the same "Edit user" popup Admin Panel / People opens, from
// whichever table the avatar or initials were clicked in.
Loaded 100 of 1327 files, more files were not shown because too many files have changed in this diff. Show more