Skip to content

Smooth sidebar thread drop transitions - #3639

Merged
ymichael merged 9 commits into
mainfrom
bb/fix-sidebar-row-drop-animation-thr_gqbu6y33t4
Sep 14, 2026
Merged

ymichael merged 9 commits into
mainfrom
bb/fix-sidebar-row-drop-animation-thr_gqbu6y33t4

Conversation

@ymichael

@ymichael ymichael commented Sep 14, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Sidebar thread drops combined dnd-kit’s overlay return animation with an early teardown of the projected destination. The source row also continued reserving layout space until the mutation rendered, while empty source sections retained child spacing for an extra frame. Together these state and layout transitions made rows snap backward and neighboring sections jump when a drop landed. The full-width floating drag copy also obscured potential row and parenting targets.

What changed

  • Disable the drag-overlay return animation and keep the projected destination until the optimistic thread move appears in the rendered lookup.
  • Remove the active source row from layout once a valid destination exists.
  • Render the destination gap as a visible muted copy of the dragged thread at its final sorted position.
  • Render the floating dragged copy as an opaque, content-sized title chip instead of a full-width row.
  • Make projected-empty sections adopt their final geometry during the drag, including collapsed destination handling.
  • Add regression coverage for overlay behavior, projection handoff, destination preview styling, compact dragged-copy geometry, and section child spacing.
  • No server/daemon wire, CLI, or documentation changes.

How you verified

  • pnpm exec turbo run typecheck --filter=@bb/app
  • pnpm exec turbo run test --filter=@bb/app -- src/components/sidebar — 237 tests passed
  • Focused interaction and projection tests after follow-up refinements
  • pnpm exec oxlint on the changed sidebar files
  • Manually dragged synthetic thread fixtures between expanded and collapsed sidebar sections in the source dev app and verified persisted section state through the source CLI. Frame-by-frame geometry checks confirmed the emptied source section and following section remain stationary when the drop lands. A live browser check confirmed the opaque dragged chip shrinks from the 303px source row to 180px for the fixture title and remains pointer-transparent.

AGENT GENERATED

@ymichael
ymichael merged commit 3b35e66 into main Sep 14, 2026
16 checks passed
@ymichael
ymichael deleted the bb/fix-sidebar-row-drop-animation-thr_gqbu6y33t4 branch September 14, 2026 22:23
ymichael added a commit that referenced this pull request Sep 14, 2026
## Human comments

## What was wrong

The regression test added with #2994 raced the supervisor's real
completion against an unrelated 250 ms timer. The loopback health probe
and daemon termination are scheduler-dependent, so package-level CI
contention could let the timeout win even though the supervisor
correctly detected the healthy replacement server, sent the daemon
SIGTERM, and resolved as stopped. This is the failure captured in [CI
run 34899568032](https://github.com/get-bb/bb/actions/runs/34899568032)
on unrelated UI-only PR #3639.

## What changed

The port-takeover test now awaits the supervisor promise, which is the
behavior's actual completion boundary. Its injected restart delay throws
immediately if the supervisor enters the wrong retry path, so a
regression fails without leaving blocked asynchronous work. The real
ephemeral HTTP health server and the assertions for no restart plus
daemon SIGTERM remain intact.

This is test-only. It changes no server/daemon wire field, CLI surface,
or product behavior, so `HOST_DAEMON_PROTOCOL_VERSION` remains 207.

## How you verified

- Before the change on the frozen Intel base, 10 unloaded runs passed in
33–36 ms; 128 bounded CPU workers reproduced `timeout` versus `stopped`
while the correct healthy-server stop branch logged, with the test
taking 790 ms.
- After the change, the same bounded 128-worker Intel stress passed in
690 ms on the host runtime and in 605 ms on Node 22.19.0 x64.
- `pnpm exec turbo run test --filter=bb-app --force` under Node 22.19.0:
5 files, 81 tests passed.
- `pnpm exec turbo run typecheck --filter=bb-app --force` under Node
22.19.0: 3/3 tasks passed.
- `pnpm exec turbo run build --filter=bb-app --force` under Node
22.19.0: 48/48 tasks passed.
- `git diff --check origin/main` passed.
- All stress workers, Vitest workers, and Turbo/build processes were
externally bounded and absent after their runs.

The complete repository-wide 92-package test matrix was not run locally;
validation covered the changed `bb-app` package and its full forced
build graph.

> AGENT GENERATED: by GPT-5.6-Sol
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