-
Notifications
You must be signed in to change notification settings - Fork 731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Rich text editor] Add support for links in the rich text editor #7746
Conversation
ca6f503
to
656e812
Compare
...or/src/main/java/im/vector/app/features/home/room/detail/composer/MessageComposerFragment.kt
Outdated
Show resolved
Hide resolved
...or/src/main/java/im/vector/app/features/home/room/detail/composer/MessageComposerFragment.kt
Outdated
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/features/home/room/detail/composer/RichTextComposerLayout.kt
Outdated
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/features/home/room/detail/composer/link/SetLinkAction.kt
Outdated
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/features/home/room/detail/composer/link/SetLinkAction.kt
Outdated
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/features/home/room/detail/composer/link/SetLinkViewEvents.kt
Outdated
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/features/home/room/detail/composer/link/SetLinkViewEvents.kt
Outdated
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/features/home/room/detail/composer/link/SetLinkViewModel.kt
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/features/home/room/detail/composer/link/SetLinkViewModel.kt
Show resolved
Hide resolved
.../src/test/java/im/vector/app/features/home/room/detail/composer/link/SetLinkViewModelTest.kt
Outdated
Show resolved
Hide resolved
65c30f4
to
994dddf
Compare
994dddf
to
a48da7e
Compare
SonarCloud Quality Gate failed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One remark otherwise LGTM
/** | ||
* Add Mavericks capabilities, handle DI and bindings. | ||
*/ | ||
abstract class VectorBaseDialogFragment<VB : ViewBinding> : DialogFragment(), MavericksView { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why creating this new baseclass ? the ui doesn't look like a Dialog. Also we use BottomSheet usually? It's weird
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason I didn't use a bottom sheet is because the design is supposed to look like a 'full screen dialog' (see this in the Material spec). I didn't want to fight against the bottom sheet dialog implementation to achieve this full screen design.
Similar features' UI (e.g. polls) use a new Activity to achieve this design but I didn't want to introduce a whole new Activity for this simple modal interaction. I also wanted to be able to communicate to the calling Fragment using a ViewModel which is not possible from a separate Activity.
Hope that makes sense?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, lets keep it like this then, thanks!
I've been doing some testing on my Pixel 6a and it's working good so far, but I wanted to note that this feature will probably make this issue more discoverable by users. |
Type of change
Content
Add the ability to create and edit links using the rich text editor.
Motivation and context
Screenshots / GIFs
links.webm
Tests
Tested devices
Checklist