Repository navigation
feat(native): complete SB-DRAG parity and #293 scroll stability - #355
Merged
Merged
Conversation
Re-anchors scrolled sidebar list offsets across double-ended splices so starting or ending a thread drag while scrolled preserves the visible anchor instead of jumping to index 0, lets explicit omitted-thread navigation and file drops select over an open thread or draft while scoping drop clears by environment, consumes unattachable drops on arrival, and wires project-drag hover/drop cleanup onto Scratch. Fix verified headless in apps/native with RED->GREEN regressions under sidebar::drag_tests:: plus clippy, workspace builds, core/client suites, and check:changed. Model: Antigravity (Claude Sonnet 4.6)
This was referenced Nov 13, 2026
Open
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.
Closes #293
Ref #242
Problem
SB-DRAGinapps/nativeremained partial across thread drag gates, scroll preservation, manual project reordering, external file drops, and ledger evidence:SidebarPane.dragafterstate.update(...)emittedAppEvent::Shell, sosync_list_rowsmissedself.drag.is_some()and lost scroll-top stability when the Pinned/Settled drop markers spliced in at row 0 (parity: fix(web): dragging a sidebar thread no longer scrolls the list out from under the pointer (pingdotgg/t3code#30346) #293).can_operate/config_loaded/scoped_ready(..., ORCHESTRATION_OPERATE_SCOPE)checks and mid-drag cancellation on live permission/working transitions, and active-to-active manual drops in time-ordered sort neededDropPlan::None.Fix
crates/app/src/sidebar/{drag,mod,controller,bulk}.rs): Setself.dragbeforestate.update(...)(resetting on!started) sosync_list_rowspreservesListOffset { item_ix: 0, offset_in_item: px(0.) }across marker splice; add.min_h_0()+pb(px(40.))during drag; enforcecan_operate/config_loaded/scoped_readygates and cancel active drags cleanly if permissions or section eligibility change mid-drag; handle active-to-active drop in time-ordered sort (crates/core/src/sidebar/drag.rs).crates/core/src/sidebar/grouping.rs,crates/app/src/sidebar/{bulk,project_folders,mod}.rs): Add band-preserving (pinned/ regular /archived, excluding scratch)resolve_project_drop_targetandreorder_project_groupsfor manual project sort, wired toreorder_scoped_project+ drag/drop UI handlers.crates/app/src/app_state.rs,crates/app/src/omitted_rows.rs,crates/app/src/composer/{attachments,mod}.rs,crates/app/src/sidebar/{row,search}.rs): Scope external file drops byThreadKey(pending_composer_file_drop), forward single/scoped drops through search and sidebar rows, clear non-matching pending drops on route change, and flush composer attachments safely.crates/app/src/snapshot.rs,crates/app/src/sidebar/drag_tests.rs): Add--drag-holdgesture tosnapshot.rs; add 4 GPUI tests indrag_tests.rscovering scroll stability + Settled overflow reveal, drag permission/settlement gating & mid-drag cancellation, manual project reorder persistence, and external file drop key isolation.apps/native/parity/LEDGER.md): MarkSB-DRAGdone(16/16SB-*).Visual Evidence (
--drag-hold)Draft release: https://github.com/rynfar/t3code/releases/tag/untagged-e2929fc13c9e34ebb82b
--light): https://github.com/rynfar/t3code/releases/download/untagged-e2929fc13c9e34ebb82b/drag-light.png--dark): https://github.com/rynfar/t3code/releases/download/untagged-e2929fc13c9e34ebb82b/drag-dark.pngBoth offscreen captures show the live
--drag-holdThreadDragPreviewcard ([Pin]badge), highlightedPinnedboundary marker, dimmed source row, collapsedSettled 0 >, and dashedSettledplaceholder.Verification (run on exact HEAD
a74d2b4102691fdd4b52e8eb420b31f16da53ccc, isolatedT3_NATIVE_HOMEper invocation)cargo clippy --workspace --all-targets -- -D warnings: pass (0 errors, 0 warnings)cargo build -p t3-native&cargo build -p t3-native --features snapshot: passcargo test -p t3-core -p t3-client:t3-core1298 passed, 0 failed(unit) +8 passed, 0 failed(integration);t3-client105 passed, 0 failedcargo test -p t3-client --features test-support:113 passed, 0 failedcargo test -p t3-native --features snapshot --bin t3-native:sidebar::(--test-threads=1):40 passed, 0 failed(includes 4 newdrag_tests::)composer::(--test-threads=1):6 passed, 0 failedcontext_menu::thread_menu_tests::(--test-threads=1):11 passed, 0 failedomitted_rows::tests::(--test-threads=1):6 passed, 0 failedscoped_route_tests::(--test-threads=1):3 passed, 0 failedgen-theme.ts --checkpass,node --test apps/native/parity/sync.test.ts42/42 passed,conformance/generate.ts --checkpass,vp fmt --check apps/native/parity/LEDGER.mdpassvp run check:changed fork/native: pass (format, 40/40 package typecheck, 2/2 tests)Model/harness: Antigravity (Claude)