Commit Graph
115 Commits
Author SHA1 Message Date
Michael Nutt 3df146c164 Defer ZIP and Excel initialization until first use
Load archive libraries only when an import, export or restore needs them.
Keep lightweight timing enabled and make detailed Meteor profiling opt-in.
Include first-use regression checks and production measurements.
2026-10-11 23:30:56 -04:00
Lauri Ojansivu ab785acd1e Choose what notifications contain, and group and schedule them, for e-mail, the tray and webhooks.
One delivery model (models/lib/notificationDelivery.js) for every channel -
e-mail, the notification tray and outgoing webhooks - set in the
Notifications popup at Admin Panel, board and Member Settings scope, and in
each one-way webhook's form:

- Content. Webhooks: the text on or off, and which property groups are sent
  (standard, ids, names, links, actor, people, details), with checklist,
  list, swimlane and board names, before/after values, the card description
  and links added as opt-in groups. E-mail and tray: the classic sentence or
  a clear layout - the board as a link first, the actor and card in bold -
  and which parts are shown.
- Grouping: one message per event, per card, per board, or all together.
- Scheduling: immediately, every 5 minutes to 24 hours, or once a day, with
  optional quiet hours, in the time zone of whoever set it.

The most specific explicit setting wins: member, then board, then Admin
Panel for e-mail and tray; the webhook, then its board, then Admin Panel for
webhooks. A member can only leave their own name out of outgoing webhooks.
The built-in defaults keep today's behaviour. Grouped and scheduled webhooks
and e-mail go through durable queues that survive restarts; queued webhooks
use the SSRF guard and log a blocked address in Admin Panel - Problems.
Values of admin-only custom fields now reach only board admins in e-mail and
tray, and never a webhook.

The new strings are in English in every locale, pending Transifex.

Thanks to HaKePlan, Meeques and xet7 !

Fixes #3695,
Fixes #5171.
2026-10-10 15:28:26 +03:00
Lauri Ojansivu 86652c8718 Ask for the columns of a CSV or Excel import, apply Owner, and import WeKan's own Excel export.
A CSV, TSV or Excel import now shows which column is which card field
before importing, pre-filled from the header names - English names and
WeKan's own export column names in every language - and asks for what is
missing: a file with no list column gets one list, named on the page,
instead of one list per row. Unused columns can be kept as text custom
fields. The choice goes to the server as csvMapping, checked before
anything is written, and the REST import and api.py take one too.

The Owner column is applied, as are swimlane, received date, parent card,
spent time, overtime and archived. A TSV value containing a comma stays one
value. A dropdown custom field value that is not one of its items is skipped
instead of failing the import.

An Excel workbook is read sheet by sheet, its header found in row 1 or where
WeKan's export puts it, in any language; formula cells are read as their
results and rich text as text. WeKan's own Excel export imports, and a
workbook with many boards - each on its own sheet, as Export all boards
writes it - imports as many boards; the Activity sheet is skipped.

Thanks to xet7 !
2026-10-09 12:52:21 +03:00
Lauri Ojansivu c06bf8d0e9 Sync sprints and releases into Scrum planning.
List Sync from Jira or GitLab now carries an issue's sprint and fix
versions / milestones into the board's Scrum planning while Scrum is
enabled on the board. A missing sprint or release is created on this
board with the dates the source gives; an existing one is matched by its
source ID first, then by name. A local planning change stays until the
source changes that issue's planning, and a first Sync never removes
planning. The writes go through the durable Sync journal and steps, so
an interrupted Sync is finished or discarded like any other.

Thanks to xet7 !
2026-10-08 12:35:58 +03:00
Lauri Ojansivu cb69750b17 Let administrators discard List Sync operations that cannot be replayed.
A saved List Sync operation whose list was removed, recreated or
reconfigured, or whose actor lost full-list write access, could never be
replayed. The replay job refused it every minute with only a console line,
and because a new Sync of the list resumes the pending operation first,
that list could not Sync at all.

