Top-of-rail DM button + member context menu & quick DM#101
Merged
Conversation
Move the Direct Messages entry to the top of the left rail and style it as a 48px speech-bubble tile (Discord-style) instead of a small footer icon, separated from the space list by a divider. Add a quick-utility right-click / long-press context menu to member roster rows (View Profile, Direct Message, Copy User ID, Copy Username); moderation stays in the tap-to-open profile popout. Add a Direct Message action to the member popout too. Introduce openAccordDirectMessage(), which creates-or-opens the 1:1 DM via the idempotent users.createDm and opens the DM dialog straight into the conversation (showAccordDirectMessages gains an initialChannel param). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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
showMenupattern.openAccordDirectMessage(context, ref, userId)helper creates-or-opens the 1:1 DM via the idempotentusers.createDm({recipients:[id]})and opens the DM dialog straight into that conversation.showAccordDirectMessagesgained an optionalinitialChannelto support this.Why
The DM entry point was a hard-to-spot icon at the bottom of the rail, and members had no right-click affordance. This brings both in line with the reference client / Discord conventions and makes starting a DM a one-click action from a member's row or profile.
Reviewer notes
_Composer) is private with a self-owned controller and no external injection hook, so wiring it would require new cross-cutting plumbing. Easy follow-up if wanted.users.createDmbeing idempotent for a single recipient (returns the existing channel). When opened from the popout, the DM dialog stacks over it rather than replacing it.flutter analyze --no-fatal-infosis clean on all four changed files. Not smoke-tested in a running app — worth a manual check of right-click → Direct Message and the popout's new button.Test plan
🤖 Generated with Claude Code