Skip to content

Improvement: Task board/list affordance gaps — write controls exposed to read-only viewers, and no keyboard drag-reorder #2069

Closed

Description

@yannickmonney

Area / route
Projects → Tasks board & list (tasks-workspace.tsx, task-card.tsx, tasks-list.tsx, board.tsx). Two related affordance defects on the same surface, merged.

Sites

  • [57] Task board & list expose write controls (Create, priority/assignee pickers, drag) to read-only viewers; mutations fail with a generic toast (modal gates correctly)
    • Evidence: tasks-workspace.tsx:108 (Create button always rendered, no canEdit); task-card.tsx:130-135,153-162 (pickers, no disabled); tasks-list.tsx:325-331,374-384 (pickers, no disabled); board.tsx (no ability gate); convex/tasks/mutations.ts:145-148 (assertTaskWritable throws RBAC_FORBIDDEN) and projects/access.ts:98-99 (non-editor role => canEdit:false); contrast task-modal.tsx:655,667,683,717 (disabled={!canEdit})
  • [56] Task board/list cards have no keyboard drag-reorder — explicit onKeyDown shadows dnd-kit's KeyboardSensor activator
    • Evidence: task-card.tsx:88-99 ({...sortable.listeners} on line 92 then onKeyDown on line 94 calling e.preventDefault()+onOpen); tasks-list.tsx:279-288 (same pattern: ...sortable.listeners then onKeyDown); use-task-board-dnd.ts:78-81 (KeyboardSensor configured); node_modules/@dnd-kit/core .../core.cjs.development.js:1349 (keyboard activator eventName:'onKeyDown') + 2358-2372 (listeners exposed as onKeyDown)

Notes
[57] fix: add canEdit to listTasksByProject's return validator, thread it through useTasksByProject into TasksWorkspace/TaskCard/TaskListRow/board to hide/disable Create, the priority/assignee pickers, and drag — reusing the modal's existing disabled affordance. The server already rejects unauthorized writes (assertTaskWritable), so this is UX/consistency. [56] fix: don't blanket-spread sortable.listeners then re-declare onKeyDown — compose both (run dnd-kit's activator, open the modal only if no drag started) or move open-modal to onClick/Enter and leave Space to the KeyboardSensor; the two oxlint-disable comments asserting keyboard activation are now false.


Filed by an automated manual-review pass (live browser QA + a 25-agent code-grounded audit, each finding adversarially verified). Deduped against open issues (incl. #1972–#1999, settings/forms epic #1941–#1966, audit cluster #1842–#1846) and recently-closed issues.

Activity

  1. added
    priority: medium
    bug
    service: platform
    automated
    on Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    automatedbugpriority: mediumservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions