feat(webui): U4b one task board across organizations (#1873) #1900

Merged
jason.woltje merged 3 commits from org-u4b into refactor 2026-11-10 20:04:51 +00:00
Owner

U4b (#1873): one task board across organizations.

  • Read: GET /api/workspace reads each org's tasks through that org's own tracker module (built-in store or Vikunja). Each row carries ref, tracker, state, project, assignees, priority, due, changed time and digest. Down or unread orgs show their reason, never zero tasks. Cap: 500 most recently changed matching tasks per org, and the board says so when it applies.
  • Writes: POST /api/workspace/tasks (create, edit, archive) is owner-only (workspace-tasks.mjs:102) and needs --send (:103), per Jason's ruling 3 (members read the board). Vikunja writes are deferred as a security boundary.
  • Board at #/tasks; #/inbox stays U3's page.

Lane: Opus. Review: Sol plus daybreak-blue, then a daybreak re-check, all fixed. Rebased by the lane onto U3 aa087e738 with commentChar=';'. Range-diff shows conflict resolutions only on commit 1, and no message changed.
Gate: 162 webui files, each run alone, 1230/1. The failure was settings-review-browser F4 polling, a file U4b doesn't touch; it passed 20/0 x3 alone. Bus 1735/0 before the rebase (bus is untouched).
Lead check: U4b's 14 files don't overlap the refactor commits after aa087e738. On U4b plus the U3 test fix ac977d833: workspace-pages-browser 11/0, settings-review-browser 20/0.

U4b (#1873): one task board across organizations. - Read: GET /api/workspace reads each org's tasks through that org's own tracker module (built-in store or Vikunja). Each row carries ref, tracker, state, project, assignees, priority, due, changed time and digest. Down or unread orgs show their reason, never zero tasks. Cap: 500 most recently changed matching tasks per org, and the board says so when it applies. - Writes: POST /api/workspace/tasks (create, edit, archive) is owner-only (workspace-tasks.mjs:102) and needs --send (:103), per Jason's ruling 3 (members read the board). Vikunja writes are deferred as a security boundary. - Board at #/tasks; #/inbox stays U3's page. Lane: Opus. Review: Sol plus daybreak-blue, then a daybreak re-check, all fixed. Rebased by the lane onto U3 aa087e738 with commentChar=';'. Range-diff shows conflict resolutions only on commit 1, and no message changed. Gate: 162 webui files, each run alone, 1230/1. The failure was settings-review-browser F4 polling, a file U4b doesn't touch; it passed 20/0 x3 alone. Bus 1735/0 before the rebase (bus is untouched). Lead check: U4b's 14 files don't overlap the refactor commits after aa087e738. On U4b plus the U3 test fix ac977d833: workspace-pages-browser 11/0, settings-review-browser 20/0.
jason.woltje added 3 commits 2026-11-10 20:04:44 +00:00
Replaces the Tasks placeholder with sample 06: every organization's
tasks read through its own bus and tagged with the org, Kanban and List
with the layout remembered per viewer, and org, project, state,
assignee and label filters. A down org keeps its U1 state.

Writes (create, move, edit, archive) go to POST /api/workspace/tasks,
behind the hook fence, owner only and --send only. Each write resolves
only the org it names and calls that org's bus with the person's store
verbs, so the bus's human check, tracker check and digest check all
apply. Refusals reach the person with what was and was not written.

A Vikunja organization's tasks are read through the tasks adapter and
shown read only; the store verbs refuse them with tracker-not-store.
- Edit and archive require the digest the board read (expect); the route
  refuses a write without it.
- The edit dialog saves against the task it showed, so a poll that reads a
  newer task turns a stale save into task-conflict; the dialog reopens on the
  current task.
- An answer the board cannot read, or one marked sent=unknown, is shown as an
  open outcome, not as a refusal.
- The per-org cap applies after the filters and keeps the most recently
  changed tasks; projects, metrics and the inbox count every task. The board
  sends project, state, assignee and label filters to the server.
- A poll keeps the focus, caret and scroll the person has at the moment it
  answers, not when it started.
- An org whose tasks read fails shows "tasks not read" and is not writable.
- browser.test.mjs pins tasks-board.js in the script order.
A conflict on a task another writer moved out of the board's server
filter now reads that task from its organization unfiltered, so the
dialog reopens on the current task. An empty result names the
organizations whose tasks were not read instead of saying there are
no tasks.
jason.woltje merged commit a71da41146 into refactor 2026-11-10 20:04:51 +00:00
Sign in to join this conversation.