fix(sidebar): active-room highlight + drag-to-uncategorize (LC-79 follow-up) #138
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/sidebar-active-room-and-uncategorize"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bugs
Two follow-ups on the per-enclave categorization refactor (PR #137). Both reported after the redesign branch was up.
1. Selected channel not highlighted when categorized
routes::room::get_roomonly mutated the uncategorizedsidebar_roomsvec to fliproom.active = trueon the open channel. After the LC-79 redesign categorized rooms live insidesidebar_categories[i].rooms; opening a categorized channel left its sidebar link unhighlighted because theiter_mut().find()missed it. Now scans every category group as a fallback.2. Can't drag a room back into "All rooms"
The uncategorized list wasn't a drop target. The only uncategorize path was the per-row "Remove from category" dropdown - functional but surprising when every other section accepts drag. Made the uncategorized
<ul>a drop target with a newdata-uncategorize-urlattribute (gated on admin + enclave context). The JS detects the alternate attribute and firesDELETE /enclave/{id}/sidebar/categories/rooms/{room_id}per dropped room.Branch ordering
Built on top of
refactor/lc-79-enclave-scoped-categories(PR #137). Merging this before #137 lands won't apply cleanly - merge #137 first or rebase.Test plan
just check(fmt + clippy across standalone + saas).