feat(mobile): add channel sections with relay sync#800
Open
wpfleger96 wants to merge 1 commit into
Open
Conversation
02d06b9 to
2b5e69e
Compare
User-defined channel groups for the mobile sidebar, matching the desktop feature. Sections are persisted locally via SharedPreferences and synced across devices through NIP-78 kind 30078 events with NIP-44 encryption, using the same data format as desktop so changes propagate bidirectionally. Adds CRUD (create/rename/delete sections, move up/down), channel assignment via long-press action sheet, and section rendering above the ungrouped "Channels" group. Follows the ReadStateManager pattern for relay fetch/subscribe/publish with 5-second debounced writes and last-write-wins conflict resolution.
c353ec6 to
acd0e36
Compare
Collaborator
Author
Collaborator
Author
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.


Adds channel sections to the mobile app, bringing it to full parity with the desktop feature introduced in #789 and #792.
Users who organize their channels into sections on desktop currently see a flat list on mobile. This PR renders those sections, supports creating/renaming/deleting/reordering them, lets users assign channels via long-press, and syncs bidirectionally with desktop through the same NIP-78 kind 30078 events and NIP-44 encryption established in #792.
channel_sections_storage.dart— SharedPreferences persistence with keysprout.channel-sections.v1:<pubkey>, matching the desktop format exactly so the same relay events decode correctly on both platformschannel_sections_manager.dart—ChannelSectionsCrypto(NIP-44 encrypt-to-self) +ChannelSectionsManagerwith full CRUD, 5-second debounced publish, kind 30078 fetch/subscribe, and last-write-wins merge (newercreatedAtwins; event ID tie-break)channel_sections_provider.dart—ChannelSectionsNotifierRiverpod provider watchingrelayConfigProvider,relaySessionProvider, andactiveWorkspaceProvider; followsReadStateNotifierpattern throughoutchannels_page.dart— renders user-defined_CustomChannelSectionwidgets above the built-in "Channels" group; adds_CustomSectionHeaderwithPopupMenuButton(rename/move up/move down/delete); adds long-press on_ChannelTileto open a "Move to section" action sheet;_SectionNameDialogfor create/rename flowsStack: #789 (desktop UI) → #792 (relay sync) → this PR (mobile)