feat(sidebar): collapsed aggregate + mobile tap target (LC-79 phase 3) #132
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/lc-79-phase3-collapsed-aggregate-mobile"
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?
Summary
LC-79 phase 3: aggregate unread / mention badges on collapsed categories, plus mobile tap-target fix for the move-to-category dropdown. Closes LC-79 phase 3 and the LC-79 umbrella.
Aggregate badges
SidebarCategoryGroupgainsunread_totalandmention_total.load_sidebarsums them after bucketing rooms into the group. The collapsed-category header inline-renders the two as small pills (blue for unread, red for@Nmentions) so the user sees "you have stuff in here" without having to expand.Mute treatment mirrors the per-room badge: muted rooms contribute zero to
unread_total(the per-room blue pill hides for muted rooms today), while mentions ignore mute (the per-room mention pill ignores it too). Keeps the aggregate consistent with the sum of what would be visible if you expanded the category.Mobile tap target
The hover-revealed
≡move-to-category trigger on each room usedopacity-0 group-hover:opacity-100, which means it never appears on touch devices (nohover). Switched toopacity-60 md:opacity-0 md:group-hover:opacity-100so:Out of scope
layout.html(hidden md:flex+ hamburger toggle). Categories render fine inside that panel; no layout changes needed.Test plan
just check(fmt + clippy across standalone + saas).just test(full standalone suite, all green; 9/9 sidebar tests pass from phases 1+2).@Npill appears; mute one of its rooms - verify the unread pill drops by that room's unread count.≡is visible and tappable.