42 Commits
Author SHA1 Message Date
Lauri Ojansivu b7589737f5 File docs/Features the way the WeKan menus are.
A feature's guide now sits under the menu it is used from, read from the
templates rather than from where somebody once put it: Header-Bar,
All-Boards, Pages, Board-Header (search and every Board View), Board-Sidebar
(Board Settings, Filter, Members, Labels, Archive), Rules, Swimlanes, Lists,
Cards, Member-Settings, Admin-Panel and Login-Page. Topics used from several
menus (editor, history, theme, translations, email, troubleshooting) are in
General.

- Each area has a README mapping its menu entries to their guides and to the
  template or server module that implements them. Board-Header/README.md
  lists all 40 Board View entries with the template boardBody.jade renders;
  five views (Table, Calendar Mode, Time, Timeline, Map) have no guide of
  their own yet and say so.
- Board-View.md listed 25 views while BOARD_VIEWS has 40; it now lists all
  of them with their English labels.
- Pages keep their file names. Where a released changelog links an old path,
  a "# Moved" page stays there and points to the new one; test-menu.sh skips
  folders holding only those.
- Undo was filed under Login; it is General/Undo now.
- Every link in docs, code comments, scripts and tests follows the move;
  docsLinksResolve checks them all.

Tests that read a doc follow it to its new place. boardViewSettings now fails
when Board-View.md or Board-Header/README.md differs from BOARD_VIEWS, or
names a template boardBody.jade does not render.

Thanks to xet7 !
2026-10-16 23:45:35 +03:00
Lauri Ojansivu f4a3690256 Rules can be shown to board members, read-only, when the Admin Panel allows it.
Admin Panel / Settings / Visibility / Rules gets "Boards may show their
Rules to members, read-only", off by default (Settings
rulesReadOnlyForMembers, site admin only). With it on, a board admin ticks
"Show these Rules to board members, read-only" on the board's Rules page
(rulesVisibleToMembers). Members of that board then get Rules in Board
Settings and see the rules list and each rule's details, with no control
that changes a rule; the methods that change rules keep their board-admin
checks, so nothing is granted. Without both ticks only board and site
admins see the Rules page, which until now drew its list for any member
who opened the address.

models/lib/rulesReadOnly.js decides 'edit', 'read' or 'none', and
client/lib/rulesAccess.js is the one place the Rules page, Board Settings
and rule details ask. tests/rulesReadOnly.test.cjs covers both switches,
each alone, a non-member, and that a reader's page has no edit control.
boardMenuOrder now leaves the reader's alternative branch out of the
admin's sequence and pins it alone; instanceFeatures counts the fourth
site-admin method; roleHelperRegressions follows the canAdmin check to
rulesAccess.js. The new strings are English placeholders until the next
translation pass.

Thanks to justinr1234 and xet7 !

Fixes #2217.
2026-10-14 14:23:31 +03:00
Lauri Ojansivu aa48a2b71d Board Settings / Bots: hand cards to external runners, as kanbots does.
Board Settings -> Bots, below Workflow view, is the Rules page's view for
bots: runners on your own server - an AI agent, a CI job, a script - that
the board hands cards to. It is laid out like kanbots in the board's own
theme, Font Awesome and drag and drop: a rail of bots, live runs and
activity; the board's lists as columns, each card with its run's state
(Queued, Running, Waiting for you, Ready to review, Done, Failed, Stopped),
the step it is on and the answers to a question it asked; and a drawer with
the card's thread, Hand to bot, Stop and a reply box. Board admins only,
like the rest of the Rules page, and never a board or public view.

A bot has no rights of its own, like Rules and workflows. WeKan only sends
to it: a bot is an outgoing webhook marked as a bot, subscribed to no board
activity and no reminders, and a dispatch goes through the ordinary webhook
queue - the SSRF guard, its signing token, retries, Sandstorm's Powerbox.
The runner works on the board through WeKan's REST API with its own user's
token and board role, and reports its run at one REST route that needs
write access to the board. Handing over is a board admin's choice, in the
view or with the new Rule action "Hand the card to bot"; an answer or a
reply is the admin's own comment, under their right to comment.

