Skip to content

feat(workspace): a board view of a project's tasks (abilityai/trinity-enterprise#957) - #4500

Merged
vybe merged 1 commit into
devfrom
feature/957-project-board
Nov 12, 2026
Merged

vybe merged 1 commit into
devfrom
feature/957-project-board

Conversation

@trinity-ability

Copy link
Copy Markdown
Contributor

Summary

  • The Tasks tab of a Workspace project gains List | Board, remembered per person. The board is a second view over the same tasks: one column per step of the path (Active, Awaiting verification, Done), a card per task, and a move is one gesture — drag a card, or focus its title, pick a column with ← → and press Enter.
  • Blocked, needs-a-decision and paused tasks stay in Active with a badge (the header counts them) and are set from the card's own ⋯ menu.
  • A move is the existing status-only task update. The card shows "Saving…" in its new column until the server answers; a refused move puts it back and names the reason. Marking a task Done that never waited for verification asks first and requires a reason, which is written to the task's log.
  • Both views re-read the tasks every 20 s while the tab is visible, and on return to the window.

Frontend only: no endpoint, schema or MCP change.

Changes

  • projectsUtils.js — BOARD_COLUMNS, columnOf, boardColumns, boardMove, boardStateActions, view preference helpers. Columns are data, so a new step of the path is one entry; a status no column names lands in the first column instead of vanishing.
  • ProjectTaskBoard.vue (new) — draws and emits, never writes. The dragged task is component state; the drag payload is never read back, because task ids repeat across projects.
  • ProjectTasks.vue — view switch, width fallback to the list, moves, the Done reason dialog, polling.
  • stores/projects.js — fetchTasks lets only the newest read of a project write (success and error alike); a write's answer is merged into the rows at once; moveTask.
  • composables/useVisiblePolling.js, composables/useTaskBoardMoves.js (new).
  • base/BaseSegmented.vue (new primitive) — documented in design-system.md and the contract.
  • Docs: user guide Board section, architecture/workspace.md, one learnings fragment.

Met differently from the issue text

  • Three path columns, not six. Follows the operator's 2026-11-11 design direction on the issue (path columns, held states as badges). The Todo column, subtask progress and the subtasks toggle attach with ent#1232; Group by milestone with ent#1233; agent run state has no field on the task read yet.
  • View preference is stored per browser and per person (localStorage), not server-side.
  • Touch drag is not supported (native drag and drop); narrow containers get the list, and the ⋯ menu and task detail work everywhere.

Test Plan

  • cd src/frontend && npx vitest run — 531 files, 7,968 tests pass, including the raw-colour, loading-gate and source-text ratchets; npm run check:tokens passes
  • New: workspaceProjectsBoardUtils.spec.js (rules), workspaceProjectsBoard.mount.spec.js (mounted board: columns, drop, pending, refusal, read-only, keyboard, focus, polling), additions to workspaceProjectsStore.spec.js
  • Mutation check: with the newest-read-wins guard and the local-drag guard removed, the matching tests go red
  • Real browser (Chromium, local stack, dark theme): pointer drag between columns, drag by the card title, Done reason dialog, refused move from Done, keyboard move with focus kept
  • Not yet checked by hand: Firefox drag, light theme

Refs abilityai/trinity-enterprise#957 (private tracker — closed manually at release)

🤖 Generated with Claude Code

…-enterprise#957)

The Tasks tab of a Workspace project gains List | Board, remembered per
person. The board is a second view over the same tasks: one column per step
of the path (Active, Awaiting verification, Done), a card per task, and a
move is one gesture — drag a card, or focus its title, pick a column with
the arrow keys and press Enter. Blocked, needs-a-decision and paused tasks
stay in Active with a badge and are set from the card's own menu.

- Columns and every rule are data in projectsUtils (BOARD_COLUMNS, columnOf,
  boardColumns, boardMove); a status no column names lands in the first
  column instead of vanishing.
- A move is the existing status-only task update. The card is drawn where it
  is going, marked as saving, until the server answers; a refusal puts it
  back and names the reason. Done without a wait for verification asks first
  and requires a reason, written to the task's log.
- The dragged task is component state; the drag payload is never read back,
  because task ids repeat across projects.
- Tasks are re-read while the tab is visible (20 s, and on return to the
  window) in both views. fetchTasks lets only the newest read of a project
  write, on success and on failure; a write's answer is merged into the rows
  at once.
- New primitive BaseSegmented; under the width the columns need, the list
  renders and the choice is kept.

Frontend only: no endpoint, schema or MCP change.

Refs Abilityai/trinity-enterprise#957

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@trinity-ability trinity-ability added the ui PR touches the frontend UI — triggers Playwright e2e tests label Nov 12, 2026

@vybe vybe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/validate-pr: APPROVE — Lane B, frontend only. Tier 1 green, 531 files / 7,968 vitest tests pass locally on the head, four mutations (Done-ask, newest-read guard, done-only-reopens, reader-cannot-move) each turn the matching tests red. Not hand-checked by the author: Firefox drag, light theme.

@vybe
vybe merged commit 3e0a512 into dev Nov 12, 2026
26 of 28 checks passed
trinity-ability pushed a commit that referenced this pull request Nov 12, 2026
Conflicts in ProjectTasks.vue and projectsUtils.js resolved keeping both:
the trinity-enterprise#957 board view and abilityai/trinity-enterprise#1232's
task shape.

The board now shows the task shape correctly:
- `todo` is named by the first (Active) column and flagged "To do"; it was
  previously a known status there, so it read as Active with no badge.
- A card shows derived waiting ("Waiting on T-2") and subtasks beside the
  Blocked status's waiting_on line.
- A done card closed without its agent's claim carries the
  "Done without a done claim" badge.
- Dropping a card on Done from anything but pending-verification already
  asks for the note the server requires.

Board specs: the "status the board does not know" cases used `todo` as
the unknown stand-in; they now use `triage`, and new cases pin todo,
waiting and closed-without-claim (reverting the projectsUtils change
turns 3 of them red).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ui PR touches the frontend UI — triggers Playwright e2e tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants