-
Notifications
You must be signed in to change notification settings - Fork 171
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] Integrate rich text editor library #1172
Conversation
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
edc0018
to
a597272
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #1172 +/- ##
===========================================
- Coverage 57.71% 57.67% -0.04%
===========================================
Files 1078 1081 +3
Lines 28038 28028 -10
Branches 5777 5779 +2
===========================================
- Hits 16181 16166 -15
- Misses 9330 9339 +9
+ Partials 2527 2523 -4
☔ View full report in Codecov by Sentry. |
7bb14ef
to
66ca091
Compare
tests/testutils/src/main/kotlin/io/element/android/tests/testutils/ReceiveTurbine.kt
Outdated
Show resolved
Hide resolved
...napshots/images/ui_S_t[l.textcomposer_null_TextComposerSimple-D-0_1_null,NEXUS_5,1.0,en].png
Outdated
Show resolved
Hide resolved
isFullScreen = isFullScreen.value, | ||
hasFocus = hasFocus.value, | ||
mode = messageComposerContext.composerMode, | ||
showAttachmentSourcePicker = showAttachmentSourcePicker, | ||
canShareLocation = canShareLocation.value, | ||
canCreatePoll = canCreatePoll.value, | ||
attachmentsState = attachmentsState.value, | ||
eventSink = ::handleEvents | ||
eventSink = { handleEvents(it) } |
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.
Workaround for a Kotlin reflection error when toString()
is called in test assertion failures... Related: #1206
|
c0c67be
to
e5f5332
Compare
Fixes issue where screenshot tests are terminated due to lack of CI resources. See actions/runner-images#7188 (comment)
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.
I have done some test and:
- typing and sending message
- editing a message
- replying to a message
are all working as expected.
...in/kotlin/io/element/android/features/messages/impl/messagecomposer/MessageComposerModule.kt
Outdated
Show resolved
Hide resolved
libraries/textcomposer/impl/src/main/res/values-cs/translations.xml
Outdated
Show resolved
Hide resolved
...t/snapshots/images/ui_S_t[f.messages.impl_null_MessagesViewDark_0_null_0,NEXUS_5,1.0,en].png
Outdated
Show resolved
Hide resolved
...napshots/images/ui_S_t[l.textcomposer_null_TextComposerSimple-D-0_1_null,NEXUS_5,1.0,en].png
Outdated
Show resolved
Hide resolved
...composer/impl/src/main/kotlin/io/element/android/libraries/textcomposer/TextComposerState.kt
Outdated
Show resolved
Hide resolved
|
… jonny/integrate-rte
…android into jonny/integrate-rte
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
Thanks for the update!
Merging without maestro tests passing as it seems to be a separate issue related to the login flow tests |
This comment was marked as resolved.
This comment was marked as resolved.
@RokeJulianLockhart since this PR we have reintroduced markdown support. You can now go to advanced settings and turn the rich text editor off to enable markdown. |
Has been changed in #1172 but in general method references should always preferred to lambdas in composable functions (because they have higher stability guarantees).
Has been changed in #1172 but in general method references should always be preferred to lambdas in composable functions (because they have higher stability guarantees).
As of today I cannot see this option on Advanced Settings and all the text is just plain text (not rendering Markdown text from web client). Markdown is an added value compared to other messengers as it helps working better and distinguish messages in the timeline. |
@estux, it works for me: |
If you try with titles it doesn't @RokeJulianLockhart and also doesn't render well messages sent by Element Web (newlines and spaces sometimes not respected) |
@estux, correct! However, that is the purview of a separate issue – a lack of comprehensive Markdown support. I recommend that you file one, if no duplicate exists. |
Type of change
Content
Replace the text input with the Matrix rich text editor.
Note that markdown formatting is no longer respected as the editor is now in WYSIWYG mode, in preparation for UI formatting buttons. Markdown characters such as
*
,.
,-
are now interpreted as literal text and not as markdown syntax.Motivation and context
This editor supports WYSIWYG editing and lays the foundation for further text formatting functionality.
Screenshots / GIFs
N/A, no change.
Tests
Tested devices
Checklist