Compare commits

..
27 Commits
Author SHA1 Message Date
github-actions[bot] 289ff9fb17 Bump versions for v11.87 2026-09-19 16:23:58 +00:00
Lauri Ojansivu 6bfceb80d6 Prepare v11.87 release 2026-09-19 19:22:24 +03:00
Lauri Ojansivu d0d9195c1c Document notification delivery verification for #6658. 2026-09-19 16:07:36 +03:00
Lauri Ojansivu fd238d34c3 Verify muted-board fixes through actual SMTP delivery.
The muted-assignment fix in 4be77e7189 and scoped-subscription/settings fix in 03e8a6bf66 are already present. Add browser regressions that capture SMTP email for board, list and card watching, comments, title changes and new cards; verify muted assignments and member email opt-outs stay silent. Correct the channel settings guide and document delivery prerequisites and test setup.

Ten SMTP scenarios and six existing tray/settings scenarios passed across Chromium and Firefox against the current Meteor bundle with MongoDB. Focused recipient and notification Node suites passed. External inbox delivery and FerretDB runtime were not verified; the latest reported delivery failure was not reproduced.

Thanks to Nissulya and xet7 !

Fixes #6658,
2026-09-19 16:07:09 +03:00
Lauri Ojansivu c6763f496c Document clean task board features and complete regression checks. 2026-09-19 15:59:41 +03:00
Lauri Ojansivu 16b1b307fc Add cleaner task board presentation and date-only formats.
Add board controls for minicard collapse, labels above the title, checklist due dates and the outer checklist heading. Keep previously collapsed content accessible when its control is hidden, and preserve stored content and existing defaults.

Add personal and admin date-only formats across calendars and exports. Extend the existing smaller font presets with compact checklist and settings spacing. Cover persistence, permissions, layout and date behavior with unit and browser tests.

Thanks to xet7 !
2026-09-19 15:56:01 +03:00
Lauri Ojansivu e13fc2028a Document retired editor removal in Upcoming. 2026-09-19 14:33:52 +03:00
Lauri Ojansivu 5ed9fc944a Remove obsolete Summernote integration and editor configuration.
Use the Markdown textarea for every editor. Remove the retired environment and Snap options from server settings, all platform launchers, build scripts and current documentation. Keep released and archived changelog entries intact.

Keep notification HTML escaping independent of editor configuration, preserve attachment metadata and mention behavior, and cover Markdown and emoji round trips in browser tests. Also import the translator used by attachment error handlers.

Thanks to xet7 !
2026-09-19 14:32:29 +03:00
Lauri Ojansivu 43b0a8de1e Document audited usability fixes and issue regressions in Upcoming. 2026-09-19 14:02:16 +03:00
Lauri Ojansivu 896f1222bd Implement audited board usability and accessibility fixes.
Repair relative ordering and destination dialog lifecycles, retain failed operations, and make checklist, rule and attachment controls keyboard accessible. Improve scaled layouts and reuse canonical translated labels.

Add source-execution and Chromium/Firefox regression coverage, including awaiting background persistence before reload. Record implementation decisions and validation limits.

Thanks to xet7 !
2026-09-19 14:00:48 +03:00
Lauri Ojansivu 684411f139 Keep only the English proposed-fix audit. 2026-09-19 13:59:21 +03:00
Lauri Ojansivu 193c799539 Restore visible, selectable comment mention suggestions.
Initialize autocomplete once per editor, place its styled menu above card windows, and fall back to the textarea when Summernote is unavailable. Verify pointer and keyboard selection for password and LDAP account fixtures.

Thanks to bbyszio and xet7 !

Fixes #6704.
2026-09-19 13:26:08 +03:00
Lauri Ojansivu 337f601852 Restore card dragging after expanding collapsed lists.
Bind sortable initialization and reactive work to the replaceable list body, and clean it up on destruction. Cover repeated collapse, expansion, reload and drag permissions.

Thanks to Nich01asFox and xet7 !

Fixes #6705.
2026-09-19 13:26:08 +03:00
Lauri Ojansivu 0d9744bb8d Add Finnish translation of the proposed-fix audit.
Thanks to xet7 !
2026-09-19 13:26:08 +03:00
Lauri Ojansivu 4ec273068e Audit September 18 fix proposals against source and browser behavior. 2026-09-19 12:37:52 +03:00
Lauri Ojansivu 2dbf9c7f39 Clean up spacing in September 18 fixes report. 2026-09-19 12:23:34 +03:00
Lauri Ojansivu e693fe5212 Document Launchpad build recovery fixes and verification
Thanks to xet7 !
2026-09-18 20:09:31 +03:00
Lauri Ojansivu 29bd491e85 Fix Launchpad recovery, ref indexing and artifact downloads
Recover the project repository used for submission, retry recipe creation while Launchpad indexes main, and reject incomplete snaps before remote cleanup. Run the compatibility wrapper inside Snapcraft's own environment.

Verified all 1173 Node suites sequentially, workflow lint and script syntax. Regression coverage exercises delayed refs, unrelated errors, recovery paths, invalid downloads and launcher argument handling without remote writes.

Thanks to xet7 !
2026-09-18 20:08:50 +03:00
github-actions[bot] e1e64e92b4 Bump versions for v11.86 2026-09-18 04:39:23 +00:00
Lauri Ojansivu 566190a97e Prepare v11.86 release 2026-09-18 07:37:51 +03:00
Lauri Ojansivu 1c3bb8448b Document Snap recovery and attachment verification 2026-09-18 07:36:46 +03:00
Lauri Ojansivu bc5881ff90 Recover interrupted Snap builds and bound release attachments
The v11.85 logs show ARMHF failing during Launchpad polling after TLS EOF,
PPC64EL and S390X reaching the six-hour job cap while queued, and AMD64
successfully publishing to the Snap Store before its GitHub attachment hung.

Recover existing recipes before considering a new submission, and share one
five-hour waiter budget across attempts on every architecture. Prepare an
isolated complete source snapshot with Git metadata and logs outside the
project hash, and distinguish architectures so matrix recipes stay separate.
Move downloaded artifacts out before retrying recovery.

Bound GitHub snap attachments and verify remote names and sizes. Exercise
these paths with fixture repositories and mocked network commands, covering
TLS failures, absent recipes, denied credentials, queue timeouts, invalid
artifacts and failed uploads. Workflow parsing, shell syntax and Actionlint
pass. The full 1,172 Node suite sweep is verified with corrected guards rerun.
Live remote builds and publishing have not been run.

Thanks to xet7 !
2026-09-18 07:36:20 +03:00
github-actions[bot] 1657a96943 Bump versions for v11.85 2026-09-17 15:17:56 +00:00
Lauri Ojansivu ee4eeedaa2 Prepare v11.85 release 2026-09-17 18:16:04 +03:00
Lauri Ojansivu 20b7dd33fa Merge remote-tracking branch 'origin/main' 2026-09-17 18:15:42 +03:00
Lauri Ojansivu 53a23258cf Document the global date format setting and verification 2026-09-17 18:14:28 +03:00
Lauri Ojansivu 46607d4299 Add an admin date format override for everyone
Place the global date format checkbox and selector between Board member
list and Wait Spinner in Visibility settings. While enabled, use the
selected format for members and guests, call the card section Date and
hide its personal format selector. Preserve personal preferences so they
return when the override is disabled.

Apply the same policy to date displays, filter parsing and browser export
requests. Validate supported formats and retain admin-only settings writes.
Add positive, negative and browser regression coverage and document the
setting. Translate the new label without changing existing translations.

Lower-confidence new translations include Acehnese, Aymara, Cherokee,
Inuktitut, Kashmiri, Nahuatl, Veps, Volapuk and Wolaytta; native-speaker
review would improve these labels.

Thanks to Mathia2 and xet7 !

Fixes #6703,
2026-09-17 18:13:20 +03:00
426 changed files with 5199 additions and 1092 deletions

No files matched your search

