Skip to content

fix(app): nest parented tasks in Manually sidebar mode - #461

Merged
SawyerHood merged 1 commit into
mainfrom
bb/show-parent-tasks-manually-thr_3zh45pgi8k
Jul 1, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
bb/show-parent-tasks-manually-thr_3zh45pgi8k

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

What

Restores parent/child nesting in the sidebar's "Manually" (chronological) organization mode. Child/subtask threads now render indented under their parent again, instead of as flat top-level rows.

Why / history

Change

buildProjectThreadGroups and buildChronologicalThreadList were near-identical and had drifted apart — that divergence is the bug. Both now route through one shared assembleThreadItems helper, differing only by the groupEnvironmentThreads flag (on for projects, off for chronological). Folder grouping / manual order run on the root items, so descendants stay nested under their parent and follow it into its folder — matching Projects mode.

Intentional trade-off: in Manually mode you can no longer drag a child into a different folder independently of its parent (children follow their parent), identical to Projects mode.

Tests

  • @bb/app typecheck: pass
  • All sidebar tests: 81/81 pass
  • Added regression test nests a child thread under its parent root inside a folder — verified it fails on the old flat code (produced a loose 'child' row) and passes with the fix.
  • Manually QA'd in the dev app: switching Organize by → Manually shows the three subtasks nested under the manager thread with the tree guide line.

🤖 Generated with Claude Code

Restore parent/child nesting in the sidebar's "Manually" (chronological)
organization. #319 added the nesting, but #258 (sidebar folders)
regressed it: buildChronologicalThreadList started flattening every
thread to children: [] and the renderers hard-code groupBy: "folder",
which routed manual mode through the flat branch and left #319's nesting
path unreachable.

Route buildProjectThreadGroups and buildChronologicalThreadList through a
shared assembleThreadItems helper (they differ only by the
groupEnvironmentThreads flag) so the two paths can't silently drift apart
again. Child threads now nest under their parent root and follow it into
its folder, matching Projects mode. Adds a regression test.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@SawyerHood
SawyerHood merged commit 9f14206 into main Jul 1, 2026
6 checks passed
@SawyerHood
SawyerHood deleted the bb/show-parent-tasks-manually-thr_3zh45pgi8k branch July 1, 2026 19:28
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