Skip to content

feat: redesign linked tasks to match the subtasks section - #856

Merged
pikann merged 3 commits into
masterfrom
feat/linked-tasks-redesign
Dec 3, 2026
Merged

pikann merged 3 commits into
masterfrom
feat/linked-tasks-redesign

Conversation

@pikann

@pikann pikann commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Redesigns Linked Tasks in the task detail so it matches the Subtasks section.

  • Linked tasks use the same card and row as subtasks, with type, assignee, priority and status editable inline. Clicking a row opens the task.
  • Relationships are small group headers inside the card, now translated in all 9 locales. "Is blocked by" is highlighted.
  • The shared row (so Subtasks changes too) has fixed columns, an icon-only type and a compact layout for narrow panels, where priority shows as a colored dot.
  • Removing a link is a hover trash icon. "Load more links" replaces auto-loading on scroll.
  • A linked Epic's type is read-only here; other types, and tasks with no type, can be changed.
  • API: each linked_task in the task links response now includes importance and assignee_ids.

Type of Change

  • Other: UI/UX improvement with a small additive API change

Testing

  • Web interaction tests pass, including new tests for the linked tasks section.
  • Task link repository tests pass against a temporary Postgres. TestGitStore_ChangeRequestsAndTaskLinks fails there both with and without this change.
  • tsc -b in apps/web reports only two unresolved devtools packages locally, in files this PR does not touch.
  • Layout checked with sample data in wide and narrow panels, not end to end against a running API.

Checklist

  • The change is focused and scoped.
  • Related documentation is updated.
  • New structure or direction is explained clearly.
  • I avoided unnecessary detail or premature abstraction.

Linked tasks now share the subtask row: type, assignee, priority and
status are shown and editable inline, grouped by relationship in one
card. Rows use fixed columns, an icon-only type and a compact layout in
narrow panels.

The task links API now returns importance and assignee_ids for each
linked task, and relationship labels are translated.

@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 blocking issues — four non-blocking findings below.

Approach: sound — reusing the shared row keeps Linked Tasks and Subtasks consistent, centralizes the inline editors, and the API change is narrowly additive with batch-loaded assignees.

Reviewed changes — read the complete 21-file diff and traced the inline-edit path through the query cache and the API's assignee loading.

  • Linked-tasks UI — Linked tasks now render through SubtaskRow with inline type, status, priority and assignee editors, relationship group headers inside one card, a hover remove button, and explicit “Load more links” pagination.
  • Shared row — SubtaskRow is generic over a SubtaskRowTask pick, gains canEditType/actions, moves the type to a leading icon-only selector, and uses container queries for the narrow-panel layout; the Subtasks section inherits these changes.
  • API — LinkedTaskSummary gains importance and assignee_ids; the list query selects importance and batch-loads assignees, and both list and create responses populate them. Verified that every current TaskLinkResponse path returns a non-nil array.
  • i18n and tests — relationship labels moved from hardcoded English into all nine locales; the new component test covers listing, removal and read-only mode.

Non-blocking

  • Linked tasks lost keyboard activation. The previous row exposed the title as a role="button" with tabIndex/Enter/Space plus an “Open task” button; the new SubtaskRow attaches onClick to a plain <div> (with biome-ignore for useKeyWithClickEvents), so keyboard users have no way to open a linked task. subtask-row.tsx#L83-L88 — make the row or title focusable and handle Enter/Space when onClick is set.

  • Linked-row fields stay stale after another client edits the task. The row now displays mutable task fields, but isTaskListKey excludes .../links keys and applyTaskChange refreshes only the activities sub-query on task.updated, so a teammate’s status/priority/type/assignee change won’t appear here until the panel remounts. cache-patch.ts#L58-L69 · #L237-L268 — patch the cached linked-task summary for the changed task id, or refresh the affected links queries.

  • An untyped linked task cannot be given a type. isNormalType is false when task_type_id is null, so canEditType is false and the type renders as an inert badge. task-links-section.tsx#L200-L212 — treat a null type as editable and pass normalTaskTypes for the option list so Epic still stays out.

  • ListAllTaskLinks now pays for assignee data nobody reads. The automation consumer is the only production caller and discards LinkedTask.AssigneeIDs; the new attach call adds a task_assignees query per link-target resolution and a failure point on an internal path. task_link_repository.go#L141-L143 — loading assignees only in the API-facing ListTaskLinks would leave automation unchanged.

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

@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 blocking issues — one non-blocking note below.

Approach: sound — the follow-up commit closes each prior finding directly: the row gains a real title button, untyped links become editable, cached link lists refresh from realtime snapshots, and ListAllTaskLinks stops loading assignees it never returns.

Reviewed changes — reviewed the 10-file delta since the prior pullfrog review and traced the new cache-refresh path through the query cache and the API's assignee loading.

  • Rendered the row title as a <button> when the row opens a task, restoring keyboard activation for linked and subtask rows, with a test.
  • Allowed an untyped linked task to be given a normal type while keeping a typed Epic read-only.
  • Added refreshLinksShowing so task.updated/task.deleted refetch cached link lists whose copy of the task is out of date, with tests.
  • Stopped ListAllTaskLinks from batch-loading linked-task assignees that no caller reads.
  • Switched the icon-only type selector's accessible “no type” label to the spelled-out viewUtils.groups.noType.

Non-blocking

  • The “Subtask type is read-only” claim does not match the code. typeEditable relies on normalTaskTypes, but getNormalTaskTypes filters only the system Epic, so a legacy non-system Subtask type is included and stays editable — contrary to the new comment at task-links-section.tsx#L200-L206 and the PR description. If a Subtask's type should stay fixed, add an explicit check; otherwise the comment and PR description should say only Epic is special.

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

@pikann
pikann merged commit 4e9dbe1 into master Dec 3, 2026
8 checks passed
@pikann
pikann deleted the feat/linked-tasks-redesign branch December 3, 2026 09:57
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.

1 participant