The GitHub- and Gitea-compatible APIs' routes are regular expression
literals now, and an instance board is Trello's "org" level.

The new strings are translated in every locale.

Thanks to xet7 !
2026-10-14 13:39:18 +03:00
Lauri Ojansivu 935e68dfdd GitHub organization import: repositories, issues, releases, Actions, wiki.
Import -> GitHub -> Import a whole GitHub organization makes every
repository of an organization or user its own board, opening in Board View
/ Version Control. Issues go through the ordinary importBoard, as the person
who started the job, with their comments, labels and files. Releases are
cards in a Releases list, their files attached only when chosen. Each
.github/workflows file becomes Rules. The wiki is read from its git
repository with isomorphic-git (1.42.4, pinned), every request through the
SSRF guard and only to github.com: a page is a card in the Wiki list, its
[[links]] point at and are attached to the linked pages' cards, and each
commit that changed it is a dated edit in the card's history, so Restore
brings back an older version. The job shows progress, can be cancelled,
pauses on a restart and stops at a rate limit; the token is kept in memory
only.

Version Control gains Releases and Wiki tabs: the wiki as GitHub shows it,
with the page list, _Sidebar and _Footer, links that stay in the tab, and
each page's history with Restore.

GitHub Actions workflows map to Rules: issue events to triggers, label,
close, reopen, comment, assign and create steps to actions, actions/stale to
an aging rule. Code - builds, tests, scripts - is never run: such a workflow
is a disabled rule with its YAML as the description. WeKan's Rules gain what
they lacked for it: a "commented on" trigger, an "add comment" action written
as the person whose change ran the rule and only where they may comment,
cron schedules in UTC, and a rule description shown on the rule. A disabled
rule no longer fires on a schedule or from its button, which it did.

The new strings are translated in every locale.

Thanks to xet7 !
2026-10-14 12:43:36 +03:00
Lauri Ojansivu a78b4aa744 Export Wrike Excel with Wrike's custom workflow statuses, and import and export Wrike workflows as lists and rules.
The Wrike Excel export wrote the WeKan list as a custom column named WeKan
list, which Wrike reads as a custom field rather than a status. It now
writes the five workflow columns of Wrike's import help article: Default
task workflow on folder rows, and on task rows Workflow (named after the
board), Status (the list's status group) and Custom Status (the list).
Wrike applies a custom status only when that workflow exists, matching
case, so the board's lists are also exported as that workflow: the JSON of
Wrike's GET /workflows, one custom status per list with the nearest Wrike
color. That JSON is the only exchange format, since Wrike has no file
import or export of workflows.

A list's status group comes from the board's rules. A "moved to this list,
mark complete" rule makes it Completed (Cancelled when its name says so), a
"mark incomplete" rule makes it Active (or Deferred), otherwise the name
decides. In Rules > Import / Export, a pasted Wrike workflow adds a list for
each status the board lacks, after the previous status's list, and adds the
rules that do what Wrike's status groups do. Those rules show in the list,
Workflow and Blocks views. A server method does this as a board admin and
adds nothing twice. Wrike's own automation rules have no export, import or
API, so they cannot be carried over.

The Wrike import reads Custom Status as the list and a single Workflow as
the board title. It reports a status group the status name does not imply,
since only the workflow import's rules keep it.

tests/wrikeWorkflow.test.cjs and tests/wrikeFormat.test.cjs cover the
workflow, rules, colors, refusals and round trips. Two new Playwright cases
import a workbook with the workflow columns and apply a Wrike workflow
through the Rules popup twice, and the export audit fetches the workflow.
New text is in English, pending Transifex.

Thanks to xet7 !
2026-10-09 09:48:47 +03:00
Lauri Ojansivu 40a4d9b171 Give the Rules page the board's right sidebar instead of its own.
The Rules page had a separate right sidebar holding only Back and its
views (List view, Workflow view, Blocks, History, Import / Export
rules). It now uses the board's own sidebar, like the board: the same
views are in its Board Settings under Rules, and choosing one there
while on the Rules page closes the sidebar so the view is not left
under it. The separate sidebar and its template are removed.

Its Back button went with it, so picking a view in the Board View menu
while on the Rules page now goes back to the board, asking first before
unsaved Blocks work would be lost.

Source tests pin the Rules route to the board sidebar, the absence of
the old controls, the way back and the Board Settings entries' existing
translated labels. The Rules browser specs open views through Board
Settings; a member who is not a board admin is not offered them there,
and the Blocks view still refuses such a member. The Rules and Board
Settings specs pass in Chromium and WebKit.

Thanks to xet7 !
2026-09-30 09:29:46 +03:00
Lauri Ojansivu b4217f962d Put the Rules views under Rules in Board Settings.
Board Settings now lists the Rules page's own views directly under
Rules - List view, Workflow view, Blocks, History and Import / Export
rules - so the one wanted is a click away instead of Rules first and
then its page sidebar. Each opens the Rules page in that view, asking
first before unsaved Blocks work would be lost, as the Rules page
sidebar does; Import / Export rules opens its popup from the menu. They
share Rules' board-admin guard. A divider now separates that group from
Change Color.

The Import / Export entry reads "Import / Export rules" in Board
Settings and in the Rules page sidebar, using the popup's own title key,
which is already translated in 234 locales, so no new text is added.

The menu order test pins the new first group, its divider, the guards,
the handlers and the label keys; a Playwright case checks the order and
that Workflow, History and Import / Export rules open what they say, in
Chromium and WebKit. The Board Settings and Rules docs follow.

Thanks to xet7 !
2026-09-30 08:42:47 +03:00
Lauri Ojansivu 5513254086 Include authorized target-board comments in linked-board rule emails
Discover comment owners before reading prose, enforce card and assigned-only access, and retain each included source chain for stored dispatch checks. Reuse public comment rendering without exporting target checklists or files; reject oversized captures instead of truncating.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 21:07:14 +03:00
Lauri Ojansivu 5bd348a4b9 Include linked-board wrapper content with shared email policies
Reuse ordinary Details rendering for explicitly local fields, including custom-field visibility and definition fingerprints, public names, notes, locations and authorized relationships. Persist related-source evidence in the existing email binding.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 21:00:16 +03:00
Lauri Ojansivu 1869a68c62 Audit every card field and include local recurrence in rule emails
Classify all 71 top-level schema fields with an AST-backed inventory guard. Record remaining linked-board display and per-card discussion gaps explicitly.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 20:53:53 +03:00
Lauri Ojansivu 032e0db794 Include scoped local linked-card details in rule emails
Separate wrapper placement, persisted timers and visible Scrum metadata from authorized source content. Recheck local access, link identity and Scrum visibility before returning the snapshot.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 20:42:34 +03:00
Lauri Ojansivu b5c15e95ed Include canonical and legacy Gantt relationships in rule emails
Group readable targets while retaining distinct relationship types and source-access checks. Cover malformed legacy arrays and real SMTP rendering.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 20:35:33 +03:00
Lauri Ojansivu 027d399cb2 Include attachment presentation metadata in rule emails
Describe captured filenames, actual sizes, MIME types, cover status, upload dates and public uploader names. Recheck card access and cover state after metadata reads and reject deleted cards or foreign attachment rows.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 20:29:08 +03:00
Lauri Ojansivu 2a632445b2 Include authorized converted-subtask references in rule emails
Share related-source resolution between Details and checklist discussion. Retain reference evidence for stored messages even when Details is disabled, and omit inaccessible targets.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 20:26:06 +03:00
Lauri Ojansivu b1b126fb0c Bind stored email details to related sources and field policies
Resolve related link titles through current readable sources and retain their chains in immutable command evidence. Recheck related access, admin rights and custom-field definitions before stored dispatch. Refuse legacy Details snapshots without related evidence.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 20:23:01 +03:00
Lauri Ojansivu 4cca0b2c8b Include scoped comment reaction summaries in rule emails
Decode valid reaction codepoints and count distinct reactors without exporting account identifiers. Keep reactions scoped to included live comments and record remaining related-content authorization work.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 20:18:17 +03:00
Lauri Ojansivu 2e13fab985 Fill audited card email metadata and discussion gaps
Include public creators and comment authors, stickers, lifecycle metadata, checklist deadlines and reset schedules. Record remaining full-content gaps against the models and card export layout.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 20:15:24 +03:00
Lauri Ojansivu d99641d8ed Include visible Scrum card metadata in rule email details
Resolve sprint and release names within the source board and recheck references after preparation. Persist Scrum disclosure flags with source evidence for stored sends.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 20:11:49 +03:00
Lauri Ojansivu 0b86c92ded Include authorized linked-board voting in rule emails
Use live target results with both boards' visibility settings. Persist target disclosure policy in version-three source bindings and recheck it before dispatch.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 20:08:08 +03:00
Lauri Ojansivu 952cb16a72 Include voting results in rule emails with disclosure policy checks
Keep private voter names and unfinished poker choices out of Details. Persist voting visibility with source bindings and reject changed disclosure settings before stored dispatch.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 20:05:27 +03:00
Lauri Ojansivu 94f125ac05 Include timer and recurrence snapshots in rule email details
Export persisted Flowtime and Pomodoro fields and public session owner names alongside recurrence settings. Cover zero values, malformed fields, access loss and SMTP delivery through both attachment backends.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 20:01:09 +03:00
Lauri Ojansivu 6e4032b69c Bind stored rule emails to their authorized source chain
Capture versioned source evidence with immutable mail and verify its topology and current access before dispatch. Keep legacy commands readable without authorizing an unbound retry.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 19:57:36 +03:00
Lauri Ojansivu 479f01d57e Resolve authorized linked sources for rule email content
Use live source card data across email text, details, discussion and files. Resolve linked-board display fields without including unrelated source-board cards. Recheck each link and its permissions after preparation, and reject cycles, missing sources or retargeted links.

Refuse linked stored Sync commands until durable source-chain bindings exist, including during dispatch of previously captured commands. Fifty-seven Node suites pass without skips, with real MongoDB and native MailComposer; local SMTP browser scenarios pass.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 19:51:34 +03:00
Lauri Ojansivu c06b429765 Include authorized card details in rule emails
Render dates, placement, labels, people, custom-field display values, notes and readable relationships behind an opt-in Details checkbox. Recheck source and related access, admin-only field policy and field definitions; do not serialize account secrets or stale linked-source snapshots.

Thirty-six Node suites and two local SMTP browser scenarios pass. Linked-source details and specialized fields remain open under #2713.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 19:44:33 +03:00
Lauri Ojansivu 05080fc02e Include checklists and public comments in rule emails
Offer an independent opt-in choice, render checklist completion and chronological comments, exclude deleted or foreign content and private webhook state, and recheck access after child reads. Bound output without silent truncation.

Verify 35 Node suites and two local SMTP browser scenarios, including disabling the option. Other card metadata remains open under #2713.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 19:39:51 +03:00
Lauri Ojansivu 846f190690 Send authorized card attachments with email rules
Add an opt-in native checkbox, read live triggering-card files through the storage strategy, recheck source access and attachment metadata after reads, and preserve byte snapshots through email localization and transport.

Verify filesystem and GridFS MIME delivery with local SMTP capture, soft deletion, missing-file failures, keyboard selection, permission changes and durable attachment integrity. Full card-content rendering remains open in #2713.

Thanks to kabi178, bbyszio and xet7 !
2026-09-28 19:35:19 +03:00
Lauri Ojansivu 998b96bf91 Add authorized Copy Card rule actions with destination pickers
Reuse ordinary card copying, preserve the source, validate destination placement and current write access, and stop recursive copy chains while allowing independent events.

Verify automatic and manual copies, checklists and comments, revoked access, forged destinations and same-board recursion in Chromium. All 29 rule Node suites pass.

Thanks to javen9881, phaseshift3r, gugmt15 and xet7 !

Fixes #4160,
Fixes #3235,
2026-09-28 19:25:40 +03:00
Lauri Ojansivu 0e5b48c86d Pause development for release and record unfinished work
Record current Scrum, Rules/History, translation, issue/UI/security audit and verification status under TODO Later. Refresh translation counts, stop active-work wording and wrap Upcoming entries. Completed implementation remains in its feature/fix-specific commits.

Thanks to xet7 !
2026-09-27 21:12:37 +03:00
Lauri Ojansivu ad0ad0b2b8 Complete Gujarati Blockly prose and editor placeholder filling
Fill 85 text-operation and remaining editor messages. Audit all mapped Blockly prose with explicit invariant exceptions and preserve existing translations. Seven catalog checks, 21 preservation checks and Gujarati Chromium editing pass. Specialist terminology remains pending native review.

Thanks to xet7 !
2026-09-27 21:09:30 +03:00
Lauri Ojansivu 25498de226 Translate Gujarati Blockly shortcuts and workspace messages
Fill 60 English placeholders for navigation, screen-reader hints, workspace summaries and search. Preserve tokens and existing translations. Extend vocabulary and direction checks; accessibility terminology remains pending native-speaker review.

Thanks to xet7 !
2026-09-27 21:07:08 +03:00
Lauri Ojansivu ba0ab5ce8a Translate Gujarati Blockly procedures and variable controls
Fill 38 English placeholders while preserving existing translations and tokens. Extend checks for variable operations and functions with and without return values. Specialist terminology remains pending native-speaker review.

Thanks to xet7 !
2026-09-27 21:05:50 +03:00
Lauri Ojansivu 9b7135f434 Translate Gujarati Blockly mathematical descriptions
Fill 86 English placeholders for arithmetic, statistics, rounding and trigonometry. Keep mathematical notation and placeholders intact and extend catalog regressions. Specialist Gujarati mathematical terminology has low confidence and needs native review.

Thanks to xet7 !
2026-09-27 21:04:33 +03:00
Lauri Ojansivu 67d1e228e9 Translate Gujarati Blockly list operations and tooltips
Fill 75 English placeholders while retaining tokens and existing translations. Extend regression coverage for list actions and ascending/descending order. Specialist terminology remains pending native-speaker review.

Thanks to xet7 !
2026-09-27 21:02:49 +03:00
Lauri Ojansivu be62f80fa5 Translate Gujarati Blockly inputs keyboard hints and logic
Fill 66 English placeholders while preserving existing translations and tokens. Expand Gujarati vocabulary and placeholder checks. Specialist mathematical and accessibility terminology remains pending native-speaker review.

Thanks to xet7 !
2026-09-27 21:01:05 +03:00
Lauri Ojansivu 58fa2ce464 Translate Gujarati Blockly conditions and editing controls
Fill 80 more English placeholders, including short control-flow aliases and bitmap states. Extend catalog checks and verify Gujarati dragging, field editing, save and context menus in Chromium. Specialist terminology remains pending native-speaker review.

Thanks to xet7 !
2026-09-27 20:59:39 +03:00
Lauri Ojansivu cbc3fd1fb4 Resume Blockly translations with Gujarati editor controls
Fill 87 English placeholders for navigation, accessibility, colors and basic blocks. Preserve placeholders and existing translations, and update the active translation status. Gujarati terminology remains pending native-speaker review.

Thanks to xet7 !
2026-09-27 20:57:11 +03:00
Lauri Ojansivu 0574cd4c08 Record combined Rules and Blocks regression checkpoint
Document verified History integration, shared-component behavior, localized editing and responsive layouts. Keep translation status explicitly paused and retain concurrency and backend limits.

Thanks to xet7 !
2026-09-27 20:30:20 +03:00
Lauri Ojansivu 2965b20c09 Record the paused Blockly translation status in TODO Later
Keep remaining language coverage and terminology review explicit, with reproducible non-completion counts. Continue other development while translations are paused.

Thanks to xet7 !
2026-09-27 17:28:19 +03:00
Lauri Ojansivu d273b86ed5 Add editable Blockly rules with local translated message catalogs
Lazy-load Blockly for board administrators, preserve existing rule documents and execution, and provide direct List, Workflow, Blocks and History choices. Route workflow writes through server methods. Include local media, complete message-key coverage, translation merging and placeholder checks.

Translation coverage remains incomplete in additional locales. Low-confidence specialist terminology needs native review in Aragonese, Asturian, Corsican, Neapolitan, Occitan, Sardinian, Sicilian, Kashubian, Upper Sorbian, Silesian, Cornish, Manx, Gaelic and Breton; Faroese and Frisian also merit review.

Verified five Blockly/catalog Node tests, existing rules suites and four Blockly Chromium scenarios, including admin permissions, localization, drag editing and persisted execution.

Thanks to xet7 !
2026-09-27 17:07:02 +03:00
Lauri Ojansivu 953d8f7c13 Organize feature guides by menu and document backup alternatives
Add September feature instructions, preserve guide forwarding links, and document backup coverage with descriptive screenshots from #6683.

Thanks to markusst1982 and xet7 !
2026-09-23 18:34:37 +03:00
Lauri Ojansivu 1218cd281f Add test-menu.sh and checked-in example inputs for docs/Features
test-menu.sh mirrors the docs/Features menu structure and runs the actual
WeKan code for each feature: a dedicated runner for Login (a real REST
username/password round trip) and ImportExport/PDF (create a board, export
it, check the PDF header), and a generic fallback that matches a feature
against this repo's own automated tests by filename. Every feature run
writes output.txt/result.txt/run.log under .tools/test-menu/<timestamp>/,
mirroring the docs/Features path, and never leaves an empty or missing
result.

The example INPUT for a feature is checked into the repository next to its
documentation instead: docs/Features/<path>/example-input.txt, hand-written
for Login and ImportExport/PDF and extracted from the feature's own .md
elsewhere. test-menu.sh only reads these; it never writes into docs/Features.

An earlier version of the matcher also grep'd test file CONTENTS for a
keyword once the filename search failed, which pulled in noise (a word like
"webhook" mentioned in passing in a dozen unrelated tests); it is
filename-only now.

Thanks to xet7.
2026-09-08 17:49:24 +03:00
Lauri Ojansivu 54cc0ec614 docs: organize docs/Features into categories and update all links
Move the flat feature docs and feature subdirectories under category
parents: Admin-Panel/ (+ Problems/), Board/, Cards/, Editor/, Reports/,
Automation/, Lists/, Troubleshooting/. Every relative markdown link in
docs/ (and the docs GitHub URLs in CHANGELOG.md and the code-span path
in Undo.md) is recomputed so it still resolves to the same target after
the move.

Done with a scripted move + relative-link rewriter that verifies link
integrity: all 160 rewritten links resolve, and a full scan confirms the
reorg introduces zero new broken docs-internal links (the pre-existing
53 unrelated to the move are unchanged).
2026-07-20 13:37:44 +03:00