Such an operation is now marked once, with one Recovery event, and a
blocked manual Sync says why. Admin Panel / Problems / Recovery lists these
operations with what they applied and their live replayability. An
instance administrator can discard one only while the same checks a replay
makes still fail. The discard holds the list's Sync lease, records one
immutable decision, then removes the saved steps and the operation marker,
reading each removal back. It writes no card: changes already applied stay
and the rest are never written. A retry or a second administrator only
finishes the removal, and a replay that finds a decided discard completes it
instead of resuming. The intent stays as evidence and the discard is
audited in Recovery.

Unit, source-wiring and negative tests cover recording once, refusing
non-administrators and replayable operations, and discarding twice; an app
test and a Playwright case cover the Recovery page. New interface text is
in English, pending Transifex.

Thanks to xet7 !
2026-10-08 11:53:06 +03:00
Lauri Ojansivu 03975e7d31 Admin Panel / Settings / Visibility / Features: choose which card fields every board shows.
Above the Features Save there is now one tick per field type of Board
Settings / Card - the same icons and names, all ticked by default. An
unticked field, for example Pomodoro, is not offered in any board's Board
Settings / Card and is not shown on any opened card or minicard, whatever
the board chose. Visibility only: no card data and no board setting is
written, so ticking it again shows every board as it was set. There is no
ordering here; the order stays each board's own.

The catalog and the decisions are models/lib/cardFieldVisibility.js. It is
stored as cardFieldStates on the settings document (missing means shown,
so existing installs are unchanged), published with the other Features
settings and saved by the site-admin-only saveInstanceFeatures method,
which refuses unknown field keys. The hiding happens at the client's one
board read (ReactiveCache.getBoard), which returns the board with the
hidden fields' flags reading false - the same object when nothing is
hidden - so every card and minicard template that reads a board flag agrees
without being edited; the per-card List title and the user's Labels text
override check the same mark. The server's reads, publications and the REST
API are unchanged. A whole-column tick in Board Settings / Card leaves the
hidden fields' board values alone.

Thanks to xet7 !
2026-10-08 08:54:04 +03:00
Lauri Ojansivu 4f4de145b1 Sync GitLab's weight or time estimate into a numeric field.
List Sync from GitLab can now carry an estimate, as Jira's already
could. The Sync settings choose GitLab's weight (in points) or its time
estimate (given in seconds, stored in hours), and any numeric custom
field on the board to hold it. An issue without a weight clears the
value; local changes are reviewed as conflicts, as for Jira. The
durable journal accepts the GitLab mapping, and the source coverage
report counts the mapped attribute as used. GitHub, Gitea and Forgejo
issues have no estimate to sync. New interface text is in English,
pending Transifex.

Thanks to xet7 !
2026-10-02 19:34:47 +03:00
Lauri Ojansivu 18d57b2b8f Let administrators choose which optional features WeKan offers.
Admin Panel / Settings / Visibility has a new Features group. Each
optional group of board views (Table, Calendar, Time, Overview, Gantt,
Scrum, Flow charts, Map) can be turned off for the whole instance. A
disabled feature is removed from the Board View menu and from Board
Settings / Board View rather than greyed out, and a user who had it open
is moved to the board's default view. Its data and every permission stay
as they are.

Administrators can preview disabled features, and named pilot users see
them too. An opt-in policy keeps features added by later WeKan updates
disabled until an administrator enables them; the features present when
it is turned on stay as they were. Swimlanes and Lists are core and
cannot be disabled. The English texts are pending Transifex.

Thanks to nalilord and xet7 !

Fixes #6736.
2026-10-02 15:26:22 +03:00
Lauri Ojansivu 94a8c41b3c Let only a site admin assign a tenant hostname, and never the instance's own.
An Organization's own admin could set its tenant hostnames to anything not
yet claimed, the instance's ROOT_URL host included, which put that
Organization's branding on everybody's sign-in page. The instance host is
now refused for everyone and an org admin's attempt is recorded under
TenantBleed. A new hostname from an org admin is stored as a request that a
site admin assigns by saving it; dropping hostnames still applies at once.

The three new strings are in English only, pending Transifex.

Thanks to xet7 !
2026-10-02 14:25:56 +03:00
Lauri Ojansivu 0dd33ef806 Refuse to restore a backup file through a symlink.
The attachment and avatar restore checked that an entry's name stays inside
the files directory, then wrote with fs.createWriteStream, which follows a
symlink already on that path. It now skips such entries and replaces the
file exclusively, as the full-backup restore already did.

Thanks to xet7 !
2026-10-02 11:42:49 +03:00
Lauri Ojansivu 1a218ead02 Keep assigned-only members to their own cards on every read path.
The board publication shows an assigned-only member only the cards assigned
to them, but the attachment API (REST and DDP list, download and info), the
activities publication, Due Cards with all users, Global Search, the
structural move pickers and position history asked only for board membership
and so showed every card of the board. Each now applies the same rule; a
download or info request for another card's attachment is recorded under
AssignedBleed in Admin Panel -> Problems.

Thanks to xet7 !
2026-10-02 11:37:40 +03:00
Lauri Ojansivu c49d9d8d3e Fix the JamBleed regression: a login lockout never disables the account being guessed.
The lockout reporter recorded brute.lockout (high, blocked) with the GUESSED
account as its userId, and a high-severity blocked event with a userId
disables that account. So three wrong passwords from anyone who knew a username
disabled its owner until an admin re-enabled it - worse than the per-user lock
GHSA-rf3w-rj48-jxcc removed - and a user who mistyped their own password three
times was disabled the same way.

The reporter is now one module for startup and reload and names the account as
targetUserId; a catalog key can declare blocksAccount: false, and brute.lockout
does. An account already disabled keeps the reason it was disabled for instead
of later events overwriting it. tests/jamBleedVictimBlock.test.cjs drives the
real blocking decision with the real catalog; its negative test fails if a
lockout is recorded anywhere else or a login target is recorded as an actor.

Thanks to xet7 !
2026-10-02 10:31:23 +03:00
Lauri Ojansivu 2172f19d88 Fix SyncBleed: send List Sync requests through the SSRF guard and keep responses out of errors.
GHSA-5q84-p3vr-f3xv: a board member with write access chooses the List Sync
server URL for Gitea, Forgejo, GitLab and Jira. It was fetched with the
platform fetch(), so it reached 127.0.0.1, private networks and the cloud
metadata address, and up to 200 bytes of a failed response were copied into
the error the preview returns and lastSyncError stores. An open and a closed
internal port also answered differently.

Every request now goes through fetchSafe: internal addresses refused, DNS
pinned, redirects refused, response size and time bounded. An error carries the
origin and HTTP status only, a non-JSON answer says so without quoting it, and
a guard refusal is one message that does not name what a host resolved to.
Saving Sync settings refuses an internal address too, so none is stored. Both
refusals are recorded as SyncBleed in Admin Panel -> Problems.

A self-hosted tracker on the server's network is allowed only by the
administrator, with LIST_SYNC_ALLOWED_PRIVATE_HOSTS (exact hosts); the test
server allows 127.0.0.1 for the List Sync specs' mock tracker. The browser test
found that an IPv6 literal such as [::1] kept its brackets and was looked up as
a name at save time; the shared validator now checks it as an address.

tests/syncBleed.test.cjs reproduces the report on the real fetcher for every
provider, and fails on a platform fetch() to anything but a fixed or
administrator-allowed host, or a response body copied into an error, anywhere
in the server tree. list-sync-source.e2e.js saves and previews internal
addresses in the browser and checks no request reaches the mock tracker.
securityRegressionCoverage lists CacheBleed and SyncBleed with their tests.

Thanks to alham-rizvi and xet7 !
2026-10-02 09:46:00 +03:00
Lauri Ojansivu f5d20a18d7 Let administrators review legacy rule emails instead of leaving them stuck.
A rule email prepared before commands recorded their source (no source
binding), or one with card Details whose binding predates the related-
source chain, is refused by dispatch and was waiting for a recovery that
did not exist. Admin Panel -> Problems -> Recovery now lists them with
their board, card, recipients, subject and reason. Nothing runs them
automatically. An administrator re-binds one - its content is prepared
again from the card as it is now, after re-checking that the rule's
author is enabled with write access and that the rule and action are
unchanged - or discards it, which records a dropped attempt so the rule
stage completes without mail. Each decision writes one immutable audit
record, is serialized per command, and is final once an attempt exists.

Unit, MongoDB integration and source tests cover listing, re-bind,
discard and every refusal, and pin that only the admin methods call
them; a Playwright case covers review and discard. New interface text is
in English, pending translation.

Thanks to xet7 !
2026-09-30 01:49:49 +03:00
Lauri Ojansivu 252f27986b Let administrators resolve partially accepted rule emails.
When SMTP accepts a rule email for only some recipients, or its answer is
lost, the attempt stays unconfirmed and WeKan never sends it again by
itself. Admin Panel -> Problems -> Recovery now shows each recipient as
accepted or not confirmed, and an administrator can resend to the
unconfirmed recipients only (same headers, narrowed SMTP envelope), mark
the attempt sent, or drop it. A drop completes the rule stage without
mail. Decisions wait ten minutes after the attempt started, longer than
any SMTP send can last, are one immutable record per attempt, and are
serialized per command across server processes. A resend records its
intent before SMTP, so an interrupted one is shown as in progress rather
than repeated silently. The offline acceptance tool and the online
decision exclude each other.

Unit, MongoDB integration and source tests cover resend, partial resend,
mark sent, drop, the quarantine and the refusals; a Playwright case
covers review and drop in the Admin Panel. New interface text is in
English, pending translation.

Thanks to xet7 !
2026-09-30 01:46:04 +03:00
Lauri Ojansivu f8b9f26c5f Correct Bulgarian activity messages and common controls 2026-09-29 17:14:55 +03:00
Lauri Ojansivu 58d166029c Set due-date reminder days and webhook delivery per board.
Board Settings -> Notifications now has due-date reminders: a board's own
offsets override NOTIFY_DUE_DAYS_BEFORE_AND_AFTER (an empty list turns
them off, an empty field restores the server default), and a switch sends
the board's reminders to all of its enabled outgoing webhooks, whatever
activities those subscribe to. The reminder scan now runs when either the
environment variable or a board sets offsets, and writes a reminder only
for the offsets that board uses. A validated method limited to board
admins stores the setting.

The new strings are English, pending Transifex. add-pending-keys.mjs now
writes symlinked locales once and checks every file before writing any.

Thanks to xet7 !

Fixes #5323,
2026-09-29 13:44:54 +03:00
Lauri Ojansivu cb8c68c540 Expose bounded administrator metadata reports for stored rule email attempts 2026-09-28 16:01:45 +03:00
Lauri Ojansivu f1e572db5c Integrate cancelled notification payload cleanup and terminal receipt reporting 2026-09-28 15:13:39 +03:00
Lauri Ojansivu b590d3d76f Cancel remaining activity notification delivery with permanent replay protection 2026-09-28 15:04:37 +03:00
Lauri Ojansivu 7fef4f4cdc Add administrator pause and resume controls for activity notifications 2026-09-28 15:00:31 +03:00
Lauri Ojansivu 169a19817a Report pending activity notifications and allow guarded manual retry 2026-09-28 14:49:56 +03:00
Lauri Ojansivu 5e1ed32f58 Sync Jira original and remaining time estimates with conflict review
Map selected aggregate seconds to the board's imported numeric time fields in hours. Preserve zero, missing and explicit null; validate mapping identities and retain unrelated fields through conditional array writes.

Twenty-five focused Node suites and twenty-two Chromium scenarios pass with local MongoDB and Jira fixtures. Live Jira, FerretDB and other browsers remain unverified.

Thanks to xet7 !
2026-09-28 03:49:38 +03:00
Lauri Ojansivu 20b47995b2 Add administrator recovery controls for queued notification email
Summarize recipients without mail payloads, paginate with bounded memory, and coordinate pause/resume/cancel with sender reservations. Persist holds, cancellation cutoffs and idempotent request receipts so replay cannot undo newer actions or cancel later messages.

Verify current administrator access, interrupted commands, lost write acknowledgements, stable cancellation and private collection boundaries with MongoDB and Chromium tests. Keep translations limited to English source labels.

Thanks to xet7 !
2026-09-28 03:15:09 +03:00
Lauri Ojansivu a00c009ba6 Bind scheduled Sync to its authorizing account 2026-09-28 02:30:48 +03:00
Lauri Ojansivu 79fcd0061e Sync explicitly mapped Jira estimates with local conflict review
Select an existing numeric Jira estimate field in the Sync popup, retain field/unit identity, request the selected Cloud field, and merge numeric estimates with source baselines. Preserve zero, explicit null clearing, unrelated custom fields and their order; reject invalid or changed mappings and stale card writes. Cover source selection, conflicts, remapping, invalid values and full popup flow in Node and Chromium.

Thanks to xet7 !
2026-09-28 01:30:24 +03:00
Lauri Ojansivu 6a4e5e29a8 Expose retained Sync diagnostics in Problems Recovery 2026-09-28 00:34:27 +03:00
Lauri Ojansivu adf646177b Persist private Sync run outcomes and bounded coverage reports 2026-09-28 00:28:58 +03:00
Lauri Ojansivu 80ccf100a7 Preview Sync changes and normalized omissions without applying writes
Reuse the actual merge and write plan, scope full-list previews to unrestricted writers, bound reports and keep omitted values private. Exclude status-only diffs from update counts. Preserve empty and whitespace source text through schema cleaning so repeated runs do not keep changing comparison baselines. Cover preview parity, saved settings, access changes, no-write errors, storage behavior and browser flows.

Thanks to xet7 !
2026-09-28 00:14:46 +03:00
Lauri Ojansivu 352dcbea87 Create durable Sync replacements without changing moved or detached cards
Persist conditional replacement decisions before card insertion. Revalidate source previews, restrict replacement to full-list writers and preserve the previous card. Cover stale decisions, database races and lost acknowledgements, moved and detached UI flows, and private collection writes.

Thanks to xet7 !
2026-09-27 23:53:07 +03:00
Lauri Ojansivu ed1615369c Keep Sync parents local when active subtasks block archival
Offer a scoped archive-conflict preview and a parent-only mapping removal. Refetch source absence and revalidate the parent and archive blocker before conditional resolution. Preserve all subtask content and hide subtask identifiers from previews; assigned-only callers retain their write scope.

Ten Sync Node suites and thirteen Chromium scenarios pass, including both permission scopes, returning source items, unchanged subtasks and existing Sync behavior. Local release audit passes with advisory warnings. Add English source labels only. Creation collisions after moved or detached cards remain pending.

Thanks to xet7 !
2026-09-27 23:44:40 +03:00
Lauri Ojansivu 4b05d4c517 Convert duplicate Sync mappings into local cards
Show extra mappings alongside the consistently retained card. Fingerprint the visible group, reject changed previews, and remove only an extra card’s Sync identity and baseline. Protect the same first mapping independently of database cursor order; preserve card content and assignment checks.

Ten Sync Node suites and eleven Chromium scenarios pass, including stale groups, retained-mapping protection, content preservation and successful reconciliation after repair. The local release audit passes with advisory warnings. Add English source labels only.

Thanks to xet7 !
2026-09-27 23:39:25 +03:00
Lauri Ojansivu 4aa67fedca Scope manual Sync conflict review to assigned cards
Assigned-only writers review and resolve their own existing cards without triggering whole-list reconciliation or changing shared Sync status. Keep assignment in the conditional resolution write and recheck access after fetching. New shared conflict summaries omit card identifiers and values.

Ten Sync Node suites and ten Chromium scenarios pass, including hidden-card preservation, assignment revocation, scoped writes, source switching and credential recovery. The local release audit passes with advisory warnings. English source label only; no translation fill.

Thanks to xet7 !
2026-09-27 23:33:42 +03:00
Lauri Ojansivu df376f7888 Resolve Sync field conflicts from the list popup
Show local and source values for title, description and spent-time conflicts. Refetch and fingerprint the comparison before accepting a field choice, preserve unrelated fields and conditionally reject changed cards. Keeping local values advances their source baseline; no upstream writes occur.

Require unrestricted board write access and recheck it after fetching. Ten Sync Node suites, field-specific regression checks, catalog ordering and nine Chromium scenarios pass. Duplicate identity, archive/move conflicts, assigned-only resolution and transactional reconciliation remain pending. Add English source labels only.

Thanks to xet7 !
2026-09-27 23:28:26 +03:00
Lauri Ojansivu 81876bfa39 Activate Sync settings and immutable credentials in one list update
Stage a private credential version and select it with settings using a conditional revision update. Preserve the previous or new pair across interrupted saves and lost acknowledgements. Prevent stale saves and delayed cleanup from replacing newer credentials, including after a clear.

Thanks to xet7.
2026-09-27 22:08:45 +03:00
Lauri Ojansivu 4d8ce77544 Coordinate Sync runs and settings saves with renewable list reservations
Share a private database reservation across scheduled Sync, manual Sync and configuration methods. Renew during fetches, verify ownership before writes, reclaim expired reservations and preserve replacement owners during cleanup. Document the remaining in-flight write fencing and multi-document recovery requirements.

Thanks to xet7.
2026-09-27 22:03:34 +03:00
Lauri Ojansivu 75a312809d Scope list Sync mappings and credentials to their source project
Preserve previous-source cards across project switches, require matching credentials before fetching, and bind identifiable legacy mappings before replacing or clearing settings. Reject unknown legacy sources and stale fetched configurations.

Verify with nine focused Node suites, nine Chromium scenarios and the local release audit. Concurrent jobs and configuration writes remain nontransactional.

Thanks to xet7 !
2026-09-27 21:32:16 +03:00
Lauri Ojansivu 21504d556c Select card creation and archival in list Sync settings
Keep existing defaults and independent field selection. Verify operation combinations, popup persistence, invalid values and nonmember denial.

Thanks to xet7 !
2026-09-27 19:46:29 +03:00
Lauri Ojansivu 4aa61c6d56 Add opt-in Jira spent-time synchronization
Reuse numeric Jira time conversion and preserve local time edits with source baselines and conditional writes. Cover settings, zero values, excluded fields and invalid time.

Thanks to xet7 !
2026-09-27 19:42:58 +03:00
Lauri Ojansivu 31c9b1d6d3 Select synchronized text fields in the list Sync popup
Add Title and Description switches with existing behavior as the default. Validate selections through the existing write-authorized method and exclude unselected fields from merge and baseline updates. Verify persistence, unsupported values and new-card defaults.

Thanks to xet7 !
2026-09-27 19:37:47 +03:00
Lauri Ojansivu 58d8563637 Fix scheduled full-instance backups and validate Admin Panel features
Start the shared scheduler and use valid daily expressions. Preserve all
application collections, BSON types, indexes and selected file versions in
portable archives, validate content before restore, and report failures.

Document every Admin Panel implementation and its validation limits. Add
real-database round trips, failure cases and browser coverage for scheduling,
restore, file downloads, every pane route and permission boundaries.

Thanks to markusst1982 and xet7 !

Fixes #6683,
2026-09-23 19:10:24 +03:00
Lauri Ojansivu 23ed8d927f Show Meteor instrumentation in Admin Panel Problems 2026-09-22 19:07:14 +03:00
Lauri Ojansivu d43968d888 Clarify file scans and show location in address reports
Show when a partial file audit stopped before inspecting storage, allow larger bounded inventories, and avoid orphan findings from truncated metadata. Restore available locations in Offices and People, wrap long report cells, and theme report action buttons.
2026-09-22 18:37:38 +03:00
Lauri Ojansivu a990e7f202 Provide full MIME detection across server platforms
Share native file and bundled libmagic detection across uploads, extension correction and administrator file checks. Include the portable WASM database in runtime dependencies, stage native file for Snap and Linux setup, and verify release assets before smoke boot.

Cover portable detection with native file absent, missing dependencies/assets, isolated release layout and HTML diagnostics in Chromium, Firefox and WebKit.

Thanks to xet7 !
2026-09-20 21:06:30 +03:00
Lauri Ojansivu 1f5cb0d134 Add read-only file status checks to Admin Panel Problems
Add shared controls above Files, Filesystem integrity and Recovery for content/type checks, storage inventory and history correlation, with progress, cancellation and a downloadable bounded summary.

Report incomplete upload metadata separately from missing binaries. Compare filesystem and GridFS references, sizes, MIME/extension aliases, hashes and baseline evidence; correlate undo/activity history with candidate renamed or moved files. Preserve files and records, enforce administrator access and scan limits, and explicitly report unknown or unverified coverage.

