feat: read-state & cross-server notifications, context menus, message markup, resizable channel column & space settings#100
Merged
Conversation
Long-press (touch) and right-click (onSecondaryTap, desktop) on a channel row or category header now open a context menu, mirroring the existing space-rail menu pattern. - Channel menu: Mark as read (when unread), Mute/Unmute (server-side via client.channels.mute/unmute), and — with manage_channels — Edit and Delete. - Category menu: Expand/Collapse, and — with manage_channels — Create channel here, Edit, and Delete. Reuses the existing edit/create dialogs and the header bell's mute pattern; factors the delete confirmation into a shared confirmAndDeleteChannel helper. Threads canManageChannels/spaceId into _ChannelTile and _CategoryHeader (the latter is now a ConsumerWidget). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…ctions & two-column space settings - Resizable left channel column with width persisted across restarts (new channelListWidth setting + drag handle) - Hover tooltip on message timestamps showing full date/time - Mobile/desktop message actions menu via long-press / right-click, with multi-select demoted to a menu entry - Shared showAccordContextMenu helper: anchored popups on desktop, bottom sheets on touch, applied across spaces/folders/members/ channels/categories - Two-column space settings layout on desktop, single column on mobile Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…ate reactions/DM/accordkit # Conflicts: # lib/features/messaging/components/box/accord_message_content.dart # lib/features/messaging/components/box/accord_message_markup.dart # test/features/messaging/accord_message_markup_test.dart
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
This branch bundles five related UI/UX features (commit
c4d1dd04plus the original context-menu commit2bae4b9f). They were developed together against the same screens, so they're shipped as one branch.Important
Merge-order dependency. The read-state work calls
client.onReadStateUpdate, which is added in DaccordProject/accordkit-dart#1. That SDK PR must merge (and this client re-resolveaccordkit) before CI here can compile. The server-side behaviour (mention counts,read_state.updatebroadcast,space_idin unreads) lands in DaccordProject/accordserver#27.What changed
1. Read-state & cross-server notifications
serverKey=userId@baseUrl) via akeepAlivefamily provider, so colliding snowflake IDs across servers don't clobber each other.ReadStateSnapshotreworked aroundReadEntry { channelId, spaceId, mentions }, enabling server-level rollups (anyUnreadInSpace,mentionsInSpace) that drive the rail's unread dot and mention badge.onReadStateUpdatesubscription clears a channel's badge in real time when you ack it on another device (multi-device sync).2. Channel & category context menus (original scope)
manage_channels-gated edit/create/delete. Newchannel_context_menu.dart+ sharedcontext_menu.dartanchored-menu helper.3. Message markup rendering
accord_message_markup.dartcustom inline markdown syntaxes for Accord mentions/channels/emoji (promoteddart_markdown+source_spanto direct deps).accord_message_content.dartreworked onto it.4. Resizable channel column
AccordSettings.channelListWidth(clamped), live width kept local during drag to avoid per-frame Hive writes.5. Two-column space settings
accord_space_settings.dartreworked into a two-column layout.Test plan
flutter analyze --no-fatal-infos— clean (pre-existing infos only)flutter test— passing🤖 Generated with Claude Code