Skip to content

feat(web): show task ID and assignees in the Gantt view - #786

Merged
pikann merged 1 commit into
Paca-AI:masterfrom
robertcoroianu:feat/gantt-assignee-and-id
Nov 19, 2026
Merged

pikann merged 1 commit into
Paca-AI:masterfrom
robertcoroianu:feat/gantt-assignee-and-id

Conversation

@robertcoroianu

Copy link
Copy Markdown
Contributor

Summary

The Gantt task column showed only the title, so telling tasks apart, or seeing who owns a bar, meant opening each task.

Each Gantt row, subtasks included, now shows:

  • Task ID before the title, in the same format as the Table and Board: PREFIX-n, or #n when the project has no prefix.
  • Assignees at the end of the name column, using the shared AssigneePicker. Users who can edit tasks can reassign from the row; others see the avatars only. Clicking the picker doesn't open the task.

Assignees follow the view's fields setting, as in the Table and Board. The Gantt settings panel already had a Fields tab that the Gantt ignored. Assignees show by default (DEFAULT_VISIBLE_FIELDS) and can be hidden there.

Reassigning uses the existing onMoveToColumn handler, the same handleMoveToColumn the Table uses for field edits, so no new data flow is added. taskIdPrefix is passed in the same way as for the Table and Board.

Type of Change

  • Other (UI feature)

Checklist

  • The change is focused and scoped: Gantt task column content.
  • Related documentation is updated: added a "Task column" bullet to docs/architecture/interaction-views.md.
  • New structure or direction is explained clearly.
  • I avoided unnecessary detail or premature abstraction: reuses AssigneePicker, isAutoAssignPending and DEFAULT_VISIBLE_FIELDS.

Testing

  • New tests: the assignee shows by default, hides when fields leaves it out, and clicking it doesn't open the task; the ID shows with the prefix and falls back to #n.
  • The Gantt test harness now renders inside a QueryClientProvider, because the picker and the Jev check use React Query.
  • gantt-nesting.test.tsx now finds the child-task request by URL instead of calls[0], because the view also loads the project (useJevEnabled).
  • bun run lint, tsc -b and the interactions test suite pass.

🤖 Generated with Claude Code

The Gantt task column only showed the title, so telling tasks apart or
seeing who owns a bar meant opening each task.

Each row (subtasks included) now shows:
- the task ID before the title, formatted like the Table and Board
  (`PREFIX-n`, or `#n` when the project has no prefix);
- the assignees at the end of the name column, using the shared
  AssigneePicker. Users who can edit tasks can reassign from the row;
  others see the avatars only. Clicks on the picker don't open the task.

Assignees follow the view's `fields` setting, as in the Table and Board,
so they show by default and can be hidden from the view settings.

Tests: the Gantt test harness now renders inside a QueryClientProvider
(the picker and the Jev check read through React Query), and the nesting
test finds the child-task request by URL since the view also loads the
project now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@pullfrog pullfrog Bot 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.

✅ No new issues found.

Approach: sound — reuses the shared AssigneePicker, the existing handleMoveToColumn field-update path, and the same viewConfig.fields fallback the Table and Board already use, so no new data flow or persistence is introduced.

Reviewed changes — read the full 5-file diff plus the related view code (task-row.tsx, task-card.tsx, view-utils.ts, interaction-layout.tsx, use-jev-enabled.ts), then ran the two affected Gantt test files (30 tests pass) and biome check on the changed files (clean).

  • Task ID before the title — PREFIX-n, falling back to #n when the project has no prefix; the render guard matches the Board card's.
  • Inline assignee picker — rendered inside a click/keydown-stopping wrapper so the row's open handler doesn't fire, with editability gated on canEdit && onMoveToColumn exactly like the Table's assignee cell.
  • Fields setting honored — showAssignee derives from viewConfig.fields with a DEFAULT_VISIBLE_FIELDS fallback, mirroring list-view.tsx and board-view.tsx (an empty list means defaults, not "hide everything").
  • Reassignment wiring — passes the picker's patch to handleMoveToColumn; its ["projects", projectId, "tasks"] invalidation also covers the Gantt child-task query key.
  • Prop threading, tests and docs — taskIdPrefix passed the same way as Board/List, new assignee/ID tests added, and the Gantt "Task column" bullet documented.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@pikann pikann 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.

LGTM! Thank you for the contribution! 🚀

@pikann
pikann merged commit b43ba00 into Paca-AI:master Nov 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants