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