mirror of
https://github.com/wekan/wekan.git
synced 2026-12-03 06:59:41 -05:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7ba10de7ca | ||
|
|
529b56070c | ||
|
|
b901eabbe8 | ||
|
|
2c3c341a24 | ||
|
|
a7b9cb757d | ||
|
|
b85a1b4c3f | ||
|
|
669c999108 | ||
|
|
d4781f7109 | ||
|
|
ede3a6a465 | ||
|
|
2757420911 | ||
|
|
1ad00a9bf4 | ||
|
|
1650585dba | ||
|
|
eaabe86b91 | ||
|
|
e9b5d3b7bd | ||
|
|
d86f2be606 | ||
|
|
ec4b501fc1 | ||
|
|
b02cd66e94 | ||
|
|
8b72c4ad3e | ||
|
|
ffcb88bda2 | ||
|
|
410c90f2e1 | ||
|
|
f7d3e8b76f | ||
|
|
5ac5ebcab2 | ||
|
|
6a2e20d533 | ||
|
|
c557f3f4a7 | ||
|
|
a06ac78eed | ||
|
|
790e908c60 | ||
|
|
3d99f32903 | ||
|
|
48af3c2a6f | ||
|
|
69b84e5bf4 | ||
|
|
a6e34b542f | ||
|
|
07a252412d | ||
|
|
6103a408c1 | ||
|
|
bfa76c0336 | ||
|
|
f903383297 | ||
|
|
8811a8e859 | ||
|
|
53d10dc427 | ||
|
|
7269c2767f | ||
|
|
fb36e4af5f | ||
|
|
a2923a6591 | ||
|
|
3ca49dcbb2 | ||
|
|
0e844410a2 | ||
|
|
a854ce91dc | ||
|
|
ff42e16e37 | ||
|
|
a4cde50edc | ||
|
|
b5415e4d7d | ||
|
|
f0a11a9574 | ||
|
|
3ae484014c | ||
|
|
2a3ebcb9ff | ||
|
|
af7082e359 | ||
|
|
3f36b49079 | ||
|
|
b6ce696029 | ||
|
|
6eca89ae2f | ||
|
|
36179889f9 | ||
|
|
ea8836080d | ||
|
|
1fcdeeb60f | ||
|
|
e7a2a4a583 | ||
|
|
79d1706893 | ||
|
|
802493d76c | ||
|
|
9a09e792a9 | ||
|
|
96d8b7cf3f | ||
|
|
56ad2221a9 | ||
|
|
4c6bb7d36b | ||
|
|
e6db086827 | ||
|
|
9ce539e498 | ||
|
|
5a92400d37 | ||
|
|
fce538085b | ||
|
|
de92f4006f | ||
|
|
a918c65288 | ||
|
|
150f26e6af | ||
|
|
e2329da283 | ||
|
|
ddcd0339c5 | ||
|
|
38ad008f1d | ||
|
|
7b1a65c40a | ||
|
|
c1368dcdd3 | ||
|
|
90c0ec8736 | ||
|
|
8b6d287f66 | ||
|
|
caffa08a55 | ||
|
|
e241d30604 | ||
|
|
b80e496631 | ||
|
|
5561658ac2 | ||
|
|
92b0291bda | ||
|
|
240a87e9cf | ||
|
|
e7545fedda | ||
|
|
744b7fed03 | ||
|
|
ac3f424028 | ||
|
|
4b88117c6b | ||
|
|
06e17c935b | ||
|
|
3522c10d2b | ||
|
|
4d363b7227 | ||
|
|
cb83ff6a59 | ||
|
|
62ad32a076 | ||
|
|
a4710251ef | ||
|
|
02e2ead429 | ||
|
|
d7d31ee384 | ||
|
|
5aba3a283e | ||
|
|
635e9b2b20 | ||
|
|
eb72cca676 | ||
|
|
a166852f9d | ||
|
|
35db09442c | ||
|
|
eacfb642e9 | ||
|
|
57710d36ce | ||
|
|
f130d54eb4 | ||
|
|
39dbfae711 | ||
|
|
157e3d3d36 | ||
|
|
de8d471440 | ||
|
|
bdefa3f80b | ||
|
|
18390c8107 | ||
|
|
07a6d4e6a3 | ||
|
|
6c0d998e57 | ||
|
|
be23dda0c9 | ||
|
|
0082f3675b | ||
|
|
f550827b9e | ||
|
|
fb86cb1dc7 | ||
|
|
c031b819de | ||
|
|
abcaddc66c | ||
|
|
6969bc2d8f | ||
|
|
1fad064732 | ||
|
|
d140a37813 | ||
|
|
95cf88110c | ||
|
|
d078411947 | ||
|
|
c1c57a8d0a | ||
|
|
234a4442b0 | ||
|
|
6ecc6191aa | ||
|
|
e92d08b114 | ||
|
|
50121bdbcd | ||
|
|
e5f371ec61 | ||
|
|
e3250ff16d | ||
|
|
d9c19bebeb | ||
|
|
a17d39c67f | ||
|
|
4aa5bcc185 | ||
|
|
63247d0f18 | ||
|
|
167ba3beb4 | ||
|
|
80ecb7bee4 | ||
|
|
a1d6bfbf98 | ||
|
|
4144d159a4 | ||
|
|
c1452a5e97 | ||
|
|
e21c921dce | ||
|
|
ff79beec52 | ||
|
|
0576bfd364 | ||
|
|
5469498306 | ||
|
|
657685228d | ||
|
|
b658199017 | ||
|
|
c014afa5f9 | ||
|
|
ab68a65874 | ||
|
|
4ecc164692 | ||
|
|
77c2baca65 | ||
|
|
0f1daaf99d | ||
|
|
0134f3031f | ||
|
|
123dfbfb4d | ||
|
|
304d49c654 | ||
|
|
9c9ccca61b | ||
|
|
af55800134 | ||
|
|
5bb27abe7e | ||
|
|
4e3d56fe2a | ||
|
|
0e2c4d491e | ||
|
|
076291d11a | ||
|
|
71636df9cd | ||
|
|
db1d9b4416 | ||
|
|
aa9c9dc8ca | ||
|
|
fcbf0664c2 | ||
|
|
9f3ea4e131 | ||
|
|
0a305a1a06 | ||
|
|
8a1c65f79f | ||
|
|
cf3f64f3a7 | ||
|
|
4264c841d0 | ||
|
|
69f3e85d3b | ||
|
|
419f84dd0b | ||
|
|
679bb2adaa | ||
|
|
cdb7d678e7 | ||
|
|
cac28dc69c | ||
|
|
4d727c5bc3 | ||
|
|
5ebae77cd3 | ||
|
|
773c0d3b01 | ||
|
|
c686b4b720 | ||
|
|
b967d467f9 | ||
|
|
0e8a0cfd66 | ||
|
|
6812ddecc3 | ||
|
|
799302498c | ||
|
|
b92b230a00 | ||
|
|
311d6de48d | ||
|
|
e3b9bbf91d | ||
|
|
7776a7032d | ||
|
|
3f5bdc839b | ||
|
|
f8d2c41210 | ||
|
|
497f8864fb | ||
|
|
334536e61e | ||
|
|
16a6b02c70 | ||
|
|
0a6da9099e | ||
|
|
f74c35e846 | ||
|
|
a2afd6b54c | ||
|
|
41dee6e696 | ||
|
|
18cf5d233b | ||
|
|
1c9c95d648 | ||
|
|
6505f07eaa | ||
|
|
95fad4f883 | ||
|
|
6e1846a135 | ||
|
|
98fd23a926 | ||
|
|
759b2babfb | ||
|
|
5658e81ad4 | ||
|
|
6c05df084e | ||
|
|
4319105cb8 | ||
|
|
1fd98020f8 | ||
|
|
78d74341d7 | ||
|
|
4984897d22 | ||
|
|
fee91e9db5 | ||
|
|
c077f27366 | ||
|
|
713addf4a6 | ||
|
|
da9c970702 | ||
|
|
a7badd317c | ||
|
|
3041ab94e2 | ||
|
|
e0c1ba0a9f | ||
|
|
4aa70ae4e9 | ||
|
|
53e2acb31f | ||
|
|
01cccd24b0 | ||
|
|
e1cba70443 | ||
|
|
375ec9ac72 | ||
|
|
b9d99c4589 | ||
|
|
acd7259a56 | ||
|
|
0f9357a02c | ||
|
|
3009277371 | ||
|
|
daad33a169 | ||
|
|
61a87a80b3 | ||
|
|
15681c57b4 | ||
|
|
9c4f9542c0 | ||
|
|
2cfd89d3c8 | ||
|
|
d5834ae820 | ||
|
|
d7f3f14425 | ||
|
|
30eedce0ba | ||
|
|
fd4a043b9f | ||
|
|
cd0aaff233 | ||
|
|
15274549e2 | ||
|
|
1c3d756a1a | ||
|
|
e3e4b7416a | ||
|
|
18e68439db | ||
|
|
11e45c7bc8 | ||
|
|
ba76be11ad | ||
|
|
f68831b96c | ||
|
|
6155c22b38 | ||
|
|
4e43fe42b8 | ||
|
|
c319f45bf1 | ||
|
|
aaa6932987 | ||
|
|
ee848b4d3c | ||
|
|
55831ca749 | ||
|
|
0624242370 | ||
|
|
9380a71180 | ||
|
|
66fef46c3e | ||
|
|
b11bb436e2 | ||
|
|
42167fb4ac | ||
|
|
a9a1863df7 | ||
|
|
7caa1842b8 | ||
|
|
c37461a7b8 | ||
|
|
6bf9eaceb8 | ||
|
|
f7a4b0d203 | ||
|
|
7978b5575a | ||
|
|
7071f2208c | ||
|
|
daddcc58fc | ||
|
|
aad3d3cee2 | ||
|
|
8249b0a5db | ||
|
|
7d5c3db752 | ||
|
|
95adef1ac0 | ||
|
|
79c3d7440b | ||
|
|
4cf1696e88 | ||
|
|
2dee6aeac2 | ||
|
|
4b9d1d7281 | ||
|
|
35ac8755be | ||
|
|
4b7b5970a4 | ||
|
|
0353f3131f | ||
|
|
5a3dc85e19 | ||
|
|
5067c397c1 | ||
|
|
5db1378ef7 | ||
|
|
47976e4005 | ||
|
|
26ed90419f | ||
|
|
dea05a9680 | ||
|
|
6024c3529f | ||
|
|
8fe25ff52d | ||
|
|
4531f1e491 | ||
|
|
32bd202967 | ||
|
|
466833a2ff | ||
|
|
9713f0c7e3 | ||
|
|
202829a3e1 | ||
|
|
d22725aeaa | ||
|
|
93e83be807 | ||
|
|
7dd6ddbcef | ||
|
|
eaae7e6fac | ||
|
|
9dc0a92771 | ||
|
|
ada3f36b85 | ||
|
|
ce2fefdf12 | ||
|
|
fa51c0eb03 | ||
|
|
f79727b43f | ||
|
|
82c5693848 | ||
|
|
087a1e345d | ||
|
|
84b8f29d73 | ||
|
|
ad2e5b6392 | ||
|
|
d0ded8d95a | ||
|
|
784b270832 | ||
|
|
84009dc5e3 | ||
|
|
05fbecd54d | ||
|
|
af3b5478ab | ||
|
|
d6d45ec303 | ||
|
|
5e070865b2 | ||
|
|
1294885c33 | ||
|
|
d1be025e9a | ||
|
|
2991f66f4c | ||
|
|
de7c132d95 | ||
|
|
e05a0d0461 | ||
|
|
bd042cf7c9 | ||
|
|
1bae512ac3 | ||
|
|
8f9ffda2fd | ||
|
|
c75eedeb8b | ||
|
|
6c7de244ba | ||
|
|
5c00556c53 | ||
|
|
2e454ee9a5 | ||
|
|
8d3f8b4a1e | ||
|
|
68514e9bbf | ||
|
|
761a0fd2f3 | ||
|
|
0ac045dea0 | ||
|
|
afec9a196e | ||
|
|
11519795e0 | ||
|
|
40c82a6990 | ||
|
|
6eb3cde2bb | ||
|
|
f605964731 | ||
|
|
32605a5294 | ||
|
|
6fe7ac7dbc | ||
|
|
2bdae80dc2 | ||
|
|
3efa96385b | ||
|
|
94940de3ba | ||
|
|
907f81bc52 | ||
|
|
e4e098a3ce | ||
|
|
47bd72e96e | ||
|
|
9f6ac047d1 | ||
|
|
d65bbe7ca3 | ||
|
|
5230527e56 | ||
|
|
b5c6dec9c5 | ||
|
|
ab3eab190c | ||
|
|
77012fa68b | ||
|
|
0490227a3a | ||
|
|
d768b03a1c | ||
|
|
1668a6ef92 | ||
|
|
16e784fe92 | ||
|
|
1a1e3add86 | ||
|
|
20c90141d4 | ||
|
|
bf029363d9 | ||
|
|
a355e3b3b2 | ||
|
|
1ad0f6b1ec | ||
|
|
102cf74427 | ||
|
|
1bc748bfb6 | ||
|
|
dfb10098ce | ||
|
|
b79f2c78b0 | ||
|
|
85538b1267 | ||
|
|
5d778fd794 | ||
|
|
ef6a57e8b6 | ||
|
|
d28464321a | ||
|
|
45e7e90643 | ||
|
|
764cb2a458 | ||
|
|
1cf356f38e | ||
|
|
c6cd93f684 | ||
|
|
703f1365fb | ||
|
|
c412d82185 | ||
|
|
0bd07c2a1b | ||
|
|
c15f26943c | ||
|
|
d9302baefb | ||
|
|
683aaefd94 | ||
|
|
3601445fdc | ||
|
|
71ab1f733f | ||
|
|
8ba3c8b2c0 | ||
|
|
9db969a0cd | ||
|
|
fb53ff2b00 | ||
|
|
2487f03d88 | ||
|
|
d25057f95b | ||
|
|
72429f3c2c | ||
|
|
ccafdd2222 | ||
|
|
ddfb4f9285 | ||
|
|
bd4cd7a8e2 | ||
|
|
737d86d495 | ||
|
|
ebf1ae41d5 | ||
|
|
c70de04fcd | ||
|
|
7971846285 | ||
|
|
db71d8f4b6 | ||
|
|
34595d0f50 | ||
|
|
120ba0603f | ||
|
|
144e927d58 | ||
|
|
6dbd3b22b8 | ||
|
|
83dbb65113 | ||
|
|
a141f71d78 | ||
|
|
61d8ecebe9 | ||
|
|
95840ee6bc | ||
|
|
4777a989f5 | ||
|
|
9edd97eb59 | ||
|
|
32d70ed167 | ||
|
|
f024eb3542 | ||
|
|
ada3f88d64 | ||
|
|
4aaf9860c1 | ||
|
|
f4dca7fa8b | ||
|
|
e125295325 | ||
|
|
3ded7736ca | ||
|
|
177a648cef | ||
|
|
9093261ec0 | ||
|
|
8082c345a4 | ||
|
|
38d6ba562f | ||
|
|
e122b863d8 | ||
|
|
b1f730c881 | ||
|
|
2252998313 | ||
|
|
6400b6a6ba | ||
|
|
565ca87135 | ||
|
|
e2c78f34d7 | ||
|
|
88a1d0bf8e | ||
|
|
6ca7f67684 | ||
|
|
790b903ba8 | ||
|
|
4697cf7a5c | ||
|
|
717cc988ef | ||
|
|
80fdd54628 | ||
|
|
a1c438233b |
No files matched your search
@@ -21,7 +21,7 @@ jobs:
|
||||
persist-credentials: false
|
||||
|
||||
# The Dockerfile does not build WeKan from source — it DOWNLOADS the prebuilt
|
||||
# release zip (wekan-<VERSION>-amd64.zip) that release-all.yml publishes, and
|
||||
# release zip (wekan-<VERSION>-linux-x64-musl.zip) that release-all.yml publishes, and
|
||||
# `exit 8`s if it is missing. So this image can only be built once the release
|
||||
# for the version pinned in the Dockerfile is up. On a push during the release
|
||||
# window (the version was just bumped but the release job has not attached the
|
||||
@@ -37,19 +37,19 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
VERSION="$(sed -n 's/^ARG VERSION=//p' Dockerfile | head -1)"
|
||||
asset="wekan-${VERSION}-amd64.zip"
|
||||
asset="wekan-${VERSION}-linux-x64-musl.zip"
|
||||
# The list is read whole BEFORE matching. `gh … | grep -q` lets grep exit
|
||||
# at the first match while gh is still writing; gh gets SIGPIPE, pipefail
|
||||
# makes the pipeline fail, and a PUBLISHED asset was reported missing - the
|
||||
# v12.39 Mac apps were skipped that way, with the bundles already attached.
|
||||
assets="$(gh release view "v${VERSION}" --repo "${GITHUB_CTX_REPOSITORY}" \
|
||||
--json assets --jq '.assets[].name' 2>/dev/null || true)"
|
||||
if grep -qx "$asset" <<< "$assets"; then
|
||||
if grep -Fqx "$asset" <<< "$assets" && grep -Fqx "$asset.sha256sum" <<< "$assets"; then
|
||||
echo "build=yes" >> "$GITHUB_OUTPUT"
|
||||
echo "OK: $asset is on the v${VERSION} release; building the image."
|
||||
else
|
||||
echo "build=no" >> "$GITHUB_OUTPUT"
|
||||
echo "::notice::$asset is not on the v${VERSION} release yet - skipping. release-all.yml builds the image once the release is published."
|
||||
echo "::notice::$asset or its checksum is not on the v${VERSION} release yet - skipping. release-all.yml builds the image once the release is published."
|
||||
fi
|
||||
|
||||
- name: Build the Docker image
|
||||
|
||||
@@ -113,13 +113,16 @@ jobs:
|
||||
echo "skip=true" >> "$GITHUB_OUTPUT"; exit 0
|
||||
fi
|
||||
eval "$(printf '%s\n' "$out" | grep -E '^node_(url|sha256|kind)=')"
|
||||
[ "$node_kind" = tar.xz ] || { echo "::error::expected a tar.xz musl Node.js, got $node_kind"; exit 1; }
|
||||
bash releases/fetch.sh -o node-musl.tar.xz "$node_url"
|
||||
[ -n "$node_sha256" ] || { echo "::error::$node_url has no published SHA256."; exit 1; }
|
||||
echo "$node_sha256 node-musl.tar.xz" | sha256sum -c -
|
||||
mkdir -p musl-tools
|
||||
tar -xJf node-musl.tar.xz --strip-components=1 -C musl-tools
|
||||
rm -f node-musl.tar.xz
|
||||
bash releases/fetch.sh -o node-musl.download "$node_url"
|
||||
echo "$node_sha256 node-musl.download" | sha256sum -c -
|
||||
mkdir -p musl-tools/bin
|
||||
case "$node_kind" in
|
||||
tar.xz) tar -xJf node-musl.download --strip-components=1 -C musl-tools ;;
|
||||
binary) install -m 755 node-musl.download musl-tools/bin/node ;;
|
||||
*) echo "::error::unexpected musl Node.js asset kind $node_kind"; exit 1 ;;
|
||||
esac
|
||||
rm -f node-musl.download
|
||||
file musl-tools/bin/node bundle/ferretdb
|
||||
echo "version=$version" >> "$GITHUB_OUTPUT"
|
||||
|
||||
@@ -131,6 +134,7 @@ jobs:
|
||||
docker run --rm -v "$PWD:/work" -w /work -e ARCH \
|
||||
alpine:3.23 sh -ec '
|
||||
apk add --no-cache bash coreutils curl file python3 make g++ linux-headers binutils libstdc++ libgcc libatomic
|
||||
if [ ! -x musl-tools/bin/npm ]; then apk add --no-cache npm; fi
|
||||
bash releases/musl/build-bundle.sh "$ARCH"'
|
||||
|
||||
- name: Package
|
||||
|
||||
+1638
-1481
File diff suppressed because it is too large.
Load diff
+28
-22
@@ -5,6 +5,34 @@ each one changed and the project status are in
|
||||
Written by `node releases/changelog-short.mjs` from CHANGELOG-big.md:
|
||||
make changes there.
|
||||
|
||||
# v13.40 2026-12-02 WeKan ® release
|
||||
|
||||
Native **WeKan board imports** preserve required list fields
|
||||
and handle **Notion** and **Planka** synchronization metadata. Multiline
|
||||
board labels save correctly. **OpenProject** transfers preserve assignees and
|
||||
milestone dates and budgets. List Sync can write back compatible type
|
||||
changes and budget choices.
|
||||
**Jira** transfers retain description panels and API exports preserve inline
|
||||
formatting. List Sync can also read and update Jira start dates. The
|
||||
**Univention App Center** package starts with the shell-free WeKan image.
|
||||
|
||||
[All changes in v13.40](CHANGELOG-big.md#v1340-2026-12-02-wekan--release)
|
||||
|
||||
# v13.39 2026-12-02 WeKan ® release
|
||||
|
||||
The export menu sends selected WeKan cards to a chosen **Jira**
|
||||
project and issue type, including start and due dates, labels, dependencies and
|
||||
subtasks
|
||||
where Jira supports them. Direct **OpenProject** exports can preserve parent
|
||||
relationships and supported dependencies between exported cards. **Checkboxes**
|
||||
use the same style in Legal Pages, board settings, and other forms. **Planka**
|
||||
List Sync sends new checklists and tasks to Planka and synchronizes edits and
|
||||
deletions in both directions. The **REST API** can update several cards in one
|
||||
request while checking each card’s revision. Administrators can set a default
|
||||
board template per feature profile.
|
||||
|
||||
[All changes in v13.39](CHANGELOG-big.md#v1339-2026-12-02-wekan--release)
|
||||
|
||||
# v13.38 2026-12-02 WeKan ® release
|
||||
|
||||
**Jira**, **OpenProject**, **Redmine**, **Asana**, **ClickUp**
|
||||
@@ -35,25 +63,3 @@ Filtering a board by **yourself as assignee** now survives a page
|
||||
refresh, as filtering by anybody else already did.
|
||||
|
||||
[All changes in v13.36](CHANGELOG-big.md#v1336-2026-11-27-wekan--release)
|
||||
|
||||
# v13.35 2026-11-27 WeKan ® release
|
||||
|
||||
A **due date that is not due soon is grey** again, on the card
|
||||
and the minicard, instead of a yellow that looked almost like the amber of
|
||||
"due soon".
|
||||
|
||||
[All changes in v13.35](CHANGELOG-big.md#v1335-2026-11-27-wekan--release)
|
||||
|
||||
# v13.34 2026-11-26 WeKan ® release
|
||||
|
||||
The **Docker image runs on musl** for amd64 and arm64, on a root
|
||||
of Alpine packages only, without the glibc and GCC runtime that held every
|
||||
finding of its security scan. WeKan's default database runs on **FerretDB
|
||||
v1.116.0**, whose one static binary is also **mongosh, sh and bash, written in
|
||||
Go**, so `docker exec -it wekan-ferretdb mongosh wekan` works again. The
|
||||
**wekan-gantt-gpl** snap and Docker image are no longer published, and
|
||||
**wekan-ondra** users get one script that moves them to the wekan snap.
|
||||
**Minicards are compact again**, and a board sets its own **due date
|
||||
colours**.
|
||||
|
||||
[All changes in v13.34](CHANGELOG-big.md#v1334-2026-11-26-wekan--release)
|
||||
+1
-1
@@ -62,7 +62,7 @@ FROM --platform=$BUILDPLATFORM debian:trixie AS bundle
|
||||
|
||||
ARG TARGETARCH
|
||||
ARG TARGETVARIANT
|
||||
ARG VERSION=13.38
|
||||
ARG VERSION=13.40
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
COPY --chmod=755 releases/check-telemetry.py /tmp/check-telemetry.py
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
appId: wekan-public/apps/77b94f60-dec9-0136-304e-16ff53095928
|
||||
appVersion: "v13.38.0"
|
||||
appVersion: "v13.40.0"
|
||||
files:
|
||||
userUploads:
|
||||
- README.md
|
||||
|
||||
@@ -86,9 +86,11 @@ details; WeKan's are below.
|
||||
WeKan's Card Settings specs toggle them in desktop Chromium and pass; it
|
||||
needs the reporter's details to reproduce - which popup, whether as a board
|
||||
admin, and the browser console's error. The comment's spacing is fixed.)
|
||||
- Run the full Firefox and WebKit Playwright stages with the Docker backend
|
||||
on the host. Native Firefox and WebKit need their own browser sandboxes,
|
||||
which cannot start inside Flatpak.
|
||||
- Finish the full Firefox and WebKit Playwright verification with the Docker
|
||||
backend on the host. The Firefox run on 2026-12-02 reported 4,000 passed,
|
||||
15 failed and 224 skipped. The 15 failures passed targeted reruns after
|
||||
the relevant fixes. A full Firefox run on the updated checkout and the
|
||||
full WebKit results are still pending.
|
||||
|
||||
## Feature requests: Import, Export and Sync with other programs
|
||||
|
||||
@@ -104,21 +106,35 @@ Completed import, export and sync changes are recorded in the
|
||||
should drive the available operations and directions. The scoped file
|
||||
catalog now supplies import formats and export scope and extensions.
|
||||
List Sync and its settings share provider directions and API project
|
||||
lookup. Scoped import menus use all existing board API import providers.
|
||||
Direct API exports, new API providers and additional Sync targets
|
||||
still need to use the provider definitions.
|
||||
- **monday.com, Notion, Wrike, Taiga** and the other file-only providers
|
||||
still need API import and Sync using stable external task IDs. See
|
||||
lookup. Scoped API import and direct Jira and OpenProject export use the
|
||||
provider catalog. New API providers and additional Sync targets still
|
||||
need to use the shared definitions.
|
||||
- **Other file-only providers** still need API import and Sync using
|
||||
stable external task IDs. See
|
||||
[the API package review](docs/Features/Board-Sidebar/Board-Settings/Import-Export/Sync.md#api-packages-on-npm-checked-2026-11-28).
|
||||
- **Jira Cloud and Data Center** still need additional Markdown formatting
|
||||
in write-back and more writable fields. Planka still needs more writable
|
||||
fields.
|
||||
- **Notion** still needs durable resumption for bulk imports above the 256 MiB decoded
|
||||
or 64 MiB encoded server checkpoint budget, support for List Sync Markdown
|
||||
above 6 MiB per page and one-time imports above 7 MiB.
|
||||
- **Jira Cloud and Data Center** still need additional rich formatting
|
||||
in write-back, including other Jira Cloud document structures and Data Center
|
||||
macro combinations. More writable
|
||||
fields in List Sync also remain open.
|
||||
- **More Jira project records**: recover historical commitments that cannot be reconstructed from imported issues,
|
||||
and preserve other project-wide records.
|
||||
- **Export to the service**: the OpenProject export menu creates work
|
||||
packages with their title, optional description, start date and due date. Support more fields
|
||||
and relationships and implement direct Jira issue creation from a WeKan
|
||||
board, swimlane, list or card.
|
||||
packages with their title, optional description, start and due dates,
|
||||
writable work estimates and progress, parent relationships, and supported
|
||||
dependencies between selected cards. The export can also match one card
|
||||
assignee to an eligible destination user. Responsible and other person
|
||||
fields remain open.
|
||||
The Jira export menu creates issues with a title, optional description,
|
||||
due dates, supported start dates, labels, matching priorities and versions, Jira component assignments,
|
||||
and mapped time estimates in the
|
||||
selected project and issue type.
|
||||
It creates supported dependency links and exports first-level children
|
||||
using the selected Jira subtask type. Support more fields in both services.
|
||||
Verify the Jira Cloud hierarchy export against a live project with levels
|
||||
above Epic.
|
||||
- **Sync more than a list**: add swimlane and single-card Sync targets,
|
||||
each with Sync Settings and History in its own menu. Support additional
|
||||
custom fields and people mappings.
|
||||
|
||||
@@ -18,6 +18,8 @@ syntax = """=== Wekan API Python CLI: Shows IDs for addcard ===
|
||||
# AUTHORID is USERID that writes card or custom field.
|
||||
If *nix: chmod +x api.py => ./api.py users
|
||||
Syntax:
|
||||
python3 api.py request METHOD /PATH [OPTIONS] # Call any WeKan HTTP API route
|
||||
python3 api.py request --help # Request options
|
||||
User API:
|
||||
python3 api.py user # Current user and list of current user boards
|
||||
python3 api.py users # All users
|
||||
@@ -29,8 +31,9 @@ If *nix: chmod +x api.py => ./api.py users
|
||||
python3 api.py swimlanes BOARDID # Swimlanes of BOARDID
|
||||
python3 api.py lists BOARDID # Lists of BOARDID
|
||||
python3 api.py list BOARDID LISTID # Info of LISTID
|
||||
python3 api.py createlist BOARDID LISTTITLE # Create list
|
||||
python3 api.py createlist BOARDID LISTTITLE [SWIMLANEID] # Omit for default swimlane or pass '' to share across swimlanes
|
||||
python3 api.py editlist BOARDID LISTID NEWLISTTITLE # Edit list title
|
||||
python3 api.py editlistswimlane BOARDID LISTID SWIMLANEID # Pass '' to share across swimlanes
|
||||
python3 api.py editlistcolor BOARDID LISTID COLOR (Color available: `white`, `green`, `yellow`, `orange`, `red`, `purple`, `blue`, `sky`, `lime`, `pink`, `black`, `silver`, `peachpuff`, `crimson`, `plum`, `darkgreen`, `slateblue`, `magenta`, `gold`, `navy`, `gray`, `saddlebrown`, `paleturquoise`, `mistyrose`, `indigo`) # Edit list color
|
||||
python3 api.py addcard AUTHORID BOARDID SWIMLANEID LISTID CARDTITLE CARDDESCRIPTION
|
||||
python3 api.py editcard BOARDID LISTID CARDID NEWCARDTITLE NEWCARDDESCRIPTION
|
||||
@@ -154,6 +157,137 @@ If *nix: chmod +x api.py => ./api.py users
|
||||
python3 api.py editallteamfeature FIELD true|false # Set one team feature on ALL teams
|
||||
"""
|
||||
|
||||
def request_with_revision(method, url, resource_url, headers, **options):
|
||||
current = requests.get(resource_url, headers=headers)
|
||||
current.raise_for_status()
|
||||
revision = current.headers.get('ETag')
|
||||
if not revision:
|
||||
raise RuntimeError('The resource response did not include a revision (ETag)')
|
||||
response = requests.request(method, url, headers={**headers, 'If-Match': revision}, **options)
|
||||
response.raise_for_status()
|
||||
return response
|
||||
|
||||
|
||||
def put_with_revision(url, resource_url, headers, **options):
|
||||
return request_with_revision('PUT', url, resource_url, headers, **options)
|
||||
|
||||
|
||||
def run_api_request(argv, default_url, default_username, default_password):
|
||||
import argparse
|
||||
import os
|
||||
from contextlib import ExitStack
|
||||
from urllib.parse import urlsplit
|
||||
|
||||
parser = argparse.ArgumentParser(prog='api.py request')
|
||||
parser.add_argument('method', help='HTTP method, such as GET, POST, PUT, PATCH or DELETE')
|
||||
parser.add_argument('path', help='Path on the WeKan server, including any query string')
|
||||
parser.add_argument('--url', default=os.environ.get('WEKAN_URL', default_url), help='WeKan base URL')
|
||||
parser.add_argument('--no-auth', action='store_true', help='Skip automatic authentication')
|
||||
parser.add_argument('-H', '--header', action='append', default=[], metavar='NAME: VALUE')
|
||||
parser.add_argument('--revision-from', metavar='PATH', help='Read an ETag from this path and send it as If-Match')
|
||||
body = parser.add_mutually_exclusive_group()
|
||||
body.add_argument('--json', metavar='JSON')
|
||||
body.add_argument('--json-file', metavar='PATH', help='Send a JSON file, or - for stdin')
|
||||
body.add_argument('--data-file', metavar='PATH', help='Send raw bytes from a file, or - for stdin')
|
||||
parser.add_argument('--form', action='append', default=[], metavar='NAME=VALUE')
|
||||
parser.add_argument('--file', action='append', default=[], metavar='NAME=PATH', help='Upload a multipart file')
|
||||
parser.add_argument('-o', '--output', metavar='PATH', help='Save the successful response body to a file')
|
||||
parser.add_argument('--show-headers', action='store_true', help='Print response status and headers to stderr')
|
||||
args = parser.parse_args(argv)
|
||||
|
||||
base = args.url.rstrip('/')
|
||||
origin = urlsplit(base)
|
||||
if origin.scheme not in ('http', 'https') or not origin.hostname or origin.username is not None or origin.query or origin.fragment:
|
||||
parser.error('WeKan URL must be an HTTP(S) base URL without credentials, a query, or a fragment')
|
||||
|
||||
def endpoint(path):
|
||||
if not path.startswith('/') or path.startswith('//') or '\\' in path or '#' in path or any(ord(c) < 32 for c in path):
|
||||
parser.error('paths must start with one slash and point to the WeKan server')
|
||||
return base + path
|
||||
|
||||
url = endpoint(args.path)
|
||||
revision_url = endpoint(args.revision_from) if args.revision_from else None
|
||||
headers = requests.structures.CaseInsensitiveDict()
|
||||
for header in args.header:
|
||||
name, separator, value = header.partition(':')
|
||||
if not separator or not name.strip():
|
||||
parser.error('--header requires NAME: VALUE')
|
||||
headers[name.strip()] = value.strip()
|
||||
if revision_url and 'If-Match' in headers:
|
||||
parser.error('use either --revision-from or an explicit If-Match header')
|
||||
if (args.form or args.file) and any(value is not None for value in (args.json, args.json_file, args.data_file)):
|
||||
parser.error('form and file uploads cannot be combined with a JSON or raw body')
|
||||
|
||||
def fields(items):
|
||||
result = []
|
||||
for item in items:
|
||||
key, separator, value = item.partition('=')
|
||||
if not key or not separator:
|
||||
parser.error('form fields and file parts require NAME=VALUE')
|
||||
result.append((key, value))
|
||||
return result
|
||||
|
||||
try:
|
||||
with ExitStack() as stack:
|
||||
session = stack.enter_context(requests.Session())
|
||||
form = fields(args.form)
|
||||
files = [(name, stack.enter_context(open(path, 'rb'))) for name, path in fields(args.file)]
|
||||
options = {}
|
||||
if args.json is not None:
|
||||
options['data'] = json.dumps(json.loads(args.json)).encode('utf-8')
|
||||
headers.setdefault('Content-Type', 'application/json')
|
||||
elif args.json_file is not None:
|
||||
source = sys.stdin if args.json_file == '-' else stack.enter_context(open(args.json_file, encoding='utf-8'))
|
||||
options['data'] = json.dumps(json.load(source)).encode('utf-8')
|
||||
headers.setdefault('Content-Type', 'application/json')
|
||||
elif args.data_file is not None:
|
||||
options['data'] = sys.stdin.buffer if args.data_file == '-' else stack.enter_context(open(args.data_file, 'rb'))
|
||||
elif form or files:
|
||||
options.update(data=form, files=files)
|
||||
|
||||
if 'Authorization' not in headers and not args.no_auth:
|
||||
token = os.environ.get('WEKAN_API_TOKEN')
|
||||
if not token:
|
||||
with session.post(base + '/users/login', json={
|
||||
'username': os.environ.get('WEKAN_USERNAME', default_username),
|
||||
'password': os.environ.get('WEKAN_PASSWORD', default_password),
|
||||
}, allow_redirects=False, timeout=30) as login:
|
||||
if not 200 <= login.status_code < 300:
|
||||
raise ValueError(f'WeKan login failed with HTTP {login.status_code}')
|
||||
token = login.json().get('token')
|
||||
if not token:
|
||||
raise ValueError('WeKan login did not return a token')
|
||||
headers['Authorization'] = 'Bearer ' + token
|
||||
|
||||
if revision_url:
|
||||
revision_headers = {name: value for name, value in headers.items()
|
||||
if name.lower() not in ('content-type', 'content-length')}
|
||||
with session.get(revision_url, headers=revision_headers, allow_redirects=False, timeout=30) as current:
|
||||
if not 200 <= current.status_code < 300:
|
||||
raise ValueError(f'Revision read failed with HTTP {current.status_code}')
|
||||
if 'ETag' not in current.headers:
|
||||
raise ValueError('The revision response did not include an ETag')
|
||||
headers['If-Match'] = current.headers['ETag']
|
||||
|
||||
with session.request(args.method.upper(), url, headers=headers, stream=True,
|
||||
allow_redirects=False, timeout=30, **options) as response:
|
||||
if args.show_headers:
|
||||
print(f'HTTP {response.status_code}', file=sys.stderr)
|
||||
for name, value in response.headers.items():
|
||||
print(f'{name}: {value}', file=sys.stderr)
|
||||
successful = 200 <= response.status_code < 300
|
||||
target = stack.enter_context(open(args.output, 'wb')) if successful and args.output else sys.stdout.buffer
|
||||
if not successful:
|
||||
print(f'WeKan request returned HTTP {response.status_code}', file=sys.stderr)
|
||||
target = sys.stderr.buffer
|
||||
for chunk in response.iter_content(chunk_size=65536):
|
||||
target.write(chunk)
|
||||
return 0 if successful else 1
|
||||
except (OSError, ValueError, requests.RequestException) as error:
|
||||
print(f'WeKan request failed: {error}', file=sys.stderr)
|
||||
return 1
|
||||
|
||||
|
||||
if arguments == 0:
|
||||
print(syntax)
|
||||
sys.exit()
|
||||
@@ -175,6 +309,9 @@ password = 'testtest'
|
||||
|
||||
wekanurl = 'http://localhost:4000/'
|
||||
|
||||
if sys.argv[1] == 'request':
|
||||
sys.exit(run_api_request(sys.argv[2:], wekanurl, username, password))
|
||||
|
||||
# ------- SETTINGS END -------------
|
||||
|
||||
"""
|
||||
@@ -217,6 +354,11 @@ python3 api.py createlist dYZ 'Test'
|
||||
|
||||
{"_id":"7Kp"}
|
||||
|
||||
# Create a shared list, share an existing list, or bind it to a swimlane:
|
||||
python3 api.py createlist dYZ 'Shared tasks' ''
|
||||
python3 api.py editlistswimlane dYZ 7Kp ''
|
||||
python3 api.py editlistswimlane dYZ 7Kp Jiv
|
||||
|
||||
# python3 api.py addcard AUTHORID BOARDID SWIMLANEID LISTID CARDTITLE CARDDESCRIPTION
|
||||
|
||||
python3 api.py addcard ppg dYZ Jiv 7Kp 'Test card' 'Test description'
|
||||
@@ -322,7 +464,7 @@ if arguments == 8:
|
||||
if new_card_id:
|
||||
edcard = wekanurl + apiboards + boardid + s + l + s + listid + s + cs + s + new_card_id
|
||||
put_data = {'labelIds': labelIds}
|
||||
requests.put(edcard, data=put_data, headers=headers)
|
||||
put_with_revision(edcard, wekanurl + '/api/cards/' + cardid, headers, data=put_data)
|
||||
print("=== EDIT CARD ===\n")
|
||||
body = requests.get(edcard, headers=headers)
|
||||
data2 = body.text.replace('}', "}\n")
|
||||
@@ -365,7 +507,7 @@ if arguments == 6:
|
||||
print(edcard)
|
||||
headers = {'Accept': 'application/json', 'Authorization': 'Bearer {}'.format(apikey)}
|
||||
put_data = {'title': '{}'.format(newcardtitle), 'description': '{}'.format(newcarddescription)}
|
||||
requests.put(edcard, data=put_data, headers=headers)
|
||||
put_with_revision(edcard, wekanurl + '/api/cards/' + cardid, headers, data=put_data)
|
||||
print("=== EDIT CARD ===\n")
|
||||
body = requests.get(edcard, headers=headers)
|
||||
data2 = body.text.replace('}',"}\n")
|
||||
@@ -385,7 +527,7 @@ if arguments == 6:
|
||||
headers = {'Accept': 'application/json', 'Authorization': 'Bearer {}'.format(apikey)}
|
||||
post_data = {'_id': '{}'.format(customfieldid), 'value': '{}'.format(newcustomfieldvalue)}
|
||||
#print(post_data)
|
||||
body = requests.post(edfield, data=post_data, headers=headers)
|
||||
body = request_with_revision('POST', edfield, wekanurl + '/api/cards/' + cardid, headers, data=post_data)
|
||||
print("=== EDIT CUSTOMFIELD ===\n")
|
||||
data2 = body.text.replace('}',"}\n")
|
||||
print(data2)
|
||||
@@ -404,7 +546,7 @@ if arguments == 5:
|
||||
print(edcard)
|
||||
headers = {'Accept': 'application/json', 'Authorization': 'Bearer {}'.format(apikey)}
|
||||
put_data = {'labelIds': labelIds}
|
||||
requests.put(edcard, data=put_data, headers=headers)
|
||||
put_with_revision(edcard, wekanurl + '/api/cards/' + cardid, headers, data=put_data)
|
||||
print("=== ADD LABEL ===\n")
|
||||
body = requests.get(edcard, headers=headers)
|
||||
data2 = body.text.replace('}',"}\n")
|
||||
@@ -430,7 +572,7 @@ if arguments == 5:
|
||||
print(edcard)
|
||||
headers = {'Accept': 'application/json', 'Authorization': 'Bearer {}'.format(apikey)}
|
||||
put_data = {'color': '{}'.format(newcolor)}
|
||||
requests.put(edcard, data=put_data, headers=headers)
|
||||
put_with_revision(edcard, wekanurl + '/api/cards/' + cardid, headers, data=put_data)
|
||||
print("=== EDIT CARD COLOR ===\n")
|
||||
body = requests.get(edcard, headers=headers)
|
||||
data2 = body.text.replace('}', "}\n")
|
||||
@@ -449,13 +591,20 @@ if arguments >= 4:
|
||||
print(edlist)
|
||||
headers = {'Accept': 'application/json', 'Authorization': 'Bearer {}'.format(apikey)}
|
||||
put_data = {'title': '{}'.format(newlisttitle)}
|
||||
requests.put(edlist, data=put_data, headers=headers)
|
||||
put_with_revision(edlist, edlist, headers, data=put_data)
|
||||
print("=== EDIT LIST ===\n")
|
||||
body = requests.get(edlist, headers=headers)
|
||||
data2 = body.text.replace('}', "}\n")
|
||||
print(data2)
|
||||
# ------- EDIT LIST END -----------
|
||||
|
||||
if sys.argv[1] == 'editlistswimlane':
|
||||
boardid, listid, swimlaneid = sys.argv[2:5]
|
||||
url = wekanurl + apiboards + boardid + s + l + s + listid
|
||||
headers = {'Accept': 'application/json', 'Authorization': 'Bearer {}'.format(apikey)}
|
||||
response = put_with_revision(url, url, headers, json={'swimlaneId': swimlaneid})
|
||||
print(response.text)
|
||||
|
||||
if sys.argv[1] == 'editlistcolor':
|
||||
|
||||
# ------- EDIT LIST COLOR START -----------
|
||||
@@ -475,7 +624,7 @@ if arguments >= 4:
|
||||
print(edlist)
|
||||
headers = {'Accept': 'application/json', 'Authorization': 'Bearer {}'.format(apikey)}
|
||||
put_data = {'color': '{}'.format(newcolor)}
|
||||
requests.put(edlist, data=put_data, headers=headers)
|
||||
put_with_revision(edlist, edlist, headers, data=put_data)
|
||||
print("=== EDIT LIST COLOR ===\n")
|
||||
body = requests.get(edlist, headers=headers)
|
||||
data2 = body.text.replace('}', "}\n")
|
||||
@@ -593,6 +742,22 @@ if arguments >= 4:
|
||||
print("Checklist Info:")
|
||||
print(checklist_info)
|
||||
|
||||
if arguments in (3, 4) and sys.argv[1] == 'createlist':
|
||||
|
||||
# ------- CREATE LIST START -----------
|
||||
boardid = sys.argv[2]
|
||||
listtitle = sys.argv[3]
|
||||
list = wekanurl + apiboards + boardid + s + l
|
||||
headers = {'Accept': 'application/json', 'Authorization': 'Bearer {}'.format(apikey)}
|
||||
post_data = {'title': '{}'.format(listtitle)}
|
||||
if arguments >= 4:
|
||||
post_data['swimlaneId'] = sys.argv[4]
|
||||
body = requests.post(list, json=post_data, headers=headers)
|
||||
body.raise_for_status()
|
||||
print("=== CREATE LIST ===\n")
|
||||
print(body.text)
|
||||
# ------- CREATE LIST END -----------
|
||||
|
||||
if arguments == 3:
|
||||
|
||||
if sys.argv[1] == 'editboardtitle':
|
||||
@@ -606,7 +771,7 @@ if arguments == 3:
|
||||
|
||||
post_data = {'title': boardtitle}
|
||||
|
||||
body = requests.put(edboardtitle, json=post_data, headers=headers)
|
||||
body = put_with_revision(edboardtitle, wekanurl + apiboards + boardid, headers, json=post_data)
|
||||
print("=== EDIT BOARD TITLE ===\n")
|
||||
#body = requests.get(edboardtitle, headers=headers)
|
||||
data2 = body.text.replace('}',"}\n")
|
||||
@@ -643,19 +808,6 @@ if arguments == 3:
|
||||
|
||||
# ------- COPY BOARD END -----------
|
||||
|
||||
if sys.argv[1] == 'createlist':
|
||||
|
||||
# ------- CREATE LIST START -----------
|
||||
boardid = sys.argv[2]
|
||||
listtitle = sys.argv[3]
|
||||
list = wekanurl + apiboards + boardid + s + l
|
||||
headers = {'Accept': 'application/json', 'Authorization': 'Bearer {}'.format(apikey)}
|
||||
post_data = {'title': '{}'.format(listtitle)}
|
||||
body = requests.post(list, data=post_data, headers=headers)
|
||||
print("=== CREATE LIST ===\n")
|
||||
print(body.text)
|
||||
# ------- CREATE LIST END -----------
|
||||
|
||||
if sys.argv[1] == 'list':
|
||||
|
||||
# ------- LIST OF BOARD START -----------
|
||||
@@ -1417,7 +1569,7 @@ if arguments >= 1:
|
||||
headers = {'Accept': 'application/json', 'Authorization': 'Bearer {}'.format(apikey), 'Content-Type': 'application/json'}
|
||||
# Empty array clears the field; send as JSON so the array type is preserved.
|
||||
put_data = {field: ids if ids else []}
|
||||
body = requests.put(edcard, json=put_data, headers=headers)
|
||||
body = put_with_revision(edcard, wekanurl + '/api/cards/' + cardid, headers, json=put_data)
|
||||
print("=== SET CARD {} ===\n".format(field.upper()))
|
||||
print(body.text)
|
||||
# ------- SET CARD MEMBERS / ASSIGNEES END -----------
|
||||
@@ -1446,7 +1598,7 @@ if arguments >= 1:
|
||||
edcard = wekanurl + apiboards + boardid + s + l + s + listid + s + cs + s + cardid
|
||||
headers = {'Accept': 'application/json', 'Authorization': 'Bearer {}'.format(apikey)}
|
||||
put_data = {datemap[datetype]: datevalue}
|
||||
requests.put(edcard, data=put_data, headers=headers)
|
||||
put_with_revision(edcard, wekanurl + '/api/cards/' + cardid, headers, data=put_data)
|
||||
print("=== SET CARD DATE {} ===\n".format(datetype.upper()))
|
||||
print(body.text)
|
||||
# ------- SET CARD DATE END -----------
|
||||
@@ -1467,7 +1619,7 @@ if arguments >= 1:
|
||||
# NOTE: this REPLACES the card's labels. Bulk add/remove (merge) is not yet
|
||||
# implemented server-side, see Issue #5819 in CHANGELOG-big.md "Upcoming".
|
||||
put_data = {'labelIds': labelids if labelids else []}
|
||||
body = requests.put(edcard, json=put_data, headers=headers)
|
||||
body = put_with_revision(edcard, wekanurl + '/api/cards/' + cardid, headers, json=put_data)
|
||||
print("=== SET CARD LABELS ===\n")
|
||||
print(body.text)
|
||||
# ------- SET CARD LABELS END -----------
|
||||
@@ -1490,7 +1642,7 @@ if arguments >= 1:
|
||||
'newSwimlaneId': newswimlaneid,
|
||||
'newListId': newlistid,
|
||||
}
|
||||
requests.put(edcard, data=put_data, headers=headers)
|
||||
put_with_revision(edcard, wekanurl + '/api/cards/' + cardid, headers, data=put_data)
|
||||
print("=== MOVE CARD ===\n")
|
||||
print(body.text)
|
||||
# ------- MOVE CARD END -----------
|
||||
@@ -1888,7 +2040,7 @@ if arguments >= 5 and sys.argv[1] == 'setcardcomplete':
|
||||
dueComplete = sys.argv[5]
|
||||
url = wekanurl + apiboards + boardid + s + l + s + listid + s + cs + s + cardid
|
||||
headers = {'Accept': 'application/json', 'Authorization': 'Bearer {}'.format(apikey), 'Content-Type': 'application/json'}
|
||||
body = requests.put(url, json={'dueComplete': dueComplete}, headers=headers)
|
||||
body = put_with_revision(url, wekanurl + '/api/cards/' + cardid, headers, json={'dueComplete': dueComplete})
|
||||
print(body.text)
|
||||
|
||||
if arguments >= 5 and sys.argv[1] == 'setcardstickers':
|
||||
@@ -1898,7 +2050,7 @@ if arguments >= 5 and sys.argv[1] == 'setcardstickers':
|
||||
stickers = json.loads(sys.argv[5])
|
||||
url = wekanurl + apiboards + boardid + s + l + s + listid + s + cs + s + cardid
|
||||
headers = {'Accept': 'application/json', 'Authorization': 'Bearer {}'.format(apikey), 'Content-Type': 'application/json'}
|
||||
body = requests.put(url, json={'stickers': stickers}, headers=headers)
|
||||
body = put_with_revision(url, wekanurl + '/api/cards/' + cardid, headers, json={'stickers': stickers})
|
||||
print(body.text)
|
||||
|
||||
if arguments >= 5 and sys.argv[1] == 'setcardlocations':
|
||||
@@ -1908,7 +2060,7 @@ if arguments >= 5 and sys.argv[1] == 'setcardlocations':
|
||||
locations = json.loads(sys.argv[5])
|
||||
url = wekanurl + apiboards + boardid + s + l + s + listid + s + cs + s + cardid
|
||||
headers = {'Accept': 'application/json', 'Authorization': 'Bearer {}'.format(apikey), 'Content-Type': 'application/json'}
|
||||
body = requests.put(url, json={'locations': locations}, headers=headers)
|
||||
body = put_with_revision(url, wekanurl + '/api/cards/' + cardid, headers, json={'locations': locations})
|
||||
print(body.text)
|
||||
|
||||
# ------- CARD STICKERS / LOCATIONS / COMPLETE END -----------
|
||||
|
||||
@@ -1201,9 +1201,12 @@ function start_spec_test_server(){
|
||||
local writable="$WEKAN_DIR/.tools/test-writable"
|
||||
mkdir -p "$writable/files"
|
||||
export WEKAN_FILES_PATH="$writable/files" WEKAN_FILES_PATH_HOST="$writable/files"
|
||||
# The email specs own a local SMTP listener on this port.
|
||||
export WEKAN_TEST_SMTP_PORT="${WEKAN_TEST_SMTP_PORT:-2525}"
|
||||
echo "==> Starting the WeKan test server on http://localhost:3000 (log: $logdir/wekan-test-server.log)."
|
||||
MONGO_URL="$WEKAN_MONGO_URL" ROOT_URL="http://localhost:3000" PORT=3000 \
|
||||
WRITABLE_PATH="$writable" WITH_API=true \
|
||||
WRITABLE_PATH="$writable" WITH_API=true BROWSER_POLICY_ENABLED=true \
|
||||
MAIL_URL="smtp://127.0.0.1:$WEKAN_TEST_SMTP_PORT" EMAIL_NOTIFICATION_TIMEOUT=100 \
|
||||
LIST_SYNC_ALLOWED_PRIVATE_HOSTS="${LIST_SYNC_ALLOWED_PRIVATE_HOSTS:-127.0.0.1}" \
|
||||
API_IMPORT_ALLOWED_PRIVATE_HOSTS="${API_IMPORT_ALLOWED_PRIVATE_HOSTS:-127.0.0.1}" \
|
||||
DEFAULT_METEOR_REACTIVITY_ORDER="changeStreams,oplog,polling" \
|
||||
@@ -1262,6 +1265,7 @@ function run_playwright_spec(){
|
||||
fi
|
||||
local args=("$spec")
|
||||
[ -n "$grep" ] && args+=(--grep "$grep")
|
||||
local WEKAN_TEST_SMTP_PORT="${WEKAN_TEST_SMTP_PORT:-}"
|
||||
local logdir
|
||||
logdir="$(log_directory test-playwright-spec)" || return $?
|
||||
mkdir -p "$logdir"; logdir="$(cd "$logdir" && pwd)"
|
||||
@@ -3408,7 +3412,7 @@ for _once in 1; do
|
||||
#---------------------------------------------------------------------
|
||||
# Logging of terminal output to console and to .tools/log/wekan-log.log at end of this line: 2>&1 | tee "$(one_log dev-server)"
|
||||
#WARN_WHEN_USING_OLD_API=true NODE_OPTIONS="--trace-warnings"
|
||||
DEFAULT_METEOR_REACTIVITY_ORDER="changeStreams,oplog,polling" DDP_TRANSPORT=sockjs DEBUG="${DEBUG:-false}" WRITABLE_PATH=.. WITH_API=true ROOT_URL=http://localhost:3000 "${DEV_COMMAND[@]}" --port 3000 2>&1 | tee "$(one_log dev-server)"
|
||||
DEFAULT_METEOR_REACTIVITY_ORDER="changeStreams,oplog,polling" DDP_TRANSPORT=sockjs DEBUG="${DEBUG:-false}" WRITABLE_PATH=.. WITH_API=true BROWSER_POLICY_ENABLED="${BROWSER_POLICY_ENABLED:-true}" ROOT_URL=http://localhost:3000 "${DEV_COMMAND[@]}" --port 3000 2>&1 | tee "$(one_log dev-server)"
|
||||
#---------------------------------------------------------------------
|
||||
break
|
||||
;;
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
.comment-editor-hint {
|
||||
margin-block-end: 4px;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.new-comment {
|
||||
position: relative;
|
||||
/* #6805: the room for the avatar is on the side the avatar is drawn - the
|
||||
|
||||
@@ -15,7 +15,9 @@ template(name="commentForm")
|
||||
a.js-cancel-reply(title="{{_ 'close' }}")
|
||||
i.fa.fa-times-thin
|
||||
form.js-new-comment-form
|
||||
+editor(class="js-new-comment-input" labelKey="comment")
|
||||
with commentEditorHint
|
||||
.comment-editor-hint#comment-editor-hint-text(dir="auto")= this
|
||||
+editor(class="js-new-comment-input" labelKey="comment" describedBy=commentEditorHintId)
|
||||
| {{getUnsavedValue 'cardComment' currentCard._id}}
|
||||
.add-controls
|
||||
button.primary.confirm.clear.js-add-comment(type="submit") {{_ 'comment'}}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { TAPi18n } from '/imports/i18n';
|
||||
import { isSubmitKey } from '/models/lib/editorSubmitKey';
|
||||
import { ReactiveCache } from '/imports/reactiveCache';
|
||||
import CardComments, { canEditComment, resolveParentId } from '/models/cardComments';
|
||||
@@ -70,7 +71,18 @@ Template.commentForm.onDestroyed(function () {
|
||||
commentFormIsOpen.set(false);
|
||||
});
|
||||
|
||||
function activeCommentEditorHint() {
|
||||
const hints = ReactiveCache.getCurrentSetting()?.commentEditorHints;
|
||||
const language = TAPi18n.getLanguage() || 'en';
|
||||
return hints?.[language] || hints?.[language.split(/[-_]/)[0]] || hints?.default;
|
||||
}
|
||||
|
||||
Template.commentForm.helpers({
|
||||
commentEditorHintId() {
|
||||
return activeCommentEditorHint() ? 'comment-editor-hint-text' : undefined;
|
||||
},
|
||||
commentEditorHint: activeCommentEditorHint,
|
||||
|
||||
commentFormIsOpen() {
|
||||
return commentFormIsOpen.get();
|
||||
},
|
||||
|
||||
@@ -577,12 +577,12 @@ Template.boardBody.onRendered(function () {
|
||||
style.id = 'wekan-accessible-focus-style';
|
||||
style.innerHTML = `
|
||||
/* Focus indicator */
|
||||
button:focus, [role="button"]:focus, a:focus, input:focus, select:focus, textarea:focus, .dropdown-menu:focus, .js-board-view-swimlanes:focus, .js-add-card:focus {
|
||||
button:focus, [role="button"]:focus, a:focus, input:not([type="checkbox"]):focus, select:focus, textarea:focus, .dropdown-menu:focus, .js-board-view-swimlanes:focus, .js-add-card:focus {
|
||||
outline: 3px solid #005fcc !important;
|
||||
outline-offset: 2px !important;
|
||||
}
|
||||
/* Input borders */
|
||||
input, textarea, select {
|
||||
input:not([type="checkbox"]), textarea, select {
|
||||
border: 2px solid #222 !important;
|
||||
}
|
||||
/* Plus icon for adding a new card */
|
||||
|
||||
@@ -1424,10 +1424,10 @@ THEME - Apple Glass Pastel
|
||||
.board-color-appleglasspastel input.primary,
|
||||
.board-color-appleglasspastel .sidebar .sidebar-content .sidebar-btn,
|
||||
.board-color-appleglasspastel .selected-calendar-picker button.primary {
|
||||
/* Tinted glass: the blue with a highlight across its upper half. */
|
||||
/* Keep white text readable across the glass highlight. */
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 55%),
|
||||
#2563eb;
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0) 55%),
|
||||
#1e40af;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
box-shadow:
|
||||
@@ -1442,10 +1442,20 @@ THEME - Apple Glass Pastel
|
||||
.board-color-appleglasspastel button.primary:hover,
|
||||
.board-color-appleglasspastel input.primary:hover,
|
||||
.board-color-appleglasspastel .selected-calendar-picker button.primary:hover {
|
||||
background: #1d4ed8;
|
||||
background: #1e3a8a;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.board-color-appleglasspastel .card-details button.js-reminder-date.add-label {
|
||||
background: #dbeafe;
|
||||
}
|
||||
.board-color-appleglasspastel .card-details button.js-reminder-date.add-label:hover {
|
||||
background: #bfdbfe;
|
||||
}
|
||||
.board-color-appleglasspastel .card-details button.js-reminder-date.add-label .fa {
|
||||
color: #1e3a8a;
|
||||
}
|
||||
|
||||
.board-color-appleglasspastel input[type="email"],
|
||||
.board-color-appleglasspastel input[type="password"],
|
||||
.board-color-appleglasspastel input[type="text"],
|
||||
@@ -1457,7 +1467,7 @@ THEME - Apple Glass Pastel
|
||||
color: #111827;
|
||||
}
|
||||
|
||||
.board-color-appleglasspastel input:focus,
|
||||
.board-color-appleglasspastel input:where(:not([type="checkbox"])):focus,
|
||||
.board-color-appleglasspastel textarea:focus,
|
||||
.board-color-appleglasspastel select:focus {
|
||||
border-color: #2563eb;
|
||||
@@ -2396,7 +2406,7 @@ THEME - Modern Dark
|
||||
background-color: #777 !important;
|
||||
}
|
||||
.board-color-moderndark button,
|
||||
.board-color-moderndark input:not([type=file]),
|
||||
.board-color-moderndark input:not([type=file]):where(:not([type="checkbox"])),
|
||||
.board-color-moderndark select,
|
||||
.board-color-moderndark textarea {
|
||||
border-radius: 7px;
|
||||
@@ -3340,7 +3350,7 @@ THEME - Clean Dark
|
||||
color: rgba(255, 255, 255, 0.85) !important;
|
||||
}
|
||||
|
||||
.board-color-cleandark input {
|
||||
.board-color-cleandark input:where(:not([type="checkbox"])) {
|
||||
font-size: calc(16px * var(--wekan-ui-font-scale, 1));
|
||||
font-weight: 400;
|
||||
line-height: calc(24px * var(--wekan-ui-font-scale, 1));
|
||||
@@ -4103,7 +4113,7 @@ THEME - Clean Light
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.board-color-cleanlight input {
|
||||
.board-color-cleanlight input:where(:not([type="checkbox"])) {
|
||||
font-size: calc(16px * var(--wekan-ui-font-scale, 1));
|
||||
font-weight: 400;
|
||||
line-height: calc(24px * var(--wekan-ui-font-scale, 1));
|
||||
@@ -4117,8 +4127,8 @@ THEME - Clean Light
|
||||
color: rgba(10, 10, 20, 0.5) !important;
|
||||
}
|
||||
|
||||
.board-color-cleanlight input:focus,
|
||||
.board-color-cleandark input:focus {
|
||||
.board-color-cleanlight input:where(:not([type="checkbox"])):focus,
|
||||
.board-color-cleandark input:where(:not([type="checkbox"])):focus {
|
||||
border: none !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
@@ -347,22 +347,23 @@ template(name="boardViewMenu")
|
||||
cannot be read without hovering - so the button says which view is on.
|
||||
The bar wraps to a second row when it runs out of width, which is what
|
||||
makes a word beside the icon affordable. docs/Features/Header-Bar/Header.md
|
||||
a.board-header-btn.js-toggle-board-view(title="{{boardViewName}}")
|
||||
i.fa.fa-caret-down
|
||||
if $eq boardView 'board-view-swimlanes'
|
||||
i.fa.fa-th-large
|
||||
if $eq boardView 'board-view-lists'
|
||||
i.fa.fa-trello
|
||||
if $eq boardView 'board-view-cal'
|
||||
i.fa.fa-calendar
|
||||
if $eq boardView 'board-view-calendar-mode'
|
||||
i.fa.fa-calendar-check-o
|
||||
if $eq boardView 'board-view-gantt'
|
||||
i.fa.fa-bar-chart
|
||||
if $eq boardView 'board-view-table'
|
||||
i.fa.fa-table
|
||||
if $eq boardView 'board-view-stats'
|
||||
i.fa.fa-pie-chart
|
||||
span.board-header-btn-label= boardViewName
|
||||
//- The open view's ? (featureHelp.jade), after the menu that names it.
|
||||
+featureHelp(id=boardViewHelp)
|
||||
.board-view-controls
|
||||
a.board-header-btn.js-toggle-board-view(title="{{boardViewName}}")
|
||||
i.fa.fa-caret-down
|
||||
if $eq boardView 'board-view-swimlanes'
|
||||
i.fa.fa-th-large
|
||||
if $eq boardView 'board-view-lists'
|
||||
i.fa.fa-trello
|
||||
if $eq boardView 'board-view-cal'
|
||||
i.fa.fa-calendar
|
||||
if $eq boardView 'board-view-calendar-mode'
|
||||
i.fa.fa-calendar-check-o
|
||||
if $eq boardView 'board-view-gantt'
|
||||
i.fa.fa-bar-chart
|
||||
if $eq boardView 'board-view-table'
|
||||
i.fa.fa-table
|
||||
if $eq boardView 'board-view-stats'
|
||||
i.fa.fa-pie-chart
|
||||
span.board-header-btn-label= boardViewName
|
||||
//- The open view's ? (featureHelp.jade), after the menu that names it.
|
||||
+featureHelp(id=boardViewHelp)
|
||||
@@ -626,54 +626,16 @@ async function createOneBoard(tpl, title, addTemplateContainer, spaceId) {
|
||||
} else {
|
||||
const visibility = tpl.visibility.get();
|
||||
|
||||
// #4205: when the user has marked a board template as their default,
|
||||
// apply it automatically - the same "type a name and click Create" flow
|
||||
// that used to always start blank now reuses the EXACT copyBoard call the
|
||||
// manual "Template" picker already makes (Template.searchElementPopup's
|
||||
// 'click .js-minicard' handler, client/components/lists/listBody.js) -
|
||||
// only the source (the default template's board) and the typed title
|
||||
// differ. Nothing changes for a user who has not set a default.
|
||||
const currentUser = ReactiveCache.getCurrentUser();
|
||||
const defaultTemplateBoardId = currentUser
|
||||
&& currentUser.profile
|
||||
&& currentUser.profile.defaultBoardTemplateBoardId;
|
||||
|
||||
if (defaultTemplateBoardId) {
|
||||
await new Promise((resolve) => {
|
||||
Meteor.call(
|
||||
'copyBoard',
|
||||
defaultTemplateBoardId,
|
||||
{
|
||||
sort: ReactiveCache.getBoards({ archived: false }).length,
|
||||
type: 'board',
|
||||
title,
|
||||
},
|
||||
(err, newBoardId) => {
|
||||
if (err) {
|
||||
// Stale/removed default (should self-heal via boardRemover, but
|
||||
// guard against a race): fall back to a blank board rather than
|
||||
// leaving Create silently broken.
|
||||
console.error(err);
|
||||
} else {
|
||||
tpl.boardId.set(newBoardId);
|
||||
}
|
||||
resolve();
|
||||
},
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
if (!tpl.boardId.get()) {
|
||||
tpl.boardId.set(
|
||||
await Meteor.callAsync('createBoardWithInitialSwimlanes', {
|
||||
title,
|
||||
slug,
|
||||
permission: visibility,
|
||||
migrationVersion: 1,
|
||||
swimlanes: [{ title: 'Default' }],
|
||||
}),
|
||||
);
|
||||
}
|
||||
tpl.boardId.set(
|
||||
await Meteor.callAsync('createBoardWithInitialSwimlanes', {
|
||||
title,
|
||||
slug,
|
||||
permission: visibility,
|
||||
migrationVersion: 1,
|
||||
swimlanes: [{ title: 'Default' }],
|
||||
personalTemplateSort: ReactiveCache.getBoards({ archived: false }).length,
|
||||
}),
|
||||
);
|
||||
|
||||
// Assign to space if one was selected
|
||||
if (spaceId) {
|
||||
|
||||
@@ -111,41 +111,8 @@ template(name="exportScopeBody")
|
||||
if importDone
|
||||
p.quiet {{_ 'import-done'}} {{importDone}}
|
||||
else
|
||||
if canExportToOpenProject
|
||||
details
|
||||
summary OpenProject API
|
||||
form.js-openproject-export-form
|
||||
label
|
||||
| {{_ 'api-import-url'}}
|
||||
input.js-openproject-export-credential(type="url" name="url" required disabled=openProjectExportBusy)
|
||||
label
|
||||
| {{_ 'api-import-token'}}
|
||||
input.js-openproject-export-credential(type="password" name="token" autocomplete="off" required disabled=openProjectExportBusy)
|
||||
button(type="submit" value="list" disabled=openProjectExportBusy) {{_ 'search'}}
|
||||
if openProjectExportProjects.length
|
||||
label
|
||||
| {{_ 'list-sync-project-key'}}
|
||||
select(name="project" disabled=openProjectExportBusy)
|
||||
each openProjectExportProjects
|
||||
option(value=id) {{name}}
|
||||
button.primary(type="submit" value="export" disabled=openProjectExportBusy) {{_ 'export'}}
|
||||
if openProjectExportBusy
|
||||
p(role="status") {{_ 'loading'}}
|
||||
if openProjectExportMessage
|
||||
p(role="status") {{_ openProjectExportMessage}}
|
||||
with openProjectExportResult
|
||||
p(role="status") {{_ 'completed'}} {{created.length}}
|
||||
ul
|
||||
each created
|
||||
li {{id}}
|
||||
if stoppedAt
|
||||
p(role="status")
|
||||
if openProjectExportUnknown
|
||||
| {{_ 'flow-unknown'}} ({{stoppedAt}})
|
||||
else
|
||||
| {{_ 'error'}} {{status}} ({{stoppedAt}})
|
||||
if remaining
|
||||
p {{_ 'pending'}} {{remaining}}
|
||||
each directApiExportServices
|
||||
+directApiExport
|
||||
each formatGroups
|
||||
if heading
|
||||
hr
|
||||
@@ -163,6 +130,72 @@ template(name="exportScopeBody")
|
||||
i.fa(class="{{icon}}")
|
||||
| {{label}}
|
||||
|
||||
template(name="directApiExport")
|
||||
details
|
||||
summary {{name}} API
|
||||
form.js-direct-api-export-form
|
||||
each credentialFields
|
||||
label
|
||||
| {{_ label}}
|
||||
if showEmail
|
||||
| / {{_ 'email'}}
|
||||
input(type=type name=name required=required autocomplete="off" disabled=exportBusy)
|
||||
button(type="submit" value="list" disabled=exportBusy) {{_ 'search'}}
|
||||
if exportProjects.length
|
||||
label
|
||||
| {{_ 'list-sync-project-key'}}
|
||||
select(name="project" disabled=exportBusy)
|
||||
if directExport.issueTypes
|
||||
option(value="")
|
||||
each exportProjects
|
||||
option(value=id) {{name}}
|
||||
if issueTypes.length
|
||||
label
|
||||
| {{_ 'type'}}
|
||||
select(name="issueType" disabled=exportBusy)
|
||||
each issueTypes
|
||||
option(value=id) {{name}}
|
||||
if subtaskTypes.length
|
||||
label
|
||||
| {{_ 'subtasks'}} ({{_ 'type'}})
|
||||
select(name="subtaskType" disabled=exportBusy)
|
||||
option(value="") {{_ 'custom-field-dropdown-none'}}
|
||||
each subtaskTypes
|
||||
option(value=id) {{name}}
|
||||
if canSubmitExport
|
||||
button.primary(type="submit" value="export" disabled=exportBusy) {{_ 'export'}}
|
||||
if exportBusy
|
||||
p(role="status") {{_ 'loading'}}
|
||||
if exportMessage
|
||||
p(role="status") {{_ exportMessage}}
|
||||
with exportResult
|
||||
p(role="status") {{_ 'completed'}} {{created.length}}
|
||||
ul
|
||||
each created
|
||||
li {{id}}
|
||||
if dependencyResult this
|
||||
p(role="status") {{dependencyResult this}}
|
||||
if skippedParents
|
||||
p {{_ 'export-card-subtasks'}} — {{_ 'sync-report-skipped'}} {{skippedParents}}
|
||||
if skippedWorkFields
|
||||
p(role="status") {{_ 'custom-fields'}} — {{_ 'sync-report-skipped'}} {{skippedWorkFields}}
|
||||
if skippedTimeEstimates
|
||||
p(role="status") {{_ 'workload-estimated-hours'}} — {{_ 'sync-report-skipped'}} {{skippedTimeEstimates}}
|
||||
if skippedStartDates
|
||||
p(role="status") {{_ 'cloud-start-date'}} — {{_ 'sync-report-skipped'}} {{skippedStartDates}}
|
||||
if skippedDueDates
|
||||
p(role="status") {{_ 'due-date'}} — {{_ 'sync-report-skipped'}} {{skippedDueDates}}
|
||||
if skippedLabels
|
||||
p(role="status") {{_ 'labels'}} — {{_ 'sync-report-skipped'}} {{skippedLabels}}
|
||||
if stoppedAt
|
||||
p(role="status")
|
||||
if exportUnknown
|
||||
| {{_ 'flow-unknown'}} ({{stoppedAt}})
|
||||
else
|
||||
| {{_ 'error'}} {{status}} ({{stoppedAt}})
|
||||
if remaining
|
||||
p {{_ 'pending'}} {{remaining}}
|
||||
|
||||
template(name="exportSwimlanePopup")
|
||||
+exportScopeBody(swimlaneId=_id title=title)
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
import { BOARD_API_IMPORT_SERVICES } from '/models/lib/apiImportServices';
|
||||
import { restoreNotionImportProgress, saveNotionImportProgress } from '/client/lib/notionImportRecovery';
|
||||
import { fetchNotionImportBatches } from '/models/lib/notionImportBatches';
|
||||
import { BOARD_API_IMPORT_SERVICES, DIRECT_API_EXPORT_SERVICES } from '/models/lib/apiImportServices';
|
||||
import { documentForFile } from '/models/lib/importManyFiles';
|
||||
import { cleanPart } from '/models/lib/exportFilename';
|
||||
import { EXTERNAL_JSON_FILE_FORMATS, SCOPED_EXTERNAL_EXPORT_FORMATS, SCOPED_EXTERNAL_JSON_FORMATS, SCOPED_FILE_FORMATS, SINGLE_BOARD_STREAMING_FORMATS, externalExportScope, exportFileExtension, scopedImportFileFormat } from '/models/lib/exportFields';
|
||||
@@ -437,7 +439,6 @@ Template.exportScopeBody.helpers(scopeHelpers);
|
||||
Template.exportScopeBody.onCreated(function () {
|
||||
this.people = new ReactiveDict();
|
||||
this.apiService = new ReactiveVar(null);
|
||||
this.openProjectExport = new ReactiveDict();
|
||||
});
|
||||
|
||||
function scopedImportTarget(data) {
|
||||
@@ -460,14 +461,11 @@ async function applyScopedDocument(template, doc, target, attachmentAuth, people
|
||||
}
|
||||
|
||||
Template.exportScopeBody.helpers({
|
||||
canExportToOpenProject() {
|
||||
return !Meteor.settings.public?.sandstorm && !Template.currentData()?.checklistId;
|
||||
directApiExportServices() {
|
||||
if (Meteor.settings.public?.sandstorm || Template.currentData()?.checklistId) return [];
|
||||
const target = scopedImportTarget(Template.currentData() || {});
|
||||
return DIRECT_API_EXPORT_SERVICES.map(service => ({ ...service, target }));
|
||||
},
|
||||
openProjectExportBusy() { return Template.instance().openProjectExport.get('busy'); },
|
||||
openProjectExportProjects() { return Template.instance().openProjectExport.get('projects'); },
|
||||
openProjectExportMessage() { return Template.instance().openProjectExport.get('message'); },
|
||||
openProjectExportResult() { return Template.instance().openProjectExport.get('result'); },
|
||||
openProjectExportUnknown() { return Template.instance().openProjectExport.get('result')?.outcome === 'unknown'; },
|
||||
scopedApiServices() {
|
||||
return Meteor.settings.public?.sandstorm ? [] : BOARD_API_IMPORT_SERVICES;
|
||||
},
|
||||
@@ -485,9 +483,33 @@ Template.exportScopeBody.helpers({
|
||||
importState.set('done', '');
|
||||
importState.set('busy', true);
|
||||
try {
|
||||
const doc = await Meteor.callAsync('apiImportFetch', service, credentials, id, fields);
|
||||
let doc;
|
||||
let checkpointKey;
|
||||
if (service === 'notionapi') {
|
||||
checkpointKey = JSON.stringify([Meteor.userId(), id, fields, target]);
|
||||
const remembered = template.notionImportProgress;
|
||||
const progress = remembered?.key === checkpointKey && remembered.token === token
|
||||
? remembered.progress : await restoreNotionImportProgress(checkpointKey, token);
|
||||
if (template.view.isDestroyed) return;
|
||||
let complete = false;
|
||||
doc = await fetchNotionImportBatches(cursor => Meteor.callAsync('apiImportFetch', service, credentials, id, fields, cursor), 8, {
|
||||
progress,
|
||||
onProgress: async next => {
|
||||
complete = next.cursor === null;
|
||||
template.notionImportProgress = { key: checkpointKey, token, progress: next };
|
||||
await saveNotionImportProgress(checkpointKey, token, next);
|
||||
},
|
||||
});
|
||||
if (!complete) throw new Error(TAPi18n.__('history-request-retry'));
|
||||
} else {
|
||||
doc = await Meteor.callAsync('apiImportFetch', service, credentials, id, fields);
|
||||
}
|
||||
if (!template.view.isDestroyed) {
|
||||
await applyScopedDocument(template, { scopedApiSource: service, scopedApiDocument: doc }, target, attachmentAuth, peopleMode, fields);
|
||||
if (checkpointKey) {
|
||||
template.notionImportProgress = null;
|
||||
await saveNotionImportProgress(checkpointKey, token, null);
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
importState.set('busy', false);
|
||||
@@ -568,51 +590,6 @@ function showImportCounts(counts) {
|
||||
}
|
||||
|
||||
Template.exportScopeBody.events({
|
||||
'input .js-openproject-export-credential'(event, template) {
|
||||
template.openProjectExport.set('projects', []);
|
||||
},
|
||||
async 'submit .js-openproject-export-form'(event, template) {
|
||||
event.preventDefault();
|
||||
const state = template.openProjectExport;
|
||||
if (state.get('busy')) return;
|
||||
const { currentTarget } = event;
|
||||
const submitter = event.submitter || event.originalEvent?.submitter;
|
||||
const credentials = {
|
||||
url: currentTarget.elements.namedItem('url').value,
|
||||
token: currentTarget.elements.namedItem('token').value,
|
||||
};
|
||||
const { boardId, ...scope } = scopedImportTarget(Template.currentData() || {});
|
||||
const exporting = submitter?.value === 'export';
|
||||
const projectId = currentTarget.elements.namedItem('project')?.value;
|
||||
if (exporting && !projectId) return;
|
||||
state.set('message', '');
|
||||
state.set('result', null);
|
||||
state.set('busy', true);
|
||||
try {
|
||||
if (!exporting) {
|
||||
const projects = await Meteor.callAsync('apiExportListOpenProject', boardId, scope, credentials);
|
||||
if (!template.view.isDestroyed) {
|
||||
state.set('projects', projects);
|
||||
if (!projects.length) state.set('message', 'no-results');
|
||||
}
|
||||
return;
|
||||
}
|
||||
currentTarget.elements.namedItem('token').value = '';
|
||||
state.set('projects', []);
|
||||
const fields = ['title', ...selectedFields().filter(field => field === 'description' || field === 'dates')];
|
||||
const result = await Meteor.applyAsync('apiExportOpenProject', [boardId, scope, credentials, projectId, fields], {
|
||||
noRetry: true,
|
||||
returnServerResultPromise: true,
|
||||
});
|
||||
if (!template.view.isDestroyed) state.set('result', result);
|
||||
} catch (error) {
|
||||
if (!template.view.isDestroyed) {
|
||||
state.set('message', exporting && error.error === 'invocation-failed' ? 'flow-unknown' : 'error');
|
||||
}
|
||||
} finally {
|
||||
if (!template.view.isDestroyed) state.set('busy', false);
|
||||
}
|
||||
},
|
||||
'change .js-scoped-import-api-service'(event, template) {
|
||||
const service = event.currentTarget.value;
|
||||
template.apiService.set(service ? { service, target: scopedImportTarget(Template.currentData() || {}) } : null);
|
||||
@@ -727,3 +704,119 @@ export {
|
||||
massExportUrl,
|
||||
exportUrl as exportUrlFor,
|
||||
};
|
||||
|
||||
|
||||
Template.directApiExport.onCreated(function () {
|
||||
this.state = new ReactiveDict();
|
||||
});
|
||||
|
||||
Template.directApiExport.helpers({
|
||||
credentialFields() {
|
||||
return Template.currentData().fields.map(field => ({
|
||||
...field,
|
||||
type: field.secret ? 'password' : (field.name === 'url' ? 'url' : 'text'),
|
||||
showEmail: field.name === 'username',
|
||||
}));
|
||||
},
|
||||
exportBusy() { return Template.instance().state.get('busy'); },
|
||||
exportProjects() { return Template.instance().state.get('projects'); },
|
||||
exportMessage() { return Template.instance().state.get('message'); },
|
||||
exportResult() { return Template.instance().state.get('result'); },
|
||||
dependencyResult(result) {
|
||||
if (typeof result?.createdDependencies !== 'number') return '';
|
||||
const counts = [`${TAPi18n.__('completed')} ${result.createdDependencies}`];
|
||||
if (result.skippedDependencies) counts.push(`${TAPi18n.__('sync-report-skipped')} ${result.skippedDependencies}`);
|
||||
const failure = result.dependencyFailure;
|
||||
if (failure) {
|
||||
counts.push(failure.outcome === 'unknown' ? TAPi18n.__('flow-unknown') : `${TAPi18n.__('error')} ${failure.status}`);
|
||||
if (failure.remaining) counts.push(`${TAPi18n.__('pending')} ${failure.remaining}`);
|
||||
}
|
||||
return `${TAPi18n.__('card-dependencies')}: ${counts.join(' · ')}`;
|
||||
},
|
||||
exportUnknown() { return Template.instance().state.get('result')?.outcome === 'unknown'; },
|
||||
issueTypes() { return (Template.instance().state.get('issueTypes') || []).filter(type => !type.subtask); },
|
||||
subtaskTypes() {
|
||||
return !Template.currentData().target.cardId && selection.get('subtasks')
|
||||
? (Template.instance().state.get('issueTypes') || []).filter(type => type.subtask)
|
||||
: [];
|
||||
},
|
||||
canSubmitExport() {
|
||||
return !Template.currentData().directExport.issueTypes || Template.instance().state.get('issueTypes')?.some(type => !type.subtask);
|
||||
},
|
||||
});
|
||||
|
||||
function directExportCredentials(form, fields) {
|
||||
return Object.fromEntries(fields.map(({ name }) => [name, form.elements.namedItem(name).value])
|
||||
.filter(([, value]) => value !== ''));
|
||||
}
|
||||
|
||||
async function runDirectExportRequest(template, request, onFailure = 'error') {
|
||||
const { state } = template;
|
||||
state.set({ busy: true, message: '', result: null });
|
||||
try {
|
||||
const update = await request();
|
||||
if (!template.view.isDestroyed) state.set(update);
|
||||
} catch (error) {
|
||||
if (!template.view.isDestroyed) {
|
||||
state.set('message', error.error === 'invocation-failed' ? onFailure : 'error');
|
||||
}
|
||||
} finally {
|
||||
if (!template.view.isDestroyed) state.set('busy', false);
|
||||
}
|
||||
}
|
||||
|
||||
Template.directApiExport.events({
|
||||
'input input'(event, template) {
|
||||
template.state.set({ projects: [], issueTypes: [] });
|
||||
},
|
||||
async 'change select[name=project]'(event, template) {
|
||||
const { fields: credentialFields, directExport, target: { boardId, ...scope } } = Template.currentData();
|
||||
if (!directExport.issueTypes || template.state.get('busy')) return;
|
||||
const project = event.currentTarget.value;
|
||||
template.state.set('issueTypes', []);
|
||||
if (!project) {
|
||||
template.state.set('message', '');
|
||||
return;
|
||||
}
|
||||
const credentials = directExportCredentials(event.currentTarget.form, credentialFields);
|
||||
await runDirectExportRequest(template, async () => {
|
||||
const issueTypes = await Meteor.callAsync(directExport.listMethod, boardId, scope, credentials, project);
|
||||
return { issueTypes, message: issueTypes.length ? '' : 'no-results' };
|
||||
});
|
||||
},
|
||||
async 'submit form'(event, template) {
|
||||
event.preventDefault();
|
||||
if (template.state.get('busy')) return;
|
||||
const form = event.currentTarget;
|
||||
const submitter = event.submitter || event.originalEvent?.submitter;
|
||||
const { fields: credentialFields, directExport, target: { boardId, ...scope } } = Template.currentData();
|
||||
const credentials = directExportCredentials(form, credentialFields);
|
||||
if (submitter?.value !== 'export') {
|
||||
template.state.set({ projects: [], issueTypes: [] });
|
||||
await runDirectExportRequest(template, async () => {
|
||||
const projects = await Meteor.callAsync(directExport.listMethod, boardId, scope, credentials);
|
||||
return { projects, message: projects.length ? '' : 'no-results' };
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
const projectId = form.elements.namedItem('project')?.value;
|
||||
const issueType = form.elements.namedItem('issueType')?.value;
|
||||
const subtaskType = form.elements.namedItem('subtaskType')?.value;
|
||||
if (!projectId || (directExport.issueTypes && !issueType)) return;
|
||||
for (const { name, secret } of credentialFields) {
|
||||
if (secret) form.elements.namedItem(name).value = '';
|
||||
}
|
||||
template.state.set({ projects: [], issueTypes: [] });
|
||||
const fields = ['title', ...selectedFields().filter(field => directExport.fields.includes(field))];
|
||||
const args = [boardId, scope, credentials, projectId, ...(directExport.issueTypes ? [issueType] : []), fields];
|
||||
if (directExport.issueTypes && subtaskType) args.push(subtaskType);
|
||||
await runDirectExportRequest(template, async () => {
|
||||
const result = await Meteor.applyAsync(directExport.writeMethod, args, {
|
||||
noRetry: true,
|
||||
returnServerResultPromise: true,
|
||||
});
|
||||
return { result };
|
||||
}, 'flow-unknown');
|
||||
},
|
||||
});
|
||||
@@ -4,7 +4,7 @@
|
||||
.scrum-view form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding-block: 12px; }
|
||||
.scrum-view label { display: flex; flex-direction: column; gap: 4px; max-width: 100%; }
|
||||
.scrum-view textarea { resize: both; min-width: 140px; max-width: 100%; box-sizing: border-box; }
|
||||
.scrum-view select, .scrum-view input { max-width: 100%; box-sizing: border-box; }
|
||||
.scrum-view select, .scrum-view input:where(:not([type="checkbox"])) { max-width: 100%; box-sizing: border-box; }
|
||||
.scrum-view button { white-space: normal; height: auto; min-height: 32px; }
|
||||
.scrum-planning { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
|
||||
.scrum-table-scroll { max-width: 100%; overflow-x: auto; }
|
||||
@@ -17,22 +17,6 @@
|
||||
.scrum-metadata label { display: block; margin-block: 6px; }
|
||||
.scrum-metadata textarea { resize: both; max-width: 100%; box-sizing: border-box; }
|
||||
.scrum-field-settings label { gap: 8px; align-items: center; margin-block: 8px; }
|
||||
/* Scrum forms use labelled native checkboxes; global material form rules hide them. */
|
||||
.scrum-view input[type="checkbox"], .scrum-field-settings input[type="checkbox"] {
|
||||
display: inline-block;
|
||||
visibility: visible;
|
||||
position: static;
|
||||
inset-inline-start: auto;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
min-height: 0;
|
||||
flex: 0 0 16px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
appearance: auto;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.scrum-chart { margin-block: 16px; border-block-end: 1px solid currentColor; }
|
||||
.scrum-chart-row { margin: 12px 0; overflow-wrap: anywhere; }
|
||||
.scrum-chart-series { display: grid; grid-template-columns: minmax(100px, 1fr) 3fr; gap: 4px 12px; margin-block: 8px; }
|
||||
|
||||
@@ -212,11 +212,7 @@
|
||||
.shop-saved {
|
||||
color: #2e7d32;
|
||||
}
|
||||
/* The shop's forms use labelled native checkboxes and radio buttons, not the
|
||||
hidden material inputs of the rest of WeKan. */
|
||||
.shop-view input[type="checkbox"],
|
||||
.shop-view input[type="radio"],
|
||||
.shop-settings input[type="checkbox"] {
|
||||
.shop-view input[type="radio"] {
|
||||
display: inline-block;
|
||||
visibility: visible;
|
||||
position: static;
|
||||
|
||||
@@ -193,6 +193,6 @@ template(name="attachmentActionsPopup")
|
||||
| {{_ 'add-background-image'}}
|
||||
|
||||
template(name="attachmentRenamePopup")
|
||||
input.js-edit-attachment-name(type='text' autofocus value="{{getNameWithoutExtension}}" dir="auto")
|
||||
input.js-edit-attachment-name(type='text' autofocus value="{{name}}" dir="auto")
|
||||
.edit-controls.clearfix
|
||||
button.primary.confirm.js-submit-edit-attachment-name(type="submit") {{_ 'save'}}
|
||||
@@ -8,7 +8,7 @@ import { generateUniversalAttachmentUrl } from '/models/lib/universalUrlGenerato
|
||||
import { canThumbnail, thumbnailUrl } from '/models/lib/attachmentThumbnail';
|
||||
import { liveAttachments } from '/models/lib/attachmentSoftDelete';
|
||||
import DOMPurify from 'dompurify';
|
||||
import { sanitizeHTML, sanitizeText } from '/imports/lib/secureDOMPurify';
|
||||
import { sanitizeHTML } from '/imports/lib/secureDOMPurify';
|
||||
import { openZipAttachment } from '/client/lib/zipAttachmentViewer';
|
||||
import { openOfficeAttachment } from '/client/lib/officeAttachmentViewer';
|
||||
import uploadProgressManager from '../../lib/uploadProgressManager';
|
||||
@@ -931,14 +931,6 @@ Template.attachmentActionsPopup.events({
|
||||
},
|
||||
});
|
||||
|
||||
Template.attachmentRenamePopup.helpers({
|
||||
getNameWithoutExtension() {
|
||||
// A literal suffix, never a RegExp built from the file's extension.
|
||||
const suffix = `.${this.extension}`;
|
||||
return this.name.endsWith(suffix) ? this.name.slice(0, -suffix.length) : this.name;
|
||||
},
|
||||
});
|
||||
|
||||
Template.attachmentRenamePopup.events({
|
||||
'keydown input.js-edit-attachment-name'(evt, tpl) {
|
||||
// enter = save
|
||||
@@ -949,14 +941,8 @@ Template.attachmentRenamePopup.events({
|
||||
'click button.js-submit-edit-attachment-name'(event, tpl) {
|
||||
// save button pressed
|
||||
event.preventDefault();
|
||||
// A migrated attachment can lack extensionWithDot; its extension is enough.
|
||||
const suffix = this.extensionWithDot || (this.extension ? `.${this.extension}` : '');
|
||||
const name = tpl.$('.js-edit-attachment-name')[0]
|
||||
.value
|
||||
.trim() + suffix;
|
||||
if (name === sanitizeText(name)) {
|
||||
Meteor.call('renameAttachment', this._id, name);
|
||||
}
|
||||
const name = tpl.find('.js-edit-attachment-name').value.trim();
|
||||
if (name) Meteor.call('renameAttachment', this._id, name);
|
||||
Popup.back();
|
||||
},
|
||||
});
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { TAPi18n } from '/imports/i18n';
|
||||
import { ReactiveCache } from '/imports/reactiveCache';
|
||||
import { Utils } from '/client/lib/utils';
|
||||
import { currentUserWith } from '/client/lib/currentUserWith';
|
||||
import {
|
||||
setupDatePicker,
|
||||
@@ -364,7 +365,19 @@ for (const [kind, spec] of Object.entries(CARD_DATE_KINDS)) {
|
||||
this.date.set(new Date(spec.read(cardFromDateContext())));
|
||||
});
|
||||
});
|
||||
Template[name].helpers(cardDateHelpers(spec.helpers));
|
||||
const helpers = cardDateHelpers(spec.helpers);
|
||||
if (name.startsWith('minicard')) {
|
||||
helpers.showDate = function () {
|
||||
const tpl = Template.instance();
|
||||
const card = cardFromDateContext();
|
||||
const board = ReactiveCache.getBoard(card.boardId);
|
||||
const date = tpl.date.get();
|
||||
const formatted = formatCardDateForDisplay(date, board?.showMinicardDateTime !== false);
|
||||
if (kind !== 'Due' || board?.showMinicardDateRelative === false || card.getEnd()) return formatted;
|
||||
return formatted + ' (' + dueCountdownText(date, tpl.now.get()) + ')';
|
||||
};
|
||||
}
|
||||
Template[name].helpers(helpers);
|
||||
Template[name].events({
|
||||
'click .js-edit-date': openDateEditor(spec.editor),
|
||||
});
|
||||
@@ -382,7 +395,7 @@ Template.minicardCustomFieldDate.onCreated(function () {
|
||||
|
||||
Template.minicardCustomFieldDate.helpers(cardDateHelpers({
|
||||
showDate() {
|
||||
return formatCardDateForDisplay(Template.instance().date.get(), true);
|
||||
return formatCardDateForDisplay(Template.instance().date.get(), Utils.getCurrentBoard()?.showMinicardDateTime !== false);
|
||||
},
|
||||
showTitle() {
|
||||
const tpl = Template.instance();
|
||||
|
||||
@@ -1530,3 +1530,28 @@ body.desktop-mode .card-details.card-details-position-pending:not(.card-details-
|
||||
.card-details .card-details-section .card-details-item-text-notes {
|
||||
flex: 0 0 100%;
|
||||
}
|
||||
|
||||
/* Jira Cloud status labels show their text even without a color match. */
|
||||
.card-details div[data-jira-panel] {
|
||||
border-inline-start: 3px solid currentColor;
|
||||
margin-block: 0.75em;
|
||||
padding-inline-start: 0.75em;
|
||||
}
|
||||
|
||||
.card-details span[data-jira-status] {
|
||||
border: 1px solid var(--jira-status-color, currentColor);
|
||||
background-color: color-mix(in srgb, var(--jira-status-color, currentColor) 12%, transparent);
|
||||
border-radius: 0.3em;
|
||||
padding: 0.05em 0.35em;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.card-details span[data-jira-status^="blue/"] { --jira-status-color: #3b82f6; }
|
||||
.card-details span[data-jira-status^="green/"] { --jira-status-color: #22c55e; }
|
||||
.card-details span[data-jira-status^="purple/"] { --jira-status-color: #a855f7; }
|
||||
.card-details span[data-jira-status^="red/"] { --jira-status-color: #ef4444; }
|
||||
.card-details span[data-jira-status^="yellow/"] { --jira-status-color: #eab308; }
|
||||
|
||||
.card-details span[data-jira-cell-block] {
|
||||
display: block;
|
||||
}
|
||||
@@ -430,7 +430,7 @@ template(name="cardFieldSectionMembers")
|
||||
if currentBoard.allowsMembers
|
||||
.card-details-item.card-details-item-members
|
||||
each userId in getMembers
|
||||
+userAvatar(userId=userId cardId=_id)
|
||||
+cardUserAvatar(userId=userId cardId=_id board=currentBoard side="card")
|
||||
| {{! XXX Hack to hide syntaxic coloration /// }}
|
||||
if canModifyCard
|
||||
unless currentUser.isWorker
|
||||
@@ -443,7 +443,7 @@ template(name="cardFieldSectionMembers")
|
||||
i.fa.fa-user
|
||||
| {{_ 'assignee'}}
|
||||
each userId in getAssignees
|
||||
+userAvatar(userId=userId cardId=_id assignee=true)
|
||||
+cardUserAvatar(userId=userId cardId=_id assignee=true board=currentBoard side="card")
|
||||
| {{! XXX Hack to hide syntaxic coloration /// }}
|
||||
if canModifyCard
|
||||
a.assignee.add-assignee.card-details-item-add-button.js-add-assignees(title="{{_ 'assignee'}}")
|
||||
@@ -460,7 +460,7 @@ template(name="cardFieldSectionMembers")
|
||||
i.fa.fa-user
|
||||
| {{_ 'creator'}}
|
||||
|
||||
+userAvatar(userId=userId noRemove=true)
|
||||
+cardUserAvatar(userId=userId noRemove=true board=currentBoard side="card")
|
||||
| {{! XXX Hack to hide syntaxic coloration /// }}
|
||||
|
||||
|
||||
@@ -479,7 +479,7 @@ template(name="cardFieldSectionMembers")
|
||||
+editCardRequesterForm
|
||||
else
|
||||
each userId in getRequesters
|
||||
+userAvatar(userId=userId cardId=_id noRemove=true)
|
||||
+cardUserAvatar(userId=userId cardId=_id noRemove=true board=currentBoard side="card")
|
||||
if getRequestedBy
|
||||
+viewer
|
||||
= getRequestedBy
|
||||
@@ -495,7 +495,7 @@ template(name="cardFieldSectionMembers")
|
||||
i.fa.fa-plus(aria-hidden="true")
|
||||
else
|
||||
each userId in getRequesters
|
||||
+userAvatar(userId=userId noRemove=true)
|
||||
+cardUserAvatar(userId=userId noRemove=true board=currentBoard side="card")
|
||||
if getRequestedBy
|
||||
+viewer
|
||||
= getRequestedBy
|
||||
@@ -512,7 +512,7 @@ template(name="cardFieldSectionMembers")
|
||||
+editCardAssignerForm
|
||||
else
|
||||
each userId in getAssigners
|
||||
+userAvatar(userId=userId cardId=_id noRemove=true)
|
||||
+cardUserAvatar(userId=userId cardId=_id noRemove=true board=currentBoard side="card")
|
||||
if getAssignedBy
|
||||
+viewer
|
||||
= getAssignedBy
|
||||
@@ -528,7 +528,7 @@ template(name="cardFieldSectionMembers")
|
||||
i.fa.fa-plus(aria-hidden="true")
|
||||
else
|
||||
each userId in getAssigners
|
||||
+userAvatar(userId=userId noRemove=true)
|
||||
+cardUserAvatar(userId=userId noRemove=true board=currentBoard side="card")
|
||||
if getAssignedBy
|
||||
+viewer
|
||||
= getAssignedBy
|
||||
|
||||
@@ -1,20 +1,4 @@
|
||||
/* The Kanban and Scrum flow fields (docs/Features/Cards/Flow-Fields.md). */
|
||||
/* Blocked is a labelled native checkbox; the app-wide material form rule hides
|
||||
native checkboxes three ways (display, visibility, an offset), so all three
|
||||
are undone, as in scrumView.css. */
|
||||
.card-flow-blocked-toggle input[type="checkbox"] {
|
||||
display: inline-block;
|
||||
visibility: visible;
|
||||
position: static;
|
||||
inset-inline-start: auto;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
min-height: 0;
|
||||
margin: 0;
|
||||
margin-inline-end: 4px;
|
||||
padding: 0;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.card-details-item-flow-blocked.is-blocked .card-details-item-title,
|
||||
.card-flow-blocked-text {
|
||||
color: #c0392b;
|
||||
|
||||
@@ -19,10 +19,6 @@
|
||||
margin: 0;
|
||||
font-weight: normal;
|
||||
}
|
||||
.from-text-choice input[type="checkbox"] {
|
||||
width: auto;
|
||||
margin: 0;
|
||||
}
|
||||
.from-text-title {
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
@@ -219,7 +219,7 @@ Template.cardLabelsPopup.events({
|
||||
|
||||
Template.createLabelPopup.events({
|
||||
// Create the new label
|
||||
'submit .create-label'(event, templateInstance) {
|
||||
async 'submit .create-label'(event, templateInstance) {
|
||||
event.preventDefault();
|
||||
const board = getCardLabelBoard(templateInstance.data);
|
||||
if (!board) {
|
||||
@@ -245,7 +245,7 @@ Template.createLabelPopup.events({
|
||||
}
|
||||
color = color || getFallbackLabelColor();
|
||||
const dueAt = readLabelDueAt(templateInstance);
|
||||
board.addLabel(name, color, dueAt);
|
||||
await board.addLabel(name, color, dueAt);
|
||||
Popup.back();
|
||||
},
|
||||
});
|
||||
|
||||
@@ -393,17 +393,17 @@ template(name="minicard")
|
||||
if getAssignees
|
||||
.minicard-assignees.js-minicard-assignees
|
||||
each getAssignees
|
||||
+userAvatar(userId=this)
|
||||
+cardUserAvatar(userId=this board=currentBoard side="minicard")
|
||||
if $eq field "members"
|
||||
if showMembers
|
||||
if getMembers
|
||||
.minicard-members.js-minicard-members
|
||||
each getMembers
|
||||
+userAvatar(userId=this)
|
||||
+cardUserAvatar(userId=this board=currentBoard side="minicard")
|
||||
if $eq field "creator"
|
||||
if showCreatorOnMinicard
|
||||
.minicard-creator
|
||||
+userAvatar(userId=getCreatorId noRemove=true)
|
||||
+cardUserAvatar(userId=getCreatorId noRemove=true board=currentBoard side="minicard")
|
||||
if $eq field "checklists"
|
||||
if shouldShowChecklistAtMinicard
|
||||
each shouldShowChecklistAtMinicard
|
||||
@@ -466,7 +466,7 @@ template(name="minicard")
|
||||
.minicard-requested-by(title="{{_ 'requested-by'}}")
|
||||
i.fa.fa-shopping-cart
|
||||
each userId in getRequesters
|
||||
+userAvatar(userId=userId noRemove=true)
|
||||
+cardUserAvatar(userId=userId noRemove=true board=currentBoard side="minicard")
|
||||
if getRequestedBy
|
||||
span {{ getRequestedBy }}
|
||||
if $eq field "assignedBy"
|
||||
@@ -475,7 +475,7 @@ template(name="minicard")
|
||||
.minicard-assigned-by(title="{{_ 'assigned-by'}}")
|
||||
i.fa.fa-user-plus
|
||||
each userId in getAssigners
|
||||
+userAvatar(userId=userId noRemove=true)
|
||||
+cardUserAvatar(userId=userId noRemove=true board=currentBoard side="minicard")
|
||||
if getAssignedBy
|
||||
span {{ getAssignedBy }}
|
||||
if $eq field "flowtime"
|
||||
|
||||
@@ -59,23 +59,6 @@
|
||||
color: #777;
|
||||
}
|
||||
|
||||
/* Labelled native checkboxes: the app-wide material form rule
|
||||
(client/components/forms/forms.css) hides native checkboxes three ways -
|
||||
display, visibility, an offset - which left these with a label and no box
|
||||
to tick or see ticked. All three are undone, as in cardFlow.css. */
|
||||
.cloud-panel input[type="checkbox"] {
|
||||
display: inline-block;
|
||||
visibility: visible;
|
||||
position: static;
|
||||
inset-inline-start: auto;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
min-height: 0;
|
||||
margin: 0;
|
||||
margin-inline-end: 4px;
|
||||
flex: none;
|
||||
}
|
||||
|
||||
/* Support tickets: the support board's Open / In progress / Done lists, side
|
||||
by side as Board View / Lists draws a board, wrapping on a narrow screen. */
|
||||
.cloud-ticket-columns {
|
||||
|
||||
@@ -1,20 +1,3 @@
|
||||
/* This popup uses labelled native checkboxes, not hidden material inputs. */
|
||||
.js-date-format-form input[type="checkbox"] {
|
||||
display: inline-block;
|
||||
visibility: visible;
|
||||
position: static;
|
||||
inset-inline-start: auto;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
min-height: 0;
|
||||
flex: 0 0 16px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
margin-inline-end: 6px;
|
||||
appearance: auto;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.js-date-format-form > label.flex {
|
||||
align-items: center;
|
||||
}
|
||||
@@ -5,6 +5,18 @@ template(name="boardDateSettingsPopup")
|
||||
a.flex.js-show-week-of-year-toggle(title="{{_ 'show-week-of-year'}}")
|
||||
i.fa(class="{{#if isShowWeekOfYear}}fa-check{{else}}fa-square-o{{/if}}")
|
||||
span {{_ 'show-week-of-year'}}
|
||||
hr
|
||||
strong {{_ 'show-on-minicard'}}
|
||||
div
|
||||
label
|
||||
input.js-minicard-date-display(type="checkbox" data-field="showMinicardDateTime" checked=showMinicardDateTime disabled=notBoardAdmin)
|
||||
| {{_ 'time'}}
|
||||
div
|
||||
label
|
||||
input.js-minicard-date-display(type="checkbox" data-field="showMinicardDateRelative" checked=showMinicardDateRelative disabled=notBoardAdmin)
|
||||
| {{_ 'remaining_time'}}
|
||||
if minicardDateDisplayError
|
||||
p.error(role="alert") {{minicardDateDisplayError}}
|
||||
//- #6947: when this board's due dates turn amber and red, in hours. A
|
||||
board admin's; everybody else reads them.
|
||||
hr
|
||||
|
||||
@@ -121,6 +121,7 @@ Template.dateFormatEditor.events({
|
||||
// #687: the board's CalDAV link, for board admins (server/caldavSync.js).
|
||||
Template.boardDateSettingsPopup.onCreated(function () {
|
||||
this.dueThresholdsError = new ReactiveVar('');
|
||||
this.minicardDateDisplayError = new ReactiveVar('');
|
||||
this.caldav = new ReactiveVar({ url: '', username: '', enabled: false, hasPassword: false });
|
||||
this.caldavMessage = new ReactiveVar('');
|
||||
const board = Utils.getCurrentBoard();
|
||||
@@ -134,6 +135,9 @@ Template.boardDateSettingsPopup.helpers({
|
||||
dueSoonHours() { return dueThresholdsOf(Utils.getCurrentBoard()).soonHours; },
|
||||
overdueAfterHours() { return dueThresholdsOf(Utils.getCurrentBoard()).overdueAfterHours; },
|
||||
notBoardAdmin() { return !ReactiveCache.getCurrentUser()?.isBoardAdmin(); },
|
||||
showMinicardDateTime() { return Utils.getCurrentBoard()?.showMinicardDateTime !== false; },
|
||||
showMinicardDateRelative() { return Utils.getCurrentBoard()?.showMinicardDateRelative !== false; },
|
||||
minicardDateDisplayError() { return Template.instance().minicardDateDisplayError.get(); },
|
||||
dueThresholdsError() { return Template.instance().dueThresholdsError.get(); },
|
||||
caldav() { return Template.instance().caldav.get(); },
|
||||
caldavMessage() { return Template.instance().caldavMessage.get(); },
|
||||
@@ -145,6 +149,19 @@ Template.boardDateSettingsPopup.helpers({
|
||||
});
|
||||
|
||||
Template.boardDateSettingsPopup.events({
|
||||
async 'change .js-minicard-date-display'(event, tpl) {
|
||||
const board = Utils.getCurrentBoard();
|
||||
if (!board) return;
|
||||
const input = event.currentTarget;
|
||||
const { field } = input.dataset;
|
||||
tpl.minicardDateDisplayError.set('');
|
||||
try {
|
||||
await Meteor.callAsync('setBoardMinicardDateDisplay', board._id, field, input.checked);
|
||||
} catch (error) {
|
||||
input.checked = Utils.getCurrentBoard()?.[field] !== false;
|
||||
tpl.minicardDateDisplayError.set(error.reason || error.message);
|
||||
}
|
||||
},
|
||||
// An empty field is the default again (null).
|
||||
async 'submit .js-due-thresholds-form'(event, tpl) {
|
||||
event.preventDefault();
|
||||
|
||||
@@ -357,13 +357,32 @@ form.inlined-form .custom-field-copy-control > a.fa-copy,
|
||||
.add-controls .quiet {
|
||||
white-space: nowrap;
|
||||
}
|
||||
[type="checkbox"]:not(:checked),
|
||||
[type="checkbox"]:checked {
|
||||
/* Real checkboxes share the material geometry. Toggle switches draw their
|
||||
own track and keep the input visually hidden. */
|
||||
input.toggle-switch[type="checkbox"] {
|
||||
position: absolute;
|
||||
inset-inline-start: -9999px;
|
||||
visibility: hidden;
|
||||
display: none;
|
||||
}
|
||||
|
||||
input[type="checkbox"]:not(.toggle-switch) {
|
||||
display: inline-block;
|
||||
visibility: visible;
|
||||
inset-inline-start: auto;
|
||||
top: auto;
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
box-sizing: content-box;
|
||||
min-height: 0;
|
||||
min-width: 0;
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
input[type="checkbox"]:not(.toggle-switch),
|
||||
.materialCheckBox {
|
||||
position: relative;
|
||||
width: 13px;
|
||||
@@ -393,6 +412,7 @@ form.inlined-form .custom-field-copy-control > a.fa-copy,
|
||||
its box, "out of box". `left: -3px` and `margin-right: 6px` put it on the
|
||||
square's left edge in both directions, and 7 + 4 + 6 = 17px is still the
|
||||
square's width, so the label beside it does not move. */
|
||||
input[type="checkbox"]:not(.toggle-switch):checked,
|
||||
.materialCheckBox.is-checked {
|
||||
top: -4px;
|
||||
left: -3px;
|
||||
@@ -408,6 +428,34 @@ form.inlined-form .custom-field-copy-control > a.fa-copy,
|
||||
backface-visibility: hidden;
|
||||
transform-origin: 100% 100%;
|
||||
}
|
||||
input[type="checkbox"]:not(.toggle-switch):checked {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
input[type="checkbox"]:not(.toggle-switch):disabled {
|
||||
cursor: default;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
input[type="checkbox"]:not(.toggle-switch):focus-visible {
|
||||
outline: 2px solid var(--theme-accent, #2573a7);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
label:has(> input[type="checkbox"]:not(.toggle-switch):focus-visible) {
|
||||
outline: 2px solid var(--theme-accent, #2573a7);
|
||||
outline-offset: 2px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
label > input[type="checkbox"]:not(.toggle-switch):focus-visible {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
label > input[type="checkbox"]:not(.toggle-switch):not(:checked) {
|
||||
margin-inline-end: 6px;
|
||||
}
|
||||
|
||||
.button-link {
|
||||
background: #fff;
|
||||
background: linear-gradient(#fff, #f5f5f5);
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
template(name="personalApiTokensPopup")
|
||||
if tokenPolicy
|
||||
if tokenPolicy.enabled
|
||||
form.js-create-personal-api-token
|
||||
label
|
||||
| {{_ 'name'}}
|
||||
input(type="text" name="name" maxlength="100" required)
|
||||
label
|
||||
| {{_ 'personal-api-token-expiry'}}
|
||||
input(type="datetime-local" name="expiresAt" value=expiryDefault required)
|
||||
p.quiet {{_ 'personal-api-token-max-days'}} {{tokenPolicy.maxDays}}
|
||||
label
|
||||
| {{_ 'personal-api-token-scope'}}
|
||||
select(name="scope")
|
||||
option(value="read") {{_ 'read-only'}}
|
||||
option(value="write") {{_ 'personal-api-token-write'}}
|
||||
label
|
||||
| {{_ 'personal-api-token-board-ids'}}
|
||||
input(type="text" name="boards" autocomplete="off")
|
||||
button.primary(type="submit") {{_ 'create'}}
|
||||
else
|
||||
p {{_ 'r-rule-disabled'}}
|
||||
if secret
|
||||
label
|
||||
| {{_ 'personal-api-token-once'}}
|
||||
textarea(readonly rows="3" autocomplete="off") {{secret}}
|
||||
ul
|
||||
each tokenRows
|
||||
li
|
||||
strong {{name}}
|
||||
| — {{_ scopeKey}}
|
||||
div {{_ 'personal-api-token-expiry'}} {{expiresText}}
|
||||
if lastUsedText
|
||||
div {{_ 'api-last-called'}} {{lastUsedText}}
|
||||
if revokedAt
|
||||
span {{_ 'r-rule-disabled'}}
|
||||
else
|
||||
button.js-revoke-personal-api-token(type="button" data-id=publicId) {{_ 'personal-api-token-revoke'}}
|
||||
if tokenError
|
||||
p.error(role="alert") {{tokenError}}
|
||||
|
||||
template(name="personalApiTokensAdmin")
|
||||
section
|
||||
h2.admin-pane-group-title {{_ 'personal-api-tokens'}}
|
||||
if tokenPolicy
|
||||
form.js-personal-api-token-policy
|
||||
label
|
||||
input(type="checkbox" name="enabled" checked=tokenPolicy.enabled)
|
||||
| {{_ 'r-rule-enabled'}}
|
||||
label
|
||||
| {{_ 'personal-api-token-max-days'}}
|
||||
input(type="number" name="maxDays" min="1" max="365" value=tokenPolicy.maxDays required)
|
||||
button.primary(type="submit") {{_ 'save'}}
|
||||
ul
|
||||
each tokenRows
|
||||
li
|
||||
strong {{username}}
|
||||
| — {{name}} — {{_ scopeKey}} —
|
||||
if active
|
||||
| {{_ 'r-rule-enabled'}}
|
||||
else
|
||||
| {{_ 'r-rule-disabled'}}
|
||||
| — {{expiresText}}
|
||||
button.js-refresh-personal-api-token-report(type="button") {{_ 'refresh'}}
|
||||
button.js-personal-api-token-csv(type="button") {{_ 'export-csv'}}
|
||||
if hasPreviousTokenPage
|
||||
button.js-personal-api-token-page(type="button" data-direction="-1") {{_ 'previous'}}
|
||||
if hasNextTokenPage
|
||||
button.js-personal-api-token-page(type="button" data-direction="1") {{_ 'next'}}
|
||||
+tablePage(usageTable)
|
||||
if tokenError
|
||||
p.error(role="alert") {{tokenError}}
|
||||
@@ -0,0 +1,148 @@
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
import { Template } from 'meteor/templating';
|
||||
import { ReactiveVar } from 'meteor/reactive-var';
|
||||
import { buildHeader, buildRows } from '/models/lib/tablePage';
|
||||
import './personalApiTokens.jade';
|
||||
|
||||
const { addressReportColumns } = require('/models/lib/addressReportColumns');
|
||||
const formatTime = date => date ? new Date(date).toLocaleString() : '';
|
||||
const PER_PAGE = 50;
|
||||
|
||||
function reportError(instance, error) {
|
||||
instance.error.set(error.reason || error.message);
|
||||
}
|
||||
|
||||
async function refresh(instance, isAdmin, offset = 0) {
|
||||
instance.error.set('');
|
||||
try {
|
||||
instance.state.set(await Meteor.callAsync(isAdmin ? 'personalApiTokens.admin' : 'personalApiTokens.list',
|
||||
...(isAdmin ? [offset] : [])));
|
||||
instance.offset.set(offset);
|
||||
} catch (error) { reportError(instance, error); }
|
||||
}
|
||||
|
||||
for (const name of ['personalApiTokensPopup', 'personalApiTokensAdmin']) {
|
||||
const tpl = Template[name];
|
||||
tpl.onCreated(function () {
|
||||
this.state = new ReactiveVar(null);
|
||||
this.error = new ReactiveVar('');
|
||||
this.offset = new ReactiveVar(0);
|
||||
this.secret = new ReactiveVar('');
|
||||
refresh(this, name === 'personalApiTokensAdmin');
|
||||
});
|
||||
tpl.helpers({
|
||||
tokenPolicy() { return Template.instance().state.get()?.policy; },
|
||||
tokenError() { return Template.instance().error.get(); },
|
||||
tokenRows() {
|
||||
return (Template.instance().state.get()?.tokens || []).map(row => ({
|
||||
...row,
|
||||
expiresText: formatTime(row.expiresAt),
|
||||
lastUsedText: formatTime(row.lastUsed),
|
||||
scopeKey: row.scope === 'read' ? 'read-only' : 'personal-api-token-write',
|
||||
}));
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Template.personalApiTokensPopup.helpers({
|
||||
secret() { return Template.instance().secret.get(); },
|
||||
expiryDefault() {
|
||||
const date = new Date(Date.now() + 86400000);
|
||||
date.setMinutes(date.getMinutes() - date.getTimezoneOffset());
|
||||
return date.toISOString().slice(0, 16);
|
||||
},
|
||||
});
|
||||
|
||||
Template.personalApiTokensPopup.events({
|
||||
async 'submit .js-create-personal-api-token'(event, instance) {
|
||||
event.preventDefault();
|
||||
const form = event.currentTarget;
|
||||
const input = new FormData(form);
|
||||
instance.error.set('');
|
||||
instance.secret.set('');
|
||||
const button = form.querySelector('button[type="submit"]');
|
||||
button.disabled = true;
|
||||
try {
|
||||
instance.secret.set(await Meteor.callAsync('personalApiTokens.create', {
|
||||
name: input.get('name'),
|
||||
expiresAt: new Date(input.get('expiresAt')),
|
||||
scope: input.get('scope'),
|
||||
boards: input.get('boards').split(/[\s,]+/).filter(Boolean),
|
||||
}));
|
||||
form.reset();
|
||||
await refresh(instance, false);
|
||||
} catch (error) { reportError(instance, error); }
|
||||
finally { button.disabled = false; }
|
||||
},
|
||||
async 'click .js-revoke-personal-api-token'(event, instance) {
|
||||
try {
|
||||
await Meteor.callAsync('personalApiTokens.revoke', event.currentTarget.dataset.id);
|
||||
instance.secret.set('');
|
||||
await refresh(instance, false);
|
||||
} catch (error) { reportError(instance, error); }
|
||||
},
|
||||
});
|
||||
|
||||
const usageColumns = [
|
||||
{ labelKey: 'username', value: row => row.username },
|
||||
{ labelKey: 'name', value: row => row.tokenName },
|
||||
...addressReportColumns({ map: true }),
|
||||
{ labelKey: 'board-id', value: row => row.boardId },
|
||||
{ labelKey: 'action', value: row => row.action },
|
||||
{ labelKey: 'status', value: row => row.status },
|
||||
{ labelKey: 'api-calls', value: row => row.count },
|
||||
{ labelKey: 'api-first-called', value: row => formatTime(row.startedAt) },
|
||||
{ labelKey: 'api-last-called', value: row => formatTime(row.endedAt) },
|
||||
];
|
||||
|
||||
Template.personalApiTokensAdmin.helpers({
|
||||
usageTable() {
|
||||
const instance = Template.instance();
|
||||
const state = instance.state.get();
|
||||
const rows = state?.usage || [];
|
||||
return { header: buildHeader(usageColumns), rows: buildRows(rows, usageColumns),
|
||||
rowCount: rows.length, hideControls: true, emptyKey: 'api-no-calls' };
|
||||
},
|
||||
hasPreviousTokenPage() { return Template.instance().offset.get() > 0; },
|
||||
hasNextTokenPage() {
|
||||
const state = Template.instance().state.get();
|
||||
return state?.usage.length === PER_PAGE || state?.tokens.length === PER_PAGE;
|
||||
},
|
||||
});
|
||||
|
||||
Template.personalApiTokensAdmin.events({
|
||||
async 'submit .js-personal-api-token-policy'(event, instance) {
|
||||
event.preventDefault();
|
||||
const input = new FormData(event.currentTarget);
|
||||
try {
|
||||
await Meteor.callAsync('personalApiTokens.configure', input.has('enabled'), Number(input.get('maxDays')));
|
||||
await refresh(instance, true, instance.offset.get());
|
||||
} catch (error) { reportError(instance, error); }
|
||||
},
|
||||
'click .js-refresh-personal-api-token-report'(event, instance) {
|
||||
refresh(instance, true, instance.offset.get());
|
||||
},
|
||||
'click .js-personal-api-token-page'(event, instance) {
|
||||
refresh(instance, true, Math.max(0, instance.offset.get() + Number(event.currentTarget.dataset.direction) * PER_PAGE));
|
||||
},
|
||||
async 'click .js-personal-api-token-csv'(event, instance) {
|
||||
const button = event.currentTarget;
|
||||
button.disabled = true;
|
||||
try {
|
||||
const parts = ['User ID,Username,Token,IPv4,IPv6,Country,Latitude,Longitude,Board ID,Action,HTTP status,Count,Started UTC,Ended UTC\r\n'];
|
||||
let after = null;
|
||||
do {
|
||||
const batch = await Meteor.callAsync('personalApiTokens.exportUsage', after);
|
||||
parts.push(batch.csv);
|
||||
after = batch.next;
|
||||
} while (after);
|
||||
const url = URL.createObjectURL(new Blob(parts, { type: 'text/csv;charset=utf-8' }));
|
||||
const link = document.createElement('a');
|
||||
link.href = url;
|
||||
link.download = 'personal-api-token-usage.csv';
|
||||
link.click();
|
||||
Meteor.setTimeout(() => URL.revokeObjectURL(url), 1000);
|
||||
} catch (error) { reportError(instance, error); }
|
||||
finally { button.disabled = false; }
|
||||
},
|
||||
});
|
||||
@@ -84,6 +84,10 @@ template(name="historyTable")
|
||||
class="{{#if row.isSelected}}is-checked{{/if}}")
|
||||
td.history-change
|
||||
span.history-change-type {{_ row.changeTypeKey}}
|
||||
if row.authorName
|
||||
span.quiet.history-author {{row.authorName}}
|
||||
if row.sourceLabel
|
||||
span.quiet.history-source {{row.sourceLabel}}
|
||||
if row.groupKey
|
||||
span.quiet.history-group {{_ row.groupKey}}
|
||||
td.history-content
|
||||
|
||||
@@ -107,6 +107,7 @@ Template.historyTable.onCreated(function () {
|
||||
function summarise(row) {
|
||||
const content = row.newContent || row.previousContent;
|
||||
if (!content) return '';
|
||||
if (row.entityType === 'board' && row.group === 'labels') return content.label?.name || row.entityId;
|
||||
if (row.entityType === 'scrum') {
|
||||
return (content.records || []).map(entry => {
|
||||
const doc = entry.document;
|
||||
@@ -182,6 +183,8 @@ Template.historyTable.helpers({
|
||||
changeTypeKey: changeTypeKey(row.changeType),
|
||||
groupKey: GROUP_KEYS[row.group] || null,
|
||||
contentSummary: summarise(row),
|
||||
authorName: ReactiveCache.getUser(row.userId, { fields: { username: 1 } })?.username || row.userId,
|
||||
sourceLabel: row.source === 'rest' ? 'REST API' : row.source === 'web' ? 'Web / DDP' : '',
|
||||
prettyWhen: formatDateForDisplay(row.createdAt, true, formatDateTime),
|
||||
isSelected: selected.includes(row._id),
|
||||
attachment: attachmentForRow(row),
|
||||
|
||||
Vendored
-12
@@ -295,15 +295,3 @@ a.show-mapping {
|
||||
.import-source-list .import-source-group:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.api-import-fetch input.js-api-import-remember-sync[type="checkbox"] {
|
||||
display: inline-block;
|
||||
visibility: visible;
|
||||
position: static;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
min-height: 0;
|
||||
padding: 0;
|
||||
margin-inline-end: 6px;
|
||||
appearance: auto;
|
||||
}
|
||||
@@ -29,7 +29,7 @@ template(name="import")
|
||||
else if ok
|
||||
| {{_ 'import-many-imported'}}
|
||||
else
|
||||
| {{error}}
|
||||
| {{this.error}}
|
||||
button.primary.js-import-many-all-boards(type="button") {{_ 'all-boards'}}
|
||||
//- #1173: ONE import page. Every source used to be its own address reached
|
||||
from its own link in the board sidebar, and the page never said which
|
||||
@@ -317,7 +317,7 @@ template(name="importMapMembers")
|
||||
| {{_ 'import-members-map-note' }}
|
||||
.mapping-list
|
||||
each members
|
||||
a.mapping-item.js-select-member(class="{{#if wekanId}}filled{{/if}}")
|
||||
a.mapping-item.js-select-member(data-member-id="{{id}}" class="{{#if wekanId}}filled{{/if}}")
|
||||
.profile-source
|
||||
.full-name= fullName
|
||||
.username
|
||||
@@ -367,13 +367,14 @@ template(name="apiImportFetch")
|
||||
.api-import-fetch
|
||||
unless rememberSyncAvailable
|
||||
p.quiet {{_ 'api-import-desc'}}
|
||||
//- API buttons validate credentials independently of the pasted-file form.
|
||||
each fields
|
||||
p
|
||||
label(for="api-import-{{name}}") {{_ label}}
|
||||
if secret
|
||||
input.js-api-import-field(id="api-import-{{name}}" data-name="{{name}}" type="password" autocomplete="off" required=required)
|
||||
input.js-api-import-field(id="api-import-{{name}}" data-name="{{name}}" type="password" autocomplete="off" aria-required="{{#if required}}true{{else}}false{{/if}}")
|
||||
else
|
||||
input.js-api-import-field(id="api-import-{{name}}" data-name="{{name}}" type="text" autocomplete="off" required=required)
|
||||
input.js-api-import-field(id="api-import-{{name}}" data-name="{{name}}" type="text" autocomplete="off" aria-required="{{#if required}}true{{else}}false{{/if}}")
|
||||
p
|
||||
button.js-api-import-list(type="button" disabled=busy) {{_ 'api-import-list'}}
|
||||
if items.length
|
||||
|
||||
+145
-138
@@ -1,3 +1,5 @@
|
||||
import { restoreNotionImportProgress, saveNotionImportProgress } from '/client/lib/notionImportRecovery';
|
||||
import { mergeNotionImportBatch, nextNotionImportCursor } from '/models/lib/notionImportBatches';
|
||||
import { ReactiveCache } from '/imports/reactiveCache';
|
||||
import { trelloGetMembersToMap } from './trelloMembersMapper';
|
||||
import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
|
||||
@@ -16,7 +18,6 @@ import {
|
||||
} from '/client/components/boards/exportScope';
|
||||
import { pruneImportDocument } from '/models/lib/importParts';
|
||||
import { importDeadlineFor } from '/models/lib/importDeadline';
|
||||
import { slimTaigaDump } from '/models/lib/taigaFormat';
|
||||
import { readBulkImportFiles, expandFiles, documentForFile, isGeneralizedSource } from '/models/lib/importManyFiles';
|
||||
import { IMPORT_SOURCES, importSource as importSourceSpec, acceptFor, isApiImport } from '/models/lib/importSources';
|
||||
import { TAPi18n } from '/imports/i18n';
|
||||
@@ -117,10 +118,11 @@ function _prepareAdditionalData(dataObject) {
|
||||
// is never auto-retried, and a .zip's attachment bytes never touch the realtime
|
||||
// connection at all. The body is either a .zip File (application/zip) or a JSON
|
||||
// string { board, membersMapping } (application/json).
|
||||
async function postTrelloImport(body, contentType) {
|
||||
async function postTrelloImport(body, contentType, query) {
|
||||
const token =
|
||||
(window.localStorage && window.localStorage.getItem('Meteor.loginToken')) || '';
|
||||
const resp = await fetch('/import-trello', {
|
||||
const url = query ? `/import-trello?${new URLSearchParams(query)}` : '/import-trello';
|
||||
const resp = await fetch(url, {
|
||||
method: 'POST',
|
||||
credentials: 'same-origin',
|
||||
headers: {
|
||||
@@ -316,6 +318,7 @@ Template.import.onCreated(function () {
|
||||
// Who the file's people become (models/lib/importMembersMode.js): the
|
||||
// page's choice, or placeholders when the import skips the people step.
|
||||
this.membersMode = chosenMembersMode(skipMapping);
|
||||
this.trelloZipUploadId = null;
|
||||
// "Import many boards": files chosen there are imported, each as its own
|
||||
// board, instead of the single file or text above.
|
||||
const manyEl = this.find('.js-import-many-files');
|
||||
@@ -341,7 +344,7 @@ Template.import.onCreated(function () {
|
||||
if (spec.package) {
|
||||
const zipEl = this.find('.js-import-zip-file');
|
||||
if (zipEl && zipEl.files && zipEl.files[0]) {
|
||||
await this.importTrelloZip(zipEl.files[0]);
|
||||
await this.importTrelloZip(zipEl.files[0], this.membersMode === 'map' && !skipMapping);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -365,11 +368,13 @@ Template.import.onCreated(function () {
|
||||
}
|
||||
this.upload = null;
|
||||
this.uploadExtras = null;
|
||||
// Jira too: its people are read from the uploaded file by the server.
|
||||
if (file && (spec.creator === 'generalized' || dataSource === 'jira' || dataSource === 'csv')) {
|
||||
const pastedTaiga = !file && dataSource === 'taiga' ? this.find('.js-import-json')?.value : '';
|
||||
const uploadFile = file || (pastedTaiga?.trim() ? new Blob([pastedTaiga], { type: 'application/json' }) : null);
|
||||
// Large Taiga dumps can also arrive as pasted JSON.
|
||||
if (uploadFile && (spec.creator === 'generalized' || dataSource === 'jira' || dataSource === 'csv')) {
|
||||
// Streamed to the server's disk, never read into this page whole.
|
||||
try {
|
||||
this.upload = await postImportUpload(dataSource, file);
|
||||
this.upload = await postImportUpload(dataSource, uploadFile);
|
||||
} catch (e) {
|
||||
this.setError((e && e.message) || 'import-upload-failed');
|
||||
return;
|
||||
@@ -434,9 +439,6 @@ Template.import.onCreated(function () {
|
||||
const wsEl = this.find('.js-import-workspace-name');
|
||||
this.workspaceName = wsEl && wsEl.value ? wsEl.value.trim() : '';
|
||||
}
|
||||
// A Taiga dump embeds every attachment as base64; they are not imported,
|
||||
// so they are not sent (models/lib/taigaFormat.js).
|
||||
if (dataSource === 'taiga') doc = slimTaigaDump(doc);
|
||||
this.importedData.set(doc);
|
||||
// The people: the generalized importer's are read by the server's parser
|
||||
// (mapPeopleOrImport); WeKan, Trello and Jira read their own.
|
||||
@@ -519,13 +521,22 @@ Template.import.onCreated(function () {
|
||||
results.push({ name, boardId, ok: true, error: '' });
|
||||
continue;
|
||||
}
|
||||
if (source === 'taiga') {
|
||||
const upload = await postImportUpload(source, new File([bytes], name.split('/').pop()));
|
||||
const fields = selectedFields();
|
||||
const boardId = await Meteor.callAsync('importBoard', {}, {
|
||||
membersMapping: {}, membersMode, importFields: fields, uploadId: upload.uploadId,
|
||||
...auth, ...(split ? { splitBy: 'swimlane' } : {}),
|
||||
}, source, null);
|
||||
results.push({ name, boardId, ok: !!boardId, error: boardId ? '' : TAPi18n.__('error-json-malformed') });
|
||||
continue;
|
||||
}
|
||||
if (source === 'wekan') {
|
||||
doc = await readExportFile(new File([bytes], name.split('/').pop()));
|
||||
if (wekanExportIsEmpty(doc)) throw new Error(TAPi18n.__('error-import-empty-board'));
|
||||
} else {
|
||||
doc = documentForFile(source, name, bytes);
|
||||
}
|
||||
if (source === 'taiga') doc = slimTaigaDump(doc);
|
||||
let boardId;
|
||||
if (source === 'trello') {
|
||||
const result = await postTrelloImport(JSON.stringify({ board: doc, membersMapping: {}, membersMode }), 'application/json');
|
||||
@@ -543,29 +554,47 @@ Template.import.onCreated(function () {
|
||||
this.manyResults.set(results);
|
||||
};
|
||||
|
||||
this.importTrelloZip = async (zipFile) => {
|
||||
this.importTrelloZip = async (zipFile, previewPeople) => {
|
||||
this.setError('');
|
||||
const wsEl = this.find('.js-import-workspace-name');
|
||||
const workspaceName = wsEl && wsEl.value ? wsEl.value.trim() : '';
|
||||
this.workspaceName = wsEl && wsEl.value ? wsEl.value.trim() : '';
|
||||
|
||||
this.zipImporting.set(true);
|
||||
let result;
|
||||
try {
|
||||
result = await postTrelloImport(zipFile, 'application/zip');
|
||||
result = await postTrelloImport(zipFile, 'application/zip', previewPeople
|
||||
? { previewPeople: '1' } : { membersMode: this.membersMode === 'me' ? 'me' : 'placeholder' });
|
||||
} catch (e) {
|
||||
this.zipImporting.set(false);
|
||||
this.setError((e && e.message) || 'import-trello-failed');
|
||||
return;
|
||||
} finally {
|
||||
this.zipImporting.set(false);
|
||||
}
|
||||
this.zipImporting.set(false);
|
||||
if (previewPeople) {
|
||||
this.trelloZipUploadId = result.uploadId;
|
||||
this.membersToMap.set(trelloGetMembersToMap(result));
|
||||
if (result.members.length) this.nextStep();
|
||||
else await this.finishImport();
|
||||
return;
|
||||
}
|
||||
this.completeTrelloZip(result);
|
||||
};
|
||||
|
||||
(result.boardIds || []).forEach(boardId => {
|
||||
if (workspaceName) {
|
||||
assignBoardToNamedWorkspace(boardId, workspaceName);
|
||||
}
|
||||
});
|
||||
this.completeTrelloZip = result => {
|
||||
const boardIds = result.boardIds || [];
|
||||
if (!boardIds.length) {
|
||||
this.setError('import-trello-failed');
|
||||
return;
|
||||
}
|
||||
if (this.workspaceName) {
|
||||
boardIds.forEach(boardId => assignBoardToNamedWorkspace(boardId, this.workspaceName));
|
||||
}
|
||||
Session.set('fromBoard', null);
|
||||
// Go to All Boards, where the newly imported boards appear.
|
||||
if (boardIds.length === 1) {
|
||||
openOrReportImportedBoard(boardIds[0], '');
|
||||
return;
|
||||
}
|
||||
// Multiple imported boards are available together on All Boards.
|
||||
FlowRouter.go('home');
|
||||
};
|
||||
|
||||
@@ -590,6 +619,25 @@ Template.import.onCreated(function () {
|
||||
// navigating away — that forces an empty re-render mid-teardown and can
|
||||
// throw "Can't select in removed DomRange". We navigate away, which
|
||||
// destroys the import templates.
|
||||
if (this.trelloZipUploadId) {
|
||||
if (this.zipImporting.get()) return;
|
||||
this.zipImporting.set(true);
|
||||
try {
|
||||
const result = await postTrelloImport(
|
||||
JSON.stringify({ uploadId: this.trelloZipUploadId, membersMapping: mappingById }),
|
||||
'application/json', { commitZip: '1' },
|
||||
);
|
||||
this.completeTrelloZip(result);
|
||||
} catch (e) {
|
||||
this._currentStepIndex.set(0);
|
||||
this.setError((e && e.message) || 'import-trello-failed');
|
||||
} finally {
|
||||
this.trelloZipUploadId = null;
|
||||
this.zipImporting.set(false);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.importSource === 'trello') {
|
||||
let result;
|
||||
try {
|
||||
@@ -891,11 +939,7 @@ Template.importTextarea.events({
|
||||
},
|
||||
});
|
||||
|
||||
// Module-level reference so popup children can access importMapMembers methods
|
||||
let _importMapMembersTpl = null;
|
||||
|
||||
Template.importMapMembers.onCreated(function () {
|
||||
_importMapMembersTpl = this;
|
||||
this.usersLoaded = new ReactiveVar(false);
|
||||
|
||||
this.members = () => {
|
||||
@@ -910,55 +954,9 @@ Template.importMapMembers.onCreated(function () {
|
||||
}
|
||||
};
|
||||
|
||||
this._setPropertyForMember = (property, value, memberId, unset = false) => {
|
||||
const listOfMembers = this.members();
|
||||
let finder = null;
|
||||
if (memberId) {
|
||||
finder = member => member.id === memberId;
|
||||
} else {
|
||||
finder = member => member.selected;
|
||||
}
|
||||
listOfMembers.forEach(member => {
|
||||
if (finder(member)) {
|
||||
if (value !== null) {
|
||||
member[property] = value;
|
||||
} else {
|
||||
delete member[property];
|
||||
}
|
||||
if (!unset) {
|
||||
// we shortcut if we don't care about unsetting the others
|
||||
return false;
|
||||
}
|
||||
} else if (unset) {
|
||||
delete member[property];
|
||||
}
|
||||
return true;
|
||||
});
|
||||
// Session.get gives us a copy, we have to set it back so it sticks
|
||||
this._refreshMembers(listOfMembers);
|
||||
};
|
||||
|
||||
this.setSelectedMember = (memberId) => {
|
||||
return this._setPropertyForMember('selected', true, memberId, true);
|
||||
};
|
||||
|
||||
this.getMember = (memberId = null) => {
|
||||
const allMembers = this.members();
|
||||
let finder = null;
|
||||
if (memberId) {
|
||||
finder = user => user.id === memberId;
|
||||
} else {
|
||||
finder = user => user.selected;
|
||||
}
|
||||
return allMembers.find(finder);
|
||||
};
|
||||
|
||||
this.mapSelectedMember = (wekanId) => {
|
||||
return this._setPropertyForMember('wekanId', wekanId, null);
|
||||
};
|
||||
|
||||
this.unmapMember = (memberId) => {
|
||||
return this._setPropertyForMember('wekanId', null, memberId);
|
||||
this.setMemberMapping = (memberId, wekanId) => {
|
||||
this._refreshMembers(this.members().map(member =>
|
||||
member.id === memberId ? { ...member, wekanId } : member));
|
||||
};
|
||||
|
||||
this.autorun(() => {
|
||||
@@ -996,12 +994,6 @@ Template.importMapMembers.onCreated(function () {
|
||||
});
|
||||
});
|
||||
|
||||
Template.importMapMembers.onDestroyed(function () {
|
||||
if (_importMapMembersTpl === this) {
|
||||
_importMapMembersTpl = null;
|
||||
}
|
||||
});
|
||||
|
||||
Template.importMapMembers.helpers({
|
||||
usersLoaded() {
|
||||
return Template.instance().usersLoaded;
|
||||
@@ -1029,34 +1021,18 @@ Template.importMapMembers.events({
|
||||
}
|
||||
},
|
||||
'click .js-select-member'(evt, tpl) {
|
||||
const memberToMap = Template.currentData();
|
||||
if (memberToMap.wekan) {
|
||||
// todo xxx ask for confirmation?
|
||||
tpl.unmapMember(memberToMap.id);
|
||||
} else {
|
||||
tpl.setSelectedMember(memberToMap.id);
|
||||
Popup.open('importMapMembersAdd')(evt);
|
||||
}
|
||||
const memberId = evt.currentTarget.dataset.memberId;
|
||||
if (!memberId) return;
|
||||
Popup.open('importMapMembersAdd', {
|
||||
dataContext: { selectUser: wekanId => tpl.setMemberMapping(memberId, wekanId) },
|
||||
})(evt);
|
||||
},
|
||||
});
|
||||
|
||||
// Global reactive variables for import member popup
|
||||
const importMemberPopupState = {
|
||||
searching: new ReactiveVar(false),
|
||||
searchResults: new ReactiveVar([]),
|
||||
noResults: new ReactiveVar(false),
|
||||
searchTimeout: null,
|
||||
};
|
||||
|
||||
Template.importMapMembersAddPopup.onCreated(function () {
|
||||
this.searching = importMemberPopupState.searching;
|
||||
this.searchResults = importMemberPopupState.searchResults;
|
||||
this.noResults = importMemberPopupState.noResults;
|
||||
this.searchTimeout = null;
|
||||
|
||||
this.searching.set(false);
|
||||
this.searchResults.set([]);
|
||||
this.noResults.set(false);
|
||||
this.searching = new ReactiveVar(false);
|
||||
this.searchResults = new ReactiveVar([]);
|
||||
this.noResults = new ReactiveVar(false);
|
||||
});
|
||||
|
||||
Template.importMapMembersAddPopup.onRendered(function () {
|
||||
@@ -1068,41 +1044,39 @@ Template.importMapMembersAddPopup.onRendered(function () {
|
||||
});
|
||||
|
||||
Template.importMapMembersAddPopup.onDestroyed(function () {
|
||||
if (this.searchTimeout) {
|
||||
clearTimeout(this.searchTimeout);
|
||||
}
|
||||
clearTimeout(this.searchTimeout);
|
||||
this.searchSubscription?.stop();
|
||||
this.searching.set(false);
|
||||
});
|
||||
|
||||
function importPerformSearch(tpl, query) {
|
||||
if (!query || query.length < 2) {
|
||||
tpl.searchResults.set([]);
|
||||
tpl.noResults.set(false);
|
||||
return;
|
||||
}
|
||||
|
||||
tpl.searching.set(true);
|
||||
tpl.searchSubscription?.stop();
|
||||
tpl.searchResults.set([]);
|
||||
tpl.noResults.set(false);
|
||||
|
||||
const results = UserSearchIndex.search(query, { limit: 20 }).fetch();
|
||||
tpl.searchResults.set(results);
|
||||
tpl.searching.set(false);
|
||||
const eligible = query.length >= 2 && query.length <= 128;
|
||||
tpl.searching.set(eligible);
|
||||
if (!eligible) return;
|
||||
|
||||
if (results.length === 0) {
|
||||
tpl.noResults.set(true);
|
||||
}
|
||||
tpl.searchSubscription = tpl.subscribe('user-search', query, {
|
||||
onReady() {
|
||||
if (tpl.view.isDestroyed || tpl.find('.js-search-member-input')?.value.trim() !== query) return;
|
||||
const results = UserSearchIndex.search(query, { limit: 20 }).fetch();
|
||||
tpl.searchResults.set(results);
|
||||
tpl.searching.set(false);
|
||||
tpl.noResults.set(results.length === 0);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// Map the currently-selected imported member to a WeKan user and close the popup.
|
||||
function importMapToUser(wekanId) {
|
||||
if (wekanId && _importMapMembersTpl) {
|
||||
_importMapMembersTpl.mapSelectedMember(wekanId);
|
||||
}
|
||||
function importMapToUser(tpl, wekanId) {
|
||||
tpl.data.selectUser(wekanId);
|
||||
Popup.back();
|
||||
}
|
||||
|
||||
Template.importMapMembersAddPopup.events({
|
||||
'click .js-select-import'(event) {
|
||||
'click .js-select-import'(event, tpl) {
|
||||
// Map to the WeKan user _id carried on the .js-select-import anchor's data-id.
|
||||
// Reading it from the anchor (event.currentTarget) is robust to the click
|
||||
// landing on a child node (the avatar or the name span), where
|
||||
@@ -1111,7 +1085,7 @@ Template.importMapMembersAddPopup.events({
|
||||
// template; the earlier fix from `__originalId` to `_id` was correct but read
|
||||
// the wrong context.)
|
||||
const id = event.currentTarget.getAttribute('data-id');
|
||||
if (id) importMapToUser(id);
|
||||
if (id) importMapToUser(tpl, id);
|
||||
},
|
||||
// Enter selects the first (highlighted) search result, so a name can be assigned
|
||||
// by keyboard without a mouse click.
|
||||
@@ -1120,14 +1094,11 @@ Template.importMapMembersAddPopup.events({
|
||||
event.preventDefault();
|
||||
const results = tpl.searchResults.get();
|
||||
if (results && results.length) {
|
||||
importMapToUser(results[0]._id);
|
||||
importMapToUser(tpl, results[0]._id);
|
||||
}
|
||||
}
|
||||
},
|
||||
'keyup .js-search-member-input'(event, tpl) {
|
||||
if (event.keyCode === 13) {
|
||||
return; // handled on keydown
|
||||
}
|
||||
'input .js-search-member-input'(event, tpl) {
|
||||
const query = event.target.value.trim();
|
||||
|
||||
if (tpl.searchTimeout) {
|
||||
@@ -1142,13 +1113,13 @@ Template.importMapMembersAddPopup.events({
|
||||
|
||||
Template.importMapMembersAddPopup.helpers({
|
||||
searchResults() {
|
||||
return importMemberPopupState.searchResults.get();
|
||||
return Template.instance().searchResults.get();
|
||||
},
|
||||
searching() {
|
||||
return importMemberPopupState.searching;
|
||||
return Template.instance().searching;
|
||||
},
|
||||
noResults() {
|
||||
return importMemberPopupState.noResults;
|
||||
return Template.instance().noResults;
|
||||
},
|
||||
});
|
||||
|
||||
@@ -1634,7 +1605,8 @@ Template.apiImportFetch.events({
|
||||
const parent = findParentTemplateInstance(tpl, 'importTextarea');
|
||||
const rememberSyncCredential = !!tpl.find('.js-api-import-remember-sync')?.checked;
|
||||
if (parent) parent.fetchedAttachmentAuth = null;
|
||||
Meteor.call('apiImportFetch', service, credentials, id, selectedFields(), (error, data) => {
|
||||
const fields = selectedFields();
|
||||
const applyFetchedDocument = (error, data) => {
|
||||
if (error) return apiImportFailed(tpl, error);
|
||||
tpl.busy.set(false);
|
||||
tpl.$('.js-api-import-field[type="password"]').val('');
|
||||
@@ -1643,7 +1615,7 @@ Template.apiImportFetch.events({
|
||||
const text = JSON.stringify(data);
|
||||
textarea.value = text;
|
||||
textarea.dispatchEvent(new Event('input', { bubbles: true }));
|
||||
if (apiImportService(service)?.batch && credentials.token && isAttachmentAuthShape(credentials)) {
|
||||
if ((apiImportService(service)?.batch || attachmentAuthFields(service)) && credentials.token && isAttachmentAuthShape(credentials)) {
|
||||
// This credential is for the fetched document only, through the
|
||||
// upcoming import. Editing or replacing the document drops it.
|
||||
parent.fetchedAttachmentAuth = { text, credentials, projectId: id, rememberSyncCredential };
|
||||
@@ -1651,6 +1623,41 @@ Template.apiImportFetch.events({
|
||||
}
|
||||
tpl.message.set(TAPi18n.__('api-import-fetched'));
|
||||
return undefined;
|
||||
});
|
||||
};
|
||||
if (service !== 'notionapi') {
|
||||
Meteor.call('apiImportFetch', service, credentials, id, fields, applyFetchedDocument);
|
||||
return;
|
||||
}
|
||||
const key = JSON.stringify([Meteor.userId(), id, fields]);
|
||||
try {
|
||||
const remembered = tpl.notionImportProgress;
|
||||
let progress = remembered?.key === key && remembered.token === credentials.token
|
||||
? remembered.progress : await restoreNotionImportProgress(key, credentials.token);
|
||||
if (tpl.view.isDestroyed) return;
|
||||
progress ||= { cursor: '', document: null };
|
||||
for (let batch = 0; batch < 8; batch += 1) {
|
||||
const response = await Meteor.applyAsync('apiImportFetch',
|
||||
[service, credentials, id, fields, progress.cursor], { noRetry: true });
|
||||
if (tpl.view.isDestroyed) return;
|
||||
const document = mergeNotionImportBatch(progress.document, response);
|
||||
const cursor = nextNotionImportCursor(progress.document, response, progress.cursor);
|
||||
if (cursor === null) {
|
||||
tpl.notionImportProgress = null;
|
||||
await saveNotionImportProgress(key, credentials.token, null);
|
||||
if (tpl.view.isDestroyed) return;
|
||||
applyFetchedDocument(null, document);
|
||||
return;
|
||||
}
|
||||
const checkpoint = { document, cursor };
|
||||
tpl.notionImportProgress = { key, token: credentials.token, progress: checkpoint };
|
||||
await saveNotionImportProgress(key, credentials.token, checkpoint);
|
||||
if (tpl.view.isDestroyed) return;
|
||||
if (cursor === progress.cursor) break;
|
||||
progress = checkpoint;
|
||||
}
|
||||
applyFetchedDocument(null, tpl.notionImportProgress.progress.document);
|
||||
} catch (error) {
|
||||
if (!tpl.view.isDestroyed) applyFetchedDocument(error);
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -32,28 +32,6 @@
|
||||
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,
|
||||
|
||||
@@ -20,6 +20,14 @@ import {
|
||||
require('/client/lib/jquery-ui.js');
|
||||
|
||||
const { calculateIndex } = Utils;
|
||||
const { missingListEntryFields } = require('/models/lib/listEntryRequirements');
|
||||
|
||||
function promptListEntryFields(card, list, missing) {
|
||||
const fields = missing.map(field => field.name || TAPi18n.__(field.labelKey));
|
||||
window.alert([TAPi18n.__('moveCardPopup-title') + ' — ' + list.title, ...fields.map(field => '* ' + field)].join('\n'));
|
||||
Utils.goCardId(card._id);
|
||||
}
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// #6409 List width: a single, simple model.
|
||||
@@ -137,6 +145,7 @@ function effectiveListWidth(list) {
|
||||
fixedEnabled,
|
||||
fixedWidth,
|
||||
sharedWidth: list.width,
|
||||
defaultWidth: ReactiveCache.getBoard(list.boardId)?.defaultListWidth,
|
||||
personalMode,
|
||||
personalWidth,
|
||||
});
|
||||
@@ -426,6 +435,20 @@ Template.listBody.onRendered(function () {
|
||||
// Blaze with the below query.
|
||||
$cards.sortable('cancel');
|
||||
|
||||
if (listData.entryRequirements?.length) {
|
||||
const cards = MultiSelection.isActive()
|
||||
? ReactiveCache.getCards(MultiSelection.getMongoSelector()) : [droppedCard];
|
||||
const definitions = ReactiveCache.getCustomFields({ boardIds: targetBoardId });
|
||||
for (const card of cards) {
|
||||
if (card.listId === listId) continue;
|
||||
const missing = missingListEntryFields(listData, card, definitions);
|
||||
if (!missing.length) continue;
|
||||
if (boardComponent) boardComponent.setIsDragging(false);
|
||||
promptListEntryFields(card, listData, missing);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// #3826: the drop landed between two cards whose sorts do not strictly
|
||||
// increase (duplicate -1 sorts from subtask creation, or legacy data).
|
||||
// Repair the sibling sorts with the minimal bumps that make the visible
|
||||
|
||||
@@ -76,3 +76,14 @@ template(name="minicardSplitDone")
|
||||
if splitDone
|
||||
span.minicard-split-toggle.is-done(title="{{_ 'split-done'}}")
|
||||
i.fa.fa-check-circle
|
||||
|
||||
template(name="listEntryRequirementsPopup")
|
||||
form.js-list-entry-requirements-form
|
||||
fieldset
|
||||
legend {{_ 'moveCardPopup-title'}} — {{_ 'custom-fields'}} / {{_ 'date'}} *
|
||||
each entryOptions
|
||||
label
|
||||
input(type="checkbox" value=id checked=checked)
|
||||
| {{entryLabel}}
|
||||
button.primary(type="submit") {{_ 'save'}}
|
||||
p.js-list-entry-requirements-status(role="status")
|
||||
@@ -132,3 +132,29 @@ Template.minicardSplitDone.events({
|
||||
.catch(error => window.alert((error && (error.reason || error.error)) || String(error)));
|
||||
},
|
||||
});
|
||||
|
||||
const { listEntryOptions } = require('/models/lib/listEntryRequirements');
|
||||
|
||||
Template.listEntryRequirementsPopup.helpers({
|
||||
entryOptions() {
|
||||
const list = ReactiveCache.getList(this._id) || this;
|
||||
return listEntryOptions(ReactiveCache.getCustomFields({ boardIds: list.boardId })).map(option => ({
|
||||
...option, checked: list.entryRequirements?.includes(option.id),
|
||||
}));
|
||||
},
|
||||
entryLabel() {
|
||||
return this.name || TAPi18n.__(this.labelKey);
|
||||
},
|
||||
});
|
||||
Template.listEntryRequirementsPopup.events({
|
||||
async 'submit .js-list-entry-requirements-form'(event, instance) {
|
||||
event.preventDefault();
|
||||
const requirements = [...event.currentTarget.querySelectorAll('input:checked')].map(input => input.value);
|
||||
try {
|
||||
await Meteor.callAsync('setListEntryRequirements', this._id, requirements);
|
||||
Popup.back();
|
||||
} catch (error) {
|
||||
instance.find('.js-list-entry-requirements-status').textContent = error.reason || error.message;
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -272,6 +272,10 @@ template(name="listActionPopup")
|
||||
h4.menu-group-heading {{_ 'settings'}}
|
||||
if currentUser.isBoardAdmin
|
||||
ul.pop-over-list
|
||||
li
|
||||
a.js-list-entry-requirements
|
||||
i.fa.fa-check-square-o
|
||||
| {{_ 'moveCardPopup-title'}} — {{_ 'custom-fields'}} / {{_ 'date'}} *
|
||||
li
|
||||
a.js-set-wip-limit
|
||||
i.fa.fa-ban
|
||||
@@ -549,7 +553,7 @@ template(name="listSyncPopup")
|
||||
each syncEstimateFields
|
||||
option(value=_id selected=selected) {{name}}
|
||||
p.quiet {{_ 'sync-estimate-field-gitlab-hint'}}
|
||||
else if syncEstimateOpenProject
|
||||
else if syncEstimateBoardNumber
|
||||
label {{_ 'sync-estimate-field-gitlab'}}
|
||||
select.js-list-sync-estimate-field
|
||||
option(value="") {{_ 'sync-estimate-field-gitlab'}}
|
||||
|
||||
@@ -624,6 +624,7 @@ Template.listActionPopup.events({
|
||||
Meteor.call('setStickyListHeaders', list.boardId, enabled);
|
||||
Popup.back();
|
||||
},
|
||||
'click .js-list-entry-requirements': Popup.open('listEntryRequirements', { titleKey: 'moveCardPopup-title' }),
|
||||
'click .js-set-wip-limit': Popup.open('setWipLimit'),
|
||||
'click .js-list-policy': Popup.open('listPolicy'),
|
||||
async 'click .js-toggle-list-split'(event) {
|
||||
@@ -935,7 +936,7 @@ function clearProjectLookup(tpl) {
|
||||
tpl.syncFinding.set(false);
|
||||
}
|
||||
|
||||
const syncFieldLabel = field => ({ taskOrder: 'sort', timeEntries: 'time-entries', openProjectHierarchy: 'custom-fields', dueDate: 'due-date', dueComplete: 'due-complete', startDate: 'card-start', comments: 'comments', subtasks: 'subtasks', dependencies: 'card-dependencies', spentTime: 'spent-time-hours', estimate: 'scrum-estimate',
|
||||
const syncFieldLabel = field => ({ notionPeople: 'members', taskOrder: 'sort', timeEntries: 'time-entries', openProjectHierarchy: 'custom-fields', dueDate: 'due-date', dueComplete: 'due-complete', startDate: 'card-start', comments: 'comments', subtasks: 'subtasks', dependencies: 'card-dependencies', spentTime: 'spent-time-hours', estimate: 'scrum-estimate',
|
||||
originalEstimate: 'sync-original-time', remainingEstimate: 'sync-remaining-time',
|
||||
// Scrum planning (models/lib/listSyncPlanning.js); `scrum` is how a preview
|
||||
// names a card whose planning changes.
|
||||
@@ -1088,10 +1089,10 @@ Template.listSyncPopup.helpers({
|
||||
];
|
||||
},
|
||||
syncEstimateEnabled() {
|
||||
return ['jira', 'gitlab', 'openproject'].includes(Template.instance().selectedSyncType.get()) &&
|
||||
return ['jira', 'gitlab', 'openproject', 'notionapi'].includes(Template.instance().selectedSyncType.get()) &&
|
||||
Template.instance().selectedSyncFields.get().includes('estimate');
|
||||
},
|
||||
syncEstimateOpenProject() { return Template.instance().selectedSyncType.get() === 'openproject'; },
|
||||
syncEstimateBoardNumber() { return ['openproject', 'notionapi'].includes(Template.instance().selectedSyncType.get()); },
|
||||
syncEstimateGitlab() { return Template.instance().selectedSyncType.get() === 'gitlab'; },
|
||||
syncEstimateSources() {
|
||||
const selected = Template.instance().selectedEstimateSource.get();
|
||||
@@ -1104,7 +1105,7 @@ Template.listSyncPopup.helpers({
|
||||
const type = Template.instance().selectedSyncType.get();
|
||||
const fields = ReactiveCache.getCustomFields({ boardIds: Template.currentData().boardId, type: 'number' });
|
||||
// GitLab writes into any numeric field the administrator picks.
|
||||
if (type === 'openproject') return fields.filter(field => !field.adminOnly)
|
||||
if (['openproject', 'notionapi'].includes(type)) return fields.filter(field => !field.adminOnly)
|
||||
.map(field => ({ _id: field._id, selected: field._id === selected, name: field.name }));
|
||||
if (type === 'gitlab') return fields.map(field => ({ _id: field._id, selected: field._id === selected, name: field.name }));
|
||||
return fields
|
||||
@@ -1394,7 +1395,7 @@ Template.listSyncPopup.events({
|
||||
? { openProjectTimeActivityId: tpl.find('.js-openproject-time-activity-id')?.value || '' } : {}),
|
||||
enabled: tpl.selectedSyncEnabled.get(),
|
||||
fields: tpl.selectedSyncFields.get(),
|
||||
...(['jira', 'gitlab', 'openproject'].includes(type) && tpl.selectedSyncFields.get().includes('estimate')
|
||||
...(['jira', 'gitlab', 'openproject', 'notionapi'].includes(type) && tpl.selectedSyncFields.get().includes('estimate')
|
||||
? { estimateCustomFieldId: tpl.selectedEstimateField.get(),
|
||||
...(type === 'gitlab' ? { estimateSourceField: tpl.selectedEstimateSource.get() } : {}) } : {}),
|
||||
...tpl.selectedSyncOperations.get(),
|
||||
|
||||
@@ -173,20 +173,3 @@
|
||||
color: #b71c1c;
|
||||
margin-inline-start: 0.3em;
|
||||
}
|
||||
|
||||
/* Labelled native checkboxes: the app-wide material form rule
|
||||
(client/components/forms/forms.css) hides native checkboxes three ways -
|
||||
display, visibility, an offset - which left these with a label and no box
|
||||
to tick or see ticked. All three are undone, as in cardFlow.css. */
|
||||
.billing-page input[type="checkbox"] {
|
||||
display: inline-block;
|
||||
visibility: visible;
|
||||
position: static;
|
||||
inset-inline-start: auto;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
min-height: 0;
|
||||
margin: 0;
|
||||
margin-inline-end: 4px;
|
||||
flex: none;
|
||||
}
|
||||
@@ -1,25 +1,6 @@
|
||||
.board-drag-settings { width: 100%; margin-bottom: 16px; }
|
||||
.board-drag-settings th { text-align: start; }
|
||||
.board-drag-settings th:last-child, .board-drag-settings td:last-child { text-align: center; }
|
||||
.board-drag-settings input[type=checkbox] { width: auto; min-height: 0; margin: 4px; }
|
||||
/* #6820: forms.css gives every input 9px 14px of padding and a border; on a
|
||||
16px native checkbox that left the browser about 2px to draw in, so a ticked
|
||||
box was a small blue dot beside an unticked square. A native checkbox keeps
|
||||
no padding, border or background of a text field. */
|
||||
.board-drag-settings input[type=checkbox] {
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: none;
|
||||
box-shadow: none;
|
||||
display: inline-block;
|
||||
visibility: visible;
|
||||
position: static;
|
||||
inset-inline-start: auto;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
appearance: auto;
|
||||
transform: none;
|
||||
}
|
||||
/* Select all / Unselect all centred under their "Draggable" heading, as the
|
||||
heading and its checkboxes are. */
|
||||
.board-drag-settings th .board-settings-column-actions { justify-content: center; }
|
||||
@@ -8,6 +8,7 @@ template(name="editor")
|
||||
class="{{class}}"
|
||||
id=id
|
||||
aria-label=labelText
|
||||
aria-describedby=describedBy
|
||||
autofocus=autofocus
|
||||
placeholder="{{_ 'comment-placeholder'}}")
|
||||
+Template.contentBlock
|
||||
|
||||
@@ -222,18 +222,14 @@ Blaze.Template.registerHelper(
|
||||
}
|
||||
return member;
|
||||
}), ...specialHandles])];
|
||||
const mentionRegex = /\B@([\w.-]*)/gi;
|
||||
// Jira Cloud mentions carry their own account ID and display label.
|
||||
const mentionRegex = /<span\b[^>]*\bdata-jira-mention="[^"]*"[^>]*>[^<]*<\/span>|\B@([\w.-]*)/gi;
|
||||
|
||||
let currentMention;
|
||||
while ((currentMention = mentionRegex.exec(content)) !== null) {
|
||||
const [fullMention, quoteduser, simple] = currentMention;
|
||||
const username = quoteduser || simple;
|
||||
content = content.replace(mentionRegex, (fullMention, username) => {
|
||||
if (!username) return fullMention;
|
||||
const knowedUser = findWhere(knowedUsers, { username });
|
||||
if (!knowedUser) {
|
||||
continue;
|
||||
}
|
||||
if (!knowedUser) return fullMention;
|
||||
|
||||
const linkValue = [' ', at, knowedUser.username];
|
||||
let linkClass = 'atMention js-open-member';
|
||||
if (knowedUser.userId === Meteor.userId()) {
|
||||
linkClass += ' me';
|
||||
@@ -263,8 +259,8 @@ Blaze.Template.registerHelper(
|
||||
[' ', at, displayText],
|
||||
);
|
||||
|
||||
content = content.replace(fullMention, Blaze.toHTML(link));
|
||||
}
|
||||
return Blaze.toHTML(link);
|
||||
});
|
||||
|
||||
return HTML.Raw(sanitizeHTML(content, { stripLinks, urlSchemes }));
|
||||
}),
|
||||
@@ -323,6 +319,10 @@ Template.viewer.onRendered(function () {
|
||||
});
|
||||
|
||||
Template.viewer.events({
|
||||
'click details > summary'(event) {
|
||||
// Let the browser toggle the section without opening a surrounding editor.
|
||||
event.stopPropagation();
|
||||
},
|
||||
// Viewer sometimes have click-able wrapper around them (for instance to edit
|
||||
// the corresponding text). Clicking a link shouldn't fire these actions, stop
|
||||
// we stop these event at the viewer component level.
|
||||
|
||||
@@ -65,9 +65,12 @@
|
||||
margin-inline-start: 0;
|
||||
}
|
||||
|
||||
/* The Board View menu in the header bar: beside the view's button. */
|
||||
.board-header-btn + .feature-help-btn {
|
||||
margin-inline-start: 2px;
|
||||
/* Keep the help button with its menu when the header wraps. */
|
||||
.board-view-controls {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
flex: 0 0 auto;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
/* A popup's title bar places its maximize and close buttons absolutely at its
|
||||
|
||||
@@ -719,25 +719,6 @@ a:not(.disabled).is-active i.fa {
|
||||
.viewer em {
|
||||
font-style: italic;
|
||||
}
|
||||
/* wekan/wekan#2419: a GFM task-list item ("- [ ] Task") renders a disabled
|
||||
native checkbox, which forms.css would otherwise hide like every bare
|
||||
checkbox in the app. */
|
||||
.viewer input[type="checkbox"]:not(:checked),
|
||||
.viewer input[type="checkbox"]:checked {
|
||||
/* #6820: no text-field padding, or a ticked box is drawn as a dot. */
|
||||
min-height: 0;
|
||||
padding: 0;
|
||||
display: inline-block;
|
||||
visibility: visible;
|
||||
position: static;
|
||||
inset-inline-start: auto;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
margin: 0;
|
||||
margin-inline-end: 6px;
|
||||
vertical-align: middle;
|
||||
appearance: auto;
|
||||
}
|
||||
.viewer pre,
|
||||
.viewer code {
|
||||
padding: 10px 12px 7px;
|
||||
|
||||
@@ -187,20 +187,3 @@
|
||||
.workload-person-utilization.is-below {
|
||||
color: #b71c1c;
|
||||
}
|
||||
|
||||
/* Labelled native checkboxes: the app-wide material form rule
|
||||
(client/components/forms/forms.css) hides native checkboxes three ways -
|
||||
display, visibility, an offset - which left these with a label and no box
|
||||
to tick or see ticked. All three are undone, as in cardFlow.css. */
|
||||
.workload-page input[type="checkbox"] {
|
||||
display: inline-block;
|
||||
visibility: visible;
|
||||
position: static;
|
||||
inset-inline-start: auto;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
min-height: 0;
|
||||
margin: 0;
|
||||
margin-inline-end: 4px;
|
||||
flex: none;
|
||||
}
|
||||
@@ -23,33 +23,10 @@
|
||||
max-height: 65vh;
|
||||
padding-inline-end: 10px;
|
||||
}
|
||||
.rules-lists-item .js-rule-select {
|
||||
.rules-lists-item input.js-rule-select[type="checkbox"] {
|
||||
float: inline-start;
|
||||
margin: 6px 8px 0 0;
|
||||
}
|
||||
/* #6749: the rule selection checkboxes are NATIVE inputs, and forms.css hides
|
||||
every native checkbox app-wide (WeKan draws its own .materialCheckBox) with
|
||||
display: none, visibility: hidden AND a -9999px offset. So the boxes were
|
||||
never on screen: "Select all" / "Unselect all" changed their state, but there
|
||||
was nothing to see change, and no rule could be ticked one at a time for
|
||||
"Delete selected" / "Export selected" either. Undo all three parts of that
|
||||
rule here, plus the 41px form-field height forms.css gives every input. The
|
||||
selector carries the attribute so it outranks `[type="checkbox"]:checked`. */
|
||||
.rules-lists-item input.js-rule-select[type="checkbox"] {
|
||||
display: inline-block;
|
||||
visibility: visible;
|
||||
position: static;
|
||||
inset-inline-start: auto;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
min-height: 0;
|
||||
flex: 0 0 16px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
appearance: auto;
|
||||
-webkit-appearance: checkbox;
|
||||
cursor: pointer;
|
||||
}
|
||||
.rules-lists-item .js-edit-rule-input {
|
||||
width: 60%;
|
||||
}
|
||||
@@ -500,21 +477,6 @@
|
||||
/* Icons on themed action buttons must share their readable foreground. */
|
||||
.rules-page button.primary i.fa { color: inherit; }
|
||||
|
||||
/* Native, keyboard-accessible attachment choice in the mail action form. */
|
||||
.trigger-content-mail #email-attachments,
|
||||
.trigger-content-mail #email-discussion,
|
||||
.trigger-content-mail #email-card-details {
|
||||
display: inline-block;
|
||||
visibility: visible;
|
||||
position: static;
|
||||
inset-inline-start: auto;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
min-height: 0;
|
||||
padding: 0;
|
||||
margin-inline-end: 6px;
|
||||
appearance: auto;
|
||||
}
|
||||
/* #3195: insert a variable into the text field last focused. */
|
||||
.rule-variable-picker {
|
||||
display: flex;
|
||||
|
||||
@@ -178,6 +178,9 @@ template(name="featuresPerformance")
|
||||
//- Admin Panel / Settings / Security (moved from Problems on 2026-11-19).
|
||||
template(name="featuresSecurity")
|
||||
ul.setting-detail
|
||||
if currentUser.isAdmin
|
||||
li
|
||||
+personalApiTokensAdmin
|
||||
li
|
||||
+adminPanelAllowedAddresses
|
||||
li
|
||||
|
||||
@@ -399,138 +399,6 @@ body.left-menu-resizing-active {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
/* ── Checkboxes ──────────────────────────────────────────────────────────────
|
||||
ONE checkbox for the whole Admin Panel: the same one the rest of WeKan draws
|
||||
(`.materialCheckBox`, forms.css), which is what Admin Panel / Settings /
|
||||
Announcement shows for "Active System-Wide Announcement".
|
||||
|
||||
Two problems this fixes at once.
|
||||
|
||||
1. Some panes - the storage Read toggles, the Organizations and Teams feature
|
||||
columns, the Backup checkboxes, Attachments / Limits / Avatars, the Problems
|
||||
summary - use a NATIVE <input type="checkbox">. forms.css hides every native
|
||||
checkbox app-wide (WeKan draws its own), so those either did not show at all,
|
||||
or were re-enabled pane by pane and then drawn by the BROWSER: on Ubuntu a big
|
||||
orange box, which has nothing to do with the chosen theme (it was orange even
|
||||
under clearblue) and matched nothing else on the page.
|
||||
2. Each pane that re-enabled them picked its own size, so no two agreed.
|
||||
|
||||
The declarations below are `.materialCheckBox` and `.materialCheckBox.is-checked`
|
||||
applied to the input itself - the SAME grey square when unchecked, the SAME morph
|
||||
into a green tick when checked, and the same `transition: 0.2s` that animates
|
||||
between them. Not a tick drawn over the box with a pseudo-element: that gets the
|
||||
checked state right and loses both the unchecked square and the animation.
|
||||
|
||||
`appearance: none` is the one addition, to take the browser's own rendering out
|
||||
of it. If these panes ever move to the `.materialCheckBox` markup, this whole
|
||||
block can go. */
|
||||
.setting-content input[type="checkbox"] {
|
||||
/* Beat the app-wide "hide the native checkbox" rule for the Admin Panel only.
|
||||
* That rule hides in three ways at once - display, visibility, AND a
|
||||
* `inset-inline-start: -9999px` offset - so all three have to be undone. Undoing
|
||||
* two of them leaves the box on screen but 9999px to the side: invisible when
|
||||
* unchecked, and visible when checked ONLY because the checked state below sets
|
||||
* its own -3px offset. That is exactly what "only the tick shows" was. */
|
||||
visibility: visible;
|
||||
display: inline-block;
|
||||
inset-inline-start: auto;
|
||||
top: auto;
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
box-sizing: content-box;
|
||||
/* forms.css styles every input that is not a file input as a FORM FIELD:
|
||||
* `min-height: 41px`, a grey background, a 6px radius, 9px padding and a 14px
|
||||
* bottom margin. Everything but the min-height is overridden by the material
|
||||
* declarations below - but a 41px floor turns a 13px box into a tall rectangle,
|
||||
* and stretches the tick it becomes. `input[type="radio"]` resets it the same way
|
||||
* a few lines further down that file, for the same reason. */
|
||||
min-height: 0;
|
||||
min-width: 0;
|
||||
/* …then exactly .materialCheckBox. */
|
||||
position: relative;
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
z-index: 0;
|
||||
border: 2px solid #5a5a5a;
|
||||
border-radius: 1px;
|
||||
transition: 0.2s;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
/* Written as forms.css writes it: `flex-shrink: 0` and `flex: none` mean the
|
||||
same thing here, and tests/adminCheckboxStyle.test.cjs compares the two
|
||||
rules declaration by declaration - so saying it differently would read as a
|
||||
difference between the Admin Panel's checkbox and everybody else's. */
|
||||
flex: none;
|
||||
vertical-align: middle;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* …and exactly .materialCheckBox.is-checked: the square becomes the tick, which is
|
||||
what the transition above animates. */
|
||||
/* #6465: THE FOCUS RING MUST NOT BE DRAWN ON THE ROTATED BOX.
|
||||
The checked state below turns the square into a tick by making two borders
|
||||
transparent and rotating the element 40deg. A browser draws its focus ring
|
||||
around the element as it is - rotated - so a checkbox that is both checked and
|
||||
focused (which is exactly what a checkbox you just clicked is) comes out as a
|
||||
blue DIAMOND sitting where the tick should be. That is the glitch reported on
|
||||
the Problems page.
|
||||
|
||||
The ring is not simply removed: keyboard users need to see where they are. It
|
||||
moves to the row that CONTAINS the checkbox, which is not rotated - every one
|
||||
of these lives inside a label (problemsSummary.jade: `label.admin-problem-item
|
||||
> input.js-problem-check`) - so the indicator is a normal rectangle around the
|
||||
whole row, which is easier to see than a 13px box anyway.
|
||||
|
||||
`:focus-visible` rather than `:focus`, so clicking with a mouse does not leave
|
||||
a ring behind; `:focus-within` is the fallback where :has() is not supported,
|
||||
and lands on the same element. */
|
||||
.setting-content input[type="checkbox"]:focus,
|
||||
.setting-content input[type="checkbox"]:focus-visible {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.setting-content label:has(> input[type="checkbox"]:focus-visible) {
|
||||
outline: 2px solid #2573a7;
|
||||
outline-offset: 2px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.setting-content input[type="checkbox"]:checked {
|
||||
top: -4px;
|
||||
left: -3px;
|
||||
width: 7px;
|
||||
height: 15px;
|
||||
margin-right: 6px;
|
||||
border-top: 2px solid transparent;
|
||||
border-left: 2px solid transparent;
|
||||
border-bottom: 2px solid #3cb500;
|
||||
border-right: 2px solid #3cb500;
|
||||
border-radius: 0;
|
||||
transform: rotate(40deg);
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
transform-origin: 100% 100%;
|
||||
}
|
||||
|
||||
.setting-content input[type="checkbox"]:focus-visible {
|
||||
outline: 2px solid var(--theme-accent, #2573a7);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.setting-content input[type="checkbox"]:disabled {
|
||||
cursor: default;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
/* A checkbox written as `label > input + text` (Attachments / Limits / Avatars,
|
||||
the Backup checkboxes) needs the gap the `.materialCheckBox` markup gets from its
|
||||
own layout, or the box and its words touch. The checked state adds its own
|
||||
margin - the same one the material checkbox adds - so this is the unchecked one. */
|
||||
.setting-content label > input[type="checkbox"] {
|
||||
margin-inline-end: 6px;
|
||||
}
|
||||
|
||||
/* Admin Panel / Attachments / Backup, the schedule's day: buttons, not a field.
|
||||
The weekly one is seven days in the reader's own language - the text field it
|
||||
replaces only ever accepted an English day name typed exactly right. The monthly
|
||||
|
||||
@@ -465,6 +465,10 @@ template(name='tableVisibilityModeSettings')
|
||||
.form-group
|
||||
label {{_ 'feature-profile-name'}}
|
||||
input.wekan-form-control.js-feature-profile-name(type="text" value=profile.name maxlength="100" aria-label="{{_ 'feature-profile-name'}}")
|
||||
.form-group
|
||||
label
|
||||
| {{_ 'set-default-board-template'}} — {{_ 'board-id'}} ({{_ 'optional'}})
|
||||
input.wekan-form-control.js-feature-profile-board-template(type="text" value=profile.boardTemplateId maxlength="64")
|
||||
.title {{_ 'feature-profile-hides'}}
|
||||
each row in profile.rows
|
||||
a.flex.js-toggle-feature.js-feature-profile-hide(data-feature=row.key)
|
||||
@@ -489,6 +493,18 @@ template(name='tableVisibilityModeSettings')
|
||||
//- The one exception is "Change color" below, which an Organization's own
|
||||
//- admin sets for their Organization (models/lib/tenantAdmin.js themeTarget).
|
||||
if isSiteAdmin
|
||||
li
|
||||
h2.admin-pane-group-title {{_ 'avatars'}} — {{_ 'fullname'}}
|
||||
li.tableVisibilityMode-form
|
||||
label
|
||||
input.js-admin-avatar-full-names(type="checkbox" data-side="minicard" checked=currentSetting.showMinicardAvatarFullNames)
|
||||
| {{_ 'show-on-minicard'}}
|
||||
li.tableVisibilityMode-form
|
||||
label
|
||||
input.js-admin-avatar-full-names(type="checkbox" data-side="card" checked=currentSetting.showCardAvatarFullNames)
|
||||
| {{_ 'show-on-card'}}
|
||||
li.admin-pane-group-separator
|
||||
hr
|
||||
li
|
||||
h2.admin-pane-group-title {{_ 'all-boards-hide'}}
|
||||
//- One checkbox per setting instead of a Yes/No pair: each of these is on or
|
||||
@@ -571,6 +587,22 @@ template(name='tableVisibilityModeSettings')
|
||||
button.js-visibility-date-save.primary {{_ 'save'}}
|
||||
li.admin-pane-group-separator
|
||||
hr
|
||||
li.tableVisibilityMode-form
|
||||
h2.admin-pane-group-title {{_ 'comment'}} — {{_ 'help'}}
|
||||
form.js-comment-editor-hint-form
|
||||
.form-group
|
||||
label(for="comment-editor-hint-language") {{_ 'language'}}
|
||||
select.wekan-form-control#comment-editor-hint-language
|
||||
option(value="default") {{_ 'default'}}
|
||||
each commentHintLanguages
|
||||
option(value=tag)= name
|
||||
.form-group
|
||||
label(for="comment-editor-hint") {{_ 'comment'}} — {{_ 'help'}} ({{_ 'optional'}})
|
||||
input.wekan-form-control#comment-editor-hint(type="text" maxlength="300" value=commentHintValue dir="auto")
|
||||
button.primary(type="submit") {{_ 'save'}}
|
||||
span.js-comment-editor-hint-status(role="status")
|
||||
li.admin-pane-group-separator
|
||||
hr
|
||||
//- #6939: the width every card details window opens at, in percent of the
|
||||
browser window, until a user drags their own (models/lib/cardDetailsWidth.js).
|
||||
li
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import languages from '/imports/i18n/languages';
|
||||
import { cardAvatarNameField } from '/models/lib/cardAvatarNames';
|
||||
import { ReactiveCache } from '/imports/reactiveCache';
|
||||
import { Session } from 'meteor/session';
|
||||
import { leftMenuData, paneTitle } from '/models/lib/leftMenu';
|
||||
@@ -588,6 +590,7 @@ Template.setting.events({
|
||||
// #6736: the pilot users' usernames are not published (the flag is on each
|
||||
// user, visible only to that user), so the site admin's page asks for them.
|
||||
Template.tableVisibilityModeSettings.onCreated(function () {
|
||||
this.commentHintLanguage = new ReactiveVar('default');
|
||||
this.featurePilotUsernames = new ReactiveVar('');
|
||||
// #6837: the feature profiles, with the names of what they apply to. The
|
||||
// page edits these rows; Save sends them all (saveFeatureProfiles).
|
||||
@@ -610,6 +613,7 @@ function readFeatureProfiles(instance) {
|
||||
return {
|
||||
_id: row.dataset.profileId || undefined,
|
||||
name: $row.find('.js-feature-profile-name').val() || '',
|
||||
boardTemplateId: $row.find('.js-feature-profile-board-template').val() || '',
|
||||
hidden: $row.find('.js-feature-profile-hide').toArray()
|
||||
.filter(a => $(a).find('.materialCheckBox').hasClass('is-checked')).map(a => a.dataset.feature),
|
||||
usernames: $row.find('.js-feature-profile-users').val() || '',
|
||||
@@ -620,6 +624,12 @@ function readFeatureProfiles(instance) {
|
||||
}
|
||||
|
||||
Template.tableVisibilityModeSettings.helpers({
|
||||
commentHintValue() {
|
||||
return ReactiveCache.getCurrentSetting()?.commentEditorHints?.[Template.instance().commentHintLanguage.get()] || '';
|
||||
},
|
||||
commentHintLanguages() {
|
||||
return Object.values(languages).map(({ tag, name }) => ({ tag, name }));
|
||||
},
|
||||
// Which of the three panes this is: 'appearance' (the default), 'features'
|
||||
// or 'profiles' (Template.setting renders it once per pane).
|
||||
isPart(part) {
|
||||
@@ -706,6 +716,12 @@ function saveVisibilitySettings($set) {
|
||||
}
|
||||
|
||||
Template.tableVisibilityModeSettings.events({
|
||||
async 'change .js-admin-avatar-full-names'(event) {
|
||||
const settings = ReactiveCache.getCurrentSetting();
|
||||
const field = cardAvatarNameField(event.currentTarget.dataset.side);
|
||||
if (!settings?._id) return;
|
||||
await Settings.updateAsync(settings._id, { $set: { [field]: event.currentTarget.checked } });
|
||||
},
|
||||
async 'change input.js-site-logo-upload'(event, tpl) {
|
||||
const input = event.currentTarget;
|
||||
const file = input.files?.[0];
|
||||
@@ -825,7 +841,8 @@ Template.tableVisibilityModeSettings.events({
|
||||
const unknown = [...result.unknown.usernames, ...result.unknown.teams, ...result.unknown.orgs];
|
||||
status.text(unknown.length ? `${TAPi18n.__('feature-profile-unknown')} ${unknown.join(', ')}` : TAPi18n.__('feature-saved'));
|
||||
} catch (error) {
|
||||
status.text(error.reason || error.error || error.message);
|
||||
status.text(['board-not-found', 'invalid-board-template'].includes(error.error)
|
||||
? TAPi18n.__('board-not-found') : error.reason || error.error || error.message);
|
||||
}
|
||||
},
|
||||
|
||||
@@ -858,6 +875,22 @@ Template.tableVisibilityModeSettings.events({
|
||||
}
|
||||
},
|
||||
|
||||
'change #comment-editor-hint-language'(event, instance) {
|
||||
instance.commentHintLanguage.set(event.currentTarget.value);
|
||||
instance.$('.js-comment-editor-hint-status').text('');
|
||||
},
|
||||
async 'submit .js-comment-editor-hint-form'(event, instance) {
|
||||
event.preventDefault();
|
||||
const status = instance.$('.js-comment-editor-hint-status');
|
||||
try {
|
||||
await Meteor.callAsync('setCommentEditorHint',
|
||||
instance.$('#comment-editor-hint-language').val(), instance.$('#comment-editor-hint').val());
|
||||
status.text(TAPi18n.__('feature-saved'));
|
||||
} catch (error) {
|
||||
status.text(error.reason || error.message);
|
||||
}
|
||||
},
|
||||
|
||||
// #6939: empty = 520px; otherwise a whole percentage, 30 to 95.
|
||||
'click button.js-visibility-card-width-save'(event, instance) {
|
||||
const { clampDefaultPercent } = require('/models/lib/cardDetailsWidth');
|
||||
|
||||
@@ -30,43 +30,44 @@ template(name="tablePage")
|
||||
if statusTemplate
|
||||
.table-page-status
|
||||
+Template.dynamic(template=statusTemplate data=statusData)
|
||||
.table-page-controls
|
||||
input.js-table-page-search(type="search" placeholder="{{_ 'search'}}" aria-label="{{_ 'search'}}" value="{{searchTerm}}")
|
||||
//- Filters, actions and the total are ON by default: supply them and they
|
||||
//- 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
|
||||
//- 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
|
||||
| {{_ labelKey}}
|
||||
else
|
||||
| {{label}}
|
||||
each actions
|
||||
button.js-table-page-action(data-action="{{id}}" class="{{cls}}")
|
||||
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
|
||||
| {{_ totalLabelKey}}
|
||||
| {{total}}
|
||||
.table-page-pagination
|
||||
button.js-table-page-prev(class="{{#unless hasPrev}}disabled{{/unless}}" title="{{_ 'previous'}}")
|
||||
| <
|
||||
span.table-page-page-info {{page}} / {{totalPages}}
|
||||
button.js-table-page-next(class="{{#unless hasNext}}disabled{{/unless}}" title="{{_ 'next'}}")
|
||||
| >
|
||||
unless hideControls
|
||||
.table-page-controls
|
||||
input.js-table-page-search(type="search" placeholder="{{_ 'search'}}" aria-label="{{_ 'search'}}" value="{{searchTerm}}")
|
||||
//- Filters, actions and the total are ON by default: supply them and they
|
||||
//- 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
|
||||
//- 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
|
||||
| {{_ labelKey}}
|
||||
else
|
||||
| {{label}}
|
||||
each actions
|
||||
button.js-table-page-action(data-action="{{id}}" class="{{cls}}")
|
||||
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
|
||||
| {{_ totalLabelKey}}
|
||||
| {{total}}
|
||||
.table-page-pagination
|
||||
button.js-table-page-prev(class="{{#unless hasPrev}}disabled{{/unless}}" title="{{_ 'previous'}}")
|
||||
| <
|
||||
span.table-page-page-info {{page}} / {{totalPages}}
|
||||
button.js-table-page-next(class="{{#unless hasNext}}disabled{{/unless}}" title="{{_ 'next'}}")
|
||||
| >
|
||||
//- The table is ALWAYS rendered, empty or not. Its header carries controls on
|
||||
//- several pages - the "New" link of Organizations, Teams, People and
|
||||
//- Translation, the select-all pairs - so hiding the whole table when there
|
||||
|
||||
@@ -711,35 +711,13 @@ body.sidebar-resizing-active {
|
||||
.pop-over-list-subheading + .pop-over-list {
|
||||
margin-top: 0;
|
||||
}
|
||||
/* #6699: this editor uses real, labelled checkboxes. Undo all three parts
|
||||
of forms.css's material-checkbox hiding rule in this popup only. */
|
||||
.wip-limit-groups input[type="checkbox"] {
|
||||
/* #6820: no text-field padding, or a ticked box is drawn as a dot. */
|
||||
min-height: 0;
|
||||
padding: 0;
|
||||
display: inline-block;
|
||||
visibility: visible;
|
||||
position: static;
|
||||
inset-inline-start: auto;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
flex: 0 0 16px;
|
||||
margin-inline-end: 6px;
|
||||
appearance: auto;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wip-limit-groups label.flex {
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
/* Keep native filter controls visible despite the application's custom inputs. */
|
||||
.filter-native-choice input[type="checkbox"],
|
||||
.filter-native-choice input[type="radio"],
|
||||
.js-assignee-effort-settings input[type="checkbox"],
|
||||
.js-card-date-range input[type="checkbox"] {
|
||||
.filter-native-choice input[type="radio"] {
|
||||
display: inline-block;
|
||||
visibility: visible;
|
||||
position: static;
|
||||
@@ -751,6 +729,7 @@ body.sidebar-resizing-active {
|
||||
margin-inline-end: 6px;
|
||||
appearance: auto;
|
||||
}
|
||||
|
||||
/* Why a date range was refused, below its buttons (sidebarFilters.js,
|
||||
rangeRefused): the browser's own bubble covered those buttons in Firefox. */
|
||||
.filter-date-range-error {
|
||||
|
||||
@@ -358,6 +358,9 @@ template(name="cardSettingsInline")
|
||||
i.fa(class="{{#if paneCollapsed}}fa-caret-right{{else}}fa-caret-down{{/if}}" aria-hidden="true")
|
||||
h3.card-settings-pane-title {{paneTitle}}
|
||||
.card-settings-pane-body.js-card-settings-pane-body(hidden=paneCollapsed)
|
||||
label.card-settings-board-option
|
||||
input.js-board-avatar-full-names(type="checkbox" checked=avatarFullNamesEnabled disabled="{{#unless canModifyBoard}}disabled{{/unless}}")
|
||||
| {{_ 'avatars'}} — {{_ 'fullname'}}
|
||||
.card-settings-inline-sections.js-card-settings-sections-sortable(data-side="{{showSide}}")
|
||||
each section in inlineSections
|
||||
+cardSettingsInlineSection(section=section side=showSide)
|
||||
@@ -644,6 +647,19 @@ template(name="outgoingWebhooksPopup")
|
||||
textarea.js-outgoing-webhooks-title(rows="2" placeholder="{{_ 'webhook-title'}}" name="title")= title
|
||||
input.js-outgoing-webhooks-url(type="text" name="url" value=url aria-label="{{_ 'settings-group-url'}}")
|
||||
input.js-outgoing-webhooks-token(placeholder="{{_ 'webhook-token' }}" type="text" value=token name="token")
|
||||
label
|
||||
span {{_ 'email-bounces-provider-key'}}
|
||||
input(type="password" name="signingSecret" autocomplete="new-password" maxlength="1024")
|
||||
p.quiet {{_ 'cloud-secret-keep-blank'}}
|
||||
label
|
||||
input(type="checkbox" name="clearSigningSecret")
|
||||
span {{_ 'email-to-card-clear-secret'}}
|
||||
fieldset
|
||||
legend {{_ 'filter'}}
|
||||
each webhookChangedFieldOptions
|
||||
label
|
||||
input(type="checkbox" name="changedField" value=field checked=checked)
|
||||
span {{_ labelKey}}
|
||||
select.js-outgoing-webhooks-type(name="type" aria-label="{{_ 'type'}}")
|
||||
each _type in types
|
||||
if($eq _type this.type)
|
||||
@@ -673,6 +689,15 @@ template(name="outgoingWebhooksPopup")
|
||||
textarea.js-outgoing-webhooks-title(rows="2" placeholder="{{_ 'webhook-title'}}" name="title")
|
||||
input.js-outgoing-webhooks-url(placeholder="{{_ 'settings-group-url' }}" type="text" name="url")
|
||||
input.js-outgoing-webhooks-token(placeholder="{{_ 'webhook-token' }}" type="text" name="token")
|
||||
label
|
||||
span {{_ 'email-bounces-provider-key'}}
|
||||
input(type="password" name="signingSecret" autocomplete="new-password" maxlength="1024")
|
||||
fieldset
|
||||
legend {{_ 'filter'}}
|
||||
each webhookChangedFieldOptions
|
||||
label
|
||||
input(type="checkbox" name="changedField" value=field checked=checked)
|
||||
span {{_ labelKey}}
|
||||
select.js-outgoing-webhooks-type(name="type" aria-label="{{_ 'type'}}")
|
||||
each _type in types
|
||||
option(value=_type) {{_ _type}}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { cardAvatarNameField, showsCardAvatarNames } from '/models/lib/cardAvatarNames';
|
||||
import { currentRulesAccess } from '/client/lib/rulesAccess';
|
||||
import '/client/components/forms/dateFormatSettings';
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
@@ -1317,6 +1318,12 @@ Template.membersWidget.events({
|
||||
});
|
||||
|
||||
Template.outgoingWebhooksPopup.helpers({
|
||||
webhookChangedFieldOptions() {
|
||||
const { CHANGED_FIELDS } = require('/models/lib/webhookChangedFields');
|
||||
return Object.entries(CHANGED_FIELDS).map(([field, labelKey]) => ({
|
||||
field, labelKey, checked: this.changedFields?.includes(field),
|
||||
}));
|
||||
},
|
||||
// #2026 / #1377: the activity picker of an existing webhook (this).
|
||||
webhookPicker() {
|
||||
const { pickerState } = require('/models/lib/webhookActivityPicker');
|
||||
@@ -1407,7 +1414,12 @@ Template.outgoingWebhooksPopup.events({
|
||||
}
|
||||
// #1297: present only in an existing webhook's form.
|
||||
const dmToggle = $(evt.target).find('.js-toggle-webhook-mattermost-dm');
|
||||
const secret = evt.target.elements.signingSecret.value;
|
||||
const clearSecret = evt.target.elements.clearSigningSecret?.checked;
|
||||
const changedFields = Array.from(evt.target.querySelectorAll('[name="changedField"]:checked'), input => input.value);
|
||||
const values = {
|
||||
changedFields,
|
||||
...(secret && !clearSecret ? { signingSecret: secret } : {}),
|
||||
url,
|
||||
type,
|
||||
token,
|
||||
@@ -1439,6 +1451,7 @@ Template.outgoingWebhooksPopup.events({
|
||||
} else if (integration && integration._id) {
|
||||
await Integrations.updateAsync(integration._id, {
|
||||
$set: values,
|
||||
...(clearSecret ? { $unset: { signingSecret: '' } } : {}),
|
||||
});
|
||||
} else if (url) {
|
||||
await Integrations.insertAsync({
|
||||
@@ -3353,6 +3366,10 @@ Template.cardSettingsInline.helpers({
|
||||
...boardCardSettingsHelpers,
|
||||
inlineSections() { return inlineSectionsOf(Template.instance(), Template.currentData()); },
|
||||
showSide() { return Template.instance().showSide.get(); },
|
||||
avatarFullNamesEnabled() {
|
||||
return showsCardAvatarNames(Utils.getCurrentBoard(), ReactiveCache.getCurrentSetting(),
|
||||
Template.instance().showSide.get());
|
||||
},
|
||||
paneTitle() {
|
||||
return TAPi18n.__(Template.instance().showSide.get() === 'minicard' ? 'show-on-minicard' : 'show-on-card');
|
||||
},
|
||||
@@ -3555,6 +3572,12 @@ const paneEvents = Object.fromEntries(Object.entries(cardSettingsEvents).map(([k
|
||||
|
||||
Template.cardSettingsInline.events({
|
||||
...paneEvents,
|
||||
async 'change .js-board-avatar-full-names'(event, tpl) {
|
||||
const board = Utils.getCurrentBoard();
|
||||
if (!board || !Utils.canModifyBoard()) return;
|
||||
const field = cardAvatarNameField(tpl.showSide.get());
|
||||
await Boards.updateAsync(board._id, { $set: { [field]: event.currentTarget.checked } });
|
||||
},
|
||||
// The caret at the top of a pane: the whole pane, only its header left.
|
||||
async 'click .js-toggle-card-settings-pane'(evt, tpl) {
|
||||
evt.preventDefault();
|
||||
|
||||
@@ -222,3 +222,20 @@
|
||||
.member .member-account-badge.inactive {
|
||||
background: #95a5a6;
|
||||
}
|
||||
|
||||
.card-avatar-with-name {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
vertical-align: middle;
|
||||
max-width: 100%;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.card-avatar-with-name .member {
|
||||
flex: 0 0 24px;
|
||||
}
|
||||
|
||||
.card-avatar-full-name {
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
@@ -1,3 +1,11 @@
|
||||
template(name="cardUserAvatar")
|
||||
if avatarFullName
|
||||
span.card-avatar-with-name
|
||||
+userAvatar
|
||||
span.card-avatar-full-name(aria-hidden="true")= avatarFullName
|
||||
else
|
||||
+userAvatar
|
||||
|
||||
template(name="userAvatar")
|
||||
//- WCAG 2.5.3 Label in Name: the visible text of an initials avatar is its initials,
|
||||
//- so the accessible name starts with them (initialsInName). A picture has no text.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { showsCardAvatarNames } from '/models/lib/cardAvatarNames';
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
import { ReactiveCache } from '/imports/reactiveCache';
|
||||
import { ReactiveVar } from 'meteor/reactive-var';
|
||||
@@ -44,6 +45,14 @@ const AVATAR_USER_FIELDS = {
|
||||
isActive: 1,
|
||||
};
|
||||
|
||||
Template.cardUserAvatar.helpers({
|
||||
avatarFullName() {
|
||||
if (!showsCardAvatarNames(this.board, ReactiveCache.getCurrentSetting(), this.side)) return '';
|
||||
const user = ReactiveCache.getUser(this.userId, { fields: INITIALS_USER_FIELDS });
|
||||
return user?.profile?.fullname?.trim() || '';
|
||||
},
|
||||
});
|
||||
|
||||
Template.userAvatar.helpers({
|
||||
// WCAG 2.5.3 Label in Name: an avatar drawn as initials shows those letters as
|
||||
// text, so the link's accessible name has to contain them. The name is the
|
||||
|
||||
@@ -435,6 +435,10 @@ template(name="changeSettingsPopup")
|
||||
menu) side by side in the same .pop-over, so the popup's data-popup would
|
||||
restyle those too. userForm.css
|
||||
ul.pop-over-list.change-settings-list
|
||||
li
|
||||
a.js-personal-api-tokens
|
||||
i.fa.fa-key
|
||||
| {{_ 'personal-api-tokens'}}
|
||||
li
|
||||
a.js-toggle-desktop-drag-handles
|
||||
i.fa.fa-arrows
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { Accounts } from 'meteor/accounts-base';
|
||||
import '/client/components/forms/dateFormatSettings';
|
||||
import '/client/components/forms/personalApiTokens';
|
||||
import { accountOperationErrorKey } from '/client/lib/accountOperationError';
|
||||
import { languageFlags, languageLabelParts } from '/imports/i18n/languageFlags';
|
||||
import { ReactiveCache } from '/imports/reactiveCache';
|
||||
@@ -585,6 +586,7 @@ Template.changeSettingsPopup.helpers({
|
||||
});
|
||||
|
||||
Template.changeSettingsPopup.events({
|
||||
'click .js-personal-api-tokens': Popup.open('personalApiTokens', { titleKey: 'personal-api-tokens' }),
|
||||
'keypress/paste #show-cards-count-at'() {
|
||||
let keyCode = event.keyCode;
|
||||
let charCode = String.fromCharCode(keyCode);
|
||||
|
||||
@@ -0,0 +1,100 @@
|
||||
const SLOT = 'wekan.notionImportProgress';
|
||||
const encoder = new TextEncoder();
|
||||
const lifetime = 60 * 60 * 1000;
|
||||
|
||||
async function encryptionKey(token) {
|
||||
const digest = await crypto.subtle.digest('SHA-256', encoder.encode(token));
|
||||
return crypto.subtle.importKey('raw', digest, 'AES-GCM', false, ['encrypt', 'decrypt']);
|
||||
}
|
||||
|
||||
async function streamBytes(bytes, transform) {
|
||||
return new Uint8Array(await new Response(new Blob([bytes]).stream().pipeThrough(transform)).arrayBuffer());
|
||||
}
|
||||
|
||||
async function checkpointDatabase(action, id, value) {
|
||||
const database = await new Promise((resolve, reject) => {
|
||||
const request = indexedDB.open('wekanNotionImport', 1);
|
||||
request.onupgradeneeded = () => {
|
||||
request.result.createObjectStore('checkpoints').createIndex('expiresAt', 'expiresAt');
|
||||
};
|
||||
request.onsuccess = () => resolve(request.result);
|
||||
request.onerror = () => reject(request.error);
|
||||
});
|
||||
try {
|
||||
return await new Promise((resolve, reject) => {
|
||||
const transaction = database.transaction('checkpoints', action === 'get' ? 'readonly' : 'readwrite');
|
||||
const store = transaction.objectStore('checkpoints');
|
||||
if (action === 'put') {
|
||||
const expired = store.index('expiresAt').openCursor(IDBKeyRange.upperBound(Date.now()));
|
||||
expired.onsuccess = () => {
|
||||
const cursor = expired.result;
|
||||
if (!cursor) return;
|
||||
cursor.delete();
|
||||
cursor.continue();
|
||||
};
|
||||
}
|
||||
const request = action === 'put' ? store.put(value, id) : store[action](id);
|
||||
transaction.oncomplete = () => resolve(request.result);
|
||||
transaction.onabort = () => reject(transaction.error);
|
||||
});
|
||||
} finally {
|
||||
database.close();
|
||||
}
|
||||
}
|
||||
|
||||
export async function restoreNotionImportProgress(key, token) {
|
||||
try {
|
||||
const saved = JSON.parse(sessionStorage.getItem(SLOT));
|
||||
if (saved?.key !== key || saved.expiresAt <= Date.now()) return null;
|
||||
const ciphertext = saved.id ? (await checkpointDatabase('get', saved.id))?.contents : Uint8Array.fromBase64(saved.contents);
|
||||
if (!ciphertext) return null;
|
||||
const plaintext = await crypto.subtle.decrypt({
|
||||
name: 'AES-GCM',
|
||||
iv: Uint8Array.fromBase64(saved.iv),
|
||||
additionalData: encoder.encode(key),
|
||||
}, await encryptionKey(token), ciphertext);
|
||||
const bytes = new Uint8Array(plaintext);
|
||||
const decoded = bytes[0] === 0x1f && bytes[1] === 0x8b
|
||||
? await streamBytes(bytes, new DecompressionStream('gzip')) : bytes;
|
||||
return JSON.parse(new TextDecoder().decode(decoded));
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
export async function saveNotionImportProgress(key, token, progress) {
|
||||
try {
|
||||
const previous = JSON.parse(sessionStorage.getItem(SLOT));
|
||||
if (!progress) {
|
||||
if (previous?.key === key) {
|
||||
sessionStorage.removeItem(SLOT);
|
||||
if (previous.id) await checkpointDatabase('delete', previous.id);
|
||||
}
|
||||
return;
|
||||
}
|
||||
const bytes = encoder.encode(JSON.stringify(progress));
|
||||
const compressed = typeof CompressionStream === 'function' && typeof DecompressionStream === 'function'
|
||||
? await streamBytes(bytes, new CompressionStream('gzip')) : bytes;
|
||||
const payload = compressed.length < bytes.length ? compressed : bytes;
|
||||
const iv = crypto.getRandomValues(new Uint8Array(12));
|
||||
const contents = await crypto.subtle.encrypt({
|
||||
name: 'AES-GCM', iv, additionalData: encoder.encode(key),
|
||||
}, await encryptionKey(token), payload);
|
||||
const meta = { key, expiresAt: Date.now() + lifetime, iv: iv.toBase64() };
|
||||
try {
|
||||
sessionStorage.setItem(SLOT, JSON.stringify({ ...meta, contents: new Uint8Array(contents).toBase64() }));
|
||||
} catch {
|
||||
const id = crypto.randomUUID();
|
||||
await checkpointDatabase('put', id, { contents, expiresAt: meta.expiresAt });
|
||||
try {
|
||||
sessionStorage.setItem(SLOT, JSON.stringify({ ...meta, id }));
|
||||
} catch (error) {
|
||||
await checkpointDatabase('delete', id);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
if (previous?.id) await checkpointDatabase('delete', previous.id);
|
||||
} catch {
|
||||
// The in-memory checkpoint remains usable if the browser cannot store it.
|
||||
}
|
||||
}
|
||||
@@ -161,3 +161,42 @@ Send `PUT /api/boards/:boardId/cards/:cardId/assignee-effort/:assigneeId`
|
||||
with `{"estimated":15,"remaining":4}` in the board's unit, or
|
||||
`{"clear":true}` to clear the row. The person must be assigned to the card.
|
||||
The board chooses which users with card write access can save an entry.
|
||||
|
||||
## Update cards in bulk
|
||||
|
||||
Send `PUT /api/boards/:boardId/cards/bulk` with 1 to 500 card updates. Get
|
||||
each card's `revision` from `GET /api/cards/:cardId`. Use the same names
|
||||
in `fields` as for single-card updates. Use `customFields` to update
|
||||
values of fields already attached to the card. Other values are preserved.
|
||||
|
||||
```json
|
||||
{
|
||||
"cards": [
|
||||
{
|
||||
"cardId": "card-id",
|
||||
"revision": "123456789",
|
||||
"fields": { "title": "New title" },
|
||||
"customFields": [{ "_id": "custom-field-id", "value": "New value" }]
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
With `api.py`, save the request body as `updates.json` and run
|
||||
|
||||
```sh
|
||||
python3 api.py request PUT /api/boards/BOARDID/cards/bulk --json-file updates.json
|
||||
```
|
||||
|
||||
Read the `results` array even when the response is HTTP 200. Its entries
|
||||
follow request order and report each card's `status` and `updated` flag.
|
||||
A stale revision returns 412 and a missing revision returns 428 for that
|
||||
entry. Successful cards are updated independently and appear in activity.
|
||||
|
||||
### Required fields when moving into a list
|
||||
|
||||
If the destination has an entry rule, a single-card update can supply the
|
||||
required dates or custom field values in the same revision-protected request.
|
||||
A refusal returns HTTP 422 with `code: "list-entry-requirements"` and a
|
||||
`missingFields` array. The card stays in its current list. Bulk updates report
|
||||
the same status and missing fields on the affected card's result.
|
||||
+99
-3
@@ -397,6 +397,100 @@ view), the two defaults resolved (missing or unknown reads as
|
||||
dropped, missing views appended in default order). `keys` lists the known
|
||||
view keys.
|
||||
|
||||
## Call any REST route from api.py
|
||||
|
||||
Use `python3 api.py request METHOD /PATH` for routes with or without a
|
||||
dedicated CLI command. Set `WEKAN_URL` and `WEKAN_API_TOKEN` to use an
|
||||
existing token. The command can also sign in using the configured
|
||||
credentials or the `WEKAN_USERNAME` and `WEKAN_PASSWORD` environment
|
||||
variables. Use `--no-auth` for public routes.
|
||||
|
||||
```bash
|
||||
python3 api.py request GET '/api/boards/BOARDID/lists' --show-headers
|
||||
python3 api.py request PUT '/api/boards/BOARDID/lists/LISTID' \
|
||||
--revision-from '/api/boards/BOARDID/lists/LISTID' \
|
||||
--json '{"swimlaneId":null}'
|
||||
python3 api.py request GET '/api/boards/BOARDID/export' -o board.json
|
||||
```
|
||||
|
||||
Use `--json-file` for JSON input, `--data-file` for raw uploads,
|
||||
`--form` and `--file` for form or multipart requests, and `-H` for
|
||||
custom headers. Run `python3 api.py request --help` for all options.
|
||||
HTTP errors return a nonzero exit status and write the response to stderr.
|
||||
|
||||
## Revisions for REST writes
|
||||
|
||||
A board, list, swimlane, or Board View settings response includes a
|
||||
`revision` string and an `ETag` header. Copy the full header value,
|
||||
including its quotes, into `If-Match` on these writes:
|
||||
|
||||
- `PUT /api/boards/:boardId/title` and
|
||||
`DELETE /api/boards/:boardId/labels/:labelId` use the board's revision.
|
||||
- `PUT /api/boards/:boardId/boardViewSettings` uses the settings response.
|
||||
- `PUT /api/boards/:boardId/lists/:listId` and
|
||||
`PUT /api/boards/:boardId/swimlanes/:swimlaneId` use the item read.
|
||||
- Card `PUT` and `POST .../customFields/:customFieldId` use the revision
|
||||
from `GET /api/cards/:cardId` or the list-scoped card read. Use the
|
||||
global card read to obtain the revision of an archived card.
|
||||
|
||||
A missing header returns `428 revision-required`. An invalid header returns
|
||||
`400 invalid-revision`. A stale revision returns `412 revision-conflict`.
|
||||
Read the resource again and reconcile any intervening changes before resending.
|
||||
|
||||
For a conditional card update, first read the card with
|
||||
`GET /api/cards/:cardId`. Store the response's quoted `ETag` as `CARD_ETAG`
|
||||
and send it with the list-scoped update:
|
||||
|
||||
```bash
|
||||
curl --request PUT \
|
||||
--header "Authorization: Bearer $WEKAN_API_TOKEN" \
|
||||
--header "If-Match: $CARD_ETAG" \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data '{"title":"Updated title","description":"Updated description"}' \
|
||||
"$WEKAN_URL/api/boards/$BOARD_ID/lists/$LIST_ID/cards/$CARD_ID"
|
||||
```
|
||||
|
||||
The revision is opaque. The card update compares it against the stored
|
||||
card as part of the database write and applies the supplied fields together.
|
||||
If another edit wins, the response contains the conflict error. Use a fresh
|
||||
GET to retrieve the latest card and revision. The Python CLI fetches the
|
||||
revision before card edits and reports a conflict without retrying.
|
||||
|
||||
[Card revision implementation](https://github.com/wekan/wekan/commit/6969bc2d8f1f3fe1515134d3e63d185ef7ded509)
|
||||
and [board, list and swimlane revision implementation](https://github.com/wekan/wekan/commit/d140a378136d0ac01e1ed88b197e9ca91b798466).
|
||||
|
||||
## Delete a board label
|
||||
|
||||
A board administrator can send
|
||||
`DELETE /api/boards/:boardId/labels/:labelId` with the board's current
|
||||
`If-Match` revision. The action removes the label and its card assignments.
|
||||
Board History records the authenticated user and allows Undo or Restore to
|
||||
bring the label back to cards that still belong to that board. Redo removes it
|
||||
again. Cards moved to other boards keep their current labels.
|
||||
|
||||
```bash
|
||||
python3 api.py request DELETE '/api/boards/BOARDID/labels/LABELID' \
|
||||
--revision-from '/api/boards/BOARDID'
|
||||
```
|
||||
|
||||
## Share a list across swimlanes
|
||||
|
||||
On `POST /api/boards/:boardId/lists`, omit `swimlaneId` to use the board's
|
||||
default swimlane. On both create and update, send `swimlaneId: ""` or
|
||||
`swimlaneId: null` to share the list across swimlanes. A non-empty ID
|
||||
must name an active swimlane on the same board. Binding an existing
|
||||
list to one swimlane also moves its cards there. Sharing a list keeps
|
||||
its cards in their current swimlanes.
|
||||
|
||||
```bash
|
||||
python3 api.py createlist BOARDID 'Shared tasks' ''
|
||||
python3 api.py editlistswimlane BOARDID LISTID ''
|
||||
python3 api.py editlistswimlane BOARDID LISTID SWIMLANEID
|
||||
```
|
||||
|
||||
The Python CLI fetches the list's current revision for each
|
||||
`editlistswimlane` command.
|
||||
|
||||
## Get the Board View settings
|
||||
| URL | Requires Auth (board access) | HTTP Method |
|
||||
| :--- | :--- | :--- |
|
||||
@@ -430,8 +524,9 @@ Result (shortened):
|
||||
| `/api/boards/:boardId/boardViewSettings` | `yes` | `PUT` |
|
||||
|
||||
The body is any subset of `boardViewSettings`, `defaultPublicBoardView`,
|
||||
`defaultPrivateBoardView` and `boardViewOrder`; keys not sent are left as
|
||||
they are. The rules are the popup's:
|
||||
`defaultPrivateBoardView`, `boardViewOrder`, `autoWidth` and
|
||||
`defaultListWidth`. Omitted fields keep their current values.
|
||||
`defaultListWidth` is a whole number of pixels with a minimum of 200.
|
||||
|
||||
- a default is always shown on its side: setting a default also ticks its
|
||||
*Show* box, and hiding a side's current default is refused with `400` -
|
||||
@@ -443,11 +538,12 @@ they are. The rules are the popup's:
|
||||
- `boardViewOrder` is normalised so the menu lists every view exactly once:
|
||||
the keys sent come first in the order given, the rest follow in default
|
||||
order;
|
||||
- a body with none of the four keys is a `400`.
|
||||
- a body with none of the supported keys is a `400`.
|
||||
|
||||
```bash
|
||||
curl -H "Authorization: Bearer t7iYB86mXoLfP_XsMegxF41oKT7iiA9lDYiKVtXcctl" \
|
||||
-H "Content-type:application/json" \
|
||||
-H "If-Match: $ETAG" \
|
||||
-X PUT \
|
||||
http://localhost:3000/api/boards/BOARDID/boardViewSettings \
|
||||
-d '{
|
||||
|
||||
@@ -11,7 +11,7 @@ the operator of an instance completes: the legal basis column is a hint, the
|
||||
operator decides it, and the recipients depend on what the instance has
|
||||
enabled (mail server, file storage, webhooks, integrations).
|
||||
|
||||
- **191 collections**, 131 of them with personal data.
|
||||
- **194 collections**, 132 of them with personal data.
|
||||
- **Health data** ([GDPR] Art. 9 special category): `workloadAbsences`.
|
||||
- **Financial data**: `billingBudgets`, `billingExpenses`, `billingFees`, `billingInvoices`, `billingProfiles`, `billingQuotes`, `billingRates`, `cloudDomains`, `cloudInvoices`, `shopOrders`, `timeEntries`.
|
||||
- **Not erased yet** (erasure should delete or anonymise, nothing does it today;
|
||||
@@ -167,9 +167,12 @@ keep-pseudonymous (kept, linked only by an id) or n/a.
|
||||
| `notificationTrayReceipts` | usage | `userId` | Permanent receipt that an activity was delivered to a user's notification tray. | contract | until deleted (no retention) | delete | defined: `server/notifications/trayQueue.js`; erasure: `models/lib/userErasure.js` | Deliberately no TTL (prevents re-appearance after dismissal); { userId, activityId } only. |
|
||||
| `notificationWebhookJobs` | content, identity | - | Durable queue of grouped or scheduled outgoing webhook bodies. | legitimate interest | body removed when sent/cancelled; row kept | delete | defined: `server/notifications/webhookQueue.js`; retention: `server/lib/webhookOutbox.js`; erasure: `server/lib/webhookOutbox.js` | Pending bodies carry the activity payload (user names, card text); no user id field to select by, so erasure would need to match the body. The body (names, card text) is $unset when the job finishes, so it is kept only until the webhook it was meant for has been called. |
|
||||
| `notificationWebhookLeases` | none | - | Per-webhook delivery leases. | n/a | until deleted (no retention) | n/a | defined: `server/notifications/webhookQueue.js`; erasure: nothing yet | - |
|
||||
| `notionBodyCheckpoints` | content | - | Short-lived Notion content for continuing an interrupted card sync or bulk import. | contract | expires after one hour or when the page is processed | n/a | defined: `server/lib/notionBodyCheckpoints.js`; retention: `server/lib/notionBodyCheckpoints.js`; erasure: nothing yet | Server-only fragments scoped to a list and a credential revision, or a bulk import scoped to its user, source, fields and token. |
|
||||
| `org` | none | - | Organizations: name, domains, branding, legal notice URL. | n/a | until deleted | n/a | defined: `models/org.js`; erasure: nothing yet | Organization data; membership is on users.orgs and orgUser. |
|
||||
| `orgUser` | identity | `userId` | Membership and role of a user in an organization. | contract | until deleted | delete | defined: `models/orgUser.js`; erasure: `models/lib/userErasure.js` | - |
|
||||
| `passkeyChallenges` | auth | `userId` | Short-lived WebAuthn challenges for passkey registration and sign-in. | contract | TTL at expiresAt | delete | defined: `server/passkeys.js`; retention: `server/passkeys.js`; erasure: `models/lib/userErasure.js` | Expires by TTL (and is removed when used); no deletion hook needed in practice. |
|
||||
| `plankaChecklistDeletes` | none | - | Pending deletion of a synchronized Planka checklist or task. | n/a | until confirmed | n/a | defined: `server/lib/plankaChecklistDeletes.js`; retention: `server/lib/plankaSyncChecklists.js`; erasure: nothing yet | Stores scoped identifiers and a comparison hash. |
|
||||
| `plankaCommentDeletes` | none | - | Pending deletion of a previously synchronized Planka comment. | n/a | until confirmed or deleted | n/a | defined: `server/lib/plankaCommentDeletes.js`; retention: `server/lib/listSyncWriteBack.js`; erasure: nothing yet | Stores scoped identifiers and a text comparison hash. No plaintext or tokens. |
|
||||
| `positionHistory` | content | - | Original position and title of swimlanes, lists and cards, for restoring order. | contract | board lifetime | n/a | defined: `models/positionHistory.js`; erasure: nothing yet | No user field. |
|
||||
| `presences` | usage | `userId` | Online status shown on avatars. | legitimate interest | until deleted | delete | defined: `models/presences.js`; erasure: `models/lib/userErasure.js` | Read by client/components/users/userAvatar.js; no writer found in the current code (legacy presence package). |
|
||||
| `recoveryEvents` | identity, network, usage | `userId, username` | Record of data recovery, permanent deletion and remediation events. | legitimate interest | until deleted | anonymize | defined: `models/recoveryEvents.js`; erasure: `models/lib/userErasure.js` | Holds username and location of who acted; may hold deletedData (content). |
|
||||
|
||||
@@ -214,6 +214,13 @@ copy the image link into the field here.
|
||||
`{number}`, at most one `{identifier}`, and an `http` or `https` address
|
||||
([npm-packages/autolink/externalLinkRules.js](../../../../npm-packages/autolink/externalLinkRules.js)).
|
||||
|
||||
### Comment editor help
|
||||
|
||||
Under **Comment — Help**, choose **Default** or a language, enter one line of
|
||||
up to 300 characters, and save. Saving an empty line clears that language's
|
||||
hint. When the current language has no hint, the editor uses the default.
|
||||
The hint is displayed as plain text above the new-comment box.
|
||||
|
||||
## How it works in WeKan
|
||||
|
||||
- **Pane**: template `tableVisibilityModeSettings` with `part="appearance"` in
|
||||
|
||||
@@ -72,6 +72,25 @@ match is saved.
|
||||
Up to 50 profiles can exist. Their order on the page is the order they are tried in
|
||||
(below).
|
||||
|
||||
### Set a template for new boards
|
||||
|
||||
Enter the ID of an existing board or template board in the profile's optional
|
||||
**Board ID** field and save. Leave the field empty to disable it. The template
|
||||
applies to regular boards created by users assigned to that profile, whether
|
||||
they use the browser or `POST /api/boards`. It takes priority over a personal
|
||||
default during ordinary browser creation. Users can still select a template
|
||||
explicitly from the browser's template picker.
|
||||
|
||||
The new board starts with the template's active swimlanes and lists, labels,
|
||||
custom field definitions, and card, view and list-width settings. It has its
|
||||
own owner and visibility, and starts without the source board's cards or member
|
||||
list. Choose a source whose list and swimlane names, labels and field definitions
|
||||
are suitable for everyone assigned to the profile, even when the source is private.
|
||||
|
||||
Imports use the template for defaults. WeKan imports keep explicit settings
|
||||
and existing structure from the file. Other importers keep their imported lists,
|
||||
swimlanes, labels and custom fields.
|
||||
|
||||
### Change or remove a profile
|
||||
|
||||
Edit any field and press **Save**. **Remove profile** takes a profile off the page;
|
||||
@@ -134,8 +153,8 @@ profile.
|
||||
## How it works in WeKan
|
||||
|
||||
- Stored on the settings document as `featureProfiles`:
|
||||
`[{ _id, name, hidden: [featureKey], teamIds, orgIds }]`, published to every
|
||||
client (it holds no secret: names, feature keys and team/organization ids).
|
||||
`[{ _id, name, hidden: [featureKey], teamIds, orgIds, boardTemplateId? }]`. The public settings
|
||||
projection excludes the source board ID.
|
||||
- A direct assignment is `featureProfileId` on the user, published only to that
|
||||
user. Clients may write only `username` and `profile.*` of their own user
|
||||
document, so a user cannot set or clear it.
|
||||
@@ -160,8 +179,8 @@ So:
|
||||
|
||||
- **Nobody without a profile is affected.** Adding the first profile changes
|
||||
nothing for anyone until it is assigned to somebody.
|
||||
- **It only hides.** No card, board or setting is deleted or changed. Removing the
|
||||
profile shows everything exactly as it was.
|
||||
- **Visibility changes keep existing data.** Removing the profile makes its
|
||||
hidden features available again, subject to the instance settings.
|
||||
- **It is not access control.** A profile never grants or takes away a permission:
|
||||
a hidden feature's data is still the user's, and other rights - board roles, list
|
||||
role exceptions, Admin Panel access - are unchanged. Use board roles for who may
|
||||
|
||||
@@ -59,7 +59,9 @@ sources of the format.
|
||||
| [Zenkit](./ZenKit/README.md) | List export JSON | Zenkit list JSON |
|
||||
| [Microsoft Planner](./Microsoft-Planner/README.md) | The Excel workbook from *Export as Excel* (classic: *Export plan to Excel*) | Planner Excel workbook (`.xlsx`) |
|
||||
| [monday.com](./monday-com/README.md) | The workbook from *Export board to Excel* | monday.com Excel import table (`.xlsx`) |
|
||||
| [monday.com (API)](./monday-com/README.md) | Import or synchronize active board items by ID | — |
|
||||
| [Wrike](./Wrike/README.md) | Excel export, or Wrike's Excel import template; *Workflow* and *Custom Status* columns are read | Wrike Excel import template (`.xlsx`) with its *Workflow* / *Status* / *Custom Status* columns |
|
||||
| [Wrike (API)](./Wrike/README.md) | Import or synchronize a folder or project with its tasks, dates, completion and parent links | — |
|
||||
| [Wrike workflow](./Wrike/README.md) | Paste the JSON of Wrike's `GET /workflows` in Rules → Import / Export: statuses become lists, and status groups become rules | The board's lists as a Wrike workflow JSON (Export menu, or Rules → Import / Export) |
|
||||
| [Teamwork.com](./Teamwork/README.md) | The Excel template of its task import | Teamwork.com task import template (`.xlsx`) |
|
||||
| [Businessmap (Kanbanize)](./Businessmap/README.md) | Advanced Search Excel export, or its import tool's workbook | Businessmap Excel workbook (`.xlsx`) |
|
||||
@@ -68,6 +70,7 @@ sources of the format.
|
||||
| [Linear](./Linear/README.md) | Issues CSV export | Linear CSV |
|
||||
| [Linear (API)](./Linear/README.md) | Choose a team with a personal API key | — |
|
||||
| [Notion](./Notion/README.md) | *Markdown & CSV* export `.zip`, or one database CSV | Notion database CSV |
|
||||
| [Notion (API)](./Notion/README.md) | Choose a shared data source with a Notion integration token | — |
|
||||
| [Redmine](./Redmine/README.md) | Issues list *Also available in: CSV* | Redmine issues CSV |
|
||||
| [Redmine (API)](./Redmine/README.md) | Choose a project with an API key | — |
|
||||
| [Fizzy](./Fizzy/README.md) | Account export or personal data export `.zip`, or one card's `.json` | Fizzy account export `.zip` (its account import reads it) |
|
||||
|
||||
@@ -25,6 +25,118 @@ Each task has its own steps below: importing one board, importing many
|
||||
boards at once, exporting one board, exporting all boards at once, and the
|
||||
same from a script through the REST API.
|
||||
|
||||
### Import or sync from the Notion API
|
||||
|
||||
Give a Notion connection read access to the database. In WeKan choose
|
||||
**Notion (API)**, enter the connection token, and select a data source using
|
||||
**List what can be imported**. Each row becomes a card. The status sets the
|
||||
list and the Description property sets the card description. Date fields
|
||||
provide dates. Single-select and multi-select options provide labels,
|
||||
excluding the property used for status. List Sync uses the same label
|
||||
mapping when **Labels** is selected.
|
||||
|
||||
The full-board import page fetches page contents in batches. If the fetch
|
||||
leaves page contents pending, click **Fetch** again on the same page to
|
||||
continue before importing the board. The first page in a batch can supply
|
||||
up to 7 MiB of Markdown across its responses. List Sync uses a 6 MiB
|
||||
limit because it also keeps the source value for conflict detection.
|
||||
|
||||
After reloading the same tab, enter the same Notion token and select the
|
||||
same source and fields to continue. WeKan compresses the checkpoint when
|
||||
possible and stores it encrypted in the tab's session storage and can be restored for one hour when the
|
||||
browser has enough space. WeKan keeps the token out of session storage.
|
||||
|
||||
If the encrypted checkpoint exceeds the session storage quota, WeKan
|
||||
stores the encrypted contents in IndexedDB and keeps a pointer in the same
|
||||
tab. Completing the import removes the checkpoint.
|
||||
|
||||
To create several boards at once, select multiple data sources and click
|
||||
**Import many boards**. Each board fetches up to eight batches of page
|
||||
contents and reports any missing content through its import report. If a
|
||||
fetch pauses, that source stays available to retry. Repeat the import with the
|
||||
same source, token, and selected fields within one hour to continue from its
|
||||
server checkpoint. Each source checkpoint can hold up to 256 MiB of decoded
|
||||
data and 64 MiB after compression and storage encoding. If an incomplete
|
||||
source exceeds either limit, WeKan reports that it is too large to import
|
||||
and leaves it available for a smaller import.
|
||||
|
||||
When importing into an existing board, choose **Notion (API)** in the
|
||||
destination's import menu. WeKan fetches up to eight batches at a time.
|
||||
If fetching pauses, enter the same token and select the same fields and
|
||||
destination to continue. You can reopen that destination after reloading the
|
||||
same tab. Card creation starts when the fetch completes.
|
||||
|
||||
When an ordinary date field is unavailable for a date role, WeKan can
|
||||
read a date-returning formula named **Start**, **Start date**, **Due**,
|
||||
**Due date**, or **Date**. An explicit empty date result clears the
|
||||
selected synced dates. Missing or unsupported results leave them intact.
|
||||
|
||||
If there is no completion checkbox, WeKan can read a boolean formula named
|
||||
**Done**, **Complete**, or **Completed**. A missing, empty, or unsupported
|
||||
formula result leaves the synced completion state intact.
|
||||
|
||||
A text formula named **Description** can provide the card description when
|
||||
there is no rich-text **Description** field. WeKan appends the page Markdown
|
||||
when available. A missing or unsupported formula result leaves a synced
|
||||
card description intact.
|
||||
|
||||
In List Sync, select **Spent time (hours)** to read a number or a numeric
|
||||
formula named **Spent time (hours)** or **Time spent (hours)**. Values must
|
||||
be nonnegative. Use zero to reset spent time. An empty or invalid result
|
||||
leaves the card value intact.
|
||||
|
||||
Select **Estimate** in List Sync and choose a board-visible numeric custom
|
||||
field to receive **Story points** from a Notion number or numeric formula.
|
||||
Nonnegative estimates are imported as points. An explicit empty numeric
|
||||
value clears the mapped estimate. A missing or invalid value leaves it
|
||||
intact.
|
||||
|
||||
Date rollups can supply start or due dates. Numeric rollups can supply spent
|
||||
hours or story points. Use the same field names as for formulas. Empty,
|
||||
incomplete, or unsupported rollups leave existing synced values intact.
|
||||
|
||||
A rollup named **Labels** or **Tags** can also supply card labels when it
|
||||
returns select or multi-select values. An empty array, incomplete result,
|
||||
or unsupported entry leaves synced labels intact.
|
||||
|
||||
With **Members** selected, a single rollup named **Assignee**,
|
||||
**Assignees**, **Owner**, or **Members** can supply people when there is no
|
||||
matching People field. The same verified-email matching applies.
|
||||
Incomplete rollups preserve existing assignments.
|
||||
|
||||
With **Dependencies** selected, a rollup named **Dependencies** or
|
||||
**Related pages** can supply links to pages in the same or another data
|
||||
source. WeKan verifies up to 25 new external targets per run. A later run
|
||||
can resume the same verification within one hour using the same list and
|
||||
credentials. Targets already verified through a direct relation use no page lookups,
|
||||
even when that relation appears on another page of the source.
|
||||
An empty or incomplete rollup, or a target that cannot be verified,
|
||||
keeps existing links intact.
|
||||
|
||||
For recurring import into a list, select **Notion (API)** in List Sync and
|
||||
choose the data source. Sync matches cards by their Notion page IDs.
|
||||
Select **Start date** and **Due date** to mirror the date fields. For a date
|
||||
range, the start and end become the card's start and due dates unless the
|
||||
source has a separate Start property. Clearing a selected date in Notion
|
||||
clears it on the card. Select **Labels** to mirror the multi-select properties.
|
||||
Labels added on the WeKan card are kept when a Notion label is removed.
|
||||
Select **Due complete** to mirror a **Done**, **Complete** or **Completed**
|
||||
checkbox. An unchecked box clears the completion mark.
|
||||
Select **Dependencies** to mirror relations between pages in the selected
|
||||
data source as related-card links. For List Sync, both cards must belong
|
||||
to the synced list.
|
||||
|
||||
When importing with **Description** selected, WeKan appends the page body
|
||||
to the Description property. If Notion returns a truncated body, WeKan
|
||||
fetches the listed blocks and inserts available content back in place.
|
||||
One import makes up to 100 Markdown requests, including block requests,
|
||||
and retains up to 4 MiB of Markdown. The loss report identifies unavailable
|
||||
or incomplete bodies. With **Description** selected, List Sync also appends
|
||||
page Markdown under the same limits. When a run reaches the budget,
|
||||
the next successful run continues with the remaining pages. If Notion
|
||||
returns an incomplete body or a body cannot be fetched, the synced card
|
||||
keeps its existing description.
|
||||
|
||||
### How to import
|
||||
|
||||
1. In Notion, open the database as a full page.
|
||||
|
||||
@@ -232,6 +232,39 @@ enabled, adding or removing a card label also updates its assignment in
|
||||
Planka when exactly one label on each board has that name. The first
|
||||
sync after enabling this option records the starting assignments.
|
||||
|
||||
Select **Comments** to mirror Planka comments into the matching WeKan cards.
|
||||
Sync updates edits and removes deleted mirrored comments after receiving a
|
||||
complete comment list. Local WeKan comments stay on the card.
|
||||
On Planka versions with the card Comments API, enable **WeKan → Planka** to
|
||||
send new top-level WeKan comments. Confirmed deliveries are kept on their
|
||||
original WeKan comment. If delivery cannot be confirmed, check Planka before
|
||||
sending the comment again.
|
||||
Edits to comments sent after edit tracking was added also sync to Planka.
|
||||
The remote comment must still match the last version sent by WeKan. If it
|
||||
changed independently, WeKan reports the conflict and preserves both versions.
|
||||
Deleting a comment previously sent by WeKan also deletes the matching Planka
|
||||
comment if its text still matches the last confirmed version. If the remote
|
||||
text changed, Sync reports a conflict and leaves the Planka comment in place.
|
||||
|
||||
Select **Checklists** to bring Planka task lists and task completion states
|
||||
into matching WeKan cards. Sync recognizes lists and tasks by their Planka IDs
|
||||
and applies source updates to fields that have no independent local edit.
|
||||
With **WeKan → Planka** enabled, List Sync can send checklists and tasks
|
||||
created after write-back was enabled to Planka v2. The WeKan originals stay
|
||||
on their cards and are linked to the new Planka IDs. If Planka does not
|
||||
confirm creation, Sync holds that entry for review to avoid creating a
|
||||
second copy. Check Planka before attempting to recreate it.
|
||||
List Sync also sends checklist and task renames and changes to completion.
|
||||
A source change to the same field is reported as a conflict. If a complete
|
||||
Planka v2 response omits a previously synchronized list or task, Sync removes
|
||||
its unchanged WeKan counterpart. Local edits and independently added items
|
||||
are preserved. Deleting a synchronized checklist or task in WeKan queues a
|
||||
deletion for the next sync. Sync checks that the Planka title, task completion
|
||||
and checklist membership still match the last synchronized values. Remote
|
||||
changes and linked Planka tasks prevent deletion and produce a conflict.
|
||||
Previously mirrored checklists and tasks gain outbound deletion tracking
|
||||
after they are seen again during sync.
|
||||
|
||||
For Jira, **WeKan → Jira** sends selected title and due date edits back
|
||||
to Jira Cloud or Data Center. Clear the date on the card to clear it in Jira.
|
||||
The card keeps its Jira issue key prefix. WeKan re-reads the fields before
|
||||
@@ -259,9 +292,38 @@ Use `<u>text</u>` for inline underline in either format. On Data Center, use
|
||||
`<cite>title</cite>` for an inline citation. A fenced block with the info
|
||||
string `noformat` writes back as a literal `{noformat}` block. Explicit Markdown
|
||||
line breaks write back as Jira wiki forced line breaks. On Data Center,
|
||||
quotes can also contain headings, horizontal rules and basic tables.
|
||||
quotes can also contain headings, horizontal rules and basic tables. The Data
|
||||
Center wiki renderer also accepts inline Markdown images with HTTP(S) URLs
|
||||
or an existing Jira attachment filename, and preserves plain alternative text.
|
||||
Both formats support basic tables with a header row and one paragraph per
|
||||
cell. Cloud preserves the start number of ordered lists, including zero.
|
||||
Inline Jira Cloud dates are displayed in UTC and retain their original
|
||||
timestamp when the description is synced back.
|
||||
[Jira ADF date node](https://developer.atlassian.com/platform/framework/adf-builder/reference/nodes/date/).
|
||||
|
||||
Inline Jira Cloud statuses appear as labels. API export and List Sync
|
||||
write-back retain the label, original color and any local identifier.
|
||||
Custom hexadecimal colors use a neutral outline in WeKan.
|
||||
[Jira ADF status node](https://developer.atlassian.com/cloud/jira/platform/apis/document/nodes/status/).
|
||||
|
||||
Imported Jira Cloud mentions display the Jira label in WeKan. Jira Cloud API
|
||||
export and List Sync write-back use the original account ID or collection.
|
||||
[Jira ADF mention node](https://developer.atlassian.com/cloud/jira/platform/apis/document/nodes/mention/).
|
||||
|
||||
Imported Jira Cloud emoji show the supplied text or the emoji's short name.
|
||||
Jira Cloud API export and List Sync write-back preserve the short name,
|
||||
text and any emoji service ID.
|
||||
[Jira ADF emoji node](https://developer.atlassian.com/cloud/jira/platform/apis/document/nodes/emoji/).
|
||||
|
||||
Top-level Jira Cloud expandable sections open and close on the card.
|
||||
API export and List Sync write-back preserve their title and supported
|
||||
content, including headings, lists, and paragraphs.
|
||||
[Jira ADF expand node](https://developer.atlassian.com/cloud/jira/platform/apis/document/nodes/expand/).
|
||||
|
||||
Expandable sections in table cells also open and close on the card.
|
||||
Export and write-back preserve their title, headings, paragraphs, and
|
||||
neighboring paragraphs in the same cell.
|
||||
[Jira ADF nestedExpand node](https://developer.atlassian.com/cloud/jira/platform/apis/document/nodes/nestedExpand/).
|
||||
It also supports empty list items and items that start with a fenced code
|
||||
block or contain only a nested list. Sync reports a write-back error when
|
||||
conversion would lose formatting from an existing Jira description or a
|
||||
@@ -1031,6 +1093,38 @@ are not synced.
|
||||
|
||||
### Sync from the services WeKan imports from through their API
|
||||
|
||||
For **Notion**, select **Dependencies** to mirror relations as card links.
|
||||
Both Notion data sources must be accessible to the connection. For a
|
||||
relation to another data source, the target page must already have exactly
|
||||
one synced card on the same WeKan board. Sync matches both the data source
|
||||
and the page ID.
|
||||
Select **Members** to read one People column named Assignee, Assignees,
|
||||
Owner or Members. The Notion connection needs access to email addresses.
|
||||
WeKan matches verified addresses to active members of this board and keeps
|
||||
independently added card members. Incomplete results preserve existing
|
||||
assignments.
|
||||
|
||||
|
||||
For **monday.com**, enter your personal API token and choose a board. List
|
||||
Sync reads active items by item ID. Select the dates, completion and direct
|
||||
subitems you want synchronized. Dates and completion use uniquely named
|
||||
Start Date, Due Date and Status columns. Changes flow from monday.com to
|
||||
WeKan.
|
||||
|
||||
For **Wrike**, enter the base URL for your Wrike region and an access token,
|
||||
then select a folder or project. WeKan reads its descendants and updates
|
||||
existing cards by Wrike task ID. Select the dates, completion and subtask
|
||||
fields you want synchronized. Changes flow from Wrike to WeKan.
|
||||
|
||||
For **Taiga**, enter the server address and access token, then select a
|
||||
project using **List what can be imported**. List Sync brings in its user
|
||||
stories, tasks, issues and epics. Select **Subtasks** to mirror the parent
|
||||
relationships between them. Select **Comments** to mirror the visible
|
||||
comments, including later edits and deletions. Select **Attachments** to
|
||||
mirror Taiga files. A changed file replaces the previous synced copy after
|
||||
a successful download. Deleted copies can be recovered from card history.
|
||||
Files added directly in WeKan stay on the card. Changes flow from Taiga to WeKan.
|
||||
|
||||
Since 2026-11-28 a list can be kept in step, one way, with a **Microsoft To
|
||||
Do** list, a **Google Tasks** task list, a **KanbanFlow** board, a
|
||||
**Planka** board or a **Trello** list (`models/lib/apiSyncSources.js`). For
|
||||
|
||||
@@ -55,10 +55,9 @@ same from a script through the REST API.
|
||||
7. Read the loss report on the import page. It is also kept in **Admin Panel →
|
||||
Problems → Recovery**.
|
||||
|
||||
Before the dump is sent to the server, the page leaves out the attachment files
|
||||
that Taiga embeds in it as base64, and the project logo. Attachments are not
|
||||
imported, and without them the dump is much smaller. They are still counted in
|
||||
the loss report.
|
||||
WeKan copies files embedded in the dump to their cards when **Attachments**
|
||||
is selected. The import uses the configured attachment upload limit and reports
|
||||
missing, malformed or oversized files.
|
||||
|
||||
### How to import many boards at once
|
||||
|
||||
@@ -359,8 +358,7 @@ The export writes a dump with every key Taiga's exporter writes, in its order:
|
||||
|
||||
The import reports these in the loss report:
|
||||
|
||||
- attachments (the page leaves the embedded files out before sending; download
|
||||
them from Taiga and attach them to the cards);
|
||||
- attachments whose data is missing, malformed or exceeds the upload limit;
|
||||
- the project logo;
|
||||
- wiki pages and wiki links;
|
||||
- the activity timeline;
|
||||
@@ -381,8 +379,7 @@ place for a field, such as a start date or a card color on a story, loses it.
|
||||
### How it is built and tested
|
||||
|
||||
- `models/lib/taigaFormat.js` reads a dump (`parseTaiga`), writes one
|
||||
(`formatTaiga`) and leaves the attachment files out on the import page
|
||||
(`slimTaigaDump`).
|
||||
(`formatTaiga`) and passes embedded files to the attachment importer.
|
||||
- `models/lib/externalScrumPlanning.js` (`taigaScrumPlanning`) turns
|
||||
milestones into Scrum sprints and backlog ranks.
|
||||
- `models/lib/externalParsers.js` registers the parser as `taiga`, and
|
||||
@@ -400,8 +397,7 @@ place for a field, such as a start date or a card color on a story, loses it.
|
||||
- *Taiga: a project dump imports with its stories, tasks, epics, issues,
|
||||
comments, fields and sprint* pastes the fixture on the import page and
|
||||
checks lists, swimlanes, cards, subtasks, the epic parent, issue labels,
|
||||
custom fields, the label color, the open sprint, and that no attachment
|
||||
was imported;
|
||||
custom fields, the label color, the open sprint and the imported attachment;
|
||||
- *Taiga: malformed JSON and a document that is not a dump are rejected*;
|
||||
- *every external export menu link returns text and refuses an unrelated
|
||||
user* includes the Taiga export link.
|
||||
|
||||
@@ -64,7 +64,9 @@ same from a script through the REST API.
|
||||
users; members with the same username are matched for you. Map them and
|
||||
click **Done**, or click **Import without mapping members (map later)**.
|
||||
Members left unmapped are brought in as placeholder users, so cards,
|
||||
comments and activities keep the original person.
|
||||
comments and activities keep the original person. Imported members appear
|
||||
as inactive on the new board. A WeKan board administrator can grant access
|
||||
from the board's member settings.
|
||||
5. Read the loss report on the import page. It is also kept in **Admin Panel →
|
||||
Problems → Recovery**.
|
||||
|
||||
@@ -121,7 +123,11 @@ too. See
|
||||
[Trello Attachments Downloader](https://github.com/wekan/trello-attachments-downloader)
|
||||
writes them. Choose it under **Trello .zip file** on the Trello import page
|
||||
and click **Import**: every board in it is imported, with its attachment
|
||||
files, and WeKan goes to All Boards. Limits: the upload is at most 200 MB,
|
||||
files. One imported board opens directly or shows its import report. Multiple
|
||||
boards appear on All Boards. Choose **Choose an existing user for each of
|
||||
them** and click **Import** to review and map the archive's people before
|
||||
creating the boards. Choose **Make them all me** to attribute them to your
|
||||
account. You can also keep their source identities for later mapping. Limits: the upload is at most 200 MB,
|
||||
at most 5000 files, at most 1 GB uncompressed, and at most 100 MB per file.
|
||||
A zip with unsafe file paths is refused.
|
||||
- The API import above also imports many boards at once.
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
## What it is
|
||||
|
||||
WeKan imports boards from [Wrike](https://www.wrike.com) and exports boards to
|
||||
it in two files:
|
||||
WeKan imports folders and projects from [Wrike](https://www.wrike.com)
|
||||
through its API. WeKan reads and writes these two file formats:
|
||||
|
||||
- **Wrike Excel**: the tasks, in the layout of Wrike's Excel import template.
|
||||
- **Wrike workflow**: the board's lists as a Wrike workflow, a set of custom
|
||||
@@ -36,6 +36,11 @@ same from a script through the REST API.
|
||||
|
||||
### How to import
|
||||
|
||||
For API import, choose **Wrike** and enter your Wrike base URL and access
|
||||
token. Search for a folder or project, select it, and import. The board uses
|
||||
Wrike's standard statuses as lists. It imports the tasks, descriptions as
|
||||
text, start and due dates, completion and supported parent links.
|
||||
|
||||
#### Tasks, from Wrike's Excel export
|
||||
|
||||
1. In Wrike, open the folder, project or space and switch to **Table** view.
|
||||
|
||||
@@ -32,6 +32,11 @@ same from a script through the REST API.
|
||||
|
||||
### How to import
|
||||
|
||||
To import through the API, choose **monday.com** and enter a personal API
|
||||
token. Search for a board and select it. Groups become lists, and direct
|
||||
subitems become subtasks. WeKan recognizes unambiguous Description, Start
|
||||
Date, Due Date and Status columns. The API returns active items.
|
||||
|
||||
1. In monday.com, open the board, click the **three-dot menu** at the top right
|
||||
of the board, choose **More actions** and then **Export board to Excel**.
|
||||
In the export window, choose whether to include the updates and the
|
||||
|
||||
@@ -28,3 +28,31 @@ Files used by these pages:
|
||||
- [screenshot-outgoing-webhooks.png](screenshot-outgoing-webhooks.png)
|
||||
|
||||
This folder is part of [Board Sidebar / Board Settings](../README.md).
|
||||
|
||||
## Signing and filtering outgoing requests
|
||||
|
||||
Set a **Webhook signing key** on a webhook to sign each request. Use a unique,
|
||||
random key per webhook and configure the same key on the receiver. The editor
|
||||
keeps the existing key when the input is blank. Select **Remove the saved webhook
|
||||
secret** to disable signing. Existing token-based receivers can continue using
|
||||
`X-Wekan-Token`.
|
||||
|
||||
WeKan sends `X-Wekan-Timestamp` as Unix time in seconds and
|
||||
`X-Wekan-Signature` as `sha256=<hex digest>`. The digest is HMAC-SHA256 of the
|
||||
timestamp text, a literal period, and the exact request body bytes. Verify the
|
||||
MAC with a constant-time comparison before parsing the body. Reject timestamps
|
||||
outside an acceptable window (for example, five minutes in either direction)
|
||||
and remember accepted request identifiers or signatures within that window to
|
||||
reject replay. A fresh delivery attempt can have a new timestamp.
|
||||
|
||||
Select the date, member, custom-field or list filters to receive events that
|
||||
match at least one selected field and also match the webhook's activity
|
||||
selection. Members include assignees. The list filter matches a card move
|
||||
between different lists. Leave all field filters clear to use the activity
|
||||
selection alone. These filters select events. The payload settings still
|
||||
control which properties a one-way webhook sends.
|
||||
|
||||
The board integrations REST endpoint accepts `signingSecret` and
|
||||
`changedFields` on create and update. Pass `signingSecret: null` to remove the
|
||||
key or `changedFields: []` to remove the field filter. Field values are
|
||||
`dates`, `members`, `customFields`, and `listId`. Reads omit the signing key.
|
||||
@@ -849,3 +849,16 @@ cross-document changes remain unfinished.
|
||||
- [Make History work when it is opened](https://github.com/wekan/wekan/commit/92b5ce8614de59cb5379d5853370f992adf75ffd)
|
||||
- [Record every group, and one History table for every scope](https://github.com/wekan/wekan/commit/1fe46c60442233b59d01da1b4b2a32fe50d66d64)
|
||||
- [Build the universal change history, and put undo on top of it](https://github.com/wekan/wekan/commit/898643eea9612616f3cd9c30f6180fa62fa0aad9)
|
||||
|
||||
|
||||
### Authors and request sources
|
||||
|
||||
History shows the recorded author on each row. New changes made through a
|
||||
tracked REST route show **REST API**. Changes made through a connected DDP
|
||||
client, including the web app, show **Web / DDP**. Older rows and changes
|
||||
without a recorded request source leave the source blank.
|
||||
|
||||
Deleting a board label through REST records the deleted label and the cards
|
||||
that had it. Board administrators can undo, redo, or restore that deletion
|
||||
from the board's history. A restored label is reapplied to the saved cards
|
||||
that still belong to the same board.
|
||||
@@ -86,6 +86,15 @@ From [models/lib/boardFlowPolicies.js](../../../models/lib/boardFlowPolicies.js)
|
||||
- **Committed**: a list is at or after the commitment point when its position
|
||||
in the board's lists sorted by `sort` is at or after the commitment list's.
|
||||
|
||||
## Required fields for moving cards into a list
|
||||
|
||||
A board administrator can open a list menu and choose **Move Card — Custom
|
||||
Fields / Date \***. Select the dates and editable custom fields that cards need
|
||||
before they can move into that list. An empty selection allows normal moves.
|
||||
|
||||
If a dropped card is missing a value, WeKan shows the required fields and opens
|
||||
the card for editing. Fill the fields and retry the move.
|
||||
|
||||
## How it works in WeKan
|
||||
|
||||
- Pure rules: [models/lib/boardFlowPolicies.js](../../../models/lib/boardFlowPolicies.js)
|
||||
|
||||
@@ -37,6 +37,10 @@ sets their own.
|
||||
choose the **Layout** (*One sentence (classic)* or *Clearly arranged: board,
|
||||
who, card in bold*) and, under **Show**, the parts.
|
||||
3. Choose the grouping and the schedule, and optionally quiet hours.
|
||||
For **Email → Once a day**, messages due at the same time are combined
|
||||
into a digest organized by board and card. Addressed @mentions use the
|
||||
immediate e-mail delay, even during quiet hours. The recipient's e-mail
|
||||
preference still controls whether they receive mail.
|
||||
4. Choose "Default" to clear a level's value so it inherits.
|
||||
5. Save.
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ This is without container (without Docker or Snap).
|
||||
|
||||
Right click and download files 1-4:
|
||||
|
||||
1. [wekan-13.38-win64.zip](https://github.com/wekan/wekan/releases/download/v13.38/wekan-13.38-win64.zip) or newest available at https://github.com/wekan/wekan/releases/
|
||||
1. [wekan-13.40-win64.zip](https://github.com/wekan/wekan/releases/download/v13.40/wekan-13.40-win64.zip) or newest available at https://github.com/wekan/wekan/releases/
|
||||
|
||||
2. [node.exe](https://nodejs.org/dist/latest-v26.x/win-x64/node.exe)
|
||||
|
||||
@@ -22,7 +22,7 @@ Right click and download files 1-4:
|
||||
|
||||
6. Double click `mongodb-windows-x86_64-7.0.34-signed.msi` . In installer, uncheck downloading MongoDB compass.
|
||||
|
||||
7. Unzip `wekan-13.38-win64.zip` , inside it is directory `bundle`, to it copy other files:
|
||||
7. Unzip `wekan-13.40-win64.zip` , inside it is directory `bundle`, to it copy other files:
|
||||
|
||||
```
|
||||
bundle (directory)
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
## NodeRings
|
||||
|
||||
NodeRings is a VPS marketplace with independent providers. Pick a region and a provider, and WeKan is installed on first boot.
|
||||
|
||||
[](https://noderings.com/deploy/wekan)
|
||||
@@ -0,0 +1,20 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="211" height="40" viewBox="0 0 211 40" role="img" aria-label="Deploy on NodeRings">
|
||||
<title>Deploy on NodeRings</title>
|
||||
<defs>
|
||||
<linearGradient id="nr" x1="0" y1="0" x2="1" y2="0">
|
||||
<stop offset="0" stop-color="#2DD4BF"/>
|
||||
<stop offset="0.55" stop-color="#2563EB"/>
|
||||
<stop offset="1" stop-color="#6D28D9"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="nrt" gradientUnits="userSpaceOnUse" x1="116.5" y1="0" x2="196.6" y2="0">
|
||||
<stop offset="0" stop-color="#2DD4BF"/>
|
||||
<stop offset="0.55" stop-color="#60A5FA"/>
|
||||
<stop offset="1" stop-color="#A78BFA"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<rect x="0.75" y="0.75" width="209.5" height="38.5" rx="9" fill="#0B1020" stroke="url(#nr)" stroke-width="1.5"/>
|
||||
<circle cx="21" cy="20" r="11" fill="url(#nr)"/>
|
||||
<path d="M21 13.5l5.2 5.4h-3.2v6.1h-4v-6.1h-3.2z" fill="#FFFFFF"/>
|
||||
<path d="M44.76 25.5H42.06V24.04H44.66Q45.9 24.04 46.72 23.57Q47.55 23.11 47.95 22.21Q48.36 21.32 48.36 20.03Q48.36 18.75 47.96 17.86Q47.55 16.97 46.75 16.51Q45.95 16.05 44.76 16.05H42V14.59H44.86Q46.48 14.59 47.62 15.24Q48.77 15.89 49.39 17.11Q50 18.33 50 20.03Q50 21.73 49.39 22.96Q48.77 24.18 47.59 24.84Q46.42 25.5 44.76 25.5ZM42.88 14.59V25.5H41.21V14.59ZM55.44 25.67Q54.23 25.67 53.35 25.15Q52.48 24.63 52 23.68Q51.53 22.74 51.53 21.46Q51.53 20.2 52 19.25Q52.46 18.29 53.31 17.75Q54.16 17.21 55.3 17.21Q56 17.21 56.66 17.44Q57.31 17.67 57.83 18.16Q58.35 18.65 58.65 19.43Q58.96 20.22 58.96 21.32V21.89H52.43V20.69H58.13L57.37 21.09Q57.37 20.34 57.14 19.76Q56.91 19.19 56.45 18.87Q55.99 18.54 55.3 18.54Q54.62 18.54 54.14 18.87Q53.65 19.2 53.4 19.74Q53.14 20.28 53.14 20.91V21.73Q53.14 22.57 53.43 23.16Q53.72 23.74 54.24 24.04Q54.77 24.34 55.45 24.34Q55.9 24.34 56.27 24.21Q56.64 24.08 56.91 23.82Q57.17 23.56 57.32 23.18L58.83 23.53Q58.63 24.17 58.17 24.65Q57.7 25.13 57.01 25.4Q56.32 25.67 55.44 25.67ZM60.72 28.56V17.31H62.29V18.64H62.42Q62.57 18.39 62.83 18.05Q63.08 17.72 63.55 17.46Q64.02 17.21 64.78 17.21Q65.77 17.21 66.54 17.71Q67.31 18.21 67.76 19.15Q68.2 20.09 68.2 21.43Q68.2 22.75 67.76 23.7Q67.33 24.64 66.55 25.15Q65.78 25.66 64.78 25.66Q64.04 25.66 63.57 25.41Q63.1 25.16 62.83 24.82Q62.57 24.48 62.42 24.22H62.33V28.56ZM64.43 24.29Q65.13 24.29 65.6 23.91Q66.08 23.53 66.32 22.88Q66.56 22.22 66.56 21.41Q66.56 20.61 66.32 19.97Q66.08 19.33 65.61 18.95Q65.14 18.58 64.43 18.58Q63.73 18.58 63.26 18.94Q62.79 19.29 62.55 19.92Q62.31 20.56 62.31 21.41Q62.31 22.26 62.55 22.91Q62.79 23.56 63.27 23.93Q63.75 24.29 64.43 24.29ZM71.6 14.59V25.5H69.99V14.59ZM77.21 25.67Q76.06 25.67 75.2 25.14Q74.34 24.61 73.87 23.66Q73.39 22.71 73.39 21.45Q73.39 20.17 73.87 19.22Q74.34 18.26 75.2 17.74Q76.06 17.21 77.21 17.21Q78.37 17.21 79.23 17.74Q80.09 18.26 80.57 19.22Q81.04 20.17 81.04 21.45Q81.04 22.71 80.57 23.66Q80.09 24.61 79.23 25.14Q78.37 25.67 77.21 25.67ZM77.21 24.31Q77.96 24.31 78.45 23.92Q78.94 23.52 79.17 22.87Q79.41 22.22 79.41 21.45Q79.41 20.67 79.17 20.01Q78.94 19.36 78.45 18.96Q77.96 18.57 77.21 18.57Q76.47 18.57 75.99 18.96Q75.51 19.36 75.27 20.01Q75.03 20.66 75.03 21.45Q75.03 22.22 75.27 22.87Q75.51 23.52 75.99 23.92Q76.47 24.31 77.21 24.31ZM82.72 28.44 83.12 27.13 83.3 27.18Q83.72 27.28 84.05 27.24Q84.38 27.19 84.63 26.93Q84.87 26.66 85.02 26.14L85.2 25.54L82.09 17.31H83.83L85.45 21.97Q85.72 22.74 85.9 23.51Q86.08 24.27 86.29 25.04H85.79Q86 24.27 86.2 23.5Q86.39 22.73 86.66 21.97L88.31 17.31H90.04L86.48 26.64Q86.23 27.29 85.87 27.73Q85.51 28.18 85.01 28.4Q84.51 28.62 83.85 28.62Q83.47 28.62 83.17 28.56Q82.87 28.51 82.72 28.44ZM98.9 25.67Q97.75 25.67 96.89 25.14Q96.03 24.61 95.56 23.66Q95.08 22.71 95.08 21.45Q95.08 20.17 95.56 19.22Q96.03 18.26 96.89 17.74Q97.75 17.21 98.9 17.21Q100.06 17.21 100.92 17.74Q101.78 18.26 102.26 19.22Q102.73 20.17 102.73 21.45Q102.73 22.71 102.26 23.66Q101.78 24.61 100.92 25.14Q100.06 25.67 98.9 25.67ZM98.9 24.31Q99.65 24.31 100.14 23.92Q100.62 23.52 100.86 22.87Q101.1 22.22 101.1 21.45Q101.1 20.67 100.86 20.01Q100.62 19.36 100.14 18.96Q99.65 18.57 98.9 18.57Q98.16 18.57 97.68 18.96Q97.19 19.36 96.96 20.01Q96.72 20.66 96.72 21.45Q96.72 22.22 96.96 22.87Q97.19 23.52 97.68 23.92Q98.16 24.31 98.9 24.31ZM106.13 20.65V25.5H104.52V17.31H106.05L106.07 19.32H105.91Q106.26 18.22 106.94 17.71Q107.62 17.21 108.59 17.21Q109.42 17.21 110.05 17.56Q110.68 17.91 111.02 18.6Q111.37 19.28 111.37 20.3V25.5H109.76V20.5Q109.76 19.61 109.3 19.11Q108.84 18.61 108.04 18.61Q107.49 18.61 107.06 18.85Q106.63 19.09 106.38 19.54Q106.13 20 106.13 20.65Z" fill="#F4F6FB"/>
|
||||
<path d="M117.44 25.5V14.59H119.94L123.38 20.11Q123.65 20.54 123.92 21.03Q124.19 21.53 124.47 22.14Q124.76 22.74 125.04 23.51H124.81Q124.76 22.9 124.72 22.21Q124.67 21.53 124.64 20.89Q124.62 20.26 124.62 19.83V14.59H126.9V25.5H124.4L121.27 20.49Q120.93 19.92 120.63 19.4Q120.34 18.87 120.02 18.22Q119.7 17.58 119.26 16.69H119.55Q119.59 17.48 119.64 18.2Q119.68 18.93 119.71 19.52Q119.73 20.11 119.73 20.48V25.5ZM132.49 25.66Q131.26 25.66 130.36 25.13Q129.46 24.6 128.97 23.65Q128.49 22.7 128.49 21.44Q128.49 20.17 128.97 19.22Q129.46 18.27 130.36 17.74Q131.26 17.21 132.49 17.21Q133.73 17.21 134.62 17.74Q135.52 18.27 136.01 19.22Q136.49 20.17 136.49 21.44Q136.49 22.7 136.01 23.65Q135.52 24.6 134.62 25.13Q133.73 25.66 132.49 25.66ZM132.49 23.93Q133.08 23.93 133.47 23.61Q133.87 23.28 134.06 22.71Q134.26 22.15 134.26 21.43Q134.26 20.71 134.06 20.15Q133.87 19.59 133.47 19.26Q133.08 18.94 132.49 18.94Q131.9 18.94 131.51 19.26Q131.12 19.59 130.92 20.15Q130.72 20.71 130.72 21.43Q130.72 22.15 130.92 22.71Q131.12 23.28 131.51 23.61Q131.9 23.93 132.49 23.93ZM141.02 25.64Q140.08 25.64 139.32 25.15Q138.56 24.66 138.12 23.72Q137.69 22.78 137.69 21.42Q137.69 20.02 138.14 19.08Q138.59 18.15 139.35 17.68Q140.1 17.21 141.01 17.21Q141.7 17.21 142.17 17.44Q142.63 17.68 142.91 18.02Q143.2 18.36 143.34 18.69H143.41V14.59H145.61V25.5H143.45V24.19H143.34Q143.19 24.52 142.9 24.85Q142.61 25.18 142.15 25.41Q141.69 25.64 141.02 25.64ZM141.7 23.88Q142.26 23.88 142.65 23.57Q143.04 23.26 143.25 22.7Q143.46 22.15 143.46 21.41Q143.46 20.67 143.25 20.12Q143.05 19.57 142.65 19.27Q142.26 18.97 141.7 18.97Q141.12 18.97 140.73 19.28Q140.34 19.59 140.14 20.14Q139.94 20.69 139.94 21.41Q139.94 22.13 140.14 22.69Q140.34 23.25 140.73 23.56Q141.13 23.88 141.7 23.88ZM151.18 25.66Q149.93 25.66 149.02 25.15Q148.11 24.63 147.63 23.69Q147.14 22.74 147.14 21.45Q147.14 20.18 147.62 19.23Q148.11 18.28 148.99 17.74Q149.88 17.21 151.07 17.21Q151.88 17.21 152.57 17.46Q153.27 17.72 153.8 18.24Q154.32 18.75 154.62 19.53Q154.91 20.31 154.91 21.36V21.98H148.04V20.6H153.84L152.82 20.97Q152.82 20.33 152.62 19.86Q152.43 19.38 152.04 19.12Q151.66 18.86 151.09 18.86Q150.52 18.86 150.12 19.13Q149.73 19.39 149.52 19.84Q149.31 20.29 149.31 20.87V21.84Q149.31 22.55 149.55 23.04Q149.79 23.52 150.22 23.76Q150.65 24.01 151.22 24.01Q151.6 24.01 151.92 23.9Q152.23 23.79 152.46 23.57Q152.69 23.36 152.8 23.04L154.79 23.41Q154.59 24.09 154.1 24.59Q153.61 25.1 152.87 25.38Q152.14 25.66 151.18 25.66ZM156.47 25.5V14.59H160.72Q161.97 14.59 162.84 15.03Q163.71 15.47 164.17 16.27Q164.63 17.06 164.63 18.14Q164.63 19.22 164.16 20Q163.7 20.78 162.81 21.19Q161.93 21.61 160.67 21.61H157.79V19.8H160.32Q161 19.8 161.44 19.61Q161.89 19.42 162.1 19.05Q162.32 18.68 162.32 18.14Q162.32 17.58 162.1 17.21Q161.89 16.83 161.44 16.63Q161 16.43 160.31 16.43H158.71V25.5ZM162.54 25.5 159.89 20.53H162.31L165.02 25.5ZM166.27 25.5V17.31H168.46V25.5ZM167.37 16.24Q166.87 16.24 166.52 15.91Q166.16 15.58 166.16 15.12Q166.16 14.64 166.52 14.31Q166.87 13.99 167.37 13.99Q167.86 13.99 168.22 14.31Q168.57 14.64 168.57 15.12Q168.57 15.58 168.22 15.91Q167.86 16.24 167.37 16.24ZM172.53 20.76V25.5H170.33V17.31H172.41L172.44 19.36H172.31Q172.63 18.33 173.29 17.77Q173.95 17.21 174.98 17.21Q175.83 17.21 176.47 17.58Q177.1 17.95 177.45 18.64Q177.8 19.33 177.8 20.29V25.5H175.6V20.67Q175.6 19.91 175.21 19.48Q174.81 19.04 174.12 19.04Q173.66 19.04 173.3 19.25Q172.94 19.45 172.73 19.83Q172.53 20.21 172.53 20.76ZM183.31 28.74Q182.29 28.74 181.53 28.48Q180.77 28.22 180.29 27.77Q179.81 27.31 179.63 26.73L181.52 26.2Q181.62 26.43 181.84 26.65Q182.05 26.86 182.41 27Q182.77 27.14 183.3 27.14Q184.14 27.14 184.62 26.75Q185.1 26.37 185.1 25.56V24.05H184.93Q184.78 24.38 184.51 24.69Q184.23 24.99 183.78 25.19Q183.33 25.38 182.66 25.38Q181.74 25.38 180.98 24.95Q180.23 24.52 179.78 23.63Q179.33 22.75 179.33 21.39Q179.33 20.01 179.79 19.08Q180.24 18.15 181 17.68Q181.76 17.21 182.67 17.21Q183.36 17.21 183.83 17.44Q184.29 17.67 184.58 18.02Q184.87 18.36 185.02 18.69H185.11V17.31H187.28V25.43Q187.28 26.54 186.77 27.27Q186.26 28.01 185.36 28.37Q184.47 28.74 183.31 28.74ZM183.35 23.71Q183.91 23.71 184.31 23.44Q184.7 23.16 184.9 22.63Q185.11 22.11 185.11 21.38Q185.11 20.65 184.91 20.11Q184.7 19.57 184.31 19.27Q183.92 18.97 183.35 18.97Q182.77 18.97 182.38 19.28Q181.99 19.59 181.79 20.13Q181.58 20.67 181.58 21.38Q181.58 22.09 181.79 22.62Q181.99 23.14 182.38 23.43Q182.78 23.71 183.35 23.71ZM192.4 25.66Q191.41 25.66 190.65 25.38Q189.89 25.09 189.41 24.56Q188.92 24.02 188.78 23.26L190.83 22.91Q190.99 23.48 191.39 23.77Q191.79 24.05 192.47 24.05Q193.09 24.05 193.46 23.81Q193.82 23.57 193.82 23.21Q193.82 22.88 193.56 22.68Q193.31 22.47 192.77 22.36L191.36 22.07Q190.17 21.83 189.59 21.25Q189 20.67 189 19.75Q189 18.96 189.43 18.39Q189.86 17.82 190.63 17.52Q191.4 17.21 192.44 17.21Q193.41 17.21 194.12 17.48Q194.83 17.75 195.27 18.23Q195.7 18.72 195.85 19.39L193.91 19.74Q193.78 19.32 193.42 19.05Q193.07 18.78 192.47 18.78Q191.93 18.78 191.56 19.01Q191.19 19.24 Line truncated
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 9.5 KiB |
@@ -5805,5 +5805,13 @@
|
||||
"gitea-db-migration-version": "Gitea database migration version",
|
||||
"gitea-orphans-delete": "Delete all orphans",
|
||||
"gitea-orphans-delete-confirm": "This deletes for good, from the Gitea folder, the orphan files that nothing in the database uses and the database rows whose file is gone. Anything that is in use when it is deleted is kept. Type the number of orphans to go on:",
|
||||
"gitea-orphans-delete-wrong-number": "The number typed is not the number of orphans. Nothing was deleted."
|
||||
"gitea-orphans-delete-wrong-number": "The number typed is not the number of orphans. Nothing was deleted.",
|
||||
"personal-api-tokens": "Personal API tokens",
|
||||
"personal-api-token-max-days": "Maximum lifetime (days)",
|
||||
"personal-api-token-expiry": "Expires at",
|
||||
"personal-api-token-scope": "Permissions",
|
||||
"personal-api-token-write": "Read and write",
|
||||
"personal-api-token-board-ids": "Board IDs (comma-separated, optional)",
|
||||
"personal-api-token-once": "Copy this token now. It is shown only once.",
|
||||
"personal-api-token-revoke": "Revoke token"
|
||||
}
|
||||
@@ -5805,5 +5805,13 @@
|
||||
"gitea-db-migration-version": "Gitean tietokannan migraatioversio",
|
||||
"gitea-orphans-delete": "Poista kaikki orvot",
|
||||
"gitea-orphans-delete-confirm": "Tämä poistaa Gitea-kansiosta lopullisesti orvot tiedostot, joita mikään tietokannassa ei käytä, ja tietokannan rivit, joiden tiedosto puuttuu. Se, mikä on poistohetkellä käytössä, säilytetään. Jatka kirjoittamalla orpojen määrä:",
|
||||
"gitea-orphans-delete-wrong-number": "Kirjoitettu luku ei ole orpojen määrä. Mitään ei poistettu."
|
||||
"gitea-orphans-delete-wrong-number": "Kirjoitettu luku ei ole orpojen määrä. Mitään ei poistettu.",
|
||||
"personal-api-tokens": "Henkilökohtaiset API-tokenit",
|
||||
"personal-api-token-max-days": "Enimmäisvoimassaoloaika (päivää)",
|
||||
"personal-api-token-expiry": "Vanhenee",
|
||||
"personal-api-token-scope": "Käyttöoikeudet",
|
||||
"personal-api-token-write": "Luku ja kirjoitus",
|
||||
"personal-api-token-board-ids": "Taulujen tunnisteet (pilkulla eroteltuina, valinnainen)",
|
||||
"personal-api-token-once": "Kopioi token nyt. Se näytetään vain kerran.",
|
||||
"personal-api-token-revoke": "Mitätöi token"
|
||||
}
|
||||
@@ -159,14 +159,14 @@ function cleanFileNameUnbounded(name) {
|
||||
n = normalizeConfusables(n);
|
||||
n = n.replace(INVISIBLE_CHARS_GLOBAL, '');
|
||||
n = stripExploitPatterns(n);
|
||||
return n.replace(/\s+/g, ' ').trim();
|
||||
return n.replace(/[\\/:*?"<>|\p{Cc}\p{Cf}]/gu, '').replace(/\s+/g, ' ').trim().replace(/[. ]+$/, '');
|
||||
}
|
||||
|
||||
function cleanFileName(name) {
|
||||
return truncateAmigaFileName(cleanFileNameUnbounded(name));
|
||||
return cleanFileNameUnbounded(name);
|
||||
}
|
||||
|
||||
// Keep every user-visible/downloaded name within classic Amiga FFS's
|
||||
// Explicitly fit a filename within classic Amiga FFS's
|
||||
// 30-character component limit. Preserve the extension, and when the cut lands
|
||||
// inside a bracketed suffix ("report (copy).pdf"), remove that incomplete
|
||||
// suffix instead of displaying "report (co.pdf".
|
||||
|
||||
@@ -10,9 +10,9 @@ import { allowedUriRegExp } from '/models/lib/urlSchemeAllowlist';
|
||||
export function getSecureDOMPurifyConfig(options = {}) {
|
||||
const config = {
|
||||
// Allow common markdown elements including anchor tags
|
||||
ALLOWED_TAGS: ['a', 'p', 'br', 'strong', 'em', 'u', 'cite', 's', 'del', 'strike', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'li', 'blockquote', 'pre', 'code', 'img', 'table', 'thead', 'tbody', 'tr', 'th', 'td', 'hr', 'div', 'span'],
|
||||
ALLOWED_TAGS: ['a', 'p', 'br', 'strong', 'em', 'u', 'cite', 's', 'del', 'strike', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'li', 'blockquote', 'pre', 'code', 'img', 'table', 'thead', 'tbody', 'tr', 'th', 'td', 'hr', 'div', 'span', 'time', 'details', 'summary'],
|
||||
// Allow safe attributes including href for anchor tags
|
||||
ALLOWED_ATTR: ['href', 'title', 'alt', 'src', 'width', 'height', 'target', 'rel'],
|
||||
ALLOWED_ATTR: ['href', 'title', 'alt', 'src', 'width', 'height', 'target', 'rel', 'datetime', 'data-jira-status', 'data-jira-mention', 'data-jira-emoji', 'data-jira-cell-block', 'data-jira-panel'],
|
||||
// Allow safe protocols for links
|
||||
// Plus the custom schemes an administrator listed (#3218, options.urlSchemes
|
||||
// from models/lib/urlSchemeAllowlist.js, which never includes javascript:
|
||||
|
||||
+2
-26
@@ -91,32 +91,8 @@ const Attachments = new FilesCollection({
|
||||
return (str || '').replace(/[^a-zA-Z0-9_.\-]/g, replacement || '_');
|
||||
},
|
||||
onBeforeUpload(file) {
|
||||
// SECURITY: Sanitize filename to prevent path traversal attacks
|
||||
if (file.name && typeof file.name === 'string') {
|
||||
// Strip directory components (client-safe alternative to path.basename)
|
||||
let safeName = file.name.split(/[\\/]/).pop();
|
||||
// Remove null bytes
|
||||
safeName = safeName.replace(/\0/g, '');
|
||||
// Remove path traversal sequences (repeat until stable to avoid incomplete multi-character sanitization)
|
||||
let previousSafeName;
|
||||
do {
|
||||
previousSafeName = safeName;
|
||||
safeName = safeName.replace(/\.\.[\\/]/g, '');
|
||||
} while (safeName !== previousSafeName);
|
||||
safeName = safeName.replace(/^\.\.$/g, '');
|
||||
safeName = safeName.trim();
|
||||
|
||||
// If sanitization changed the name, update it
|
||||
if (safeName && safeName !== '.' && safeName !== '..' && safeName !== file.name) {
|
||||
file.name = safeName;
|
||||
} else if (!safeName || safeName === '.' || safeName === '..') {
|
||||
file.name = 'unnamed';
|
||||
}
|
||||
// Apply the same plain-text and classic Amiga FFS 30-character policy
|
||||
// before bytes leave the client. Content-derived extension correction is
|
||||
// repeated authoritatively on the server after its bounded header sniff.
|
||||
file.name = cleanFileName(file.name) || 'unnamed';
|
||||
}
|
||||
// The human-readable name is independent of the upload's storage ID.
|
||||
file.name = cleanFileName(file.name) || 'unnamed';
|
||||
|
||||
// SVG is allowed (#6802, maintainer decision 2026-10-25): every uploaded SVG
|
||||
// is sanitized on the server before it is stored - no script, event handler,
|
||||
|
||||
@@ -188,8 +188,8 @@ Attachments.onAfterUpload = async function (fileObj) {
|
||||
// 2. Normalize + correct the stored name: URL-decode, fold confusable
|
||||
// homoglyphs, remove invisible characters, strip exploit markup, and fix
|
||||
// the EXTENSION to match the real detected file type — so double-clicking
|
||||
// the downloaded file opens the right application — capped to a portable
|
||||
// length. Uses the general, storage-agnostic detector (streams only a
|
||||
// the downloaded file opens the right application — using the general,
|
||||
// storage-agnostic detector (streams only a
|
||||
// small header to WRITABLE_PATH/files/temp, then deletes it).
|
||||
try {
|
||||
const { filenameLooksLikeExploit, sanitizeUploadFileName } = require('./lib/uploadFileName');
|
||||
@@ -476,7 +476,10 @@ Meteor.methods({
|
||||
const cleanName = cleanFileName(newName);
|
||||
if (!cleanName) throw new Meteor.Error('invalid-filename', 'This file name is not allowed.');
|
||||
|
||||
await rename(fileObj, cleanName, fileStoreStrategyFactory);
|
||||
const { detectStoredFileMime } = require('./lib/fileTypeCorrection');
|
||||
const { sanitizeUploadFileName } = require('./lib/uploadFileName');
|
||||
const detectedMime = await detectStoredFileMime(fileObj, fileStoreStrategyFactory);
|
||||
await rename(fileObj, sanitizeUploadFileName(cleanName, detectedMime), fileStoreStrategyFactory);
|
||||
},
|
||||
async validateAttachment(fileObjId) {
|
||||
check(fileObjId, String);
|
||||
|
||||
@@ -1175,6 +1175,8 @@ Boards.attachSchema(
|
||||
optional: true,
|
||||
},
|
||||
|
||||
showCardAvatarFullNames: { type: Boolean, optional: true },
|
||||
showMinicardAvatarFullNames: { type: Boolean, optional: true },
|
||||
allowsAssignee: {
|
||||
/**
|
||||
* Does the board allows assignee?
|
||||
@@ -1503,6 +1505,7 @@ Boards.attachSchema(
|
||||
type: Boolean,
|
||||
defaultValue: false,
|
||||
},
|
||||
defaultListWidth: { type: Number, optional: true, min: 200 },
|
||||
autoWidth: {
|
||||
/**
|
||||
* Shared (per-board) auto-width for all lists (#6409). When true, lists
|
||||
@@ -1667,6 +1670,8 @@ Boards.attachSchema(
|
||||
defaultValue: true,
|
||||
},
|
||||
|
||||
showMinicardDateTime: { type: Boolean, optional: true },
|
||||
showMinicardDateRelative: { type: Boolean, optional: true },
|
||||
dateFormatOverride: { type: Boolean, optional: true },
|
||||
// #6947: hours before the due date a card is due soon, and after it a
|
||||
// card is overdue (models/lib/dueDateThresholds.js; unset: 48 and 0).
|
||||
@@ -1976,6 +1981,7 @@ Boards.helpers({
|
||||
const integrations = selection.integrations ? await ReactiveCache.getIntegrations({ boardId: oldId }) : [];
|
||||
for (const integration of integrations) {
|
||||
delete integration._id;
|
||||
delete integration.signingSecret;
|
||||
integration.boardId = _id;
|
||||
await Integrations.insertAsync(integration);
|
||||
}
|
||||
@@ -3016,6 +3022,7 @@ Boards.helpers({
|
||||
},
|
||||
|
||||
async addLabel(name, color, dueAt, { jiraComponent, jiraComponentUserIds } = {}) {
|
||||
if (Meteor.isClient) return Meteor.callAsync('boards.addLabel', this._id, name, color, dueAt);
|
||||
const trimmedName = typeof name === 'string' ? name.trim() : name;
|
||||
if (!this.getLabel(trimmedName, color)) {
|
||||
const _id = Random.id(6);
|
||||
|
||||
@@ -164,6 +164,12 @@ CardComments.attachSchema(
|
||||
'jiraCommentSentBaseline.text': { type: String },
|
||||
openProjectCommentSendStartedAt: { type: Date, optional: true },
|
||||
openProjectSentCommentId: { type: String, optional: true },
|
||||
plankaCommentSendStartedAt: { type: Date, optional: true },
|
||||
plankaSentCommentId: { type: String, optional: true },
|
||||
plankaCommentSentBaseline: { type: Object, optional: true },
|
||||
'plankaCommentSentBaseline.sourceKey': { type: String },
|
||||
'plankaCommentSentBaseline.cardId': { type: String },
|
||||
'plankaCommentSentBaseline.text': { type: String },
|
||||
syncCommentId: {
|
||||
/**
|
||||
* List sync: the tracker's own id of the comment this one mirrors
|
||||
|
||||
+17
-2
@@ -416,6 +416,8 @@ Cards.attachSchema(
|
||||
'googleTaskParentBaseline.parent': { type: String },
|
||||
syncDependencyKeys: { type: Array, optional: true },
|
||||
'syncDependencyKeys.$': { type: String },
|
||||
notionSyncedMemberIds: { type: Array, optional: true },
|
||||
'notionSyncedMemberIds.$': { type: String },
|
||||
syncLabelIds: { type: Array, optional: true },
|
||||
'syncLabelIds.$': { type: String },
|
||||
plankaLabelBaseline: { type: Object, optional: true },
|
||||
@@ -436,6 +438,14 @@ Cards.attachSchema(
|
||||
'msTodoLabelBaseline.importance': { type: String, allowedValues: ['low', 'normal', 'high'] },
|
||||
jiraLabelBaseline: { type: Object, optional: true },
|
||||
'jiraLabelBaseline.since': { type: Date },
|
||||
'jiraLabelBaseline.priorityId': { type: String, optional: true, max: 16 },
|
||||
'jiraLabelBaseline.optionIds': { type: Object, optional: true },
|
||||
'jiraLabelBaseline.optionIds.components': { type: Array, optional: true },
|
||||
'jiraLabelBaseline.optionIds.components.$': { type: String, max: 16 },
|
||||
'jiraLabelBaseline.optionIds.fixVersions': { type: Array, optional: true },
|
||||
'jiraLabelBaseline.optionIds.fixVersions.$': { type: String, max: 16 },
|
||||
'jiraLabelBaseline.optionIds.versions': { type: Array, optional: true },
|
||||
'jiraLabelBaseline.optionIds.versions.$': { type: String, max: 16 },
|
||||
'jiraLabelBaseline.localIds': { type: Array },
|
||||
'jiraLabelBaseline.localIds.$': { type: String },
|
||||
'jiraLabelBaseline.remote': { type: Array },
|
||||
@@ -466,6 +476,7 @@ Cards.attachSchema(
|
||||
'syncTodoistOccurrence.date': { type: String },
|
||||
'syncLastSource.reminderDate': { type: String, optional: true },
|
||||
'syncLastSource.startDate': { type: String, optional: true },
|
||||
'syncLastSource.startDateMapping': { type: String, optional: true, max: 28 },
|
||||
'syncLastSource.dueDate': { type: String, optional: true },
|
||||
'syncLastSource.dueComplete': { type: Boolean, optional: true },
|
||||
'syncLastSource.title': { type: String, optional: true },
|
||||
@@ -1407,6 +1418,7 @@ Cards.helpers({
|
||||
delete cardData.openProjectTimeEntries;
|
||||
delete cardData.openProjectTimeEntriesOmitted;
|
||||
delete cardData.syncDependencyKeys;
|
||||
delete cardData.notionSyncedMemberIds;
|
||||
delete cardData.syncParentId;
|
||||
delete cardData.googleTaskOrderBaseline;
|
||||
delete cardData.googleTaskParentBaseline;
|
||||
@@ -4497,8 +4509,10 @@ export default Cards;
|
||||
// Prevent direct DDP writes bypassing Scrum reference and lifecycle validation.
|
||||
if (Meteor.isServer) {
|
||||
Cards.deny({
|
||||
insert(userId, doc) { return doc.assigneeEffort !== undefined || doc.scrum !== undefined || doc.scrumRevision !== undefined || doc.flow !== undefined || doc.googleTaskOrderBaseline !== undefined || doc.googleTaskParentBaseline !== undefined || doc.syncTodoistOccurrence !== undefined || doc.plankaLabelBaseline !== undefined || doc.msTodoLabelBaseline !== undefined || doc.jiraLabelBaseline !== undefined || doc.jiraIssueHistory !== undefined || doc.jiraSyncedVoterIds !== undefined || doc.openProjectTimeEntries !== undefined || doc.openProjectTimeEntriesOmitted !== undefined; },
|
||||
update(userId, doc, fields) {
|
||||
insert(userId, doc) { return doc.assigneeEffort !== undefined || doc.scrum !== undefined || doc.scrumRevision !== undefined || doc.flow !== undefined || doc.googleTaskOrderBaseline !== undefined || doc.googleTaskParentBaseline !== undefined || doc.syncTodoistOccurrence !== undefined || doc.plankaLabelBaseline !== undefined || doc.msTodoLabelBaseline !== undefined || doc.jiraLabelBaseline !== undefined || doc.jiraIssueHistory !== undefined || doc.jiraSyncedVoterIds !== undefined || doc.notionSyncedMemberIds !== undefined || doc.openProjectTimeEntries !== undefined || doc.openProjectTimeEntriesOmitted !== undefined; },
|
||||
update(userId, doc, fields, modifier) {
|
||||
if (Object.values(modifier?.$rename || {}).some(field => field === 'notionSyncedMemberIds' ||
|
||||
(typeof field === 'string' && field.startsWith('notionSyncedMemberIds.')))) return true;
|
||||
return fields.some(field => field === 'assigneeEffort' || field.startsWith('assigneeEffort.') || field === 'scrum' || field.startsWith('scrum.') || field === 'scrumRevision'
|
||||
// The flow fields' who and when are the server's (server/lib/cardFlowMethod.js).
|
||||
|| field === 'flow' || field.startsWith('flow.')
|
||||
@@ -4509,6 +4523,7 @@ if (Meteor.isServer) {
|
||||
|| field === 'msTodoLabelBaseline' || field.startsWith('msTodoLabelBaseline.')
|
||||
|| field === 'jiraLabelBaseline' || field.startsWith('jiraLabelBaseline.')
|
||||
|| field === 'jiraIssueHistory' || field.startsWith('jiraIssueHistory.')
|
||||
|| field === 'notionSyncedMemberIds' || field.startsWith('notionSyncedMemberIds.')
|
||||
|| field === 'jiraSyncedVoterIds' || field.startsWith('jiraSyncedVoterIds.')
|
||||
|| field === 'openProjectTimeEntriesOmitted' || field === 'openProjectTimeEntries' || field.startsWith('openProjectTimeEntries.'));
|
||||
},
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
import { DDP } from 'meteor/ddp';
|
||||
import { Mongo } from 'meteor/mongo';
|
||||
const { SimpleSchema } = require('/imports/simpleSchema');
|
||||
|
||||
@@ -87,6 +88,11 @@ ChangeHistory.attachSchema(
|
||||
blackbox: true,
|
||||
defaultValue: null,
|
||||
},
|
||||
source: {
|
||||
type: String,
|
||||
optional: true,
|
||||
allowedValues: ['rest', 'web'],
|
||||
},
|
||||
userId: {
|
||||
/** who made the change — the axis the Member-settings view filters on */
|
||||
type: String,
|
||||
@@ -150,6 +156,12 @@ ChangeHistory.record = async function record(options) {
|
||||
if (!CHANGE_TYPES.includes(changeType)) return null;
|
||||
|
||||
try {
|
||||
let source;
|
||||
if (Meteor.isServer) {
|
||||
const request = require('/server/lib/requestReportContext').currentReportRequest();
|
||||
if (request?.userId && /^\/api(?:\/|\?|$)/.test(request.url)) source = 'rest';
|
||||
else if (DDP._CurrentMethodInvocation?.get()?.connection) source = 'web';
|
||||
}
|
||||
const createdAt = new Date();
|
||||
const row = {
|
||||
boardId,
|
||||
@@ -163,6 +175,7 @@ ChangeHistory.record = async function record(options) {
|
||||
previousContent,
|
||||
newContent,
|
||||
userId,
|
||||
...(source ? { source } : {}),
|
||||
undone: false,
|
||||
undoneAt: null,
|
||||
isCheckpoint,
|
||||
|
||||
@@ -12,6 +12,12 @@ const ChecklistItems = new Mongo.Collection('checklistItems');
|
||||
*/
|
||||
ChecklistItems.attachSchema(
|
||||
new SimpleSchema({
|
||||
plankaSyncTitle: { type: String, optional: true },
|
||||
plankaRemoteId: { type: String, optional: true },
|
||||
plankaCreateStartedAt: { type: Date, optional: true },
|
||||
plankaSyncSourceKey: { type: String, optional: true },
|
||||
plankaSyncSort: { type: Number, optional: true },
|
||||
plankaSyncFinished: { type: Boolean, optional: true },
|
||||
title: {
|
||||
/**
|
||||
* the text of the item
|
||||
|
||||
@@ -42,6 +42,11 @@ Checklists.attachSchema(
|
||||
type: String,
|
||||
optional: true,
|
||||
},
|
||||
plankaRemoteId: { type: String, optional: true },
|
||||
plankaCreateStartedAt: { type: Date, optional: true },
|
||||
plankaSyncSourceKey: { type: String, optional: true },
|
||||
plankaSyncSort: { type: Number, optional: true },
|
||||
plankaSyncTitle: { type: String, optional: true },
|
||||
title: {
|
||||
/**
|
||||
* the title of the checklist
|
||||
|
||||
Loaded 100 of 356 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user