Add initial support for username/community mentions #751
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.
Pull Request Description
This is a first-pass implementation for adding easier username and community mentions in the comment and post editor. For this first pass, mentions can be initiated via editor buttons and a popup dialog.
In the future, it would be nice to detect that a username/community is being mentioned while typing (
@
/!
) and show relevant results inline based on what has been typed (like the web UI). That will be a bit more work, so I figured we could get the groundwork in place here (and I also did some refactoring to that end).Note that thunder-app/markdown-editor#3 must be merged first, then I'll update
pubspec.yaml
here.Issue Being Fixed
Issue Number: Related to #256 and #500, but not a complete solution.
Screenshots / Recordings
qemu-system-x86_64_7iDUMAi5QD.mp4
Checklist
semanticLabel
s where applicable for accessibility?