feat(web): drag sidebar threads between categories - #145
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 694408c6a8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| case "snooze": | ||
| return ( | ||
| capabilities?.threadSnooze === true && | ||
| canSnooze(thread, { now: new Date().toISOString() }) |
There was a problem hiding this comment.
Gate snooze drops on exclusive-lifecycle support
When the current web or desktop client connects to a pre-313 server, this check enables cross-section snooze drops using the already-existing threadSnooze capability. The parent server advertises that capability, but its thread.snooze and thread.unsnooze handlers preserve pinnedAt and settledOverride; consequently, a thread dragged from Pinned or Settled into Snooze returns to its old section after Wake or expiry instead of Regular as the new UI promises. Version this semantic with a new capability, or perform compatible cleanup before enabling these drops.
AGENTS.md reference: AGENTS.md:L19-L21
Useful? React with 👍 / 👎.
Thread transfer impact
This comment will update automatically after the next completed run. |
bc12f02 to
d263d44
Compare
What Changed
main.Why
The sidebar previously allowed reordering only inside Pinned. This backport brings the upstream cross-category drag behavior to the fork without retaining the earlier divergent implementation.
UI Changes
Before: drag and drop only reordered threads within Pinned.
After: the upstream recording covers pinned reorder, moves between categories, the snooze menu, card-to-compact morphing, auto-scroll, and viewport stability.
recording-a377fc69-049a-472c-9a65-b0a7aa970521.mp4
Verification
vp fmt --check <24 changed files>vp lint <22 changed TypeScript files> --report-unused-disable-directivesvp run --filter @t3tools/web --filter t3 --filter @t3tools/mobile --filter @t3tools/contracts typecheckvp test run apps/server/src/orchestration/decider.pinned.test.ts apps/server/src/orchestration/decider.snoozed.test.ts apps/web/src/components/Sidebar.dnd.logic.test.ts apps/web/src/components/Sidebar.logic.test.ts(158 passed)git diff --checkChecklist
Model: GPT-5.6-sol
Harness: Codex in T3 Code