Verify five focused Node suites and two browser scenarios in Chromium, Firefox and WebKit. Rerun header-first content detection in all three browsers. Document storage and verification limits.

Thanks to xet7.
2026-09-20 19:35:16 +03:00
Lauri Ojansivu 783733623e Authorize and persist edits to saved WIP limit groups.
Route group edits through a validated server method with board/site-admin authorization. Compare the saved group array before updating so concurrent edits are not overwritten and database backends need no positional array update. Unit and Chromium tests cover editing, invalid lists and limits, and unauthorized users.

Thanks to Mahgozar and xet7 !

Fixes #6699,
2026-09-17 13:43:01 +03:00
Lauri Ojansivu a01e8478c3 Add a list-sync job that keeps a list up to date from Jira (and GitHub/GitLab/Gitea).
A WeKan list can be marked with a syncSource (type/url/projectKey) and a
server-only credential (models/listSyncCredentials.js, never published).
server/listSync.js registers a quave:synced-cron job, reusing the SAME
scheduling infrastructure the checklist-auto-reset job uses, that fetches
each synced list's current items and reconciles them against WeKan
(models/lib/listSyncReconcile.js, pure/unit-tested): new items create
cards, changed items update them, and items that disappeared upstream are
ARCHIVED rather than deleted, so old entries stay in the list's history.

Fetching (server/lib/listSyncFetch.js) and parsing reuse the existing
one-time-import parsers in models/lib/externalParsers.js (parseJira is
new there; parseGithub/parseGitlab/parseGitea gained externalId) instead
of a second implementation. Jira works end to end; GitHub/GitLab/Gitea
share the same job and reconcile logic via their existing parsers.

Thanks to xet7 !
2026-09-10 21:41:20 +03:00
Lauri Ojansivu 520b2e412e Add Admin Panel / People "Last active" presence for #3678 and #3734.
Both issues ask the same question: which users are actively using WeKan,
and for how long. The `lastConnectionDate` field already existed on the
user schema but was only ever written from a commented-out, env-gated
block in server/publications/users.js - so WeKan never actually recorded
it. Accounts.onLogin now stamps it on every successful login
(server/lastActiveOnLogin.js), and an open client session refreshes it
every two minutes via a `usersHeartbeat` method
(client/lastActiveHeartbeat.js, server/methods/lastActiveHeartbeat.js) -
a periodic timestamp, not a WebSocket/real-time presence system, which is
more than either issue asked for.

Admin Panel / People gets a "Last active" column showing each user's
timestamp with an online-now badge when it is within five minutes
(models/lib/lastActive.js holds the pure recency check, reused by the
unit test). "Last active" and "Online now" are added to en.i18n.json and
translated into 203 other locale files; the remaining minority keep the
English source as the untranslated-everywhere placeholder.

Thanks to eccaw and xet7 !

Closes #3678,
Closes #3734,
2026-09-10 19:59:02 +03:00
Lauri Ojansivu f07e2e69b7 Revert branding and board background images to external URLs
Restore editable external image URL fields for the login logo, top-left
corner logo, and board backgrounds, and undo the switch to server-side
download-and-convert-to-GIF storage. Uploading is still available as an
option alongside the URL field for boards; instance and Organization
branding again accept a direct image URL. Imports may again carry
Trello's and WeKan's external background URLs. Tests updated to match.
2026-09-08 03:23:28 +03:00
Lauri Ojansivu 828fc2d718 Revert Legacy HTML4 browser interface and parity changes
Remove the progressive HTML4/Legacy Omi middleware, cookieless sessions, page controllers, assets, parity refactors, design documents and associated tests. Restore the standard Meteor interface and operations from before the HTML4 work began.

Preserve intervening translations, backup screenshots, session upgrades, cryptographic test identifiers, local image storage, document previews and lazy browser loading. Extract the GIF utilities still required by image features into imageGif.

Validate the Node suites and add standard-interface and GIF regressions. Two existing failures remain in docsLinksResolve and ruleDetailsLocalization; browser regressions are registered but require a running server.

Thanks to xet7 !
2026-09-07 17:03:59 +03:00