Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Android: second iteration for mentions #859

Merged

Conversation

jmartinesp
Copy link
Contributor

  • Add insertAtRoomMentionAtSuggestion method to be able to insert properly formatted @room mentions.
  • Add a way to track MentionsState.
  • Add better examples for replaceSuggestionText.

- Add `insertAtRoomMentionAtSuggestion` method to be able to insert properly formatted `@room` mentions.
- Add a way to track `MentionsState`.
- Add better examples for `replaceSuggestionText`.
@codecov-commenter
Copy link

codecov-commenter commented Nov 3, 2023

Codecov Report

Attention: 19 lines in your changes are missing coverage. Please review.

Comparison is base (57d97a7) 89.39% compared to head (8bfa70a) 87.21%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #859      +/-   ##
============================================
- Coverage     89.39%   87.21%   -2.18%     
- Complexity        0      393     +393     
============================================
  Files           118      133      +15     
  Lines         16821    17243     +422     
  Branches        635      389     -246     
============================================
+ Hits          15037    15039       +2     
- Misses         1760     1942     +182     
- Partials         24      262     +238     
Flag Coverage Δ
uitests 65.23% <45.65%> (-13.55%) ⬇️
uitests-android 65.23% <45.65%> (?)
uitests-ios ?
unittests 86.57% <44.82%> (-1.45%) ⬇️
unittests-android 44.86% <44.82%> (?)
unittests-ios ?
unittests-rust 89.34% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...ent/android/wysiwyg/compose/RichTextEditorState.kt 77.21% <100.00%> (ø)
...ent/android/wysiwyg/compose/internal/ViewAction.kt 100.00% <100.00%> (ø)
...id/wysiwyg/internal/viewmodel/EditorInputAction.kt 100.00% <ø> (ø)
.../element/android/wysiwyg/compose/RichTextEditor.kt 68.22% <75.00%> (ø)
...oid/wysiwyg/compose/internal/FakeViewConnection.kt 92.94% <83.33%> (ø)
.../java/io/element/android/wysiwyg/EditorEditText.kt 66.00% <61.53%> (ø)
...roid/wysiwyg/internal/viewmodel/EditorViewModel.kt 46.87% <36.84%> (ø)

... and 72 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@jonnyandrew jonnyandrew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks for all the tests!

Copy link

sonarqubecloud bot commented Nov 6, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@jmartinesp jmartinesp merged commit d0ba997 into main Nov 6, 2023
6 of 7 checks passed
@jmartinesp jmartinesp deleted the android/add-insert-at-room-mention-and-mentionsstate branch November 6, 2023 15:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants