Repository navigation
fix(app): nest parented tasks in Manually sidebar mode - #461
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
buildChronologicalThreadListbegan flattening every thread tochildren: [], and the renderers (ChronologicalThreadTree/ChronologicalFolderThreadSections) hard-codegroupBy: "folder"— routing manual mode through the flat branch and leaving Nest sidebar children when grouping is disabled #319's nesting path unreachable. Projects mode kept nesting the whole time viabuildProjectThreadGroups.Change
buildProjectThreadGroupsandbuildChronologicalThreadListwere near-identical and had drifted apart — that divergence is the bug. Both now route through one sharedassembleThreadItemshelper, differing only by thegroupEnvironmentThreadsflag (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/apptypecheck: passnests 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.🤖 Generated with Claude Code