feat(dm): add clickable URLs, long-press actions, and message reporting#2389
Merged
realmeylisdev merged 4 commits intomainfrom Mar 23, 2026
Merged
feat(dm): add clickable URLs, long-press actions, and message reporting#2389realmeylisdev merged 4 commits intomainfrom
realmeylisdev merged 4 commits intomainfrom
Conversation
- Linkify http/https URLs in message bubbles using Text.rich with TapGestureRecognizer; tapping opens in external browser via url_launcher - Add long-press gesture on message bubbles showing an actions bottom sheet: sent messages offer Copy text; received messages offer Copy text and Report - Create ReportMessageDialog for reporting DM messages via NIP-56 + Zendesk with optional sender blocking (same flow as video report) - Create MessageActionsSheet using VineBottomSheetActionMenu pattern - Fix ClipboardUtils snackbar to use DivineSnackbarContainer instead of raw SnackBar for consistency with the rest of the app - Correct message bubble colors to match Figma: surfaceContainer for sent, neutral10 for received Addresses divinevideo/support-trust-safety#109 — moderation DM templates contain URLs (content links, policy links, crisis resources) that were previously not clickable or copyable. Delete-for-everyone via NIP-09 kind 5 tracked in #2388.
Mobile PR Preview
|
7 tasks
hm21
reviewed
Mar 22, 2026
Contributor
hm21
left a comment
There was a problem hiding this comment.
@realmeylisdev I love seeing how this feature is evolving, and I’ve just left a few comments. I’ll test it afterward, unless someone else tests and approves it before then :)
mobile/lib/screens/inbox/conversation/widgets/message_bubble.dart
Outdated
Show resolved
Hide resolved
mobile/lib/screens/inbox/conversation/widgets/message_bubble.dart
Outdated
Show resolved
Hide resolved
mobile/lib/screens/inbox/conversation/widgets/message_bubble.dart
Outdated
Show resolved
Hide resolved
mobile/lib/screens/inbox/conversation/widgets/report_message_dialog.dart
Outdated
Show resolved
Hide resolved
mobile/lib/screens/inbox/conversation/widgets/report_message_dialog.dart
Outdated
Show resolved
Hide resolved
mobile/lib/screens/inbox/conversation/widgets/report_message_dialog.dart
Outdated
Show resolved
Hide resolved
mobile/lib/screens/inbox/conversation/widgets/report_message_dialog.dart
Outdated
Show resolved
Hide resolved
mobile/lib/screens/inbox/conversation/widgets/report_message_dialog.dart
Outdated
Show resolved
Hide resolved
Addresses all 9 review comments from @hm21: message_bubble.dart: - Wrap bubble in Semantics widget for accessibility (comment #1) - Use defaultStyle.copyWith() for link style instead of hard-coded TextStyle to stay in sync with bodyMediumFont changes (comment #2) - Add external URL warning dialog for non-Divine domains before opening in browser, with trusted domain allowlist (comment #3) report_message_dialog.dart: - Replace all raw TextStyle(color: VineTheme.whiteText) with VineTheme.titleMediumFont/bodyMediumFont/bodySmallFont (comments #5, #6) - Replace all raw SnackBar with DivineSnackbarContainer.snackBar() for consistent themed snackbar styling (comments #7, #8) - Replace manual _getReasonDisplayName switch with reason.description from ContentFilterReason enum (comment #9) - Remove dead _getReasonDisplayName method (14 lines)
Contributor
Author
|
@hm21 All 9 review comments addressed in the latest commit:
Ready for re-review when you get a chance. |
hm21
reviewed
Mar 23, 2026
mobile/lib/screens/inbox/conversation/widgets/message_bubble.dart
Outdated
Show resolved
Hide resolved
hm21
reviewed
Mar 23, 2026
Contributor
hm21
left a comment
There was a problem hiding this comment.
@realmeylisdev Thanks for fixing the review comments! I just left one final comment after the LGTM.
Move Semantics directly above GestureDetector, replace label with hint, and add onLongPressHint for accessibility.
hm21
approved these changes
Mar 23, 2026
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.
Closes #2391
Summary
http://andhttps://URLs render as blue underlined links that open in external browserClipboardUtilsnow usesDivineSnackbarContainerinstead of rawSnackBarsurfaceContainer, received =neutral10per Figma specAddresses divinevideo/support-trust-safety#109 — moderation DM templates contain URLs (content links, policy links, crisis resources) that were previously not clickable or copyable.
"Delete for everyone" via NIP-09 kind 5 events tracked separately in #2388.
Test plan
Check out https://divine.video/terms) — URL renders blue+underlined, tapping opens browser