-1
View File
@@ -38,7 +38,6 @@ ENV \
AVATARS_UPLOAD_EXTERNAL_PROGRAM="" \
AVATARS_UPLOAD_MIME_TYPES="" \
AVATARS_UPLOAD_MAX_SIZE=0 \
RICHER_CARD_COMMENT_EDITOR=false \
CARD_OPENED_WEBHOOK_ENABLED=false \
MAX_IMAGE_PIXEL="" \
IMAGE_COMPRESS_RATIO="" \
-1
View File
@@ -29,7 +29,6 @@ services:
- MONGO_URL=mongodb://wekandb-dev:27017/wekan
- ROOT_URL=http://localhost:3000
- WITH_API=true
- RICHER_CARD_COMMENT_EDITOR=true
- BROWSER_POLICY_ENABLED=true
- WRITABLE_PATH=/data
depends_on:
@@ -150,7 +150,6 @@ jobs:
PORT=3000 \
WRITABLE_PATH="$PWD/wekan-writable" \
WITH_API=true \
RICHER_CARD_COMMENT_EDITOR=false \
node output/bundle/main.js > wekan-run.log 2>&1 &
# The production server serves the client JS statically, so once :3000
# responds the bundle is being served. Wait up to 10 minutes.
@@ -269,7 +268,6 @@ jobs:
PORT=3000 \
WRITABLE_PATH="$PWD/wekan-writable" \
WITH_API=true \
RICHER_CARD_COMMENT_EDITOR=false \
node output/bundle/main.js > wekan-run.log 2>&1 &
for i in $(seq 1 60); do
if curl -sf http://localhost:3000 > /dev/null; then
+54 -90
View File
@@ -4387,18 +4387,7 @@ jobs:
# one still upload cleanly.
up=("$asset")
[ -f "${asset}.sha256sum" ] && up+=("${asset}.sha256sum")
if ! gh release upload --repo "${GITHUB_REPOSITORY:-wekan/wekan}" "v${VERSION}" "${up[@]}" --clobber; then
echo "::error::Could not attach $asset to release v${VERSION}: the release must exist first (the release job), and GITHUB_TOKEN must be allowed to write releases here."
exit 1
fi
# Confirm from the OTHER side. An upload that reports success but leaves no
# asset behind is the failure nobody notices until a download 404s.
gh release view --repo "${GITHUB_REPOSITORY:-wekan/wekan}" "v${VERSION}" --json assets --jq '.assets[].name' > release-assets.txt
if ! grep -qxF "$(basename "$asset")" release-assets.txt; then
echo "::error::$asset is not listed in release v${VERSION} although the upload reported success. Re-run this job."
exit 1
fi
echo "OK: $(basename "$asset") is attached to release v${VERSION} ($(($(wc -c < "$asset")/1024/1024)) MiB)."
bash releases/github-release-upload.sh "${GITHUB_REPOSITORY:-wekan/wekan}" "v${VERSION}" "${up[@]}"
# 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
@@ -4455,7 +4444,7 @@ jobs:
# never cancels the others - each publishes the moment it finishes.
continue-on-error: true
# GitHub's hosted-job ceiling is six hours. The remote command below stops
# waiting after five hours on riscv64 and leaves the queued Launchpad build
# waiting after five hours across all attempts and leaves the Launchpad build
# alive, giving log collection and the summary a full hour to finish cleanly
# instead of having GitHub cancel the job at 360 minutes.
timeout-minutes: 360
@@ -4527,36 +4516,9 @@ jobs:
- name: Flatten history so the Launchpad push stays small
if: steps.bundle.outputs.available == 'true'
# snapcraft remote-build pushes the project's git repository to
# git.launchpad.net and builds it there. It rejects a SHALLOW clone
# (that is why the checkout above is fetch-depth: 0), but it does NOT
# need the history - and WeKan's full history is large enough that the
# push times out or is refused mid-upload:
# Git operation failed with: Could not push 'HEAD' to
# git.launchpad.net/.../+git/snapcraft-wekan-<hash>
# after ~4-5 minutes, three attempts running, which is how v10.55
# riscv64 and v10.64 ppc64el failed. Re-init the repo as ONE commit of
# the tagged tree: a COMPLETE repository (git rev-parse
# --is-shallow-repository is false, so remote-build accepts it), just
# without the history it pushes for nothing. The push is then the source
# tree (tens of MB) instead of the whole history (hundreds). The snap
# version comes from snapcraft.yaml (verified below), not git-describe,
# so dropping the history changes nothing about what is built.
run: |
set -euo pipefail
# remote-build derives its Launchpad recipe name from this commit.
# Preserve the tagged commit's timestamp so a re-run creates the SAME
# root commit and reconnects to the queued build instead of submitting
# another riscv64 build behind it.
snapshot_date="$(git show -s --format=%cI HEAD)"
rm -rf .git
git init -q
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
GIT_AUTHOR_DATE="$snapshot_date" GIT_COMMITTER_DATE="$snapshot_date" \
git commit -q -m "WeKan ${VERSION} snapshot for Launchpad remote-build"
echo "Re-initialised as one commit; shallow: $(git rev-parse --is-shallow-repository)"
# Snapcraft hashes the project files, not only its commit. Use a complete
# one-commit source tree with Git metadata/logs outside the hashed tree.
run: bash releases/prepare-launchpad-source.sh "${{ matrix.arch }}"
- name: Install snapcraft
if: steps.bundle.outputs.available == 'true'
@@ -4631,6 +4593,34 @@ jobs:
}
echo "built=false" >> "$GITHUB_OUTPUT"
echo "pending=false" >> "$GITHUB_OUTPUT"
# A shared deadline, not five hours PER retry. Every architecture can
# queue (v11.85 ppc64el/s390x), and TLS recovery must not reset the budget.
deadline=$((SECONDS + 18000))
export TMPDIR="$PWD/.tools/tmp"
remote_wrapper="$PWD/releases/snapcraft-remote-compat.sh"
remote_source="$PWD/.tools/tmp/snap-launchpad-source"
remote_log="$PWD/.tools/tmp/remote-build-attempt.log"
run_remote_build() {
local remaining=$((deadline - SECONDS))
[ "$remaining" -gt 0 ] || return 124
# Isolate the local waiter, and kill it if it ignores TERM. Never
# cancel the remote build; a later run can recover the same recipe.
(
cd "$remote_source" || { echo "::error::Prepared Launchpad source is missing: $remote_source" >&2; exit 1; }
timeout --kill-after=30s "${remaining}s" bash "$remote_wrapper" remote-build --launchpad-accept-public-upload \
--build-for ${{ matrix.arch }} "$@"
) 2>&1 | tee "$remote_log"
local remote_rc=${PIPESTATUS[0]}
# Downloaded artifacts and build logs also change the project hash.
# Move them out before the next recovery attempt, keeping the logs
# where the existing diagnostics/artifact collection expect them.
local download
for download in "$remote_source"/*.snap "$remote_source"/snapcraft-wekan-*.txt; do
mv "$download" .
done
return "$remote_rc"
}
attempts=3
for i in $(seq 1 "$attempts"); do
# A partial file from a previous attempt must not be mistaken for
@@ -4638,22 +4628,13 @@ jobs:
# already has, so the truncated one would be uploaded again.
rm -f wekan_${VERSION}_${{ matrix.arch }}*.snap *_${{ matrix.arch }}.snap
echo "::group::Remote build ${{ matrix.arch }} attempt $i/$attempts"
if [ "${{ matrix.arch }}" = riscv64 ]; then
# Launchpad's riscv64 queue exceeded GitHub's six-hour job cap in
# v11.06. Stop only the LOCAL waiter after five hours; Launchpad
# keeps the named build, and the deterministic snapshot above lets
# a job re-run reconnect and download it when ready.
# Do not use --foreground here. GNU timeout then owns a separate
# process group and returns 124 to this shell when it expires.
# With --foreground, terminating snapcraft surfaced to Actions as
# "The operation was canceled", so the rc=124 pending branch
# below never ran and the otherwise healthy matrix leg was red.
timeout 300m snapcraft remote-build \
--launchpad-accept-public-upload \
--build-for ${{ matrix.arch }} && rc=0 || rc=$?
else
snapcraft remote-build --launchpad-accept-public-upload \
--build-for ${{ matrix.arch }} && rc=0 || rc=$?
# Always try recovery first, including a re-run of this matrix job.
# start_builds replaces the recipe; it does NOT resume polling after
# an SSL EOF. Only an explicitly absent recipe/repository permits a
# new submission. Authentication/network failures are not absence.
run_remote_build --recover && rc=0 || rc=$?
if [ "$rc" -ne 0 ] && grep -qE 'Could not find (snap recipe|repository at path)' "$remote_log"; then
run_remote_build && rc=0 || rc=$?
fi
echo "::endgroup::"
# A real glob, so nullglob can empty it, plus any name Launchpad chose -
@@ -4673,13 +4654,13 @@ jobs:
echo "built=true" >> "$GITHUB_OUTPUT"
exit 0
fi
if [ "${{ matrix.arch }}" = riscv64 ] && [ "$rc" -eq 124 ]; then
if [ "$rc" -eq 124 ] || [ "$SECONDS" -ge "$deadline" ]; then
echo "pending=true" >> "$GITHUB_OUTPUT"
echo "::warning::Launchpad riscv64 is still queued after five hours. Ending the local wait cleanly; re-run this matrix job later to reconnect to the same build and publish its snap."
echo "::warning::Launchpad ${{ matrix.arch }} has not produced a snap within the five-hour wait budget. Ending the local wait cleanly; re-run this matrix job later to reconnect to the same build and publish its snap."
exit 0
fi
if [ "$rc" -eq 0 ] && [ "${#snaps[@]}" -gt 0 ]; then
echo "::warning::Attempt $i produced ${snaps[0]}, but it is not a usable snap (see above). Deleting it and building again rather than handing it to the Snap Store."
echo "::warning::Attempt $i produced ${snaps[0]}, but it is not a usable snap (see above). Refusing to publish it; recovery must retrieve a valid artifact."
fi
if [ "$rc" -eq 0 ]; then
echo "Attempt $i: snapcraft exited 0 but produced NO .snap for ${{ matrix.arch }} - the Launchpad build did not finish (a 'Stopped' build downloads logs and no artifact). Everything in the directory:"
@@ -4718,12 +4699,12 @@ jobs:
echo "::endgroup::"
done
if [ "$i" -lt "$attempts" ]; then
# Start the next attempt from nothing. snapcraft keeps a local
# clone of the Launchpad repository under ~/.cache, and a retry
# that reuses a half-pushed one repeats the same failure - which is
# what three identical attempts sixteen minutes apart look like.
echo "Clearing snapcraft's remote-build cache before retrying."
rm -rf "$HOME/.cache/snapcraft/remote-build"
# Clear a half-pushed clone only when submission never reached
# monitoring. A failed poll must keep the running build intact.
if ! grep -qE 'Monitoring build|Recovering build' "$remote_log"; then
echo "Clearing snapcraft's remote-build cache before retrying submission."
rm -rf "$HOME/.cache/snapcraft/remote-build"
fi
echo "Retrying in 60s..."
sleep 60
fi
@@ -4805,7 +4786,7 @@ jobs:
# good builds were reported as FAILED by the step that saves their logs.
# The timestamp is worth keeping, so the colons become dashes rather
# than the name being thrown away.
for f in snapcraft-wekan-*.txt "$HOME"/.local/state/snapcraft/log/*.log; do
for f in snapcraft-wekan-*.txt .tools/tmp/remote-build-attempt.log "$HOME"/.local/state/snapcraft/log/*.log; do
[ -f "$f" ] || continue
base="$(basename "$f")"
cp -f "$f" "snap-logs/${base//:/-}" || true
@@ -4909,24 +4890,7 @@ jobs:
# attaching, which is the half people download from.
snaps=( $(printf '%s\n' wekan_${VERSION}_${{ matrix.arch }}*.snap *_${{ matrix.arch }}.snap | sort -u) )
if [ "${#snaps[@]}" -gt 0 ] && [ -s "${snaps[0]}" ]; then
if ! gh release upload --repo "${GITHUB_REPOSITORY:-wekan/wekan}" "v${VERSION}" "${snaps[@]}" --clobber; then
echo "::error::Could not attach ${snaps[*]} to release v${VERSION}. The snap BUILT and was published to the Snap Store by the step above, so this is the attaching alone - the half people download from."
exit 1
fi
# Confirm from the OTHER side, the way the native snap job does: an
# upload that reports success but leaves no asset behind is the
# failure nobody notices until a download 404s. v10.91 lost three
# architectures from the Release while every job that lost one had
# already said the snap was built and published.
gh release view --repo "${GITHUB_REPOSITORY:-wekan/wekan}" "v${VERSION}" \
--json assets --jq '.assets[].name' > release-assets.txt
for snap in "${snaps[@]}"; do
if ! grep -qxF "$(basename "$snap")" release-assets.txt; then
echo "::error::$(basename "$snap") is not listed in release v${VERSION} although the upload reported success. Re-run this job."
exit 1
fi
done
echo "OK: ${snaps[*]} attached to release v${VERSION}."
bash releases/github-release-upload.sh "${GITHUB_REPOSITORY:-wekan/wekan}" "v${VERSION}" "${snaps[@]}"
else
echo "No ${{ matrix.arch }} snap to attach - the build produced none."
fi
@@ -4935,14 +4899,14 @@ jobs:
# 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
# job it was in.
- name: Say what a queued riscv64 build leaves behind
- name: Say what an unfinished ${{ matrix.arch }} build leaves behind
if: steps.launchpad.outputs.pending == 'true'
run: |
echo "::warning::snap-launchpad riscv64 is still queued on Launchpad; this Actions job stopped waiting cleanly before GitHub's cap."
echo "::warning::snap-launchpad ${{ matrix.arch }} is unfinished on Launchpad; this Actions job stopped waiting cleanly before GitHub's cap."
echo "Re-run this matrix job after Launchpad finishes. Its deterministic snapshot reconnects to the same build, downloads the snap, and publishes it."
# An unexpected job-level cancellation is distinct from the deliberate,
# clean riscv64 waiter timeout above.
# clean waiter timeout above.
- name: Say what a cancelled ${{ matrix.arch }} job leaves behind
if: cancelled()
run: |
+239
View File
@@ -653,6 +653,245 @@ the Markdown commit as the template.
</details>
</details>
# v11.87 2026-09-19 WeKan ® release
**In short:** Launchpad Snap builds recover the correct repository, wait for
new refs to become available, and retain completed builds when downloads fail.
Card dragging, comment mentions, destination dialogs, keyboard controls and
scaled layouts gain regression-tested fixes. Boards gain optional cleaner cards
and date-only display.
This release adds the following features:
**Task board presentation** - optional cleaner cards and date-only display.
<details>
<summary><a href="https://github.com/wekan/wekan/commit/16b1b307f">Add cleaner minicard and checklist options and date-only formats</a>. Thanks to xet7.</summary>
Board Settings can hide the minicard collapse control, place labels above the
minicard title, hide checklist due-date controls and hide the outer Checklists
heading. Previously collapsed contents remain accessible when their control is
hidden. These options preserve stored dates, label settings and existing
defaults.
Unset checklist due dates use a small, named clock beside the checklist title.
Users and administrators can select date-only versions of the three date orders.
The selected calendar and export format are respected without changing stored
timestamps, reminders or date/time editing. Existing smaller-font presets also
reduce checklist and Card Settings spacing.
The <a href="https://github.com/wekan/wekan/blob/main/docs/Features/Clean-Task-Boards.md">clean task board guide</a>
maps all eight supplied observations to new or existing behavior. Existing fixes
for inline completion controls, disabled ordering arrows and the
admin-controlled
date selector are retained. Labels reuse existing translations.
Regression coverage checks compatible defaults, saved collapsed states, label
placement and visibility, board-admin permissions, checklist data retention,
personal/admin date-only choices, multiple calendar systems and compact spacing.
A fresh Meteor build passed. The full 1,177-suite Node run found one outdated
collapse assertion; its updated suite passed on rerun. All ten browser scenarios
passed across Chromium and Firefox after allowing browser font-size rounding.
Browser checks used MongoDB; FerretDB, WebKit and native packages were not
tested.
</details>
This release fixes the following bugs:
**Cards and comments** - restored dragging and mention suggestions.
<details>
<summary><a href="https://github.com/wekan/wekan/commit/337f601852">Restore dragging after expanding collapsed lists</a>. Thanks to Nich01asFox and xet7.</summary>
Expanded lists recreate their sortable behavior and dispose it when removed.
Repeated collapse/expand cycles and reloads support dragging cards both into
and out of the list. Fixes <a href="https://github.com/wekan/wekan/issues/6705">#6705</a>.
</details>
<details>
<summary><a href="https://github.com/wekan/wekan/commit/193c799539">Restore visible, selectable comment mention suggestions</a>. Thanks to bbyszio and xet7.</summary>
Comment editors initialize one correctly scoped autocomplete menu with visible
placement above the card. The plain editor remains usable when the richer editor
is unavailable. Fixes <a href="https://github.com/wekan/wekan/issues/6704">#6704</a>.
</details>
**Board usability** - implement the useful audited fixes with additional
safeguards.
<details>
<summary><a href="https://github.com/wekan/wekan/commit/896f1222b">Improve ordering, destination dialogs, keyboard controls and scaled layouts</a>. Thanks to xet7.</summary>
Relative card insertion uses real gaps and handles tied ranks. Destination
dialogs stop stale subscriptions, retain failed operations and protect against
double submission. Checklist rules save strings, overtime waits for Save,
translation search treats punctuation literally, and registered long language
tags are accepted.
Keyboard users can operate rule buttons, checklist rows, switches, password
reveal and attachment previews. One shared viewer handles focus entry,
containment and return. Popup and Gantt geometry scales with text, progress bars
fit their tracks, and settings stack on narrow screens. Missing labels reuse
existing translations.
The <a href="https://github.com/wekan/wekan/blob/main/docs/Security/Fixes2026-09-18/Implementation.md">implementation report</a>
records all 36 findings, revised proposals, tests and remaining validation
limits.
A fresh Meteor bundle and all 1,176 Node suites passed. Chromium and Firefox
regression scenarios cover the compiled app with MongoDB; no FerretDB or live
LDAP
integration, WebKit run or screen-reader session is claimed.
</details>
**Markdown editor** - remove obsolete visual-editor code and configuration.
<details>
<summary><a href="https://github.com/wekan/wekan/commit/5ed9fc944">Remove the obsolete Summernote integration and editor setting</a>. Thanks to xet7.</summary>
Removed `RICHER_CARD_COMMENT_EDITOR`, its Snap option, server setting bridge,
unused editor initialization, upload/paste callbacks and editor-specific styles
and selectors. Docker, Snap, Sandstorm, development containers, Windows and Unix
launchers, build/test scripts and current documentation no longer advertise it.
Released and archived changelog entries remain unchanged.
WeKan edits Markdown in textareas. No existing WYSIWYG editor supports its full
combination of Markdown, emoji, security requirements and other editing
features. Mention suggestions, Markdown rendering, HTML-to-Markdown conversion
and existing attachment links remain available. Notification emails use the
shared escaped HTML formatter independently of editor settings; custom body
templates retain their existing behavior.
The <a href="https://github.com/wekan/wekan/blob/main/docs/Features/Markdown-Editor.md">Markdown editor documentation</a>
describes the supported editor. Regression checks exercise per-template mention
initialization, Markdown/emoji round trips, pasted-HTML safety, attachment links
and escaped notification email output. A missing translation import in the
attachment error handler was also corrected.
A fresh Meteor build and six Chromium/Firefox checks passed. Shell syntax and
platform YAML checks passed; native Windows, Snap and Sandstorm packages were
not built in this Linux test environment.
</details>
This release fixes the following build and release tooling:
**Snap builds** - repository recovery and reliable artifact retrieval.
<details>
<summary><a href="https://github.com/wekan/wekan/commit/29bd491e8">Fix Launchpad recovery, ref indexing and artifact downloads</a>. Thanks to xet7.</summary>
The v11.86 build logs showed recovery looking up the wrong repository,
recipe creation racing Launchpad's indexing of `main`, and a successful
PPC64EL build downloading an unusable 2,043-byte artifact before cleanup
deleted the remote recipe.
Remote builds now use a compatibility wrapper inside Snapcraft's installed
environment. Recovery looks up the project repository, recipe creation
retries the specific missing-ref response for up to fifteen minutes, and
invalid snap downloads retry before cleanup. Repeated invalid downloads
retain the remote build for recovery. The existing five-hour total wait
budget remains in effect.
All 1,173 Node test files passed sequentially, including positive and
negative regression tests for repository lookup, delayed refs, bounded
retries, incomplete downloads and launcher arguments. Actionlint and shell
and Python syntax checks passed. Remote services were mocked; live
Launchpad builds and publication remain for a human-run release job.
</details>
This release improves regression testing and documentation:
<details>
<summary><a href="https://github.com/wekan/wekan/commit/fd238d34c">Verify muted-board fixes through actual SMTP delivery</a>. Thanks to Nissulya and xet7.</summary>
The earlier muted-assignment and scoped-subscription fixes for
<a href="https://github.com/wekan/wekan/issues/6658">#6658</a> are already present.
New browser regressions capture real SMTP submissions for watched boards,
lists and cards, covering comments, title changes and new cards. Muted
assignments, member email opt-outs and the actor's own changes stay silent.
The notification guide now describes the actual channels, watch levels,
settings precedence and delivery prerequisites.
All ten SMTP scenarios and six existing tray/settings scenarios passed across
Chromium and Firefox using the current Meteor bundle with MongoDB. Focused
notification and recipient Node suites passed. The latest reported delivery
failure was not reproduced; external inbox delivery and FerretDB runtime
remain unverified.
</details>
Thanks to above GitHub users for their contributions and translators for their translations.
# v11.86 2026-09-18 WeKan ® release
**In short:** Interrupted Snap builds recover their existing Launchpad work,
and GitHub snap attachments retry within bounded time limits.
This release fixes the following build and release tooling:
**Snap builds** - recovery and release attachments.
<details>
<summary><a href="https://github.com/wekan/wekan/commit/bc5881ff9">Recover interrupted Snap builds and bound release attachments</a>. Thanks to xet7.</summary>
The v11.85 logs showed ARMHF losing its Launchpad polling connection,
PPC64EL and S390X waiting until GitHub cancelled their jobs, and an AMD64
snap published to the Snap Store but stalled while attaching to GitHub.
Launchpad retries now recover an existing recipe and share one five-hour
wait budget across all attempts and architectures. An isolated source
snapshot keeps Git metadata, logs and downloads outside Snapcraft's project
hash, while architecture-specific content keeps matrix recipes separate.
Only an explicitly missing recipe or repository permits a new submission.
Queued work remains unfinished rather than being reported as a built snap.
Snap attachments use bounded retries and verify remote names and sizes.
Regression tests cover recovery, credentials, timeouts, invalid artifacts,
stable snapshots and attachment failures with mocked network commands.
The 1,172 Node suites are verified, including two corrected guard reruns;
workflow parsing, shell syntax and Actionlint also pass. Live Launchpad
builds and publishing remain for a human-run release workflow to verify.
</details>
Thanks to above GitHub users for their contributions and translators for their translations.
# v11.85 2026-09-17 WeKan ® release
**In short:** Admins can select one date format for everyone and hide the
personal date-format selector on cards.
This release adds the following new feature:
**Date display** - one format for members and guests.
<details>
<summary><a href="https://github.com/wekan/wekan/commit/46607d4299">Add an admin date format override for everyone</a>. Thanks to Mathia2 and xet7.</summary>
Admin Panel / Settings / Visibility / All Boards: Hide now has a Date Format
for everyone checkbox and format dropdown between Board member list and Wait
Spinner. Enabling it overrides personal date formats, changes the opened
card heading to Date, and hides its format dropdown. Disabling it restores
personal preferences without changing stored dates or calendar choices.
Browser export requests and date filters use the same selected format.
Positive and negative tests cover all supported formats, guest preferences,
admin permissions, invalid values, and restoration when disabled. The new
browser test and 17 existing calendar tests pass in Chromium, Firefox and
WebKit. The application builds, and the 1,171 Node suites are verified,
including the updated collapse test rerun. The new label is translated in
all locales; lower-confidence translations are identified in the commit.
Fixes #6703.
</details>
Thanks to above GitHub users for their contributions and translators for their translations.
# v11.84 2026-09-17 WeKan ® release
**In short:** Notification subscriptions and settings work at their intended
+1 -2
View File
@@ -20,7 +20,7 @@ LABEL org.opencontainers.image.source="https://github.com/wekan/wekan"
# TARGETARCH and TARGETVARIANT are automatically provided by Docker Buildx
ARG TARGETARCH
ARG TARGETVARIANT
ARG VERSION=11.84
ARG VERSION=11.87
ARG DEBIAN_FRONTEND=noninteractive
ENV BUILD_DEPS="apt-utils gnupg wget bzip2 g++ curl libarchive-tools build-essential git ca-certificates python3 unzip"
@@ -50,7 +50,6 @@ ENV \
AVATARS_UPLOAD_EXTERNAL_PROGRAM="" \
AVATARS_UPLOAD_MIME_TYPES="" \
AVATARS_UPLOAD_MAX_SIZE=72000 \
RICHER_CARD_COMMENT_EDITOR=false \
CARD_OPENED_WEBHOOK_ENABLED=false \
MAX_IMAGE_PIXEL="" \
IMAGE_COMPRESS_RATIO="" \
+1 -1
View File
@@ -1,5 +1,5 @@
appId: wekan-public/apps/77b94f60-dec9-0136-304e-16ff53095928
appVersion: "v11.84.0"
appVersion: "v11.87.0"
files:
userUploads:
- README.md
+1 -3
View File
@@ -1491,7 +1491,6 @@ set "DDP_TRANSPORT=sockjs"
set "DEBUG=true"
set "WRITABLE_PATH=.."
set "WITH_API=true"
set "RICHER_CARD_COMMENT_EDITOR=false"
exit /b 0
:logdir
@@ -1827,11 +1826,10 @@ set "ROOT_URL=http://localhost:3000"
set "PORT=3000"
set "WRITABLE_PATH=%WRITABLE_ABS%"
set "WITH_API=true"
set "RICHER_CARD_COMMENT_EDITOR=false"
set "DEFAULT_METEOR_REACTIVITY_ORDER=changeStreams,oplog,polling"
echo ==^> Starting the WeKan test server on http://localhost:3000 from .build\bundle ^(precompiled - no rebuild^).
start "WekanTestServer" /MIN /D "%REPO%" cmd /c "(echo ===== WeKan test server [bundle node :3000 db :3001/meteor] started: %DATE% %TIME% =====) 1>%RUN_LOGDIR%\wekan-test-server.log 2>&1 & "%NODE_BIN%" "%REPO%\.build\bundle\main.js" 1>>%RUN_LOGDIR%\wekan-test-server.log 2>&1"
set "MONGO_URL=" & set "ROOT_URL=" & set "PORT=" & set "WRITABLE_PATH=" & set "WITH_API=" & set "RICHER_CARD_COMMENT_EDITOR=" & set "DEFAULT_METEOR_REACTIVITY_ORDER="
set "MONGO_URL=" & set "ROOT_URL=" & set "PORT=" & set "WRITABLE_PATH=" & set "WITH_API=" & set "DEFAULT_METEOR_REACTIVITY_ORDER="
REM 6) Wait for :3000 to answer (bundle boots in seconds; curl-timeout poll).
call :wait_server_ready
+8 -8
View File
@@ -1427,7 +1427,7 @@ function run_all_tests(){
# different one, so every test that needs seeded data fails.
{ echo "===== WeKan test server [bundle node :3000 db :$TEST_DB_PORT/meteor] - started $(date '+%Y-%m-%d %H:%M:%S %Z') ====="; echo; \
MONGO_URL="$TEST_MONGO_URL" ROOT_URL="http://localhost:3000" PORT=3000 \
WRITABLE_PATH="$WRITABLE_ABS" WITH_API=true RICHER_CARD_COMMENT_EDITOR=false \
WRITABLE_PATH="$WRITABLE_ABS" WITH_API=true \
DEFAULT_METEOR_REACTIVITY_ORDER="changeStreams,oplog,polling" \
NODE_OPTIONS="$TEST_NODE_OPTIONS" exec "$NODE_BIN" "$BUNDLE_DIR/main.js"; } >> "$RUN_LOGDIR/wekan-test-server.log" 2>&1 &
TEST_SERVER_PID=$!
@@ -2920,7 +2920,7 @@ for _once in 1; do
#---------------------------------------------------------------------
# Logging of terminal output to console and to .tools/log/wekan-log.log at end of this line: 2>&1 | tee "$(one_log dev-server)"
#WARN_WHEN_USING_OLD_API=true NODE_OPTIONS="--trace-warnings"
DEFAULT_METEOR_REACTIVITY_ORDER="changeStreams,oplog,polling" DDP_TRANSPORT=sockjs DEBUG=true WRITABLE_PATH=.. WITH_API=true RICHER_CARD_COMMENT_EDITOR=false ROOT_URL=http://localhost:3000 meteor run --port 3000 2>&1 | tee "$(one_log dev-server)"
DEFAULT_METEOR_REACTIVITY_ORDER="changeStreams,oplog,polling" DDP_TRANSPORT=sockjs DEBUG=true WRITABLE_PATH=.. WITH_API=true ROOT_URL=http://localhost:3000 meteor run --port 3000 2>&1 | tee "$(one_log dev-server)"
#---------------------------------------------------------------------
break
;;
@@ -2932,7 +2932,7 @@ for _once in 1; do
#Not in use, could increase RAM usage: NODE_OPTIONS="--max_old_space_size=4096"
#---------------------------------------------------------------------
# Logging of terminal output to console and to .tools/log/wekan-log.log at end of this line: 2>&1 | tee "$(one_log dev-server)"
DEFAULT_METEOR_REACTIVITY_ORDER="changeStreams,oplog,polling" DDP_TRANSPORT=sockjs DEBUG=true WARN_WHEN_USING_OLD_API=true NODE_OPTIONS="--trace-warnings --max-old-space-size=$_heap_mb" WRITABLE_PATH=.. WITH_API=true RICHER_CARD_COMMENT_EDITOR=false ROOT_URL=http://localhost:3000 meteor run --port 3000 2>&1 | tee "$(one_log dev-server)"
DEFAULT_METEOR_REACTIVITY_ORDER="changeStreams,oplog,polling" DDP_TRANSPORT=sockjs DEBUG=true WARN_WHEN_USING_OLD_API=true NODE_OPTIONS="--trace-warnings --max-old-space-size=$_heap_mb" WRITABLE_PATH=.. WITH_API=true ROOT_URL=http://localhost:3000 meteor run --port 3000 2>&1 | tee "$(one_log dev-server)"
#---------------------------------------------------------------------
break
;;
@@ -2944,7 +2944,7 @@ for _once in 1; do
#---------------------------------------------------------------------
#Logging of terminal output to console and to .tools/log/wekan-log.log at end of this line: 2>&1 | tee "$(one_log dev-server)"
#WARN_WHEN_USING_OLD_API=true NODE_OPTIONS="--trace-warnings"
DEFAULT_METEOR_REACTIVITY_ORDER="changeStreams,oplog,polling" DDP_TRANSPORT=sockjs DEBUG=true WRITABLE_PATH=.. WITH_API=true RICHER_CARD_COMMENT_EDITOR=false ROOT_URL=http://localhost:3000 meteor run --port 3000 --extra-packages bundle-visualizer --production 2>&1 | tee "$(one_log dev-server)"
DEFAULT_METEOR_REACTIVITY_ORDER="changeStreams,oplog,polling" DDP_TRANSPORT=sockjs DEBUG=true WRITABLE_PATH=.. WITH_API=true ROOT_URL=http://localhost:3000 meteor run --port 3000 --extra-packages bundle-visualizer --production 2>&1 | tee "$(one_log dev-server)"
#---------------------------------------------------------------------
break
;;
@@ -2963,7 +2963,7 @@ for _once in 1; do
#---------------------------------------------------------------------
#Logging of terminal output to console and to .tools/log/wekan-log.log at end of this line: 2>&1 | tee "$(one_log dev-server)"
#WARN_WHEN_USING_OLD_API=true NODE_OPTIONS="--trace-warnings"
DEFAULT_METEOR_REACTIVITY_ORDER="changeStreams,oplog,polling" DDP_TRANSPORT=sockjs DEBUG=true WRITABLE_PATH=.. WITH_API=true RICHER_CARD_COMMENT_EDITOR=false ROOT_URL=http://$IPADDRESS:3000 meteor run --port 3000 2>&1 | tee "$(one_log dev-server)"
DEFAULT_METEOR_REACTIVITY_ORDER="changeStreams,oplog,polling" DDP_TRANSPORT=sockjs DEBUG=true WRITABLE_PATH=.. WITH_API=true ROOT_URL=http://$IPADDRESS:3000 meteor run --port 3000 2>&1 | tee "$(one_log dev-server)"
#---------------------------------------------------------------------
break
;;
@@ -2982,7 +2982,7 @@ for _once in 1; do
#---------------------------------------------------------------------
#Logging of terminal output to console and to .tools/log/wekan-log.log at end of this line: 2>&1 | tee "$(one_log dev-server)"
#WARN_WHEN_USING_OLD_API=true NODE_OPTIONS="--trace-warnings"
DEFAULT_METEOR_REACTIVITY_ORDER="changeStreams,oplog,polling" DDP_TRANSPORT=sockjs DEBUG=true MONGO_URL=mongodb://127.0.0.1:27019/wekan WRITABLE_PATH=.. WITH_API=true RICHER_CARD_COMMENT_EDITOR=false ROOT_URL=http://$IPADDRESS:3000 meteor run --port 3000 2>&1 | tee "$(one_log dev-server)"
DEFAULT_METEOR_REACTIVITY_ORDER="changeStreams,oplog,polling" DDP_TRANSPORT=sockjs DEBUG=true MONGO_URL=mongodb://127.0.0.1:27019/wekan WRITABLE_PATH=.. WITH_API=true ROOT_URL=http://$IPADDRESS:3000 meteor run --port 3000 2>&1 | tee "$(one_log dev-server)"
#---------------------------------------------------------------------
break
;;
@@ -2996,7 +2996,7 @@ for _once in 1; do
# ROOT_URL differ. Logging of terminal output to console and to
# .tools/log/wekan-log.log at the end of the line: 2>&1 | tee "$(one_log dev-server)"
#---------------------------------------------------------------------
DEFAULT_METEOR_REACTIVITY_ORDER="changeStreams,oplog,polling" DDP_TRANSPORT=sockjs DEBUG=true WRITABLE_PATH=.. WITH_API=true RICHER_CARD_COMMENT_EDITOR=false ROOT_URL="$DEV_ROOT_URL" meteor run --port "$DEV_PORT" 2>&1 | tee "$(one_log dev-server)"
DEFAULT_METEOR_REACTIVITY_ORDER="changeStreams,oplog,polling" DDP_TRANSPORT=sockjs DEBUG=true WRITABLE_PATH=.. WITH_API=true ROOT_URL="$DEV_ROOT_URL" meteor run --port "$DEV_PORT" 2>&1 | tee "$(one_log dev-server)"
#---------------------------------------------------------------------
break
;;
@@ -3015,7 +3015,7 @@ for _once in 1; do
#---------------------------------------------------------------------
#Logging of terminal output to console and to .tools/log/wekan-log.log at end of this line: 2>&1 | tee "$(one_log dev-server)"
#WARN_WHEN_USING_OLD_API=true NODE_OPTIONS="--trace-warnings"
DEFAULT_METEOR_REACTIVITY_ORDER="changeStreams,oplog,polling" DDP_TRANSPORT=sockjs DEBUG=true WRITABLE_PATH=.. WITH_API=true RICHER_CARD_COMMENT_EDITOR=false ROOT_URL=http://$IPADDRESS:$PORT meteor run --port $PORT 2>&1 | tee "$(one_log dev-server)"
DEFAULT_METEOR_REACTIVITY_ORDER="changeStreams,oplog,polling" DDP_TRANSPORT=sockjs DEBUG=true WRITABLE_PATH=.. WITH_API=true ROOT_URL=http://$IPADDRESS:$PORT meteor run --port $PORT 2>&1 | tee "$(one_log dev-server)"
#---------------------------------------------------------------------
break
;;
+1 -1
View File
@@ -90,7 +90,7 @@ template(name="commentReactions")
unless currentUser.isReadOnly
unless currentUser.isReadAssignedOnly
a.open-comment-reaction-popup(title="{{_ 'addReactionPopup-title'}}")
i.fa.fa-smile-o(title="{{_ 'reaction' }}")
i.fa.fa-smile-o(title="{{_ 'addReactionPopup-title' }}")
i.fa.fa-plus(title="{{_ 'add' }}")
template(name="addReactionPopup")
-1
View File
@@ -67,7 +67,6 @@ Template.commentForm.onDestroyed(function () {
// button, a route change); make sure the last keystrokes reach the draft.
flushCommentDraftSave();
commentFormIsOpen.set(false);
$('.note-popover').hide();
});
Template.commentForm.helpers({
+1 -1
View File
@@ -476,7 +476,7 @@ Template.boardBody.onRendered(function () {
el.setAttribute('role', 'button');
// Short, descriptive label for favorite/star toggle
if (el.classList.contains('js-favorite-toggle')) {
el.setAttribute('aria-label', TAPi18n.__('favorite-toggle-label'));
el.setAttribute('aria-label', `${TAPi18n.__('star-item')} / ${TAPi18n.__('unstar-item')}`);
} else {
el.setAttribute('aria-label', 'Toggle');
}
+2 -2
View File
@@ -774,7 +774,7 @@ Template.cardsSortPopup.events({
createdAt: 1,
};
setCardsSortBy(sortBy);
sortCardsBy.set(TAPi18n.__('date-created-newest-first'));
sortCardsBy.set(TAPi18n.__('created-at-newest-first'));
Popup.back();
},
'click .js-sort-created-desc'() {
@@ -782,7 +782,7 @@ Template.cardsSortPopup.events({
createdAt: -1,
};
setCardsSortBy(sortBy);
sortCardsBy.set(TAPi18n.__('date-created-oldest-first'));
sortCardsBy.set(TAPi18n.__('created-at-oldest-first'));
Popup.back();
},
// #3050: float highest-voted cards to the top of each list. `votes` is not
@@ -7,6 +7,7 @@ import { Meteor } from 'meteor/meteor';
import { Session } from 'meteor/session';
import { Accounts } from 'meteor/accounts-base';
import { TAPi18n } from '/imports/i18n';
import { cardDateFormat } from '/client/lib/exportLocale';
// ONE url builder for every chart export, every view. There used to be five
// copies of this (gantt.js, frappeGantt.js, dhtmlxGantt.js, timeView.js,
@@ -18,12 +19,11 @@ export function chartExportUrl(chartKey, format) {
const boardId = Session.get('currentBoard');
if (!boardId || !chartKey) return '';
const path = format === 'PDF' ? 'exportPDF' : 'exportExcel';
const user = Meteor.user();
const params = new URLSearchParams({
authToken: Accounts._storedLoginToken() || '',
lang: TAPi18n.getLanguage ? TAPi18n.getLanguage() : 'en',
tz: Intl.DateTimeFormat().resolvedOptions().timeZone || '',
dateFormat: (user && user.profile && user.profile.dateFormat) || 'YYYY-MM-DD',
dateFormat: cardDateFormat(),
});
return `/api/boards/${boardId}/charts/${chartKey}/${path}?${params.toString()}`;
}
+1 -1
View File
@@ -3,7 +3,7 @@ template(name="miniboard")
class="minicard-{{colorClass}}")
.minicard-title
.handle
span.drag-handle(title="{{_ 'dragBoard'}}")
span.drag-handle(title="{{_ 'drag-board'}}")
i.fa.fa-arrows
+viewer
= title
+2 -2
View File
@@ -25,9 +25,9 @@
}
.timeline-view .timeline-marker.is-selected {
background: #29a3a3;
background: #187575;
color: #fff;
border-color: #29a3a3;
border-color: #187575;
}
.timeline-view .timeline-view-asof {
+1 -1
View File
@@ -44,7 +44,7 @@ template(name="timelineView")
| {{this.memberNames}}
if this.dueAt
p.timeline-card-due
| {{_ 'card-due-date'}}: {{this.formattedDueAt}}
| {{_ 'due-date'}}: {{this.formattedDueAt}}
if selectedTimestamp
button.timeline-card-restore.js-restore-card-timeline.primary(type="button")
| {{_ 'board-view-timeline-restore'}}
+18
View File
@@ -44,9 +44,13 @@
.attachment-details-container {
display: block;
flex-grow: 1;
min-width: 0;
overflow-wrap: anywhere;
}
.attachment-details {
display: flex;
flex-wrap: wrap;
gap: 8px;
justify-content: space-between;
margin-inline-end: 25px; /* Make sure the icons are not to far to the right */
}
@@ -384,3 +388,17 @@
margin-top: 10px;
}
}
/* Native viewer controls retain the previous icon-only presentation. */
#viewer-close, #prev-attachment, #next-attachment {
background: transparent;
border: 0;
box-shadow: none;
padding: 0;
}
button.attachment-thumbnail-container {
padding: 0;
border: 0;
text-align: start;
font: inherit;
}
+6 -6
View File
@@ -33,14 +33,14 @@ template(name="attachmentDeletePopup")
button.js-confirm.negate.full(type="submit") {{_ 'delete'}}
template(name="attachmentViewer")
#viewer-overlay.hidden
#viewer-overlay.hidden(role="dialog" aria-modal="true" aria-labelledby="attachment-name")
#viewer-top-bar
span#attachment-name
a#viewer-close
button#viewer-close(type="button" aria-label="{{_ 'close'}}")
i.fa.fa-times-thin
#viewer-container
i.fa.fa-caret-left#prev-attachment
button.fa.fa-caret-left#prev-attachment(type="button" aria-label="{{_ 'previous'}}")
#viewer-content
img#image-viewer.hidden
video#video-viewer.hidden(controls="true")
@@ -49,7 +49,7 @@ template(name="attachmentViewer")
span.pdf-preview-error {{_ 'preview-pdf-not-supported' }}
object#txt-viewer.hidden(type="text/plain")
#office-viewer.hidden
i.fa.fa-caret-right#next-attachment
button.fa.fa-caret-right#next-attachment(type="button" aria-label="{{_ 'next'}}")
template(name="attachmentGallery")
@@ -62,7 +62,7 @@ template(name="attachmentGallery")
each attachments
.attachment-item(class="{{#if isAttachmentMigrating _id}}migrating{{/if}}")
.attachment-thumbnail-container.open-preview(data-attachment-id="{{_id}}" data-card-id="{{ meta.cardId }}")
button.attachment-thumbnail-container.open-preview(type="button" aria-label="{{_ 'preview'}}: {{cleanFilename name}}" data-attachment-id="{{_id}}" data-card-id="{{ meta.cardId }}")
if link
if(isImage)
img.attachment-thumbnail(src="{{link}}" title="{{cleanFilename name}}" alt="{{cleanFilename name}}")
@@ -109,7 +109,7 @@ template(name="attachmentGallery")
.attachment-migration-overlay
.migration-spinner
i.fa.fa-cog.fa-spin
.migration-text {{_ 'migrating-attachment'}}
.migration-text {{_ 'attachment-migration'}}
template(name="attachmentActionsPopup")
ul.pop-over-list
+63 -31
View File
@@ -1,3 +1,5 @@
import { TAPi18n } from '/imports/i18n';
import { trapTabKey } from '/client/lib/accessibility';
import { formatDateForDisplay } from '/client/lib/dateDisplay';
import { ReactiveCache } from '/imports/reactiveCache';
import '/client/components/cards/attachments.jade';
@@ -21,6 +23,7 @@ import prettyMilliseconds from 'pretty-ms';
// We store current card ID and the ID of currently opened attachment in a
// global var. This is used so that we know what's the next attachment to open
// when the user clicks on the prev/next button in the attachment viewer.
let viewerOpener = null;
let cardId = null;
let openAttachmentId = null;
let slideshowAttachmentIds = null;
@@ -29,14 +32,13 @@ let slideshowAttachmentIds = null;
let touchStartCoords = null;
let touchEndCoords = null;
// Stores link to the attachment for which attachment actions popup was opened
let attachmentActionsLink = null;
let officePreview = null;
let officePreviewAbortController = null;
let officePreviewGeneration = 0;
Template.attachmentGallery.events({
'click .open-preview'(event) {
event.preventDefault();
openAttachmentId = $(event.currentTarget).attr("data-attachment-id");
cardId = $(event.currentTarget).attr("data-card-id");
@@ -51,9 +53,6 @@ Template.attachmentGallery.events({
event.stopPropagation();
},
'click .js-open-attachment-menu': Popup.open('attachmentActions'),
'mouseover .js-open-attachment-menu'(event) { // For some reason I cannot combine handlers for "click .js-open-attachment-menu" and "mouseover .js-open-attachment-menu" events so this is a quick workaround.
attachmentActionsLink = event.currentTarget.getAttribute("data-attachment-link");
},
'click .js-rename': Popup.open('attachmentRename'),
// History.md §12.1: Delete is a SOFT delete, done by the server. The method
// marks the attachment deleted, keeps the file, unsets the cover if this was
@@ -197,7 +196,10 @@ function openAttachmentViewer(attachmentId) {
// Show the cleaned name: URL-decoded, homoglyphs folded, invisible characters
// and exploit markup removed (plain text; .text() escapes, so never HTML).
$('#attachment-name').text(cleanFileName(attachment.name));
const opening = !viewerOpener;
if (opening) viewerOpener = document.activeElement;
$('#viewer-overlay').removeClass('hidden');
if (opening) document.getElementById('viewer-close')?.focus();
}
// Admin Panel / Files uses the same viewer as an opened card, but its next and
@@ -213,7 +215,7 @@ export function openAttachmentSlideshow(attachmentId, attachmentIds = []) {
openAttachmentViewer(attachmentId);
}
function closeAttachmentViewer() {
function closeAttachmentViewer(restoreFocus = true) {
officePreviewGeneration++;
if (officePreviewAbortController) {
officePreviewAbortController.abort();
@@ -224,8 +226,8 @@ function closeAttachmentViewer() {
officePreview = null;
}
const officeViewer = document.getElementById('office-viewer');
officeViewer.replaceChildren();
officeViewer.classList.add('hidden');
officeViewer?.replaceChildren();
officeViewer?.classList.add('hidden');
$("#viewer-overlay").addClass("hidden");
@@ -239,19 +241,23 @@ function closeAttachmentViewer() {
$("#txt-viewer").attr("data", "");
$("#txt-viewer").addClass("hidden");
$("#video-viewer").get(0).pause(); // Stop playback
$("#video-viewer").get(0).currentTime = 0;
$("#video-viewer").get(0)?.pause(); // Stop playback
if ($("#video-viewer").get(0)) $("#video-viewer").get(0).currentTime = 0;
$("#video-viewer").empty();
$("#video-viewer").addClass("hidden");
$("#audio-viewer").get(0).pause(); // Stop playback
$("#audio-viewer").get(0).currentTime = 0;
$("#audio-viewer").get(0)?.pause(); // Stop playback
if ($("#audio-viewer").get(0)) $("#audio-viewer").get(0).currentTime = 0;
$("#audio-viewer").empty();
$("#audio-viewer").addClass("hidden");
if (restoreFocus) {
if (viewerOpener?.isConnected) viewerOpener.focus();
viewerOpener = null;
}
}
function openNextAttachment() {
closeAttachmentViewer();
closeAttachmentViewer(false);
let i = 0;
// Find an attachment that can be opened
@@ -268,7 +274,7 @@ function openNextAttachment() {
}
function openPrevAttachment() {
closeAttachmentViewer();
closeAttachmentViewer(false);
let i = 0;
// Find an attachment that can be opened
@@ -306,7 +312,20 @@ function processTouch(){
}
Template.attachmentViewer.onDestroyed(function () {
closeAttachmentViewer();
});
Template.attachmentViewer.events({
'keydown #viewer-overlay'(event) {
if (event.key === 'Escape') {
event.preventDefault();
event.stopPropagation();
closeAttachmentViewer();
} else {
trapTabKey(event);
}
},
'touchstart #viewer-container'(event) {
touchStartCoords = {
x: event.changedTouches[0].screenX,
@@ -340,13 +359,16 @@ Template.attachmentViewer.events({
closeAttachmentViewer();
},
'click #viewer-close'() {
'click #viewer-close'(event) {
event.preventDefault();
closeAttachmentViewer();
},
'click #next-attachment'() {
'click #next-attachment'(event) {
event.preventDefault();
openNextAttachment();
},
'click #prev-attachment'() {
'click #prev-attachment'(event) {
event.preventDefault();
openPrevAttachment();
},
});
@@ -641,9 +663,8 @@ Template.attachmentActionsPopup.helpers({
return ret;
},
isBackgroundImage() {
//const currentBoard = Utils.getCurrentBoard();
//return currentBoard.backgroundImageURL === $(".attachment-thumbnail-img").attr("src");
return false;
const url = getAttachmentUrl(this);
return !!url && Utils.getCurrentBoard()?.backgroundImageURL === url;
},
});
@@ -656,20 +677,31 @@ Template.attachmentActionsPopup.events({
ReactiveCache.getCard(this.meta.cardId).unsetCover();
Popup.back();
},
'click .js-add-background-image'(event) {
const currentBoard = Utils.getCurrentBoard();
currentBoard.setBackgroundImageURL(attachmentActionsLink);
Utils.setBackgroundImage(attachmentActionsLink);
Popup.back();
async 'click .js-add-background-image'(event) {
event.preventDefault();
const currentBoard = Utils.getCurrentBoard();
const url = getAttachmentUrl(this);
if (!currentBoard || !url) return;
try {
if (await currentBoard.setBackgroundImageURL(url) === false) return;
Utils.setBackgroundImage(url);
Popup.back();
} catch (error) {
window.alert(TAPi18n.__('server-error'));
}
},
'click .js-remove-background-image'(event) {
const currentBoard = Utils.getCurrentBoard();
currentBoard.setBackgroundImageURL("");
Utils.setBackgroundImage("");
Popup.back();
Utils.reload();
async 'click .js-remove-background-image'(event) {
event.preventDefault();
const currentBoard = Utils.getCurrentBoard();
if (!currentBoard) return;
try {
if (await currentBoard.setBackgroundImageURL('') === false) return;
Utils.setBackgroundImage('');
Popup.back();
Utils.reload();
} catch (error) {
window.alert(TAPi18n.__('server-error'));
}
},
});
@@ -4,7 +4,6 @@ const descriptionFormIsOpen = new ReactiveVar(false);
Template.descriptionForm.onDestroyed(function () {
descriptionFormIsOpen.set(false);
$('.note-popover').hide();
});
Template.descriptionForm.helpers({
+1 -1
View File
@@ -1217,7 +1217,7 @@ body.mobile-mode .card-details .card-details-header .close-card-details-mobile-w
gone with the grouping; a field that is its own section is a group of one. */
.card-details .card-details-section-rule {
width: 100%;
margin: 14px 0 6px 0;
margin: calc(14px * min(1, var(--wekan-ui-font-scale, 1))) 0 calc(6px * min(1, var(--wekan-ui-font-scale, 1))) 0;
}
.card-details h3.card-details-item-title.js-toggle-card-section {
cursor: pointer;
+27 -21
View File
@@ -3,8 +3,6 @@ template(name="cardDetailsPopup")
template(name="cardDetails")
+attachmentViewer
//- `card-details-with-handle` when drag handles are on, the same class the
minicard carries for the same reason: with a handle, the title is all edit
target; without one, half of it is what the window is dragged by.
@@ -28,7 +26,7 @@ template(name="cardDetails")
+editCardTitleForm
else
unless isMiniScreen
a.card-collapse-toggle.js-card-collapse-toggle(title="{{_ 'collapse-card'}}")
a.card-collapse-toggle.js-card-collapse-toggle(title="{{_ 'collapse'}}")
if cardCollapsed
i.fa.fa-caret-right
else
@@ -96,7 +94,7 @@ template(name="cardDetails")
| &nbsp; &gt; &nbsp;
a.js-parent-card(href=linkForCard) {{title}}
// else
{{_ 'top-level-card'}}
{{_ 'card'}}
if isLinkedCard
a.linked-card-location.js-go-to-linked-card
+viewer
@@ -173,8 +171,9 @@ template(name="cardDetails")
.card-checklist-attachmentGalleries
.card-checklist-attachmentGallery.card-checklists
if currentBoard.allowsChecklists
+cardSectionHeader(section="checklists" icon="fa-check" label="checklists")
if isSectionOpen "checklists"
unless $eq currentBoard.allowsChecklistTitle false
+cardSectionHeader(section="checklists" icon="fa-check" label="checklists")
if checklistSectionOpen
//- Total checklist item count (finished/total) shown above all
checklists. The board flag is a cheap boolean, so when it is off
the checklist counting below is never evaluated.
@@ -330,13 +329,17 @@ template(name="cardFieldSectionDates")
.card-details-group-body
if currentBoard.hasAnyAllowsDate
.card-details-item.card-details-item-date-format
+cardSectionHeader(section="date-format" icon="fa-calendar" label="date-format" noRule=true)
+cardSectionHeader(section="date-format" icon="fa-calendar" label=dateSectionLabel noRule=true)
if isSectionOpen "date-format"
.card-details-item-content
select.js-date-format-selector
option(value="YYYY-MM-DD" selected="{{#if isDateFormat 'YYYY-MM-DD'}}selected{{/if}}") {{_ 'date-format-yyyy-mm-dd'}}
option(value="DD-MM-YYYY" selected="{{#if isDateFormat 'DD-MM-YYYY'}}selected{{/if}}") {{_ 'date-format-dd-mm-yyyy'}}
option(value="MM-DD-YYYY" selected="{{#if isDateFormat 'MM-DD-YYYY'}}selected{{/if}}") {{_ 'date-format-mm-dd-yyyy'}}
unless isDateFormatForced
.card-details-item-content
select.js-date-format-selector
option(value="YYYY-MM-DD" selected="{{#if isDateFormat 'YYYY-MM-DD'}}selected{{/if}}") {{_ 'date-format-yyyy-mm-dd'}} · {{_ 'time'}}
option(value="DD-MM-YYYY" selected="{{#if isDateFormat 'DD-MM-YYYY'}}selected{{/if}}") {{_ 'date-format-dd-mm-yyyy'}} · {{_ 'time'}}
option(value="MM-DD-YYYY" selected="{{#if isDateFormat 'MM-DD-YYYY'}}selected{{/if}}") {{_ 'date-format-mm-dd-yyyy'}} · {{_ 'time'}}
option(value="YYYY-MM-DD-date-only" selected="{{#if isDateFormat 'YYYY-MM-DD-date-only'}}selected{{/if}}") {{_ 'date'}}: {{_ 'date-format-yyyy-mm-dd'}}
option(value="DD-MM-YYYY-date-only" selected="{{#if isDateFormat 'DD-MM-YYYY-date-only'}}selected{{/if}}") {{_ 'date'}}: {{_ 'date-format-dd-mm-yyyy'}}
option(value="MM-DD-YYYY-date-only" selected="{{#if isDateFormat 'MM-DD-YYYY-date-only'}}selected{{/if}}") {{_ 'date'}}: {{_ 'date-format-mm-dd-yyyy'}}
if isSectionOpen "date-format"
each field in orderedDatesFields
@@ -1251,23 +1254,23 @@ template(name="exportCardPopup")
which is the one holding the dialog. client/components/cards/cardDetails.js
template(name="cardDestinationPicker")
unless currentUser.isWorker
label {{_ 'boards'}}:
select.js-select-boards(autofocus)
label(for="{{pickerFieldId 'boards'}}") {{_ 'boards'}}:
select.js-select-boards(autofocus id="{{pickerFieldId 'boards'}}")
each boards
option(value="{{_id}}" selected="{{#if isSelectedBoardId _id}}selected{{/if}}") {{title}}
label {{_ 'swimlanes'}}:
select.js-select-swimlanes
label(for="{{pickerFieldId 'swimlanes'}}") {{_ 'swimlanes'}}:
select.js-select-swimlanes(id="{{pickerFieldId 'swimlanes'}}")
each swimlanes
option(value="{{_id}}" selected="{{#if isSelectedSwimlaneId _id}}selected{{/if}}") {{isTitleDefault title}}
label {{_ 'lists'}}:
select.js-select-lists
label(for="{{pickerFieldId 'lists'}}") {{_ 'lists'}}:
select.js-select-lists(id="{{pickerFieldId 'lists'}}")
each lists
option(value="{{_id}}" selected="{{#if isSelectedListId _id}}selected{{/if}}") {{title}}
label {{_ 'cards'}}:
select.js-select-cards
label(for="{{pickerFieldId 'cards'}}") {{_ 'cards'}}:
select.js-select-cards(id="{{pickerFieldId 'cards'}}")
each cards
option(value="{{_id}}" selected="{{#if isDialogOptionCardId _id}}selected{{/if}}") {{title}}
@@ -1278,8 +1281,11 @@ template(name="cardDestinationPicker")
input(type="radio" name="position" value="below" id="position-below" style="display: inline")
label(for="position-below") {{_ 'below-selected-card'}}
if destinationError
.warning.js-destination-error(role="alert") {{destinationError}}
.edit-controls.clearfix
button.primary.confirm.js-done {{_ 'done'}}
button.primary.confirm.js-done(type="button" disabled=destinationDisabled) {{_ 'done'}}
template(name="moveCardPopup")
label(for='move-card-title') {{_ 'title'}}:
+36 -32
View File
@@ -1,3 +1,6 @@
import { relativeCardSort } from '/client/lib/relativeCardPosition';
import { Random } from 'meteor/random';
import { dateDisplayPreferences, isDateFormatForced } from '/client/lib/dateDisplay';
import { ReactiveCache } from '/imports/reactiveCache';
import { TAPi18n } from '/imports/i18n';
import { ReactiveDict } from 'meteor/reactive-dict';
@@ -846,6 +849,10 @@ Template.cardDetails.helpers({
return user && user.isVerticalScrollbars();
},
checklistSectionOpen() {
return ReactiveCache.getBoard(this.boardId)?.allowsChecklistTitle === false || isCardSectionOpen('checklists');
},
isLoaded() {
return Template.instance().isLoaded;
},
@@ -1106,6 +1113,7 @@ Template.cardDetails.events({
}
},
'change .js-date-format-selector'(event) {
if (isDateFormatForced()) return;
const dateFormat = event.target.value;
if (Meteor.userId()) {
Meteor.call('changeDateFormat', dateFormat);
@@ -1535,13 +1543,11 @@ Template.cardDetails.events({
// function: isDateFormat" the instant that section rendered and broke
// opening the card popup entirely. Registered globally, like isSectionOpen
// just below, so every template can see it.
Template.registerHelper('isDateFormatForced', isDateFormatForced);
Template.registerHelper('dateSectionLabel', () => isDateFormatForced() ? 'date' : 'date-format');
Template.registerHelper('isDateFormat', function isDateFormat(format) {
const currentUser = ReactiveCache.getCurrentUser();
if (!currentUser) {
const stored = window.localStorage.getItem('dateFormat') || 'YYYY-MM-DD';
return format === stored;
}
return currentUser.getDateFormat() === format;
return dateDisplayPreferences().dateFormat === format;
});
Template.cardDetails.helpers({
@@ -2129,6 +2135,7 @@ Template.editCardAssignerForm.events({
// `each boards` the data context is a board, so a helper reaching into the
// context for it would find nothing there.
Template.cardDestinationPicker.onCreated(function () {
this.pickerId = Random.id();
this.autorun(() => {
const data = Template.currentData();
this.dialog = data && data.dialog;
@@ -2136,6 +2143,12 @@ Template.cardDestinationPicker.onCreated(function () {
});
Template.cardDestinationPicker.helpers({
pickerFieldId(field) { return `${Template.instance().pickerId}-${field}`; },
destinationError() { return Template.instance().dialog.error.get(); },
destinationDisabled() {
const dialog = Template.instance().dialog;
return dialog.loading.get() || dialog.saving.get() || !dialog.selectedSwimlaneId.get() || !dialog.selectedListId.get();
},
boards() {
return Template.instance().dialog.boards();
},
@@ -2197,7 +2210,9 @@ function registerCardDialogTemplate(templateName) {
Template[templateName].events({
async 'click .js-done'(event, tpl) {
event.preventDefault();
const dialog = tpl.dialog;
if (dialog.loading.get() || dialog.saving.get()) return;
// Read the target board/swimlane/list from the dialog's live reactive
// selection rather than the DOM <select> elements. A reactive re-render
// (e.g. the boards() helper transiently returning [] while a 'board'
@@ -2214,11 +2229,19 @@ function registerCardDialogTemplate(templateName) {
? cardSelect.options[cardSelect.selectedIndex].value
: null;
if (!boardId || !swimlaneId || !listId) return;
if (cardId && !dialog.cards().some(card => card._id === cardId)) return;
dialog.error.set('');
dialog.saving.set(true);
const options = { boardId, swimlaneId, listId, cardId };
try {
await dialog.setDone(cardId, options);
} catch (e) {
console.error('Error in card dialog operation:', e);
dialog.error.set(e.reason || e.message || TAPi18n.__('server-error'));
return;
} finally {
dialog.saving.set(false);
}
Popup.back(2);
},
@@ -2228,6 +2251,7 @@ function registerCardDialogTemplate(templateName) {
'change .js-select-swimlanes'(event, tpl) {
tpl.dialog.selectedSwimlaneId.set($(event.currentTarget).val());
tpl.dialog.setFirstListId();
tpl.dialog.selectedCardId?.set('');
},
'change .js-select-lists'(event, tpl) {
tpl.dialog.selectedListId.set($(event.currentTarget).val());
@@ -2270,12 +2294,7 @@ Template.moveCardPopup.onCreated(function () {
if (cardId) {
const targetCard = ReactiveCache.getCard(cardId);
if (targetCard) {
const targetSort = targetCard.sort || 0;
if (position === 'above') {
sortIndex = targetSort - 0.5;
} else {
sortIndex = targetSort + 0.5;
}
sortIndex = await relativeCardSort(targetCard, position, card._id);
}
} else {
const maxSort = await card.getMaxSort(options.listId, options.swimlaneId);
@@ -2324,12 +2343,7 @@ Template.copyCardPopup.onCreated(function () {
if (cardId) {
const targetCard = ReactiveCache.getCard(cardId);
if (targetCard) {
const targetSort = targetCard.sort || 0;
if (position === 'above') {
sortIndex = targetSort - 0.5;
} else {
sortIndex = targetSort + 0.5;
}
sortIndex = await relativeCardSort(targetCard, position, newCard._id);
}
} else {
const maxSort = await newCard.getMaxSort(options.listId, options.swimlaneId);
@@ -2378,8 +2392,7 @@ Template.linkCardToBoardPopup.onCreated(function () {
if (cardId) {
const targetCard = ReactiveCache.getCard(cardId);
if (targetCard) {
const targetSort = targetCard.sort || 0;
sortIndex = position === 'above' ? targetSort - 0.5 : targetSort + 0.5;
sortIndex = await relativeCardSort(targetCard, position, newCard._id);
}
} else {
const maxSort = await newCard.getMaxSort(options.listId, options.swimlaneId);
@@ -2425,12 +2438,7 @@ Template.convertChecklistItemToCardPopup.onCreated(function () {
if (cardId) {
const targetCard = ReactiveCache.getCard(cardId);
if (targetCard) {
const targetSort = targetCard.sort || 0;
if (position === 'above') {
sortIndex = targetSort - 0.5;
} else {
sortIndex = targetSort + 0.5;
}
sortIndex = await relativeCardSort(targetCard, position, newCard._id);
}
} else {
const maxSort = await newCard.getMaxSort(options.listId, options.swimlaneId);
@@ -2473,12 +2481,7 @@ Template.copyManyCardsPopup.onCreated(function () {
if (cardId) {
const targetCard = ReactiveCache.getCard(cardId);
if (targetCard) {
const targetSort = targetCard.sort || 0;
if (position === 'above') {
sortIndex = targetSort - 0.5;
} else {
sortIndex = targetSort + 0.5;
}
sortIndex = await relativeCardSort(targetCard, position, newCard._id);
}
} else {
const maxSort = await newCard.getMaxSort(options.listId, options.swimlaneId);
@@ -2486,6 +2489,7 @@ Template.copyManyCardsPopup.onCreated(function () {
}
await newCard.move(options.boardId, options.swimlaneId, options.listId, sortIndex);
if (position === 'below') cardId = newCardId;
}
// In case the filter is active we need to add the newly inserted card in
+6 -12
View File
@@ -9,6 +9,7 @@ function getCardId() {
Template.editCardSpentTimePopup.onCreated(function () {
this.error = new ReactiveVar('');
this.card = Cards.findOne(getCardId());
this.overtime = new ReactiveVar(this.card?.getIsOvertime() || false);
});
Template.editCardSpentTimePopup.helpers({
@@ -19,8 +20,7 @@ Template.editCardSpentTimePopup.helpers({
return Cards.findOne(getCardId());
},
getIsOvertime() {
const card = Cards.findOne(getCardId());
return card?.getIsOvertime ? card.getIsOvertime() : false;
return Template.instance().overtime.get();
},
});
@@ -32,10 +32,7 @@ Template.editCardSpentTimePopup.events({
if (!card) return;
const spentTime = parseFloat(evt.target.time.value);
let isOvertime = false;
if ($('#overtime').attr('class').indexOf('is-checked') >= 0) {
isOvertime = true;
}
const isOvertime = tpl.overtime.get();
if (spentTime >= 0) {
card.setSpentTime(spentTime);
card.setIsOvertime(isOvertime);
@@ -53,12 +50,9 @@ Template.editCardSpentTimePopup.events({
card.setIsOvertime(false);
Popup.back();
},
'click a.js-toggle-overtime'(evt) {
const card = Cards.findOne(getCardId());
if (!card) return;
card.setIsOvertime(!card.getIsOvertime());
$('#overtime .materialCheckBox').toggleClass('is-checked');
$('#overtime').toggleClass('is-checked');
'click a.js-toggle-overtime'(evt, tpl) {
evt.preventDefault();
tpl.overtime.set(!tpl.overtime.get());
},
});
+17 -3
View File
@@ -43,12 +43,13 @@ textarea.js-edit-checklist-item {
.checklist-progress-bar-container .checklist-progress-bar .checklist-progress {
color: #fff;
background-color: #666;
padding: 0.01em 16px;
padding: 0;
box-sizing: border-box;
border-radius: 16px;
height: 100%;
}
.checklist-title {
padding: 10px;
padding: calc(10px * min(1, var(--wekan-ui-font-scale, 1)));
}
.checklist-title .checkbox {
float: inline-start;
@@ -134,6 +135,8 @@ textarea.js-edit-checklist-item {
}
.checklist-item .item-title {
flex: 1;
min-width: 0;
overflow-wrap: anywhere;
}
.checklist-item .item-title.is-checked {
color: #8c8c8c;
@@ -143,7 +146,7 @@ textarea.js-edit-checklist-item {
.checklist-item .item-title .viewer p {
margin-bottom: 2px;
display: block;
word-wrap: break-word;
overflow-wrap: anywhere;
max-width: 420px;
}
.checklist-item span.fa.checklistitem-handle {
@@ -234,3 +237,14 @@ textarea.js-edit-checklist-item {
.checklist-title .checklist-collapse:focus-visible {
color: #2980b9;
}
.checklist-title .checklist-due-date-add {
float: inline-end;
width: auto;
min-width: 28px;
padding: 4px 6px;
margin: 0 4px;
background: transparent;
color: inherit;
border: 0;
}
+22 -20
View File
@@ -15,10 +15,10 @@ template(name="checklists")
.material-toggle-switch(title="{{_ 'hide-finished-checklist'}}")
//span.toggle-switch-title
if card.hideFinishedChecklistIfItemsAreHidden
input.toggle-switch(type="checkbox" id="toggleHideFinishedChecklist" checked="checked")
input.toggle-switch.js-toggle-hide-finished-checklist(type="checkbox" aria-label="{{_ 'hide-finished-checklist'}}" id="{{visibilitySwitchId}}" checked="checked")
else
input.toggle-switch(type="checkbox" id="toggleHideFinishedChecklist")
label.toggle-label(for="toggleHideFinishedChecklist")
input.toggle-switch.js-toggle-hide-finished-checklist(type="checkbox" aria-label="{{_ 'hide-finished-checklist'}}" id="{{visibilitySwitchId}}")
label.toggle-label(for="{{visibilitySwitchId}}")
.card-checklist-items
each checklist in checklists
@@ -53,13 +53,17 @@ template(name="checklistDetail")
title="{{#if checklistCollapsed}}{{_ 'expand-checklist'}}{{else}}{{_ 'collapse-checklist'}}{{/if}}"
role="button" tabindex="0"
aria-expanded="{{#if checklistCollapsed}}false{{else}}true{{/if}}")
unless $eq currentBoard.allowsChecklistDueDate false
unless checklist.getDue
if canModifyCard
+checklistDueDateAdd(checklist=checklist)
if canModifyCard
a.fa.fa-navicon.checklist-details-menu.js-open-checklist-details-menu(title="{{_ 'checklistActionsPopup-title'}}")
if canModifyCard
h4.title.js-open-inlined-form.is-editable
if isTouchScreenOrShowDesktopDragHandles
span.fa.checklist-handle(class="fa-arrows" title="{{_ 'dragChecklist'}}")
span.fa.checklist-handle(class="fa-arrows" title="{{_ 'moveChecklist'}}")
+viewer
= checklist.title
else
@@ -67,10 +71,9 @@ template(name="checklistDetail")
+viewer
= checklist.title
if checklist.getDue
+checklistDueDate(checklist=checklist canModifyCard=canModifyCard)
else if canModifyCard
+checklistDueDateAdd(checklist=checklist)
unless $eq currentBoard.allowsChecklistDueDate false
if checklist.getDue
+checklistDueDate(checklist=checklist canModifyCard=canModifyCard)
//- The progress bar stays visible when folded: it is the summary of what was
folded away, so hiding it too would leave a title that says nothing.
@@ -99,12 +102,12 @@ template(name="addChecklistItemForm")
a.fa.fa-times-thin.js-close-inlined-form(title="{{_ 'close-add-checklist-item'}}")
if showNewlineBecomesNewChecklistItem
.material-toggle-switch(title="{{_ 'newlineBecomesNewChecklistItem'}}")
input.toggle-switch(type="checkbox" id="toggleNewlineBecomesNewChecklistItem")
input.toggle-switch(type="checkbox" aria-label="{{_ 'newlineBecomesNewChecklistItem'}}" id="toggleNewlineBecomesNewChecklistItem")
label.toggle-label(for="toggleNewlineBecomesNewChecklistItem")
| {{_ 'newLineNewItem'}}
if $eq position 'top'
.material-toggle-switch(title="{{_ 'newlineBecomesNewChecklistItemOriginOrder'}}")
input.toggle-switch(type="checkbox" id="toggleNewlineBecomesNewChecklistItemOriginOrder")
input.toggle-switch(type="checkbox" aria-label="{{_ 'newlineBecomesNewChecklistItemOriginOrder'}}" id="toggleNewlineBecomesNewChecklistItemOriginOrder")
label.toggle-label(for="toggleNewlineBecomesNewChecklistItemOriginOrder")
| {{_ 'originOrder'}}
@@ -165,7 +168,7 @@ template(name="checklistItems")
template(name='checklistItemDetail')
.js-checklist-item.checklist-item(class="{{#if item.isFinished }}is-checked{{#if checklist.isItemHidden item.isFinished}} invisible{{/if}}{{/if}}{{#if checklist.hideAllChecklistItems}} is-checked invisible{{/if}}"
role="checkbox" aria-checked="{{#if item.isFinished }}true{{else}}false{{/if}}" tabindex="0")
role="checkbox" aria-checked="{{#if item.isFinished }}true{{else}}false{{/if}}" aria-readonly="{{#if canCheckChecklistItem}}false{{else}}true{{/if}}" tabindex="{{#if canCheckChecklistItem}}0{{else}}-1{{/if}}")
//- #3307: checking off an item is a lower bar than editing/deleting one - a
Worker may do the former but not the latter, so the checkbox itself is
gated on canCheckChecklistItem while everything else here still needs
@@ -177,7 +180,7 @@ template(name='checklistItemDetail')
.materialCheckBox(class="{{#if item.isFinished }}is-checked{{/if}}")
if canModifyCard
if isTouchScreenOrShowDesktopDragHandles
span.fa.checklistitem-handle(class="fa-arrows" title="{{_ 'dragChecklistItem'}}")
span.fa.checklistitem-handle(class="fa-arrows" title="{{_ 'move-scope'}}")
.item-title.js-open-inlined-form.is-editable(class="{{#if item.isFinished }}is-checked{{/if}}")
+viewer
= item.title
@@ -239,18 +242,18 @@ template(name="checklistActionsPopup")
| {{_ "hideCheckedChecklistItems"}} ...
.material-toggle-switch(title="{{_ 'hide-checked-items'}}")
if checklist.hideCheckedState
input.toggle-switch(type="checkbox" id="toggleHideCheckedChecklistItems_{{checklist._id}}" checked="checked")
input.toggle-switch(type="checkbox" aria-label="{{_ 'hide-checked-items'}}" id="toggleHideCheckedChecklistItems_{{checklist._id}}" checked="checked")
else
input.toggle-switch(type="checkbox" id="toggleHideCheckedChecklistItems_{{checklist._id}}")
input.toggle-switch(type="checkbox" aria-label="{{_ 'hide-checked-items'}}" id="toggleHideCheckedChecklistItems_{{checklist._id}}")
label.toggle-label(for="toggleHideCheckedChecklistItems_{{checklist._id}}")
a.js-hide-all-checklist-items
i.fa.fa-ban
| {{_ "hideAllChecklistItems"}} ...
.material-toggle-switch(title="{{_ 'hideAllChecklistItems'}}")
if checklist.hideAllChecklistItems
input.toggle-switch(type="checkbox" id="toggleHideAllChecklistItems_{{checklist._id}}" checked="checked")
input.toggle-switch(type="checkbox" aria-label="{{_ 'hideAllChecklistItems'}}" id="toggleHideAllChecklistItems_{{checklist._id}}" checked="checked")
else
input.toggle-switch(type="checkbox" id="toggleHideAllChecklistItems_{{checklist._id}}")
input.toggle-switch(type="checkbox" aria-label="{{_ 'hideAllChecklistItems'}}" id="toggleHideAllChecklistItems_{{checklist._id}}")
label.toggle-label(for="toggleHideAllChecklistItems_{{checklist._id}}")
a.js-show-checklist-at-minicard
i.fa.fa-th-list
@@ -261,9 +264,9 @@ template(name="checklistActionsPopup")
because the board default (allowsChecklistsOnMinicard, on out of the
box) put it there - reported by email.
if shownAtMinicard
input.toggle-switch(type="checkbox" id="toggleShowChecklistAtMinicard_{{checklist._id}}" checked="checked")
input.toggle-switch(type="checkbox" aria-label="{{_ 'show-on-minicard'}}" id="toggleShowChecklistAtMinicard_{{checklist._id}}" checked="checked")
else
input.toggle-switch(type="checkbox" id="toggleShowChecklistAtMinicard_{{checklist._id}}")
input.toggle-switch(type="checkbox" aria-label="{{_ 'show-on-minicard'}}" id="toggleShowChecklistAtMinicard_{{checklist._id}}")
label.toggle-label(for="toggleShowChecklistAtMinicard_{{checklist._id}}")
//- #3818 / #4729: pick this checklist's automatic-reset interval (or 'none' to
@@ -340,9 +343,8 @@ template(name="checklistDueDate")
+dateBadgeBody(canModifyCard=canModifyCard baseClass="card-date due-date checklist-due-date" showTitle=showTitle classes=classes showISODate=showISODate showDate=showDate showWeekOfYear=showWeekOfYear showWeek=showWeek)
template(name="checklistDueDateAdd")
button.js-checklist-due-date(type="button" title="{{_ 'card-due'}}" role="button" tabindex="0")
button.js-checklist-due-date.checklist-due-date-add(type="button" title="{{_ 'card-due'}}" aria-label="{{_ 'card-due'}}")
i.fa.fa-clock-o
| &nbsp;{{_ 'card-due'}}
template(name="editChecklistDueDatePopup")
+editDateForm(showDate=showDate showTime=showTime error=error datePicker=datePicker)
+14 -1
View File
@@ -1,3 +1,4 @@
import { Random } from 'meteor/random';
import { formatDateForDisplay } from '/client/lib/dateDisplay';
import { ReactiveCache } from '/imports/reactiveCache';
import { TAPi18n } from '/imports/i18n';
@@ -205,7 +206,12 @@ Template.checklistDetail.events({
},
});
Template.checklists.onCreated(function () {
this.visibilitySwitchId = `toggleHideFinishedChecklist_${Random.id()}`;
});
Template.checklists.helpers({
visibilitySwitchId() { return Template.instance().visibilitySwitchId; },
checklists() {
const card = ReactiveCache.getCard(this.cardId);
if (!card || typeof card.checklists !== 'function') {
@@ -402,7 +408,7 @@ Template.checklists.events({
'click .js-open-inlined-form'(event, tpl) {
tpl.$('.js-close-inlined-form').click();
},
'click #toggleHideFinishedChecklist'(event) {
'click .js-toggle-hide-finished-checklist'(event) {
event.preventDefault();
Template.currentData().card.toggleHideFinishedChecklist();
},
@@ -609,6 +615,13 @@ Template.checklistItemDetail.helpers({
});
Template.checklistItemDetail.events({
'keydown .js-checklist-item'(event) {
if (event.target !== event.currentTarget || event.repeat || event.originalEvent?.repeat || ![' ', 'Enter'].includes(event.key)) return;
if (event.currentTarget.getAttribute('aria-readonly') === 'true') return;
event.preventDefault();
event.stopPropagation();
event.currentTarget.querySelector('.check-box-container')?.click();
},
// #2422: open the checklist item's linked subtask card. Reuses the same
// navigation guard subtasks.js uses for its own "View it" button, so a
// subtask on another (not-yet-loaded) board resolves the same way.
+1 -1
View File
@@ -36,7 +36,7 @@ template(name="cardLabelsPopup")
li.js-card-label-item
a.card-label-edit-button.fa.fa-pencil.js-edit-label
if isTouchScreenOrShowDesktopDragHandles
span.fa.label-handle(class="fa-arrows" title="{{_ 'dragLabel'}}")
span.fa.label-handle(class="fa-arrows" title="{{_ 'move-scope'}}")
span.card-label.card-label-selectable.js-select-label.card-label-wrapper(class="{{labelColorClass color}}"
class="{{# if isLabelSelected ../_id }}active{{/if}}" style="{{labelColorStyle color}}")
+viewer
+10 -5
View File
@@ -309,9 +309,17 @@
/* #4990: the title text is the edit target. It is a block so that the whole
line, not only the words, is that target: a click on the empty space after a
short title is still a click on the title. */
.minicard .minicard-title-row {
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
}
.minicard .minicard-title .minicard-title-text {
display: block;
position: relative;
flex: 1;
min-width: 0;
}
/* Direct title editing is disabled; the former editor styles are retained as
@@ -1070,11 +1078,8 @@
display: inline-flex;
align-items: center;
vertical-align: middle;
/* Nudge down so the checkmark sits at the vertical middle of the title text
(the checked materialCheckBox is shifted up 4px by its own positioning). */
position: relative;
top: 4px;
margin-inline-end: 6px;
flex-shrink: 0;
margin-inline-end: 0;
cursor: pointer;
}
+45 -37
View File
@@ -38,40 +38,44 @@ template(name="minicard")
fold on purpose - they must always be reachable, collapsed or not - and
the title right after the caret is likewise unconditional: collapsed, the
minicard shows only the caret and the title.
a.fa.minicard-collapse.js-collapse-minicard(
class="{{#if minicardCollapsed}}fa-caret-right{{else}}fa-caret-down{{/if}}"
title="{{#if minicardCollapsed}}{{_ 'uncollapse'}}{{else}}{{_ 'collapse'}}{{/if}}"
aria-label="{{#if minicardCollapsed}}{{_ 'uncollapse'}}{{else}}{{_ 'collapse'}}{{/if}}"
role="button" tabindex="0"
aria-expanded="{{#if minicardCollapsed}}false{{else}}true{{/if}}")
if showCollapseControl
a.fa.minicard-collapse.js-collapse-minicard(
class="{{#if minicardCollapsed}}fa-caret-right{{else}}fa-caret-down{{/if}}"
title="{{#if minicardCollapsed}}{{_ 'uncollapse'}}{{else}}{{_ 'collapse'}}{{/if}}"
aria-label="{{#if minicardCollapsed}}{{_ 'uncollapse'}}{{else}}{{_ 'collapse'}}{{/if}}"
role="button" tabindex="0"
aria-expanded="{{#if minicardCollapsed}}false{{else}}true{{/if}}")
if showLabelsAboveTitle
+minicardLabels(show=showLabels labels=labels hideText=hiddenMinicardLabelText)
.minicard-title
if showDueComplete
if canModifyCard
a.minicard-complete-toggle.js-toggle-card-complete(title="{{#if getDueComplete}}{{_ 'card-mark-incomplete'}}{{else}}{{_ 'card-mark-complete'}}{{/if}}")
.materialCheckBox(class="{{#if getDueComplete}}is-checked{{/if}}")
if $eq 'prefix-with-full-path' currentBoard.presentParentTask
.parent-prefix
| {{ parentString ' > ' }}
if $eq 'prefix-with-parent' currentBoard.presentParentTask
.parent-prefix
| {{ parentCardName }}
if isLinkedBoard
a.js-linked-link
span.linked-icon
i.fa.fa-folder
else if isLinkedCard
a.js-linked-link
span.linked-icon
i.fa.fa-id-card
if getArchived
span.linked-icon.linked-archived
i.fa.fa-archive
span.minicard-title-text
if showCardNumber
span.card-number
| ##{getCardNumber} &nbsp;
+viewer
= getTitle
.minicard-title-row
if showDueComplete
if canModifyCard
a.minicard-complete-toggle.js-toggle-card-complete(title="{{#if getDueComplete}}{{_ 'card-mark-incomplete'}}{{else}}{{_ 'card-mark-complete'}}{{/if}}")
.materialCheckBox(class="{{#if getDueComplete}}is-checked{{/if}}")
if isLinkedBoard
a.js-linked-link
span.linked-icon
i.fa.fa-folder
else if isLinkedCard
a.js-linked-link
span.linked-icon
i.fa.fa-id-card
if getArchived
span.linked-icon.linked-archived
i.fa.fa-archive
span.minicard-title-text
if showCardNumber
span.card-number
| ##{getCardNumber} &nbsp;
+viewer
= getTitle
//- Everything under the title renders in the board's minicard order
(Board Settings / Card, "Show on Minicard"; board.minicardFieldOrder,
models/lib/cardFieldOrder.js): the sections top to bottom, and inside
@@ -143,16 +147,8 @@ template(name="minicard")
.minicard-cover(style="background-image: url('{{cover.link 'original'}}?dummyReloadAfterSessionEstablished={{sess}}');")
if $eq section "labels"
if showLabels
if labels
.minicard-labels(class="{{#if hiddenMinicardLabelText}}minicard-labels-no-text{{/if}}")
each labels
unless hiddenMinicardLabelText
span.js-card-label.card-label(class="{{labelColorClass color}}" style="{{labelColorStyle color}}" title=name)
+viewer
= name
if hiddenMinicardLabelText
.minicard-label(class="{{labelColorClass color}}" style="{{labelColorStyle color}}" title="{{name}}")
unless labelsAboveTitle
+minicardLabels(show=showLabels labels=labels hideText=hiddenMinicardLabelText)
if $eq section "customFields"
if showCustomFieldsOnMinicard
@@ -402,3 +398,15 @@ template(name="minicardChecklist")
else
a.add-checklist-item.js-open-inlined-form(title="{{_ 'add-checklist-item'}}")
i.fa.fa-plus
template(name="minicardLabels")
if show
if labels
.minicard-labels(class="{{#if hideText}}minicard-labels-no-text{{/if}}")
each label in labels
unless hideText
span.js-card-label.card-label(class="{{labelColorClass label.color}}" style="{{labelColorStyle label.color}}" title=label.name)
+viewer
= label.name
if hideText
.minicard-label(class="{{labelColorClass label.color}}" style="{{labelColorStyle label.color}}" title="{{label.name}}")
+18 -14
View File
@@ -1,3 +1,4 @@
import { relativeCardSort } from '/client/lib/relativeCardPosition';
import { ReactiveCache } from '/imports/reactiveCache';
import { TAPi18n } from '/imports/i18n';
import { CustomFieldStringTemplate } from '/client/lib/customFields';
@@ -40,8 +41,14 @@ function getMinicardFlag(board, onMinicardField, legacyField, defaultValue) {
Template.minicard.helpers({
// #1591: the whole-minicard fold, same shape as a list's collapsed() helper.
showCollapseControl() { return ReactiveCache.getBoard(this.boardId)?.allowsMinicardCollapse !== false; },
showLabelsAboveTitle() {
const board = ReactiveCache.getBoard(this.boardId);
return board?.labelsAboveTitleOnMinicard === true && (board.allowsMinicardCollapse === false || !Utils.getCardCollapseState(this));
},
labelsAboveTitle() { return ReactiveCache.getBoard(this.boardId)?.labelsAboveTitleOnMinicard === true; },
minicardCollapsed() {
return Utils.getCardCollapseState(this);
return ReactiveCache.getBoard(this.boardId)?.allowsMinicardCollapse !== false && Utils.getCardCollapseState(this);
},
// The minicard's field order from Board Settings / Card's "Show on
// Minicard" column (board.minicardFieldOrder): the sections top to bottom,
@@ -390,24 +397,21 @@ Template.minicard.helpers({
// #459: accessible reordering — keyboard/screen-reader users can move a card up
// or down within its list via sr-only buttons (no drag-and-drop required). The
// move swaps the card's sort value with its neighbour in the same list+swimlane.
function moveCardBy(card, delta) {
// move inserts beside its neighbor in the same list+swimlane, repairing ties.
async function moveCardBy(card, delta) {
const siblings = ReactiveCache.getCards(
{ listId: card.listId, swimlaneId: card.swimlaneId, archived: false },
{ sort: { sort: 1 } },
{ boardId: card.boardId, listId: card.listId, swimlaneId: card.swimlaneId, archived: false, deletedAt: null },
{ sort: { sort: 1, _id: 1 } },
);
const idx = siblings.findIndex(c => c._id === card._id);
const target = siblings[idx + delta];
if (idx < 0 || !target) return;
// Capture both sort values before either update; the docs are reactive and
// card.sort would otherwise change after the first move.
const cardSort = card.sort;
const targetSort = target.sort;
// Persist through the card model's move() mutation — the canonical client
// path (e.g. editCardSortOrderPopup). A raw Cards.update of `sort` is the
// wrong path here and would be reverted.
card.move(card.boardId, card.swimlaneId, card.listId, targetSort);
target.move(target.boardId, target.swimlaneId, target.listId, cardSort);
try {
const sort = await relativeCardSort(target, delta < 0 ? 'above' : 'below', card._id);
await card.move(card.boardId, card.swimlaneId, card.listId, sort);
} catch (error) {
window.alert(error.reason || error.message || TAPi18n.__('server-error'));
}
}
Template.minicard.events({
+1 -1
View File
@@ -93,7 +93,7 @@ template(name="subtasksItems")
else
a.add-subtask-item.js-open-inlined-form
i.fa.fa-plus
| {{_ 'add-subtask-item'}}...
| {{_ 'add-subtask'}}...
template(name='subtaskItemDetail')
.js-subtasks-item.subtasks-item
+15 -2
View File
@@ -807,8 +807,21 @@ button.loud-text-button:hover {
.toggle-switch:checked:disabled ~ .toggle-label:after {
background-color: #bcbdbc;
}
.toggle-switch {
display: none;
.material-toggle-switch input.toggle-switch[type="checkbox"] {
display: block;
visibility: visible;
position: absolute;
inset-inline-start: auto;
width: 1px;
height: 1px;
margin: 0;
padding: 0;
clip-path: inset(50%);
overflow: hidden;
}
.material-toggle-switch .toggle-switch:focus-visible ~ .toggle-label {
outline: 2px solid currentColor;
outline-offset: 4px;
}
.toggle-switch-title {
margin: 0 0.5em;
+15
View File
@@ -3,6 +3,21 @@
min-height: 80px;
}
.gantt-view .gantt-container {
font-size: calc(12px * var(--wekan-ui-font-scale, 1));
line-height: calc(14.5px * var(--wekan-ui-font-scale, 1));
}
.gantt-view .gantt-container .lower-text {
font-size: calc(12px * var(--wekan-ui-font-scale, 1));
}
.gantt-view .gantt-container .upper-text,
.gantt-view .gantt-container .side-header * {
font-size: calc(14px * var(--wekan-ui-font-scale, 1));
}
.gantt-view .gantt .bar-label {
font-size: calc(13px * var(--wekan-ui-font-scale, 1));
}
.frappe-gantt-empty {
color: #888;
}
+8
View File
@@ -1,3 +1,5 @@
import { Meteor } from 'meteor/meteor';
import { fontScaleValue } from '/models/lib/uiFonts';
import { titleViewerHtml, titleViewerSvgText } from '/client/lib/titleViewer';
import { formatDateForDisplay, dateDisplayPreferences } from '/client/lib/dateDisplay';
import { Template } from 'meteor/templating';
@@ -204,7 +206,13 @@ Template.frappeGanttView.onRendered(function() {
// observer below re-translates them whenever they reappear.
const viewModes = translatedViewModes(GanttLib);
translateFrappeChrome(container, templateInstance);
const fontScale = Number(fontScaleValue(Meteor.user()?.profile?.uiFontSize) || 1);
new GanttLib(container, tasks, {
// Scale geometry with SVG text, so the 150% preset still fits its bars
// and date headers rather than merely increasing the glyph sizes.
bar_height: 30 * fontScale,
upper_header_height: 45 * fontScale,
lower_header_height: 30 * fontScale,
view_modes: viewModes,
view_mode: viewModes.find(mode => mode._key === 'WEEK').name,
// Month names in the header come from Intl.DateTimeFormat(language);
+1 -1
View File
@@ -211,7 +211,7 @@ template(name="importMapMembersAddPopup")
p
| {{_ 'import-user-select'}}
.js-map-member
input.js-search-member-input(type="text" placeholder="{{_ 'search-users'}}")
input.js-search-member-input(type="text" placeholder="{{_ 'search'}}")
ul.pop-over-list
each searchResults
li.item.js-member-item
+19 -3
View File
@@ -281,6 +281,13 @@ Template.list.onCreated(function () {
// callback, we basically solve all issues related to reactive updates. A
// comment below provides further details.
Template.list.onRendered(function () {
this.initializeListResize();
});
// #6705: collapse removes listBody but keeps the parent list alive. Bind card
// widgets and their reactive work to the body so expansion initializes the new
// .js-minicards element, including lists that were collapsed on page load.
Template.listBody.onRendered(function () {
const boardBodyEl =
this.firstNode?.parentElement?.closest?.('.board-body') ||
document.querySelector('.board-body');
@@ -288,11 +295,10 @@ Template.list.onRendered(function () {
boardBodyEl && Blaze.getView(boardBodyEl, 'Template.boardBody');
const boardComponent = boardView?.templateInstance?.();
// Initialize list resize functionality immediately
this.initializeListResize();
const itemsSelector = '.js-minicard:not(.placeholder, .js-card-composer)';
const $cards = this.$('.js-minicards');
this.cardDragTargets = $cards;
this.cardDragDestroyed = false;
// Destroy any existing sortable before re-initializing. Without this, a
// re-render of the list (e.g. when a Card Details panel opens) binds a SECOND
@@ -668,6 +674,7 @@ Template.list.onRendered(function () {
// .droppable() on initialized elements is an idempotent option refresh.
ReactiveCache.getCards({ boardId: currentBoardId });
Tracker.afterFlush(() => {
if (this.cardDragDestroyed) return;
$cards.find(itemsSelector).droppable({
hoverClass: 'draggable-hover-card',
accept: '.js-member,.js-label',
@@ -688,6 +695,15 @@ Template.list.onRendered(function () {
});
});
Template.listBody.onDestroyed(function () {
this.cardDragDestroyed = true;
const $cards = this.cardDragTargets;
if ($cards && ($cards.data('uiSortable') || $cards.data('sortable'))) {
$cards.sortable('destroy');
}
this.cardDragTargets = null;
});
// A board-wide list (no swimlaneId of its own) renders once per swimlane in
// Swimlanes view - the SAME list document, one row per swimlane - so its
// collapse state must be resolved per-swimlane, or collapsing it in one
+2 -2
View File
@@ -131,7 +131,7 @@ template(name="listHeader")
unless currentUser.isReadOnly
unless currentUser.isReadAssignedOnly
if isTouchScreenOrShowDesktopDragHandles
a.list-header-handle-desktop.handle.nodragscroll.js-list-handle(title="{{_ 'drag-list'}}")
a.list-header-handle-desktop.handle.nodragscroll.js-list-handle(title="{{_ 'moveListPopup-title'}}")
i.fa.fa-arrows
unless collapsed
div.list-header-menu
@@ -142,7 +142,7 @@ template(name="listHeader")
//
a.fa.js-list-star.list-header-plus-top(class="fa-star{{#unless starred}}-o{{/unless}}")
if isTouchScreenOrShowDesktopDragHandles
a.list-header-handle-desktop.handle.nodragscroll.js-list-handle(title="{{_ 'drag-list'}}")
a.list-header-handle-desktop.handle.nodragscroll.js-list-handle(title="{{_ 'moveListPopup-title'}}")
i.fa.fa-arrows
if canSeeAddCard
a.js-add-card.list-header-plus-top(title="{{_ 'add-card-to-top-of-list'}}")
+18 -15
View File
@@ -1,3 +1,4 @@
import { relativePosition } from '/models/lib/relativePosition';
import { formatDateForDisplay } from '/client/lib/dateDisplay';
import { ReactiveCache } from '/imports/reactiveCache';
import Lists from '../../../models/lists';
@@ -342,24 +343,26 @@ Template.listHeader.onCreated(function () {
});
// #459: accessible reordering — move a list left/right via sr-only buttons by
// swapping its sort value with the adjacent list (no drag-and-drop required).
function moveListBy(list, delta) {
const siblings = ReactiveCache.getLists(
{ boardId: list.boardId, archived: false },
{ sort: { sort: 1 } },
);
// inserting beside an adjacent visible list (no drag-and-drop required).
async function moveListBy(list, delta) {
const swimlaneId = resolveContainerSwimlaneId(list);
const selector = { boardId: list.boardId, archived: false, deletedAt: null };
if (Utils.boardView() === 'board-view-swimlanes' && swimlaneId) {
selector.swimlaneId = { $in: [swimlaneId, null, ''] };
}
const siblings = ReactiveCache.getLists(selector, { sort: { sort: 1 } });
const idx = siblings.findIndex(l => l._id === list._id);
const target = siblings[idx + delta];
if (idx < 0 || !target) return;
// Capture both sort values before either update; the docs are reactive and
// list.sort would otherwise change after the first update.
const listSort = list.sort;
const targetSort = target.sort;
// Lists are a server-restricted collection; persist the swap through the
// updateListSort method — the same path the drag-and-drop reorder uses. A raw
// client Lists.update of `sort` is reverted by the server.
Meteor.call('updateListSort', list._id, list.boardId, { sort: targetSort });
Meteor.call('updateListSort', target._id, target.boardId, { sort: listSort });
try {
const plan = relativePosition(siblings, target._id, delta < 0 ? 'above' : 'below', list._id);
for (const update of plan.updates) {
await Meteor.callAsync('updateListSort', update.id, list.boardId, { sort: update.sort });
}
await Meteor.callAsync('updateListSort', list._id, list.boardId, { sort: plan.sort });
} catch (error) {
window.alert(error.reason || error.message || TAPi18n.__('server-error'));
}
}
Template.listHeader.events({
+1 -1
View File
@@ -3,7 +3,7 @@ template(name="minilist")
class="minicard-{{colorClass}}")
.minicard-title
.handle
span.drag-handle(title="{{_ 'dragList'}}")
span.drag-handle(title="{{_ 'moveListPopup-title'}}")
i.fa.fa-arrows
+viewer
= title
+6 -6
View File
@@ -1,18 +1,18 @@
template(name="bookmarks")
.panel
h2 {{_ 'bookmarks'}}
h2 {{_ 'starred-boards'}}
if currentUser
if hasStarredBoards
ul
each starredBoards
li
a(href="{{pathFor 'board' id=_id slug=slug}}")= title
a.js-toggle-star(title="{{_ 'star-board-short-unstar'}}")
a.js-toggle-star(title="{{_ 'unstar-item'}}")
i.fa.fa-star
else
p {{_ 'no-starred-boards'}}
p {{_ 'no-starred-items'}}
else
p {{_ 'please-sign-in'}}
p {{_ 'log-in'}}
// Desktop popup
template(name="bookmarksPopup")
@@ -23,7 +23,7 @@ template(name="bookmarksPopup")
a(href="{{pathFor 'board' id=_id slug=slug}}")
i.fa.fa-star
| #{title}
a.js-toggle-star.right(title="{{_ 'star-board-short-unstar'}}")
a.js-toggle-star.right(title="{{_ 'unstar-item'}}")
i.fa.fa-star
else
li {{_ 'no-starred-boards'}}
li {{_ 'no-starred-items'}}
+3 -227
View File
@@ -2,7 +2,6 @@ import { ReactiveCache } from '/imports/reactiveCache';
import { findWhere } from '/imports/lib/collectionHelpers';
import { TAPi18n } from '/imports/i18n';
import { Markdown } from 'meteor/wekan-markdown';
import Attachments from '/models/attachments';
import { Utils } from '/client/lib/utils';
import { memberMatchesTerm } from '/models/lib/memberAutocomplete';
import autosize from 'autosize';
@@ -80,232 +79,9 @@ Template.editor.onRendered(function () {
},
];
const enableTextarea = function() {
const $textarea = tpl.$(textareaSelector);
autosize($textarea);
$textarea.escapeableTextComplete(mentions);
};
if (Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR === true || Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR === 'true') {
const isSmall = Utils.isMiniScreen();
const toolbar = isSmall
? [
['view', ['fullscreen']],
['table', ['table']],
['font', ['bold', 'underline']],
//['fontsize', ['fontsize']],
['color', ['color']],
]
: [
['style', ['style']],
['font', ['bold', 'underline', 'clear']],
['fontsize', ['fontsize']],
['fontname', ['fontname']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']],
['table', ['table']],
//['insert', ['link', 'picture', 'video']], // iframe tag will be sanitized TODO if iframe[class=note-video-clip] can be added into safe list, insert video can be enabled
['insert', ['link']], //, 'picture']], // modal popup has issue somehow :(
['view', ['fullscreen', 'codeview', 'help']],
];
const cleanPastedHTML = function(input) {
const badTags = [
'style',
'script',
'applet',
'embed',
'noframes',
'noscript',
'meta',
'link',
'button',
'form',
].join('|');
const badPatterns = new RegExp(
`(?:${[
`<(${badTags})\\s*[^>][\\s\\S]*?<\\/\\1>`,
`<(${badTags})[^>]*?\\/>`,
].join('|')})`,
'gi',
);
let output = input;
// remove bad Tags
output = output.replace(badPatterns, '');
// remove attributes ' style="..."'
const badAttributes = new RegExp(
`(?:${[
'on\\S+=([\'\"]?).*?\\1',
'href=([\'\"]?)javascript:.*?\\2',
'style=([\'\"]?).*?\\3',
'target=\\S+',
].join('|')})`,
'gi',
);
output = output.replace(badAttributes, '');
output = output.replace(/(<a )/gi, '$1target=_ '); // always to new target
return output;
};
const editor = '.editor';
const selectors = [
`.js-new-description-form ${editor}`,
`.js-new-comment-form ${editor}`,
`.js-edit-comment ${editor}`,
].join(','); // only new comment and edit comment
const inputs = $(selectors);
if (inputs.length === 0) {
// only enable richereditor to new comment or edit comment no others
enableTextarea();
} else {
const placeholder = inputs.attr('placeholder') || '';
const mSummernotes = [];
const getSummernote = function(input) {
const idx = inputs.index(input);
if (idx > -1) {
return mSummernotes[idx];
}
return undefined;
};
inputs.each(function(idx, input) {
mSummernotes[idx] = $(input).summernote({
placeholder,
callbacks: {
onInit(object) {
const originalInput = this;
$(originalInput).on('submitted', function() {
// when comment is submitted, the original textarea will be set to '', so shall we
if (!this.value) {
const sn = getSummernote(this);
sn && sn.summernote('code', '');
}
});
const jEditor = object && object.editable;
const toolbar = object && object.toolbar;
if (jEditor !== undefined) {
jEditor.escapeableTextComplete(mentions);
}
if (toolbar !== undefined) {
const fBtn = toolbar.find('.btn-fullscreen');
fBtn.on('click', function() {
const $this = $(this),
isActive = $this.hasClass('active');
$('.minicards,#header-quick-access').toggle(!isActive); // mini card is still showing when editor is in fullscreen mode, we hide here manually
});
}
},
onImageUpload(files) {
const $summernote = getSummernote(this);
if (files && files.length > 0) {
const image = files[0];
const currentCard = Utils.getCurrentCard();
const MAX_IMAGE_PIXEL = Utils.MAX_IMAGE_PIXEL;
const COMPRESS_RATIO = Utils.IMAGE_COMPRESS_RATIO;
const processUpload = async function(file) {
const uploader = await Attachments.insertAsync(
{
file,
meta: Utils.getCommonAttachmentMetaFrom(currentCard),
chunkSize: 'dynamic',
},
false,
);
uploader.on('uploaded', (error, fileRef) => {
if (!error) {
if (fileRef.isImage) {
const img = document.createElement('img');
img.src = fileRef.link();
img.setAttribute('width', '100%');
$summernote.summernote('insertNode', img);
}
}
});
uploader.start();
};
if (MAX_IMAGE_PIXEL) {
const reader = new FileReader();
reader.onload = function(e) {
const dataurl = e && e.target && e.target.result;
if (dataurl !== undefined) {
// need to shrink image
Utils.shrinkImage({
dataurl,
maxSize: MAX_IMAGE_PIXEL,
ratio: COMPRESS_RATIO,
toBlob: true,
callback(blob) {
if (blob !== false) {
blob.name = image.name;
processUpload(blob);
}
},
});
}
};
reader.readAsDataURL(image);
} else {
processUpload(image);
}
}
},
onPaste(e) {
var clipboardData = e.clipboardData;
var pastedData = clipboardData.getData('Text');
//if pasted data is an image, exit
if (!pastedData.length) {
e.preventDefault();
return;
}
// clear up unwanted tag info when user pasted in text
const thisNote = this;
const updatePastedText = function(object) {
const someNote = getSummernote(object);
// Fix Pasting text into a card is adding a line before and after
// (and multiplies by pasting more) by changing paste "p" to "br".
// Fixes https://github.com/wekan/wekan/2890 .
// == Fix Start ==
someNote.execCommand('defaultParagraphSeparator', false, 'br');
// == Fix End ==
const original = someNote.summernote('code');
const cleaned = cleanPastedHTML(original); //this is where to call whatever clean function you want. I have mine in a different file, called CleanPastedHTML.
someNote.summernote('code', ''); //clear original
someNote.summernote('pasteHTML', cleaned); //this sets the displayed content editor to the cleaned pasted code.
};
setTimeout(function() {
//this kinda sucks, but if you don't do a setTimeout,
//the function is called before the text is really pasted.
updatePastedText(thisNote);
}, 10);
},
},
dialogsInBody: true,
spellCheck: true,
disableGrammar: false,
disableDragAndDrop: false,
toolbar,
popover: {
image: [
['imagesize', ['imageSize100', 'imageSize50', 'imageSize25']],
['float', ['floatLeft', 'floatRight', 'floatNone']],
['remove', ['removeMedia']],
],
link: [['link', ['linkDialogShow', 'unlink']]],
table: [
['add', ['addRowDown', 'addRowUp', 'addColLeft', 'addColRight']],
['delete', ['deleteRow', 'deleteCol', 'deleteTable']],
],
air: [
['color', ['color']],
['font', ['bold', 'underline', 'clear']],
],
},
height: 200,
});
});
}
} else {
enableTextarea();
}
enableTextarea();
const $textarea = tpl.$(textareaSelector);
autosize($textarea);
$textarea.escapeableTextComplete(mentions);
});
Template.editor.events({
+18 -5
View File
@@ -19,10 +19,6 @@ table, tbody, td, tfoot, th, thread, tr, tt, ul, var {
font-size: 100%;
vertical-align: baseline;
}
.note-popover .popover-content .note-color-palette div .note-color-btn,
.panel-heading.note-toolbar .note-color-palette div .note-color-btn {
background: none;
}
a:focus {
outline: unset;
outline-offset: unset;
@@ -577,7 +573,24 @@ kbd {
cursor: grabbing;
}
.textcomplete-dropdown {
z-index: 2000 !important;
/* The menu is attached to body, above both card windows (2001) and
card-detail popups (100000). #6704 */
z-index: 100001 !important;
background: #fff;
color: #333;
list-style: none;
margin: 0;
padding: 4px 0;
border: 1px solid #ccc;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.textcomplete-dropdown .textcomplete-item > span {
display: block;
padding: 4px 12px 4px 8px;
cursor: pointer;
}
.textcomplete-dropdown .textcomplete-item.active > span {
color: #fff;
}
.fa.fa-times-thin:before {
content: '\00d7';
+1
View File
@@ -130,6 +130,7 @@ template(name="userFormsLayout")
.auth-bottom-space
template(name="defaultLayout")
+attachmentViewer
+recoveryMaintenance
//- Shared migration / board-repair progress dashboard. Mounted app-wide so it
//- shows for both a board-open repair AND an Admin Panel database migration.
+7 -7
View File
@@ -49,14 +49,14 @@ template(name="myCards")
caption.sr-only {{_ 'my-cards'}}
thead
tr
th(scope="col") {{_ "Card"}}
th(scope="col") {{_ "List"}}
th(scope="col") {{_ "Board"}}
th(scope="col") {{_ "Swimlane"}}
th(scope="col") {{_ "card"}}
th(scope="col") {{_ "list"}}
th(scope="col") {{_ "board"}}
th(scope="col") {{_ "swimlane"}}
unless isMiniScreen
th(scope="col") {{_ "Members"}}
th(scope="col") {{_ "Labels"}}
th(scope="col") {{_ "Due Date"}}
th(scope="col") {{_ "members"}}
th(scope="col") {{_ "labels"}}
th(scope="col") {{_ "due-date"}}
tbody
each board in myCardsList
each swimlane in board.mySwimlanes
+7 -6
View File
@@ -39,7 +39,7 @@
first row of a popup, and it must match the space beside it: `.content` has 18px of
side padding, so 6 + 12 = 18 makes the top gap and the left gutter the same. */
.pop-over .header {
height: 41px;
height: calc(41px * var(--wekan-ui-font-scale, 1));
position: relative;
margin-bottom: 6px;
background: #f7f7f7;
@@ -141,7 +141,7 @@
.pop-over[data-popup='memberMenuPopup'] > .content-wrapper {
/* The header is out of the flow here, so its height is padding instead: 41px of
header + its 1px bottom border + the same 6px gap every other popup has. */
padding-top: calc(41px + 1px + 6px);
padding-top: calc(41px * var(--wekan-ui-font-scale, 1) + 1px + 6px);
box-sizing: border-box;
}
@@ -883,7 +883,8 @@ html[dir='rtl'] .pop-over:has(.edit-date) > .js-date-popup-resize {
width: 50px;
}
.pop-over.miniprofile .miniprofile-header .info {
margin: 0 0 0 64px;
margin: 0;
margin-inline-start: 64px;
word-wrap: break-word;
}
.pop-over.miniprofile .miniprofile-header .info h3 a {
@@ -926,7 +927,7 @@ html[dir='rtl'] .pop-over:has(.edit-date) > .js-date-popup-resize {
force. The fallback is the stock WeKan blue, so an unthemed instance is
unchanged. */
background: var(--theme-accent, #2980b9);
height: 48px;
height: calc(48px * var(--wekan-ui-font-scale, 1));
padding: 0px 0px;
border: 0px;
margin: 0px 0px;
@@ -955,10 +956,10 @@ html[dir='rtl'] .pop-over:has(.edit-date) > .js-date-popup-resize {
}
.pop-over .content-wrapper {
width: 100%;
height: calc(100% - 48px);
height: calc(100% - 48px * var(--wekan-ui-font-scale, 1));
overflow-y: scroll;
overflow-x: hidden;
margin: 48px 0px 0px 0px;
margin: calc(48px * var(--wekan-ui-font-scale, 1)) 0 0;
}
.pop-over .content-container {
width: 100%;
@@ -9,8 +9,8 @@ template(name="boardActions")
option(value="bottom") {{_'r-bottom-of'}}
div.trigger-text
| {{_'r-its-list'}}
div.trigger-button.js-add-gen-move-action.js-goto-rules
i.fa.fa-plus
button.trigger-button.js-add-gen-move-action.js-goto-rules(type="button" aria-label="{{_ 'r-add-action'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -38,8 +38,8 @@ template(name="boardActions")
| {{_'r-in-swimlane'}}
div.trigger-dropdown
input(id="swimlaneName",type=text,placeholder="{{_'r-name'}}")
div.trigger-button.js-add-spec-move-action.js-goto-rules
i.fa.fa-plus
button.trigger-button.js-add-spec-move-action.js-goto-rules(type="button" aria-label="{{_ 'r-add-action'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -49,8 +49,8 @@ template(name="boardActions")
option(value="unarchive") {{_'r-unarchive'}}
div.trigger-text
| {{_'r-card'}}
div.trigger-button.js-add-arch-action.js-goto-rules
i.fa.fa-plus
button.trigger-button.js-add-arch-action.js-goto-rules(type="button" aria-label="{{_ 'r-add-action'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -58,8 +58,8 @@ template(name="boardActions")
| {{_'r-add-swimlane'}}
div.trigger-dropdown
input(id="swimlane-name",type=text,placeholder="{{_'r-name'}}")
div.trigger-button.js-add-swimlane-action.js-goto-rules
i.fa.fa-plus
button.trigger-button.js-add-swimlane-action.js-goto-rules(type="button" aria-label="{{_ 'r-add-action'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -75,8 +75,8 @@ template(name="boardActions")
| {{_'r-in-swimlane'}}
div.trigger-dropdown
input(id="swimlane-name2",type=text,placeholder="{{_'r-name'}}")
div.trigger-button.js-create-card-action.js-goto-rules
i.fa.fa-plus
button.trigger-button.js-create-card-action.js-goto-rules(type="button" aria-label="{{_ 'r-add-action'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -100,8 +100,8 @@ template(name="boardActions")
| {{_'r-in-swimlane'}}
div.trigger-dropdown
input(id="swimlaneName-link",type=text,placeholder="{{_'r-name'}}")
div.trigger-button.js-link-card-action.js-goto-rules
i.fa.fa-plus
button.trigger-button.js-link-card-action.js-goto-rules(type="button" aria-label="{{_ 'r-add-action'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -117,8 +117,8 @@ template(name="boardActions")
option(value="name") {{_'r-sort-name'}}
option(value="created") {{_'createdAt'}}
option(value="modified") {{_'modifiedAt'}}
div.trigger-button.js-sort-list-action.js-goto-rules
i.fa.fa-plus
button.trigger-button.js-sort-list-action.js-goto-rules(type="button" aria-label="{{_ 'r-add-action'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -130,8 +130,8 @@ template(name="boardActions")
| {{_'r-in-list'}}
div.trigger-dropdown
input(id="moveall-to-list",type=text,placeholder="{{_'r-list-name'}}")
div.trigger-button.js-move-all-cards-action.js-goto-rules
i.fa.fa-plus
button.trigger-button.js-move-all-cards-action.js-goto-rules(type="button" aria-label="{{_ 'r-add-action'}}")
i.fa.fa-plus(aria-hidden="true")
@@ -38,7 +38,7 @@ Template.boardActions.helpers({
loadingBoardsLabel() {
try {
const txt = TAPi18n.__('loading-boards');
const txt = TAPi18n.__('loading');
if (txt && !txt.startsWith("key '")) return txt;
} catch (e) {
// ignore translation lookup errors
@@ -15,8 +15,8 @@ template(name="cardActions")
option(value="receivedAt") {{_'r-df-received-at'}}
div.trigger-text
| {{_'r-to-current-datetime'}}
div.trigger-button.js-set-date-action.js-goto-rules
i.fa.fa-plus
button.trigger-button.js-set-date-action.js-goto-rules(type="button" aria-label="{{_ 'r-add-action'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -29,8 +29,8 @@ template(name="cardActions")
option(value="dueAt") {{_'r-df-due-at'}}
option(value="endAt") {{_'r-df-end-at'}}
option(value="receivedAt") {{_'r-df-received-at'}}
div.trigger-button.js-remove-datevalue-action.js-goto-rules
i.fa.fa-plus
button.trigger-button.js-remove-datevalue-action.js-goto-rules(type="button" aria-label="{{_ 'r-add-action'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -45,8 +45,8 @@ template(name="cardActions")
each labels
option(value="#{_id}")
= name
div.trigger-button.js-add-label-action.js-goto-rules
i.fa.fa-plus
button.trigger-button.js-add-label-action.js-goto-rules(type="button" aria-label="{{_ 'r-add-action'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -58,29 +58,29 @@ template(name="cardActions")
| {{_'r-member'}}
div.trigger-dropdown
input(id="member-name",type=text,placeholder="{{_'r-name'}}")
div.trigger-button.js-add-member-action.js-goto-rules
i.fa.fa-plus
button.trigger-button.js-add-member-action.js-goto-rules(type="button" aria-label="{{_ 'r-add-action'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
div.trigger-text
| {{_'r-add-actinguser-member'}}
div.trigger-button.js-add-actinguser-member-action.js-goto-rules
i.fa.fa-plus
button.trigger-button.js-add-actinguser-member-action.js-goto-rules(type="button" aria-label="{{_ 'r-add-action'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
div.trigger-text
| {{_'r-remove-all'}}
div.trigger-button.js-add-removeall-action.js-goto-rules
i.fa.fa-plus
button.trigger-button.js-add-removeall-action.js-goto-rules(type="button" aria-label="{{_ 'r-add-action'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
div.trigger-text
| {{_'r-remove-all-labels'}}
div.trigger-button.js-add-removealllabels-action.js-goto-rules
i.fa.fa-plus
button.trigger-button.js-add-removealllabels-action.js-goto-rules(type="button" aria-label="{{_ 'r-add-action'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -90,8 +90,8 @@ template(name="cardActions")
id="color-action"
class="card-details-{{cardColorButton}}")
| {{_ cardColorButtonText }}
div.trigger-button.js-set-color-action.js-goto-rules
i.fa.fa-plus
button.trigger-button.js-set-color-action.js-goto-rules(type="button" aria-label="{{_ 'select-color'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -99,8 +99,8 @@ template(name="cardActions")
select(id="complete-action")
option(value="markCardComplete") {{_'r-mark-complete'}}
option(value="markCardIncomplete") {{_'r-mark-incomplete'}}
div.trigger-button.js-set-complete-action.js-goto-rules
i.fa.fa-plus
button.trigger-button.js-set-complete-action.js-goto-rules(type="button" aria-label="{{_ 'r-add-action'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -123,8 +123,8 @@ template(name="cardActions")
option(value="months") {{_'r-unit-months'}}
div.trigger-text
| {{_'r-later'}}
div.trigger-button.js-set-reldate-action.js-goto-rules
i.fa.fa-plus
button.trigger-button.js-set-reldate-action.js-goto-rules(type="button" aria-label="{{_ 'r-add-action'}}")
i.fa.fa-plus(aria-hidden="true")
template(name="setCardActionsColorPopup")
form.edit-label
@@ -9,8 +9,8 @@ template(name="checklistActions")
| {{_'r-checklist'}}
div.trigger-dropdown
input(id="checklist-name",type=text,placeholder="{{_'r-name'}}")
div.trigger-button.js-add-checklist-action.js-goto-rules
i.fa.fa-plus
button.trigger-button.js-add-checklist-action.js-goto-rules(type="button" aria-label="{{_ 'r-add-action'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -22,8 +22,8 @@ template(name="checklistActions")
| {{_'r-items-check'}}
div.trigger-dropdown
input(id="checklist-name2",type=text,placeholder="{{_'r-name'}}")
div.trigger-button.js-add-checkall-action.js-goto-rules
i.fa.fa-plus
button.trigger-button.js-add-checkall-action.js-goto-rules(type="button" aria-label="{{_ 'r-add-action'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
@@ -40,8 +40,8 @@ template(name="checklistActions")
| {{_'r-of-checklist'}}
div.trigger-dropdown
input(id="checklist-name3",type=text,placeholder="{{_'r-name'}}")
div.trigger-button.js-add-check-item-action.js-goto-rules
i.fa.fa-plus
button.trigger-button.js-add-check-item-action.js-goto-rules(type="button" aria-label="{{_ 'r-add-action'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -53,8 +53,8 @@ template(name="checklistActions")
| {{_'r-with-items'}}
div.trigger-dropdown
input(id="checklist-items",type=text,placeholder="{{_'r-items-list'}}")
div.trigger-button.js-add-checklist-items-action.js-goto-rules
i.fa.fa-plus
button.trigger-button.js-add-checklist-items-action.js-goto-rules(type="button" aria-label="{{_ 'r-add-action'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -76,8 +76,8 @@ Template.checklistActions.events({
const data = Template.currentData();
const ruleName = data.ruleName.get();
const trigger = data.triggerVar.get();
const checkItemName = tpl.find('#checkitem-name');
const checklistName = tpl.find('#checklist-name3');
const checkItemName = tpl.find('#checkitem-name').value;
const checklistName = tpl.find('#checklist-name3').value;
const actionSelected = tpl.find('#check-item-action').value;
const boardId = Session.get('currentBoard');
const desc = Utils.getTriggerActionDesc(event, tpl);
@@ -9,5 +9,5 @@ template(name="mailActions")
textarea(id="email-msg")
div.trigger-hint.trigger-hint-email-vars
| {{_'r-email-vars-hint'}}
div.trigger-button.trigger-button-email.js-mail-action.js-goto-rules
i.fa.fa-plus
button.trigger-button.trigger-button-email.js-mail-action.js-goto-rules(type="button" aria-label="{{_ 'r-add-action'}}")
i.fa.fa-plus(aria-hidden="true")
@@ -17,15 +17,15 @@ template(name="boardTriggers")
| {{_'r-in-swimlane'}}
div.trigger-dropdown
input(id="create-swimlane-name",type=text,placeholder="{{_'r-swimlane-name'}}")
div.trigger-button.trigger-button-person.js-show-user-field
i.fa.fa-user
button.trigger-button.trigger-button-person.js-show-user-field(type="button" aria-label="{{_ 'username'}}")
i.fa.fa-user(aria-hidden="true")
div.user-details.hide-element
div.trigger-text
| {{_'r-by'}}
div.trigger-dropdown
input(class="user-name",type=text,placeholder="{{_'username'}}")
div.trigger-button.js-add-create-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-create-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item#trigger-three
div.trigger-content
@@ -35,15 +35,15 @@ template(name="boardTriggers")
i.fa.fa-search
div.trigger-text
| {{_'r-is-moved'}}
div.trigger-button.trigger-button-person.js-show-user-field
i.fa.fa-user
button.trigger-button.trigger-button-person.js-show-user-field(type="button" aria-label="{{_ 'username'}}")
i.fa.fa-user(aria-hidden="true")
div.user-details.hide-element
div.trigger-text
| {{_'r-by'}}
div.trigger-dropdown
input(class="user-name",type=text,placeholder="{{_'username'}}")
div.trigger-button.js-add-gen-moved-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-gen-moved-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item#trigger-four
div.trigger-content
@@ -65,15 +65,15 @@ template(name="boardTriggers")
| {{_'r-in-swimlane'}}
div.trigger-dropdown
input(id="create-swimlane-name-2",type=text,placeholder="{{_'r-swimlane-name'}}")
div.trigger-button.trigger-button-person.js-show-user-field
i.fa.fa-user
button.trigger-button.trigger-button-person.js-show-user-field(type="button" aria-label="{{_ 'username'}}")
i.fa.fa-user(aria-hidden="true")
div.user-details.hide-element
div.trigger-text
| {{_'r-by'}}
div.trigger-dropdown
input(class="user-name",type=text,placeholder="{{_'username'}}")
div.trigger-button.js-add-moved-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-moved-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item#trigger-five
div.trigger-content
@@ -87,15 +87,15 @@ template(name="boardTriggers")
select(id="arch-action")
option(value="archived") {{_'r-archived'}}
option(value="unarchived") {{_'r-unarchived'}}
div.trigger-button.trigger-button-person.js-show-user-field
i.fa.fa-user
button.trigger-button.trigger-button-person.js-show-user-field(type="button" aria-label="{{_ 'username'}}")
i.fa.fa-user(aria-hidden="true")
div.user-details.hide-element
div.trigger-text
| {{_'r-by'}}
div.trigger-dropdown
input(class="user-name",type=text,placeholder="{{_'username'}}")
div.trigger-button.js-add-arch-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-arch-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -9,5 +9,5 @@ template(name="buttonTriggers")
select#button-type.js-button-type
option(value="card" selected="selected") {{_'r-card-button'}}
option(value="board") {{_'r-board-button'}}
div.trigger-button.js-add-button-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-button-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
@@ -9,15 +9,15 @@ template(name="cardTriggers")
option(value="removed") {{_'r-removed-from'}}
div.trigger-text
| {{_'r-a-card'}}
div.trigger-button.trigger-button-person.js-show-user-field
i.fa.fa-user
button.trigger-button.trigger-button-person.js-show-user-field(type="button" aria-label="{{_ 'username'}}")
i.fa.fa-user(aria-hidden="true")
div.user-details.hide-element
div.trigger-text
| {{_'r-by'}}
div.trigger-dropdown
input(class="user-name",type=text,placeholder="{{_'username'}}")
div.trigger-button.js-add-gen-label-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-gen-label-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -40,15 +40,15 @@ template(name="cardTriggers")
option(value="removed") {{_'r-removed-from'}}
div.trigger-text
| {{_'r-a-card'}}
div.trigger-button.trigger-button-person.js-show-user-field
i.fa.fa-user
button.trigger-button.trigger-button-person.js-show-user-field(type="button" aria-label="{{_ 'username'}}")
i.fa.fa-user(aria-hidden="true")
div.user-details.hide-element
div.trigger-text
| {{_'r-by'}}
div.trigger-dropdown
input(class="user-name",type=text,placeholder="{{_'username'}}")
div.trigger-button.js-add-spec-label-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-spec-label-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -60,15 +60,15 @@ template(name="cardTriggers")
option(value="removed") {{_'r-removed-from'}}
div.trigger-text
| {{_'r-a-card'}}
div.trigger-button.trigger-button-person.js-show-user-field
i.fa.fa-user
button.trigger-button.trigger-button-person.js-show-user-field(type="button" aria-label="{{_ 'username'}}")
i.fa.fa-user(aria-hidden="true")
div.user-details.hide-element
div.trigger-text
| {{_'r-by'}}
div.trigger-dropdown
input(class="user-name",type=text,placeholder="{{_'username'}}")
div.trigger-button.js-add-gen-member-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-gen-member-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
@@ -89,15 +89,15 @@ template(name="cardTriggers")
option(value="removed") {{_'r-removed-from'}}
div.trigger-text
| {{_'r-a-card'}}
div.trigger-button.trigger-button-person.js-show-user-field
i.fa.fa-user
button.trigger-button.trigger-button-person.js-show-user-field(type="button" aria-label="{{_ 'username'}}")
i.fa.fa-user(aria-hidden="true")
div.user-details.hide-element
div.trigger-text
| {{_'r-by'}}
div.trigger-dropdown
input(class="user-name",type=text,placeholder="{{_'username'}}")
div.trigger-button.js-add-spec-member-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-spec-member-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -109,15 +109,15 @@ template(name="cardTriggers")
option(value="removed") {{_'r-removed-from'}}
div.trigger-text
| {{_'r-a-card'}}
div.trigger-button.trigger-button-person.js-show-user-field
i.fa.fa-user
button.trigger-button.trigger-button-person.js-show-user-field(type="button" aria-label="{{_ 'username'}}")
i.fa.fa-user(aria-hidden="true")
div.user-details.hide-element
div.trigger-text
| {{_'r-by'}}
div.trigger-dropdown
input(class="user-name",type=text,placeholder="{{_'username'}}")
div.trigger-button.js-add-gen-assignee-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-gen-assignee-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
@@ -138,15 +138,15 @@ template(name="cardTriggers")
option(value="removed") {{_'r-removed-from'}}
div.trigger-text
| {{_'r-a-card'}}
div.trigger-button.trigger-button-person.js-show-user-field
i.fa.fa-user
button.trigger-button.trigger-button-person.js-show-user-field(type="button" aria-label="{{_ 'username'}}")
i.fa.fa-user(aria-hidden="true")
div.user-details.hide-element
div.trigger-text
| {{_'r-by'}}
div.trigger-dropdown
input(class="user-name",type=text,placeholder="{{_'username'}}")
div.trigger-button.js-add-spec-assignee-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-spec-assignee-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -160,15 +160,15 @@ template(name="cardTriggers")
option(value="removed") {{_'r-attachment-removed-from'}}
div.trigger-text
| {{_'r-a-card'}}
div.trigger-button.trigger-button-person.js-show-user-field
i.fa.fa-user
button.trigger-button.trigger-button-person.js-show-user-field(type="button" aria-label="{{_ 'username'}}")
i.fa.fa-user(aria-hidden="true")
div.user-details.hide-element
div.trigger-text
| {{_'r-by'}}
div.trigger-dropdown
input(class="user-name",type=text,placeholder="{{_'username'}}")
div.trigger-button.js-add-attachment-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-attachment-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item(title="{{_'advanced-filter-description'}}")
div.trigger-content
@@ -176,8 +176,8 @@ template(name="cardTriggers")
| {{_'r-when-a-card-matches-advanced-filter'}}
div.trigger-dropdown
input(class="advanced-filter-trigger-value",type=text,placeholder="{{_'advanced-filter-label'}}")
div.trigger-button.js-add-advanced-filter-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-advanced-filter-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item(title="{{_'text-contains-trigger-description'}}")
div.trigger-content
@@ -185,61 +185,61 @@ template(name="cardTriggers")
| {{_'r-when-a-card-title-or-description-contains'}}
div.trigger-dropdown
input(class="text-contains-trigger-value",type=text,placeholder="{{_'text-contains-trigger-label'}}")
div.trigger-button.js-add-text-contains-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-text-contains-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
div.trigger-text
| {{_'r-when-a-due-date-changed'}}
div.trigger-button.trigger-button-person.js-show-user-field
i.fa.fa-user
button.trigger-button.trigger-button-person.js-show-user-field(type="button" aria-label="{{_ 'username'}}")
i.fa.fa-user(aria-hidden="true")
div.user-details.hide-element
div.trigger-text
| {{_'r-by'}}
div.trigger-dropdown
input(class="user-name",type=text,placeholder="{{_'username'}}")
div.trigger-button.js-add-due-date-changed-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-due-date-changed-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
div.trigger-text
| {{_'r-when-a-start-date-changed'}}
div.trigger-button.trigger-button-person.js-show-user-field
i.fa.fa-user
button.trigger-button.trigger-button-person.js-show-user-field(type="button" aria-label="{{_ 'username'}}")
i.fa.fa-user(aria-hidden="true")
div.user-details.hide-element
div.trigger-text
| {{_'r-by'}}
div.trigger-dropdown
input(class="user-name",type=text,placeholder="{{_'username'}}")
div.trigger-button.js-add-start-date-changed-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-start-date-changed-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
div.trigger-text
| {{_'r-when-a-end-date-changed'}}
div.trigger-button.trigger-button-person.js-show-user-field
i.fa.fa-user
button.trigger-button.trigger-button-person.js-show-user-field(type="button" aria-label="{{_ 'username'}}")
i.fa.fa-user(aria-hidden="true")
div.user-details.hide-element
div.trigger-text
| {{_'r-by'}}
div.trigger-dropdown
input(class="user-name",type=text,placeholder="{{_'username'}}")
div.trigger-button.js-add-end-date-changed-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-end-date-changed-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
div.trigger-text
| {{_'r-when-a-received-date-changed'}}
div.trigger-button.trigger-button-person.js-show-user-field
i.fa.fa-user
button.trigger-button.trigger-button-person.js-show-user-field(type="button" aria-label="{{_ 'username'}}")
i.fa.fa-user(aria-hidden="true")
div.user-details.hide-element
div.trigger-text
| {{_'r-by'}}
div.trigger-dropdown
input(class="user-name",type=text,placeholder="{{_'username'}}")
div.trigger-button.js-add-received-date-changed-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-received-date-changed-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
@@ -9,15 +9,15 @@ template(name="checklistTriggers")
option(value="removed") {{_'r-removed-from'}}
div.trigger-text
| {{_'r-a-card'}}
div.trigger-button.trigger-button-person.js-show-user-field
i.fa.fa-user
button.trigger-button.trigger-button-person.js-show-user-field(type="button" aria-label="{{_ 'username'}}")
i.fa.fa-user(aria-hidden="true")
div.user-details.hide-element
div.trigger-text
| {{_'r-by'}}
div.trigger-dropdown
input(class="user-name",type=text,placeholder="{{_'username'}}")
div.trigger-button.js-add-gen-check-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-gen-check-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
@@ -38,15 +38,15 @@ template(name="checklistTriggers")
option(value="removed") {{_'r-removed-from'}}
div.trigger-text
| {{_'r-a-card'}}
div.trigger-button.trigger-button-person.js-show-user-field
i.fa.fa-user
button.trigger-button.trigger-button-person.js-show-user-field(type="button" aria-label="{{_ 'username'}}")
i.fa.fa-user(aria-hidden="true")
div.user-details.hide-element
div.trigger-text
| {{_'r-by'}}
div.trigger-dropdown
input(class="user-name",type=text,placeholder="{{_'username'}}")
div.trigger-button.js-add-spec-check-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-spec-check-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -56,15 +56,15 @@ template(name="checklistTriggers")
select(id="gen-comp-check-action")
option(value="completed") {{_'r-completed'}}
option(value="uncompleted") {{_'r-made-incomplete'}}
div.trigger-button.trigger-button-person.js-show-user-field
i.fa.fa-user
button.trigger-button.trigger-button-person.js-show-user-field(type="button" aria-label="{{_ 'username'}}")
i.fa.fa-user(aria-hidden="true")
div.user-details.hide-element
div.trigger-text
| {{_'r-by'}}
div.trigger-dropdown
input(class="user-name",type=text,placeholder="{{_'username'}}")
div.trigger-button.js-add-gen-comp-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-gen-comp-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -82,15 +82,15 @@ template(name="checklistTriggers")
select(id="spec-comp-check-action")
option(value="completed") {{_'r-completed'}}
option(value="uncompleted") {{_'r-made-incomplete'}}
div.trigger-button.trigger-button-person.js-show-user-field
i.fa.fa-user
button.trigger-button.trigger-button-person.js-show-user-field(type="button" aria-label="{{_ 'username'}}")
i.fa.fa-user(aria-hidden="true")
div.user-details.hide-element
div.trigger-text
| {{_'r-by'}}
div.trigger-dropdown
input(class="user-name",type=text,placeholder="{{_'username'}}")
div.trigger-button.js-add-spec-comp-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-spec-comp-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -100,15 +100,15 @@ template(name="checklistTriggers")
select(id="check-item-gen-action")
option(value="checked") {{_'r-checked'}}
option(value="unchecked") {{_'r-unchecked'}}
div.trigger-button.trigger-button-person.js-show-user-field
i.fa.fa-user
button.trigger-button.trigger-button-person.js-show-user-field(type="button" aria-label="{{_ 'username'}}")
i.fa.fa-user(aria-hidden="true")
div.user-details.hide-element
div.trigger-text
| {{_'r-by'}}
div.trigger-dropdown
input(class="user-name",type=text,placeholder="{{_'username'}}")
div.trigger-button.js-add-gen-check-item-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-gen-check-item-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item
div.trigger-content
@@ -126,12 +126,12 @@ template(name="checklistTriggers")
select(id="check-item-spec-action")
option(value="checked") {{_'r-checked'}}
option(value="unchecked") {{_'r-unchecked'}}
div.trigger-button.trigger-button-person.js-show-user-field
i.fa.fa-user
button.trigger-button.trigger-button-person.js-show-user-field(type="button" aria-label="{{_ 'username'}}")
i.fa.fa-user(aria-hidden="true")
div.user-details.hide-element
div.trigger-text
| {{_'r-by'}}
div.trigger-dropdown
input(class="user-name",type=text,placeholder="{{_'username'}}")
div.trigger-button.js-add-spec-check-item-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-spec-check-item-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
@@ -39,8 +39,8 @@ template(name="scheduledTriggers")
| {{_'r-of-cards-in-list'}}
div.trigger-dropdown
input#schedule-list-name(type=text placeholder="{{_'r-list-name'}}")
div.trigger-button.js-add-scheduled-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-scheduled-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item#trigger-due
div.trigger-content
@@ -59,8 +59,8 @@ template(name="scheduledTriggers")
| {{_'r-schedule-at-time'}}
div.trigger-dropdown
+calendarTimeInput(inputId="due-time" value="09:00")
div.trigger-button.js-add-due-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-due-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
div.trigger-item#trigger-aging
div.trigger-content
@@ -76,5 +76,5 @@ template(name="scheduledTriggers")
| {{_'r-schedule-at-time'}}
div.trigger-dropdown
+calendarTimeInput(inputId="aging-time" value="09:00")
div.trigger-button.js-add-aging-trigger.js-goto-action
i.fa.fa-plus
button.trigger-button.js-add-aging-trigger.js-goto-action(type="button" aria-label="{{_ 'r-add-trigger'}}")
i.fa.fa-plus(aria-hidden="true")
@@ -1,5 +1,4 @@
template(name="adminProblems")
+attachmentViewer
.setting-content.admin-reports-content
unless currentUser.isAdmin
| {{_ 'error-notAuthorized'}}
+1 -1
View File
@@ -687,7 +687,7 @@ template(name="settingsOrgPopup")
//
i.fa.fa-user
//
| {{_ 'impersonate-org'}}
| {{_ 'impersonate-user'}}
//
//
+3 -17
View File
@@ -1,3 +1,4 @@
import { accountOperationErrorKey } from '/client/lib/accountOperationError';
import { formatDateForDisplay } from '/client/lib/dateDisplay';
import { ReactiveCache } from '/imports/reactiveCache';
import { TAPi18n } from '/imports/i18n';
@@ -2587,16 +2588,7 @@ Template.settingsUserPopup.events({
if (process.env.DEBUG === 'true') {
console.error('Error removing user:', error);
}
// Show error message to user
if (error.error === 'not-authorized') {
alert('You are not authorized to delete this user.');
} else if (error.error === 'user-not-found') {
alert('User not found.');
} else if (error.error === 'not-authorized' && error.reason === 'Cannot delete the last administrator') {
alert('Cannot delete the last administrator.');
} else {
alert('Error deleting user: ' + error.reason);
}
alert(TAPi18n.__(accountOperationErrorKey(error)));
} else {
if (process.env.DEBUG === 'true') {
console.log('User deleted successfully:', result);
@@ -2619,13 +2611,7 @@ Template.settingsUserPopup.events({
if (process.env.DEBUG === 'true') {
console.error('Error anonymizing user:', error);
}
if (error.error === 'not-authorized') {
alert('You are not authorized to anonymize this user.');
} else if (error.error === 'user-not-found') {
alert('User not found.');
} else {
alert('Error anonymizing user: ' + error.reason);
}
alert(TAPi18n.__(accountOperationErrorKey(error)));
} else {
if (process.env.DEBUG === 'true') {
console.log('User anonymized successfully:', result);
@@ -360,6 +360,17 @@ template(name='tableVisibilityModeSettings')
a.flex.js-toggle-all-boards-hide
.materialCheckBox#hide-board-member-list(class="{{#if currentSetting.hideBoardMemberList}}is-checked{{/if}}")
span {{_ 'board-member-list'}}
li.tableVisibilityMode-form
a.flex.js-toggle-all-boards-hide
.materialCheckBox#hide-date-format(class="{{#if currentSetting.hideDateFormat}}is-checked{{/if}}")
span {{_ 'date-format-for-everyone'}}:
select.wekan-form-control#global-date-format(aria-label="{{_ 'date-format-for-everyone'}}")
option(value="YYYY-MM-DD" selected="{{#if isGlobalDateFormat 'YYYY-MM-DD'}}selected{{/if}}") {{_ 'date-format-yyyy-mm-dd'}} · {{_ 'time'}}
option(value="DD-MM-YYYY" selected="{{#if isGlobalDateFormat 'DD-MM-YYYY'}}selected{{/if}}") {{_ 'date-format-dd-mm-yyyy'}} · {{_ 'time'}}
option(value="MM-DD-YYYY" selected="{{#if isGlobalDateFormat 'MM-DD-YYYY'}}selected{{/if}}") {{_ 'date-format-mm-dd-yyyy'}} · {{_ 'time'}}
option(value="YYYY-MM-DD-date-only" selected="{{#if isGlobalDateFormat 'YYYY-MM-DD-date-only'}}selected{{/if}}") {{_ 'date'}}: {{_ 'date-format-yyyy-mm-dd'}}
option(value="DD-MM-YYYY-date-only" selected="{{#if isGlobalDateFormat 'DD-MM-YYYY-date-only'}}selected{{/if}}") {{_ 'date'}}: {{_ 'date-format-dd-mm-yyyy'}}
option(value="MM-DD-YYYY-date-only" selected="{{#if isGlobalDateFormat 'MM-DD-YYYY-date-only'}}selected{{/if}}") {{_ 'date'}}: {{_ 'date-format-mm-dd-yyyy'}}
li.tableVisibilityMode-form
.title {{_ 'wait-spinner'}}
+selectSpinnerName(spinnerName=currentSetting.spinnerName)
@@ -901,6 +901,9 @@ Template.setting.events({
});
Template.tableVisibilityModeSettings.helpers({
isGlobalDateFormat(format) {
return (ReactiveCache.getCurrentSetting()?.globalDateFormat || 'YYYY-MM-DD') === format;
},
// Multitenancy option D: every group of this pane except "Change color" writes
// the INSTANCE settings, so only the site admin is shown them.
isSiteAdmin() {
@@ -1009,11 +1012,15 @@ Template.tableVisibilityModeSettings.events({
['#hide-board-activities', 'hideBoardActivitiesOnAllBoards'],
['#hide-card-counter-list', 'hideCardCounterList'],
['#hide-board-member-list', 'hideBoardMemberList'],
['#hide-date-format', 'hideDateFormat'],
]) {
if ($(selector).length) {
$set[key] = $(selector).hasClass('is-checked');
}
}
if ($('#global-date-format').length) {
$set.globalDateFormat = visibilityText('#global-date-format');
}
if ($('#spinnerName').length) {
$set.spinnerName = visibilityText('#spinnerName');
}
@@ -57,7 +57,7 @@ template(name="newTranslationPopup")
label
| {{_ 'text'}}
span.error.hide.text-taken
| {{_ 'error-text-taken'}}
| {{_ 'editTranslationPopup-title'}}
input.js-translation-text(type="text" value="" required)
label
| {{_ 'translation-text'}}
@@ -1,3 +1,4 @@
import { TAPi18n } from '/imports/i18n';
import { ReactiveCache } from '/imports/reactiveCache';
import { buildHeader, pageInfo, TABLE_PAGE_ROWS_PER_PAGE } from '/models/lib/tablePage';
@@ -52,7 +53,7 @@ Template.translationSettings.onCreated(function () {
if (value === '') {
this.findTranslationsOptions.set({});
} else {
const regex = new RegExp(value, 'i');
const regex = new RegExp(value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), 'i');
this.findTranslationsOptions.set({
$or: [
{ language: regex },
@@ -210,7 +211,9 @@ Template.newTranslationPopup.events({
if (error) {
const errorElement = error.error;
if (errorElement === 'text-already-taken') {
textMessageElement.show();
textMessageElement.text(`${TAPi18n.__('editTranslationPopup-title')}: ${text} (${language})`).show();
} else {
textMessageElement.text(TAPi18n.__('server-error')).show();
}
} else {
textMessageElement.hide();
@@ -218,7 +221,6 @@ Template.newTranslationPopup.events({
}
},
);
Popup.back();
},
});
+10 -3
View File
@@ -161,7 +161,7 @@
.card-field-order-columns {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-columns: repeat(2, minmax(0, 1fr));
column-gap: 18px;
align-items: start;
}
@@ -179,7 +179,7 @@
display: flex;
align-items: center;
gap: 6px;
padding: 4px 0;
padding: calc(4px * min(1, var(--wekan-ui-font-scale, 1))) 0;
border-bottom: 1px solid #eee;
}
@@ -190,7 +190,7 @@
.card-field-order-move.is-disabled {
opacity: 0.3;
pointer-events: none;
cursor: not-allowed;
}
.card-field-order-label {
@@ -785,3 +785,10 @@ body.sidebar-resizing-active {
cursor: pointer;
}
/* Stack the two settings columns without changing single-side desktop headings. */
@media screen and (max-width: 800px) {
.card-field-order-columns { grid-template-columns: minmax(0, 1fr); }
}
.card-field-order-column { min-width: 0; }
.card-field-order-label { overflow-wrap: anywhere; }
+4 -4
View File
@@ -300,9 +300,9 @@ template(name="boardCardSettingsPopup")
a.flex.card-field-order-toggle(class=row.toggle class="{{#if row.checked}}is-checked{{/if}}" title="{{row.title}}")
i.fa(class="{{#if row.checked}}fa-check{{else}}fa-square-o{{/if}}")
if canModifyBoard
a.flex.card-field-order-move.js-card-field-order-up(href="#" role="button" class="{{#unless row.canMoveUp}}is-disabled{{/unless}}" title="{{_ 'card-field-order-move-up'}}" aria-label="{{_ 'card-field-order-move-up'}}")
a.flex.card-field-order-move.js-card-field-order-up(href="#" role="button" class="{{#unless row.canMoveUp}}is-disabled{{/unless}}" aria-disabled="{{#if row.canMoveUp}}false{{else}}true{{/if}}" title="{{#if row.canMoveUp}}{{_ 'card-field-order-move-up'}}{{else}}{{_ 'r-rule-disabled'}}{{/if}}" aria-label="{{_ 'card-field-order-move-up'}}")
i.fa.fa-arrow-up
a.flex.card-field-order-move.js-card-field-order-down(href="#" role="button" class="{{#unless row.canMoveDown}}is-disabled{{/unless}}" title="{{_ 'card-field-order-move-down'}}" aria-label="{{_ 'card-field-order-move-down'}}")
a.flex.card-field-order-move.js-card-field-order-down(href="#" role="button" class="{{#unless row.canMoveDown}}is-disabled{{/unless}}" aria-disabled="{{#if row.canMoveDown}}false{{else}}true{{/if}}" title="{{#if row.canMoveDown}}{{_ 'card-field-order-move-down'}}{{else}}{{_ 'r-rule-disabled'}}{{/if}}" aria-label="{{_ 'card-field-order-move-down'}}")
i.fa.fa-arrow-down
span.card-field-order-label
each icon in row.icons
@@ -326,9 +326,9 @@ template(name="boardCardSettingsPopup")
a.flex.card-field-order-toggle(class=row.toggle class="{{#if row.checked}}is-checked{{/if}}" title="{{row.title}}")
i.fa(class="{{#if row.checked}}fa-check{{else}}fa-square-o{{/if}}")
if canModifyBoard
a.flex.card-field-order-move.js-card-field-order-up(href="#" role="button" class="{{#unless row.canMoveUp}}is-disabled{{/unless}}" title="{{_ 'card-field-order-move-up'}}" aria-label="{{_ 'card-field-order-move-up'}}")
a.flex.card-field-order-move.js-card-field-order-up(href="#" role="button" class="{{#unless row.canMoveUp}}is-disabled{{/unless}}" aria-disabled="{{#if row.canMoveUp}}false{{else}}true{{/if}}" title="{{#if row.canMoveUp}}{{_ 'card-field-order-move-up'}}{{else}}{{_ 'r-rule-disabled'}}{{/if}}" aria-label="{{_ 'card-field-order-move-up'}}")
i.fa.fa-arrow-up
a.flex.card-field-order-move.js-card-field-order-down(href="#" role="button" class="{{#unless row.canMoveDown}}is-disabled{{/unless}}" title="{{_ 'card-field-order-move-down'}}" aria-label="{{_ 'card-field-order-move-down'}}")
a.flex.card-field-order-move.js-card-field-order-down(href="#" role="button" class="{{#unless row.canMoveDown}}is-disabled{{/unless}}" aria-disabled="{{#if row.canMoveDown}}false{{else}}true{{/if}}" title="{{#if row.canMoveDown}}{{_ 'card-field-order-move-down'}}{{else}}{{_ 'r-rule-disabled'}}{{/if}}" aria-label="{{_ 'card-field-order-move-down'}}")
i.fa.fa-arrow-down
span.card-field-order-label
each icon in row.icons
+26 -1
View File
@@ -1836,7 +1836,7 @@ function buildCardSettingsRows(side, data) {
toggle: spec.toggle,
checked: typeof helper === 'function' ? Boolean(helper.call(data)) : false,
icons: row.icons,
title: row.label.map(k => TAPi18n.__(k)).join(' '),
title: row.label.map(k => TAPi18n.__(k)).join(row.labelSeparator || ' '),
personal: Boolean(spec.personal),
labelTextOverride: Boolean(spec.labelTextOverride),
canMoveUp: positioned && canMove(stored, layout, row.key, 'up'),
@@ -1852,6 +1852,10 @@ function buildCardSettingsRows(side, data) {
// allowsLabels}}` read, defaults and fallbacks included, without a second
// copy of that logic. Registered at the end of the object.
const boardCardSettingsHelpers = {
allowsMinicardCollapse() { return ReactiveCache.getBoard(Session.get('currentBoard'))?.allowsMinicardCollapse !== false; },
labelsAboveTitleOnMinicard() { return ReactiveCache.getBoard(Session.get('currentBoard'))?.labelsAboveTitleOnMinicard === true; },
allowsChecklistDueDate() { return ReactiveCache.getBoard(Session.get('currentBoard'))?.allowsChecklistDueDate !== false; },
allowsChecklistTitle() { return ReactiveCache.getBoard(Session.get('currentBoard'))?.allowsChecklistTitle !== false; },
// Board Settings / Card Settings shows both columns - "Show on Card" and
// "Show on Minicard" beside each other. The card's own menu and the
// minicard's menu open the SAME popup asking for one of them, and the other
@@ -2311,6 +2315,7 @@ Template.boardCardSettingsPopup.helpers(boardCardSettingsHelpers);
// board's setter, which normalises it. models/lib/cardFieldOrder.js
function moveCardSettingsRow(evt, direction) {
evt.preventDefault();
if (evt.currentTarget.classList.contains('is-disabled')) return;
const rowEl = evt.currentTarget.closest('.js-card-field-order-row');
if (!rowEl) return;
const { key, side } = rowEl.dataset;
@@ -2544,6 +2549,26 @@ Template.boardCardSettingsPopup.events({
const newValue = !tpl.currentBoard.allowsDescriptionText;
Boards.update(tpl.currentBoard._id, { $set: { allowsDescriptionText: newValue } });
},
'click .js-field-minicard-collapse'(evt, tpl) {
evt.preventDefault();
const value = tpl.currentBoard.allowsMinicardCollapse !== false;
Boards.update(tpl.currentBoard._id, { $set: { allowsMinicardCollapse: !value } });
},
'click .js-field-labels-above-title'(evt, tpl) {
evt.preventDefault();
const value = tpl.currentBoard.labelsAboveTitleOnMinicard === true;
Boards.update(tpl.currentBoard._id, { $set: { labelsAboveTitleOnMinicard: !value } });
},
'click .js-field-checklist-due-date'(evt, tpl) {
evt.preventDefault();
const value = tpl.currentBoard.allowsChecklistDueDate !== false;
Boards.update(tpl.currentBoard._id, { $set: { allowsChecklistDueDate: !value } });
},
'click .js-field-checklist-title'(evt, tpl) {
evt.preventDefault();
const value = tpl.currentBoard.allowsChecklistTitle !== false;
Boards.update(tpl.currentBoard._id, { $set: { allowsChecklistTitle: !value } });
},
'click .js-field-has-checklists'(evt, tpl) {
evt.preventDefault();
const newValue = !tpl.currentBoard.allowsChecklists;
@@ -110,7 +110,7 @@ template(name="archivesSidebar")
+spinner
template(name="restoreArchivedCardToListPopup")
p {{_ 'no-list-found'}}, {{_ 'select-list'}}:
p {{_ 'error-list-doesNotExist'}}, {{_ 'list'}}:
select.js-select-restore-target-list(autofocus)
each availableLists
option(value="{{_id}}" selected="{{#if isSelectedList _id}}selected{{/if}}") {{add @index 1}}. {{title}}
@@ -119,7 +119,7 @@ template(name="restoreArchivedCardToListPopup")
button.primary.confirm.js-restore-card-to-list {{_ 'restore'}}
template(name="restoreArchivedListToSwimlanePopup")
p {{_ 'no-swimlane-found'}}, {{_ 'select-swimlane'}}:
p {{_ 'no-results'}}, {{_ 'wip-limit-group-select-swimlane'}}:
select.js-select-restore-target-swimlane(autofocus)
each availableSwimlanes
option(value="{{_id}}" selected="{{#if isSelectedSwimlane _id}}selected{{/if}}") {{add @index 1}}. {{isTitleDefault title}}
+1 -1
View File
@@ -3,7 +3,7 @@ template(name='passwordInput')
label(for='at-field-{{_id}}') {{displayName}}
.password-input-container
input.password-field(type="{{type}}" placeholder="{{displayName}}" autocomplete="{{autocomplete}}" required="{{required}}")
button.password-toggle-btn.primary(type="button" tabindex="-1" aria-label="{{_ 'password'}}: {{_ 'visibility'}}" title="{{_ 'password'}}: {{_ 'visibility'}}")
button.password-toggle-btn.primary(type="button" aria-label="{{_ 'password'}}: {{_ 'visibility'}}" title="{{_ 'password'}}: {{_ 'visibility'}}")
i.fa.fa-eye.eye-icon(aria-hidden="true")
i.fa.fa-eye-slash.eye-slash-icon(aria-hidden="true")
if errs
+3 -2
View File
@@ -1,3 +1,4 @@
import { accountOperationErrorKey } from '/client/lib/accountOperationError';
import { languageFlags, languageLabelParts } from '/imports/i18n/languageFlags';
const { availableCalendarSystems } = require('/imports/lib/calendarSystems');
import { ReactiveCache } from '/imports/reactiveCache';
@@ -258,7 +259,7 @@ Template.editProfilePopup.events({
if (process.env.DEBUG === 'true') {
console.error('Error removing user:', error);
}
alert('Error deleting account: ' + error.reason);
alert(TAPi18n.__(accountOperationErrorKey(error)));
} else {
if (process.env.DEBUG === 'true') {
console.log('User deleted successfully:', result);
@@ -277,7 +278,7 @@ Template.editProfilePopup.events({
if (process.env.DEBUG === 'true') {
console.error('Error anonymizing user:', error);
}
alert('Error anonymizing account: ' + error.reason);
alert(TAPi18n.__(accountOperationErrorKey(error)));
} else {
if (process.env.DEBUG === 'true') {
console.log('User anonymized successfully:', result);
+8
View File
@@ -0,0 +1,8 @@
// Keep server diagnostics in the console; show existing localized UI messages.
// The last-admin case must precede the general authorization failure.
export function accountOperationErrorKey(error) {
if (error?.error === 'not-authorized' && error.reason === 'Cannot delete the last administrator') return 'last-admin-desc';
if (error?.error === 'not-authorized') return 'error-notAllowed';
if (error?.error === 'user-not-found') return 'error-user-doesNotExist';
return 'server-error';
}
+10 -4
View File
@@ -1,3 +1,4 @@
const { resolveDateFormat } = require('/models/lib/dateFormatPolicy');
import { ReactiveCache } from '/imports/reactiveCache';
import { formatDateByUserPreference } from '/imports/lib/dateUtils';
import { formatJalaliDate, gregorianToJalali } from '/imports/lib/jalaliDate';
@@ -5,21 +6,26 @@ import { TAPi18n } from '/imports/i18n';
const { CALENDAR_SYSTEMS, formatNativeCalendarDate, nativeCalendarParts } = require('/imports/lib/calendarSystems');
const { calendarMonthRange, shiftedDay } = require('/imports/lib/calendarMonth');
export function isDateFormatForced() {
return !!ReactiveCache.getCurrentSetting()?.hideDateFormat;
}
export function dateDisplayPreferences() {
const setting = ReactiveCache.getCurrentSetting();
const user = ReactiveCache.getCurrentUser();
if (user) {
return {
calendarSystem: user.getCalendarSystem ? user.getCalendarSystem() : 'gregorian',
dateFormat: user.getDateFormat ? user.getDateFormat() : 'YYYY-MM-DD',
dateFormat: resolveDateFormat(user.getDateFormat ? user.getDateFormat() : null, setting),
};
}
try {
return {
calendarSystem: window.localStorage.getItem('calendarSystem') || 'gregorian',
dateFormat: window.localStorage.getItem('dateFormat') || 'YYYY-MM-DD',
dateFormat: resolveDateFormat(window.localStorage.getItem('dateFormat'), setting),
};
} catch (error) {
return { calendarSystem: 'gregorian', dateFormat: 'YYYY-MM-DD' };
return { calendarSystem: 'gregorian', dateFormat: resolveDateFormat(null, setting) };
}
}
@@ -46,7 +52,7 @@ export function formatDateForDisplay(date, includeTime = true, gregorianFormatte
);
if (system) return text || '';
}
return gregorianFormatter
return gregorianFormatter && !isDateFormatForced() && !dateFormat.endsWith('-date-only')
? gregorianFormatter(value)
: formatDateByUserPreference(value, dateFormat, includeTime);
}
+41 -11
View File
@@ -31,6 +31,15 @@ export class BoardSwimlaneListDialog {
this.selectedBoardId = new ReactiveVar(this.currentBoardId);
this.selectedSwimlaneId = new ReactiveVar('');
this.selectedListId = new ReactiveVar('');
this.loading = new ReactiveVar(true);
this.error = new ReactiveVar('');
this.saving = new ReactiveVar(false);
this._request = 0;
this.tpl.view?.onViewDestroyed(() => {
this._disposed = true;
this._request++;
this._boardSubscription?.stop();
});
this.setOption(this.currentBoardId);
}
@@ -99,7 +108,7 @@ export class BoardSwimlaneListDialog {
setFirstSwimlaneId() {
try {
const board = ReactiveCache.getBoard(this.selectedBoardId.get());
const swimlaneId = board.swimlanes()[0]._id;
const swimlaneId = board?.swimlanes()[0]?._id || '';
this.selectedSwimlaneId.set(swimlaneId);
} catch (e) {}
}
@@ -124,6 +133,7 @@ export class BoardSwimlaneListDialog {
const selector = {
boardId,
archived: false,
deletedAt: null,
};
if (swimlaneId) {
@@ -197,7 +207,7 @@ export class BoardSwimlaneListDialog {
/** returns all available swimlanes of the current board */
swimlanes() {
const board = ReactiveCache.getBoard(this.selectedBoardId.get());
return board.swimlanes();
return board?.swimlanes() || [];
}
/** returns all available lists of the current board */
@@ -233,16 +243,36 @@ export class BoardSwimlaneListDialog {
/** get the board data from the server */
getBoardData(boardId) {
const self = this;
Meteor.subscribe('board', boardId, false, {
onReady() {
const sameBoardId = self.selectedBoardId.get() == boardId;
self.selectedBoardId.set(boardId);
if (!sameBoardId) {
self.setFirstSwimlaneId();
self.setFirstListId();
const changed = this.selectedBoardId.get() !== boardId;
const request = ++this._request;
this._boardSubscription?.stop();
this.selectedBoardId.set(boardId);
this.loading.set(true);
this.error.set('');
if (changed) {
this.selectedSwimlaneId.set('');
this.selectedListId.set('');
this.selectedCardId?.set('');
}
if (!boardId) return;
this._boardSubscription = this.tpl.subscribe('board', boardId, false, {
onReady: () => {
if (this._disposed || request !== this._request) return;
const lanes = this.swimlanes();
if (!lanes.some(lane => lane._id === this.selectedSwimlaneId.get())) this.setFirstSwimlaneId();
if (!this.lists().some(list => list._id === this.selectedListId.get())) this.setFirstListId();
if (this.selectedCardId && !this.cards().some(card => card._id === this.selectedCardId.get())) {
this.selectedCardId.set('');
}
this.loading.set(false);
},
onStop: error => {
if (this._disposed || request !== this._request || !error) return;
this.selectedSwimlaneId.set('');
this.selectedListId.set('');
this.selectedCardId?.set('');
this.error.set(TAPi18n.__('server-error'));
this.loading.set(false);
},
});
}
+2 -22
View File
@@ -1,4 +1,3 @@
import { Meteor } from 'meteor/meteor';
import { ReactiveVar } from 'meteor/reactive-var';
import { ReactiveCache } from '/imports/reactiveCache';
import { BoardSwimlaneListDialog } from '/client/lib/dialogWithBoardSwimlaneList';
@@ -10,7 +9,7 @@ import { BoardSwimlaneListDialog } from '/client/lib/dialogWithBoardSwimlaneList
export class BoardSwimlaneListCardDialog extends BoardSwimlaneListDialog {
constructor(tpl, callbacks = {}) {
super(tpl, callbacks);
this.selectedCardId = new ReactiveVar('');
this.selectedCardId = new ReactiveVar(this.cardOption.cardId || '');
}
getDefaultOption() {
@@ -46,26 +45,7 @@ export class BoardSwimlaneListCardDialog extends BoardSwimlaneListDialog {
/** returns if the card id was the last confirmed one */
isDialogOptionCardId(cardId) {
return this.cardOption.cardId == cardId;
}
/** Override to also reset card id on board change */
getBoardData(boardId) {
const self = this;
Meteor.subscribe('board', boardId, false, {
onReady() {
const sameBoardId = self.selectedBoardId.get() == boardId;
self.selectedBoardId.set(boardId);
if (!sameBoardId) {
self.setFirstSwimlaneId();
self.setFirstListId();
if (self.selectedCardId) {
self.selectedCardId.set('');
}
}
},
});
return this.selectedCardId.get() === cardId;
}
}
+1 -1
View File
@@ -31,7 +31,7 @@ const MOVE_CANCEL_PX = 10; // finger moving this far before the hold = a scroll
// and jQuery-UI sortables (lists / swimlanes / cards) already have touch via
// touch-punch, so leave them to it.
const EXCLUDE =
'input, select, textarea, .note-editable, .ui-sortable, .ui-sortable-handle';
'input, select, textarea, .ui-sortable, .ui-sortable-handle';
function draggableAncestor(el) {
while (el && el !== document.body) {
+1 -1
View File
@@ -33,7 +33,7 @@ function isExcluded(target) {
// .js-list-handle) must be excluded too: those start a jQuery UI
// sortable reorder via touch-punch, and hijacking the touch to scroll
// here would block dragging the handle to reorder swimlanes/lists.
'input, select, textarea, .note-editable, .nodragscroll, .handle, .ui-sortable-handle',
'input, select, textarea, .nodragscroll, .handle, .ui-sortable-handle',
)
);
}
+5 -3
View File
@@ -1,3 +1,4 @@
const { resolveDateFormat } = require('/models/lib/dateFormatPolicy');
import { ReactiveCache } from '/imports/reactiveCache';
import { TAPi18n } from '/imports/i18n';
@@ -44,12 +45,13 @@ export function browserTimezone() {
// back to, which the server cannot see at all. An export of a card should print
// its dates the way the card prints them.
export function cardDateFormat() {
const setting = ReactiveCache.getCurrentSetting();
try {
const currentUser = ReactiveCache.getCurrentUser();
if (currentUser) return currentUser.getDateFormat();
return window.localStorage.getItem('dateFormat') || 'YYYY-MM-DD';
if (currentUser) return resolveDateFormat(currentUser.getDateFormat(), setting);
return resolveDateFormat(window.localStorage.getItem('dateFormat'), setting);
} catch (error) {
return 'YYYY-MM-DD';
return resolveDateFormat(null, setting);
}
}
+2 -1
View File
@@ -1,3 +1,4 @@
import { resolveDateFormat } from '/models/lib/dateFormatPolicy';
import { Blaze } from 'meteor/blaze';
import { Tracker } from 'meteor/tracker';
import { ReactiveCache } from '/imports/reactiveCache';
@@ -410,7 +411,7 @@ class AdvancedFilter {
user && typeof user.getDateFormat === 'function'
? user.getDateFormat()
: 'YYYY-MM-DD';
dayFirst = /^D/.test(dateFormat);
dayFirst = /^D/.test(resolveDateFormat(dateFormat, ReactiveCache.getCurrentSetting()));
} catch (error) {
dayFirst = false;
}
+1 -1
View File
@@ -40,7 +40,7 @@ function isExcluded(target) {
target.closest &&
// Form fields keep their own behaviour (the zoom-level input lives in the
// quick-access bar), and `.nodragscroll` opts an element out explicitly.
target.closest('input, select, textarea, .note-editable, .nodragscroll')
target.closest('input, select, textarea, .nodragscroll')
);
}
+5
View File
@@ -46,6 +46,9 @@ hotkeys.filter = (event) => {
if (currentElement instanceof HTMLInputElement || currentElement instanceof HTMLSelectElement || currentElement instanceof HTMLTextAreaElement)
return false;
if (currentElement.closest('button, a[href], summary, [role="button"], [role="tab"], [role="checkbox"]'))
return false;
// We can trigger events!
return true;
};
@@ -165,6 +168,7 @@ hotkeys(shiftNums, (event, handler) => {
}
const currentBoardId = Session.get('currentBoard');
const board = ReactiveCache.getBoard(currentBoardId);
if (!board) return;
const labels = board.labels;
if (MultiSelection.isActive()) {
const cardIds = MultiSelection.getSelectedCardIds();
@@ -188,6 +192,7 @@ hotkeys(nums, (event, handler) => {
return;
}
const board = ReactiveCache.getBoard(currentBoardId);
if (!board) return;
const labels = board.labels;
if (MultiSelection.isActive() && ReactiveCache.getCurrentUser().isBoardMember()) {
const cardIds = MultiSelection.getSelectedCardIds();
+17
View File
@@ -0,0 +1,17 @@
import { TAPi18n } from '/imports/i18n';
import Cards from '/models/cards';
import { relativePosition } from '/models/lib/relativePosition';
export async function relativeCardSort(targetCard, position, movingId) {
if (targetCard._id === movingId) return targetCard.sort;
const scope = { boardId: targetCard.boardId, listId: targetCard.listId,
swimlaneId: targetCard.swimlaneId, archived: false, deletedAt: null };
const siblings = Cards.find(scope, { sort: { sort: 1, _id: 1 } }).fetch();
const plan = relativePosition(siblings, targetCard._id, position, movingId);
for (const update of plan.updates) {
const sibling = Cards.findOne({ ...scope, _id: update.id });
if (!sibling) throw new Error(TAPi18n.__('no-cards-found'));
await sibling.move(sibling.boardId, sibling.swimlaneId, sibling.listId, update.sort);
}
return plan.sort;
}
+3 -3
View File
@@ -26,9 +26,9 @@ export function createEscapeableTextComplete(element, strategies, options = {})
// Merge default options
const mergedOptions = {
dropdown: {
className: 'textcomplete-dropdown',
className: 'dropdown-menu textcomplete-dropdown',
maxCount: 10,
placement: 'bottom',
placement: 'auto',
...options.dropdown,
},
};
@@ -46,7 +46,7 @@ export function createEscapeableTextComplete(element, strategies, options = {})
// handler (the form `submit`, the inlinedForm/minicard handlers, …) AND
// prevent the default newline so the textcomplete `selected` action is the
// only effect. `stopImmediatePropagation` also blocks other listeners bound
// to this same element (e.g. summernote in the richer editor).
// to this same textarea.
element.addEventListener('keydown', (evt) => {
const isTabOrEnter = evt.keyCode === 9 || evt.keyCode === 13;
if (isTabOrEnter && !shouldSubmitOnEnter({ autocompleteOpen: dropdownMenuIsOpened })) {
+3 -6
View File
@@ -764,12 +764,9 @@ export const Utils = {
})
);
},
// Shared by every card attachment upload path — the card Attachments popup,
// the clipboard upload AND images uploaded inside card comments through the
// rich text editor (client/components/main/editor.js). Keeping the meta
// identical (same meta.cardId) is what makes comment attachments appear in
// the card's Attachments list (#3843); the actual logic lives in
// models/lib/attachmentMeta.js so it can be unit tested.
// Shared by the card Attachments popup and clipboard upload. The same
// meta.cardId keeps existing attachments referenced in comments visible
// in the card gallery, including linked cards (#3843).
getCommonAttachmentMetaFrom(card) {
return buildCardAttachmentMeta(card, id => ReactiveCache.getCard(id));
},
-3
View File
@@ -312,9 +312,6 @@ services:
# Defaults below. Uncomment to change. wekan/server/accounts-common.js
# - ACCOUNTS_COMMON_LOGIN_EXPIRATION_IN_DAYS=90
#---------------------------------------------------------------
# ==== RICH TEXT EDITOR IN CARD COMMENTS ====
# https://github.com/wekan/wekan/pull/2560
- RICHER_CARD_COMMENT_EDITOR=false
#---------------------------------------------------------------
# ==== CARD LOADING: all (default) or lazy ====
# 'all' = load every card of a board into the browser (default).
-3
View File
@@ -314,9 +314,6 @@ services:
# Defaults below. Uncomment to change. wekan/server/accounts-common.js
# - ACCOUNTS_COMMON_LOGIN_EXPIRATION_IN_DAYS=90
#---------------------------------------------------------------
# ==== RICH TEXT EDITOR IN CARD COMMENTS ====
# https://github.com/wekan/wekan/pull/2560
- RICHER_CARD_COMMENT_EDITOR=false
#---------------------------------------------------------------
# ==== CARD LOADING: all (default) or lazy ====
# 'all' = load every card of a board into the browser (default).
@@ -301,9 +301,6 @@ services:
# Defaults below. Uncomment to change. wekan/server/accounts-common.js
# - ACCOUNTS_COMMON_LOGIN_EXPIRATION_IN_DAYS=90
#---------------------------------------------------------------
# ==== RICH TEXT EDITOR IN CARD COMMENTS ====
# https://github.com/wekan/wekan/pull/2560
- RICHER_CARD_COMMENT_EDITOR=false
#---------------------------------------------------------------
# ==== CARD LOADING: all (default) or lazy ====
# 'all' = load every card of a board into the browser (default).
-3
View File
@@ -318,9 +318,6 @@ services:
# Defaults below. Uncomment to change. wekan/server/accounts-common.js
# - ACCOUNTS_COMMON_LOGIN_EXPIRATION_IN_DAYS=90
#---------------------------------------------------------------
# ==== RICH TEXT EDITOR IN CARD COMMENTS ====
# https://github.com/wekan/wekan/pull/2560
- RICHER_CARD_COMMENT_EDITOR=false
#---------------------------------------------------------------
# ==== CARD LOADING: all (default) or lazy ====
# 'all' = load every card of a board into the browser (default).
@@ -226,9 +226,6 @@ services:
# Defaults below. Uncomment to change. wekan/server/accounts-common.js
# - ACCOUNTS_COMMON_LOGIN_EXPIRATION_IN_DAYS=90
#---------------------------------------------------------------
# ==== RICH TEXT EDITOR IN CARD COMMENTS ====
# https://github.com/wekan/wekan/pull/2560
- RICHER_CARD_COMMENT_EDITOR=false
#---------------------------------------------------------------
# ==== CARD LOADING: all (default) or lazy ====
# 'all' = load every card of a board into the browser (default).
-3
View File
@@ -460,9 +460,6 @@ services:
# Defaults below. Uncomment to change. wekan/server/accounts-common.js
# - ACCOUNTS_COMMON_LOGIN_EXPIRATION_IN_DAYS=90
#---------------------------------------------------------------
# ==== RICH TEXT EDITOR IN CARD COMMENTS ====
# https://github.com/wekan/wekan/pull/2560
- RICHER_CARD_COMMENT_EDITOR=false
#---------------------------------------------------------------
# ==== CARD LOADING: all (default) or lazy ====
# 'all' = load every card of a board into the browser (default).
-3
View File
@@ -278,9 +278,6 @@ services:
# Defaults below. Uncomment to change. wekan/server/accounts-common.js
# - ACCOUNTS_COMMON_LOGIN_EXPIRATION_IN_DAYS=90
#---------------------------------------------------------------
# ==== RICH TEXT EDITOR IN CARD COMMENTS ====
# https://github.com/wekan/wekan/pull/2560
- RICHER_CARD_COMMENT_EDITOR=false
#---------------------------------------------------------------
# ==== CARD LOADING: all (default) or lazy ====
# 'all' = load every card of a board into the browser (default).
+1 -2
View File
@@ -92,7 +92,7 @@ export PATH=$HOME/.meteor
cd ~/wekan
MONGO_URL=mongodb://ferret:DB_PASSWORD_GOES_HERE@127.0.0.1:27017/wekan \
WRITABLE_PATH=.. WITH_API=true RICHER_CARD_COMMENT_EDITOR=false \
WRITABLE_PATH=.. WITH_API=true \
ROOT_URL=https://wekan.example.com meteor run \
--exclude-archs web.browser.legacy,web.cordova \
--port 8080 2>&1 | tee ../wekan-log.`date +%s`.txt
@@ -122,7 +122,6 @@ ROOT_URL=https://boards.example.com
WRITABLE_PATH=../files
MONGO_URL=mongodb://ferret:DB_PASSWORD_GOES_HERE@127.0.0.1:27017/wekan
WITH_API=true
RICHER_CARD_COMMENT_EDITOR=false
CARD_OPENED_WEBHOOK_ENABLED=false
BIGEVENTS_PATTERN=NONE
BROWSER_POLICY_ENABLED=true
@@ -278,9 +278,6 @@ services:
# Defaults below. Uncomment to change. wekan/server/accounts-common.js
# - ACCOUNTS_COMMON_LOGIN_EXPIRATION_IN_DAYS=90
#---------------------------------------------------------------
# ==== RICH TEXT EDITOR IN CARD COMMENTS ====
# https://github.com/wekan/wekan/pull/2560
- RICHER_CARD_COMMENT_EDITOR=false
#---------------------------------------------------------------
# ==== CARD OPENED, SEND WEBHOOK MESSAGE ====
# https://github.com/wekan/wekan/issues/2518
+60 -3
View File
@@ -121,7 +121,7 @@ The base snaps (`core*`):
| Job | Arches | Mechanism | `core24`? |
|---|---|---|---|
| `snap-native` | `amd64`, `arm64` | `snapcore/action-build` on a **native** runner | Yes |
| `snap-launchpad` | `ppc64el`, `s390x`, `riscv64` | `snapcraft remote-build` on Launchpad | Yes |
| `snap-launchpad` | `ppc64el`, `s390x`, `riscv64`, `armhf` | `snapcraft remote-build` on Launchpad | Yes |
(`snap-qemu`, which built `ppc64el` / `s390x` with
`diddlesnaps/snapcraft-multiarch-action` under QEMU, is deleted: it caps at
@@ -139,14 +139,14 @@ not stay in `snap-qemu`. They build on Launchpad `remote-build` alongside
`riscv64`:
- `ppc64el` and `s390x` are in the `snap-launchpad` matrix
(`arch: [ppc64el, s390x, riscv64]`).
(`arch: [ppc64el, s390x, riscv64, armhf]`).
- The `snap-qemu` job is deleted.
The `snap-launchpad` job is more robust than the older Launchpad legs that were
originally replaced by `snap-qemu`: it **requires the `.snap` file to exist,
retries the remote build 3×, and only uploads when the file is present**, which
guards the old "is not a valid file" (`snapcraft upload`, exit 64) failure. It is
`continue-on-error` with `timeout-minutes: 180` and `fail-fast: false`, so a
`continue-on-error` with `timeout-minutes: 360` and `fail-fast: false`, so a
Launchpad queue of hours — the price of this path — can neither fail the release
nor cancel another arch, and each arch publishes the moment it finishes.
@@ -154,6 +154,63 @@ It needs **`LP_CREDENTIALS`** as well as `SNAP_AUTH`; its first step says by nam
if either is missing, and decodes `LP_CREDENTIALS` so an unusable value is one
named line rather than an ordinary-looking build failure.
### Recovering interrupted jobs
The v11.85 logs in `wekan27` showed an ARMHF TLS EOF while polling Launchpad,
PPC64EL and S390X queued until GitHub's six-hour cancellation, and an AMD64
snap that published to the Snap Store but stalled while attaching to GitHub.
Every Launchpad architecture now shares a five-hour local wait budget across
all attempts. Exhausting it leaves the remote build running and reports an
unfinished build, without claiming that a snap was produced. Re-run that
matrix job after Launchpad finishes. Recovery uses `--recover`; a normal
`remote-build` invocation replaces the recipe and submits a new build. Only
an explicit missing recipe/repository response permits a new submission.
Authentication and connection failures never trigger that fallback.
The source snapshot lives in `.tools/tmp/snap-launchpad-source`, with Git
metadata in a sibling directory and retry logs outside the snapshot.
Snapcraft hashes **all project files**, so a deterministic commit alone is
insufficient. The Git pointer remains absolute because Snapcraft copies the
tree into its cache. Hosted reruns use the same checkout path. Each snapshot
includes its architecture so parallel matrix jobs have distinct recipes.
Downloaded snaps and logs move out before another recovery attempt.
The v11.86 logs in `wekan28` exposed three failures inside Snapcraft 9.0.1:
recovery looked up a personal repository although submission used the Launchpad
project, recipe creation raced indexing of the newly pushed `main` ref, and a
successful PPC64EL build downloaded only 2,043 bytes before deleting its recipe.
`releases/snapcraft-remote-compat.sh` runs a narrow compatibility wrapper with
the installed snap's interpreter and environment; it does not alter installed
libraries. Only remote builds use it. Recovery includes the project in its
repository lookup. Recipe creation retries the specific missing `git_ref`
response for at most fifteen minutes, within the existing five-hour budget;
other errors still propagate. Downloads must have the SquashFS magic and meet
the existing 50 MiB minimum before Snapcraft can clean up the remote build.
Three invalid downloads raise an error and retain the build for recovery.
These overrides should be removed when the installed upstream implementation
fixes the corresponding behavior.
Native and Launchpad snap attachments use the same bounded helper: at most
three ten-minute uploads, with a one-minute read-back that checks every
artifact's name and byte size. These retries do not rebuild the snap or
repeat the Snap Store publication.
The regression tests execute snapshot preparation on a fixture repository
and the workflow's actual retry shell with mocked network commands. They
cover TLS recovery, missing recipes, authentication refusal, every queued
architecture, decreasing time budgets, invalid downloads, cleanup failures,
upload timeouts, and missing or wrong-size release assets. Live remote
builds and publication must still be verified by a human-run release job.
Upstream references:
- [Snapcraft remote build and recovery](https://documentation.ubuntu.com/snapcraft/8.14/explanation/remote-build/)
- [Remote command recovery versus submission](https://github.com/canonical/craft-application/blob/6.4.0/craft_application/commands/remote.py)
- [Project-file hashing](https://github.com/canonical/craft-application/blob/6.4.0/craft_application/remote/utils.py)
- [Repository lookup, recipe creation and artifact downloads](https://github.com/canonical/craft-application/blob/6.4.0/craft_application/services/remotebuild.py)
- [Snapcraft 9.0.1 interpreter and application environment](https://github.com/canonical/snapcraft/blob/9.0.1/snap/snapcraft.yaml)
### Historical note
`ppc64el` / `s390x` were once moved *off* Launchpad *onto* QEMU because the old
+1 -1
View File
@@ -69,7 +69,7 @@ GitHub Username | Chat Username | Location | Position | Details
[JamborJan](https://github.com/JamborJan) | - | Universe | [Sandstorm](https://sandstorm.io) Developer | [Add bigger screenshots](https://github.com/wekan/wekan/pull/940)
[nebulade](https://github.com/nebulade) | - | Germany | [Cloudron](https://cloudron.io) Developer | [Re-enable export](https://github.com/wekan/wekan/pull/1059)
[kubiko](https://github.com/kubiko) | - | UK | [Canonical](https://www.canonical.com) Developer | [snap package](https://github.com/wekan/wekan-snap), [Adding snapcraft build support from source](https://github.com/wekan/wekan/pull/1091), [Use version scriptlet in snap](https://github.com/wekan/wekan/pull/1164)
[whowillcare](https://github.com/whowillcare) | Universe | Contributor | Added WYSIWYG card comment editor that can be turned off with `sudo snap set wekan richer-card-comment-editor='false'`, Global webhook to Admin Panel, etc a lot of features.
[whowillcare](https://github.com/whowillcare) | Universe | Contributor | Global webhook to Admin Panel, etc a lot of features.
# Previous Team members
@@ -19,6 +19,12 @@ Each row is ticked when the thing is **hidden**.
setting, read once by the feed, so turning it off restores each board's own value.
- **Card counter list** — hide the per-list card counts on All Boards.
- **Board member list** — hide the member avatars on All Boards.
- **Date Format for everyone** — check this and choose `YYYY-MM-DD`,
`DD-MM-YYYY`, or `MM-DD-YYYY`, then save. Cards use that format for members
and anonymous viewers, overriding personal date-format preferences. Opened
cards show **Date** instead of **Date Format** and hide the format dropdown.
Unchecking restores personal formats; stored dates and calendar choices
are unchanged.
- **Wait Spinner** — which spinner is shown while something loads. See
[Wait Spinners](../../Troubleshooting/Wait-Spinners.md).
+59
View File
@@ -0,0 +1,59 @@
# Cleaner task boards
Board Settings → Card offers the following optional controls. They apply to the
whole board and can be changed by a board administrator.
- **Show on Minicard → Collapse:** hide the collapse caret. Hidden carets do not
leave previously collapsed cards inaccessible: the full card contents display.
Re-enabling the control restores the user's saved collapse preference.
- **Show on Minicard → Labels ↑ Title:** display the existing labels above the
title. Labels still obey their visibility and text/bar settings, appear only
once, and disappear when the card is collapsed. The default placement and saved
field order remain unchanged when this option is off.
- **Show on Card → Checklists Due:** hide checklist due-date controls and badges
without deleting dates. When enabled, a checklist without a due date has a
small, keyboard-accessible clock beside its title. Set dates retain their badge.
Individual checklist-item deadlines are a separate existing control.
- **Show on Card → Checklists Title:** hide the outer Checklists section heading.
Checklist titles, add controls, progress and items remain available even if the
section was previously collapsed.
Existing boards keep their collapse control and checklist headings/dates. Labels
above the title is off by default. These presentation options do not change card
content, stored dates or edit permissions.
The existing Member Settings → Font size presets include 80% and 90% for a more
compact view. They scale card titles, headings, text and popup text. Smaller
presets also reduce checklist heading padding, section spacing and Card Settings
row padding; 100% and larger presets preserve the previous spacing.
## Dates without time
The personal card date-format selector and Admin Panel → Visibility → Date Format
for everyone offer three additional **Date: …** formats: YYYY-MM-DD, DD-MM-YYYY
and MM-DD-YYYY without time. The original choices retain time where the display
normally includes it. The admin override can hide the personal selector, as before.
Date-only display applies to the selected calendar (including Gregorian and
Jalali) and export formatting. It suppresses time consistently, rather than
assuming that noon or midnight is an unwanted default. Stored timestamps,
time-zone calculations, deadlines, reminders and date/time editing are unchanged.
## September 2026 feedback coverage
The eight observations supplied with screenshots were checked against source:
| Request | Result |
| --- | --- |
| Hide minicard collapse control | Added the board option above. |
| Completion checkbox beside title | Already fixed by the flex title row; retained. |
| Labels above title; disabled ordering arrows | Added optional label placement. Existing disabled arrow state and activation guard remain. |
| Smaller opened-card and settings text | Existing per-user size presets retained; compact spacing added. |
| Hide personal date-format selector | Existing admin date-format policy retained. |
| Date formats without time | Added date-only choices for users and the admin default. |
| Hide checklist Due; smaller unset control | Added visibility setting and inline clock. |
| Redundant checklist headings | Added an option to hide the outer section heading. |
All labels reuse existing translated terms. Existing human translations are not
replaced. The new options complement Card Settings rather than changing its
established default field order.
-1
View File
@@ -60,7 +60,6 @@ sudo snap set wekan oauth2-username-map='email'
sudo snap set wekan oauth2-fullname-map='name'
sudo snap set wekan oauth2-id-map='email'
sudo snap set wekan port='3001'
sudo snap set wekan richer-card-comment-editor='false'
sudo snap set wekan root-url='https://boards.example.com'
sudo snap set wekan with-api='true'
```
+15
View File
@@ -0,0 +1,15 @@
# Markdown editor
WeKan uses a plain-text textarea to edit Markdown in card descriptions and
comments, with mention suggestions and rendered previews. It does not use a
WYSIWYG editor: no existing editor supports the complete combination of WeKan's
Markdown, emoji, security requirements and other editing features.
Editing and rendering are separate. Markdown rendering, emoji, mentions,
HTML-to-Markdown conversion and attachment links remain available. Uploaded
files stay in the card's Attachments section and can be referenced from text.
There is no environment variable or Snap option to enable a visual editor.
Notification email formatting is independent of the text editor. Default
notification bodies use the shared HTML-escaping formatter; administrator-defined
email body templates retain their existing behavior.
+48 -14
View File
@@ -1,8 +1,7 @@
# Notification Settings (3-tier: Admin → Board → Member)
WeKan's notification channels (email, push, in-app, etc. - one row per
notification service) can be turned on or off at three levels that override
each other in order: an **Admin Panel** default applies to everyone, a
WeKan's email and in-app notification channels can be turned on or off at three
levels that override each other in order: an **Admin Panel** default applies to everyone, a
**Board** setting can override it for that board, and a **Member** setting
can override that again for just that person. This lets an admin set a
sane sitewide default, a board owner tighten/loosen it for their board, and
@@ -16,18 +15,10 @@ The same popup opens from three different places, each scoped differently:
- **Member Settings**: avatar/name (top left) → **Notifications**.
- **Board Settings**: right sidebar → Board Settings → **Notification
Settings**.
- **Admin Panel**: Admin Panel → **People** → a user's notification defaults.
- **Admin Panel**: Admin Panel → **People** → **Notifications** (site defaults).
```
┌ Notification Settings ───────────────────────┐
│ (popup description text) │
│ │
│ 🔔 Card assigned to me [Default][Yes][No] │
│ 📧 Due date reminder [Default][Yes][No] │
│ 💬 Comment added [Default][Yes][No] │
│ ... │
└──────────────────────────────────────────────────┘
```
The rows select **Email** and **in-app notifications**, not individual activity
kinds. Board and member rows offer **Default / Yes / No**.
At Admin scope the row only offers **Yes/No** (there is no level above it to
fall back to); at Board and Member scope each row offers **Default / Yes /
@@ -51,3 +42,46 @@ Admin default ---> Board override ---> Member override
A member's "Default" choice falls through to the board's setting; a board's
"Default" choice falls through to the admin default. Whoever sets the most
specific non-Default choice wins for that person on that board.
## Watching and email delivery
Enabling a channel does not subscribe you to every board. Watching selects the
activities; the channel settings decide how eligible notifications are delivered.
- **Watching** a board receives other users' activity on that board.
- **Tracking** receives activity on cards in which you participate.
- **Muted** suppresses board-wide activity, including assignment and mention
notifications. An explicit list or card subscription still opts you into that
narrower scope. Stop watching those lists/cards as well to silence them.
- Activity recipients must be active board members. Your own changes normally
do not notify you; self-mentions are an exception.
If a test email works but activity email does not, check Admin Panel → Features
has notifications enabled, the recipient is an active board member, their watch
level includes the activity, and Email is enabled by the effective member/board/
admin settings. Reproduce with a second user making a change. Delivery is
buffered for 30 seconds by default (`EMAIL_NOTIFICATION_TIMEOUT`, milliseconds).
A successful test email proves the transport works; it does not exercise these
activity-selection rules.
## Regression verification for #6658
The original muted-assignment boundary was fixed in `4be77e7189`; explicit
list/card subscriptions and notification-setting scopes were corrected in
`03e8a6bf66`. The SMTP browser regression covers board/list/card watching,
comments, title changes, new cards on watched lists/boards, muted assignments,
member email opt-out and suppression of the actor's own notifications.
For an isolated test app, set `MAIL_URL=smtp://127.0.0.1:2525` and
`EMAIL_NOTIFICATION_TIMEOUT=100`. Follow the sandbox build/test setup, then run
from `tests/playwright` with the matching Node and browser toolchains:
```sh
WEKAN_TEST_SMTP_PORT=2525 node node_modules/@playwright/test/cli.js test \
specs/notification-email-delivery.e2e.js --workers=1
```
The test binds a local SMTP capture server and never relays mail. The app must
already be ready and connected to the fixture database. Without the explicit
SMTP port the delivery spec skips; that is not a delivery verification. This
covers SMTP acceptance, not delivery by an external provider to a real inbox.
Loaded 100 of 426 files, more files were not shown because too many files have changed in this diff. Show more