Skip to content
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: Adding/Editing Links feature #7158

Merged
merged 19 commits into from
Dec 14, 2022

Conversation

Velin92
Copy link
Member

@Velin92 Velin92 commented Dec 12, 2022

RPReplay_Final1670867683.MP4

@Velin92 Velin92 changed the title Rich Text Editor: Adding/Editing Links support Rich Text Editor: Adding/Editing Links Dec 12, 2022
@Velin92 Velin92 linked an issue Dec 12, 2022 that may be closed by this pull request
@Velin92 Velin92 changed the title Rich Text Editor: Adding/Editing Links Rich Text Editor: Adding/Editing Links feature Dec 12, 2022
@codecov
Copy link

codecov bot commented Dec 12, 2022

Codecov Report

Base: 11.74% // Head: 11.83% // Increases project coverage by +0.08% 🎉

Coverage data is based on head (501eb8d) compared to base (1efa7c1).
Patch coverage: 52.77% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #7158      +/-   ##
===========================================
+ Coverage    11.74%   11.83%   +0.08%     
===========================================
  Files         1621     1627       +6     
  Lines       159428   159793     +365     
  Branches     64922    65150     +228     
===========================================
+ Hits         18732    18911     +179     
- Misses      140058   140244     +186     
  Partials       638      638              
Flag Coverage Δ
uitests 54.94% <74.34%> (+0.26%) ⬆️

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

Impacted Files Coverage Δ
Riot/Modules/Room/RoomViewController.swift 0.00% <0.00%> (ø)
.../WYSIWYGInputToolbar/WysiwygInputToolbarView.swift 0.00% <0.00%> (ø)
...oordinator/ComposerLinkActionBridgePresenter.swift 0.00% <0.00%> (ø)
...on/Coordinator/ComposerLinkActionCoordinator.swift 0.00% <0.00%> (ø)
...tSwiftUI/Modules/Room/Composer/View/Composer.swift 80.39% <0.00%> (-5.03%) ⬇️
...Action/ViewModel/ComposerLinkActionViewModel.swift 43.47% <43.47%> (ø)
...es/Room/Composer/ViewModel/ComposerViewModel.swift 31.37% <50.00%> (+1.58%) ⬆️
...I/Modules/Room/Composer/Model/ComposerModels.swift 75.00% <57.14%> (-4.04%) ⬇️
.../Composer/LinkAction/View/ComposerLinkAction.swift 87.50% <87.50%> (ø)
...List/MockComposerCreateActionListScreenState.swift 100.00% <100.00%> (ø)
... and 13 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Velin92 Velin92 added A-Rich-Text-Editor Issues with the new rich text editor, also known as the WYSIWYG editor Trigger-PR-Build Label to trigger builds for PRs labels Dec 13, 2022
@Velin92 Velin92 self-assigned this Dec 13, 2022
@github-actions
Copy link

github-actions bot commented Dec 13, 2022

📱 Scan the QR code below to install the build for this PR.
🔒 This build is for internal testing purpose. Only devices listed in the ad-hoc provisioning profile can install Element Alpha.

QR code

If you can't scan the QR code you can install the build via this link: https://i.diawi.com/hgkzGR

@Velin92 Velin92 marked this pull request as ready for review December 13, 2022 17:12
@sonarcloud
Copy link

sonarcloud bot commented Dec 13, 2022

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

Copy link
Contributor

@aringenbach aringenbach left a comment

Choose a reason for hiding this comment

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

LGTM

Found a RTE library bug:

  • Insert a link
  • Backspace to the beginning of the field
  • Write something
  • => Link is preserved and usable because of NSAttributedString (until sending or doing an action that triggers a replaceAll)

Note: this can be fixed now or later depending how easy it is. (I'm pretty sure backspacing should almost always trigger an actual replaceAll but that could have many side effects 🙃 )

@Velin92
Copy link
Member Author

Velin92 commented Dec 14, 2022

LGTM

Found a RTE library bug:

  • Insert a link
  • Backspace to the beginning of the field
  • Write something
  • => Link is preserved and usable because of NSAttributedString (until sending or doing an action that triggers a replaceAll)

Note: this can be fixed now or later depending how easy it is. (I'm pretty sure backspacing should almost always trigger an actual replaceAll but that could have many side effects 🙃 )

This requires a fix on the library, so maybe I'll open a separate ticket and separate bug ticket for that.
But thanks a lot for bringing it up! I'll start tracking it!

@Velin92 Velin92 merged commit a484c28 into develop Dec 14, 2022
@Velin92 Velin92 deleted the mauroromito/rich_text_editor_links branch December 14, 2022 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rich-Text-Editor Issues with the new rich text editor, also known as the WYSIWYG editor Trigger-PR-Build Label to trigger builds for PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rich Text Editor: Adding/Editing Links feature
2 participants