feat(desktop): add sidebar categories and manual channel ordering - #2947
Open
NYTEMODEONLY wants to merge 8 commits into
Open
feat(desktop): add sidebar categories and manual channel ordering#2947NYTEMODEONLY wants to merge 8 commits into
NYTEMODEONLY wants to merge 8 commits into
Conversation
NYTEMODEONLY
marked this pull request as ready for review
July 26, 2026 16:24
Co-authored-by: nytemodeonly <contact@nytemode.com> Signed-off-by: nytemodeonly <contact@nytemode.com>
Co-authored-by: nytemodeonly <contact@nytemode.com> Signed-off-by: nytemodeonly <contact@nytemode.com>
Co-authored-by: nytemodeonly <contact@nytemode.com> Signed-off-by: nytemodeonly <contact@nytemode.com>
Co-authored-by: nytemodeonly <contact@nytemode.com> Signed-off-by: nytemodeonly <contact@nytemode.com>
…l default Make stream groups default to implicit Manual (unset vs explicit A–Z), put categories and the Channels block in one unified reorderable lane with optional channelsBlockIndex NIP-78 field, quiet block grips, and keyboard/menu/pointer paths. Cover delete-index, first-reorder Manual enable, non-integer index rejection, and E2E keyboard block move. Co-authored-by: nytemodeonly <contact@nytemode.com> Signed-off-by: nytemodeonly <contact@nytemode.com>
Re-query the live section-actions trigger on dialog close so Escape after duplicate-name rejection still focuses the trigger even if the movable Channels shell remounted under the unified block order. Open create via the next frame after pinning trigger focus so Radix's focus stack captures the correct node. Co-authored-by: nytemodeonly <contact@nytemode.com> Signed-off-by: nytemodeonly <contact@nytemode.com>
Signed-off-by: nytemodeonly <contact@nytemode.com>
Signed-off-by: nytemodeonly <contact@nytemode.com>
NYTEMODEONLY
force-pushed
the
fizz/sidebar-categories-manual-order
branch
from
July 29, 2026 16:12
2097ac4 to
00a615f
Compare
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.
Summary
Manualthe default for stream groups that have no saved sort preference, while preserving explicit A-Z and Recent choiceschannel-manual-orderNIP-78 documentWhy
Buzz already supported encrypted custom sections and section reordering, but category creation was buried in a channel context menu and exact channel order was not persisted. This extends the existing model instead of adding a competing category subsystem, while making the sidebar behave like a coherent manually ordered lane.
Behavior
Persistence and compatibility
channel-sectionsv1 document.channelsBlockIndex; missing or malformed values preserve the legacy custom-categories-then-Channels layout.channel-manual-orderdocument.Regression fixes retained
Startup sync race
Creating a category before the initial NIP-78 fetch completed could show it briefly, then silently remove it. The pending-local guard prevents an older fetched snapshot from overwriting the edit or cancelling its debounced publish while retaining normal timestamp/event-ID conflict handling for idle remote updates.
Invisible rows during drag
A draggable row in WKWebView could remain in the DOM and accessibility tree but stop painting when
content-visibility: autowas combined with dnd-kit transforms. Sortable channel rows now remain paintable while non-draggable rows retain the optimization.Focus restoration
Current Block main intentionally skips generic menu focus restoration for New Message so its recipient input keeps focus. Category creation now preserves the live Channels actions trigger separately, allowing Escape/close to restore focus after the sortable lane remounts without regressing New Message.
Validation
Refreshed upstream branch at
00a615f54f0797c11731ddefe593eeeb1387a560, rebased onto Blockmainat9752b816a95e88751b9c7e4d3343fe3210de5d43:pnpm --dir desktop typecheck: passedpnpm --dir desktop check: passed across 1,703 files and all policy guardschannel-categories-manual-order.spec.ts: 8 / 8 passed with retries disabledThe focused browser suite covers category create/duplicate rejection, rename/delete and focus restoration, manual channel reorder plus reload, keyboard channel movement, empty-category insertion, Move up/down across Channels, pointer category-block movement, and keyboard category-block movement plus reload.
Scope
Desktop only. This branch contains no mobile implementation, NYTEMODE branding, updater/distribution changes, installer changes, or identity/profile changes.