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 Composer - Maximise/Minimise toggle #6971

Merged
merged 11 commits into from
Oct 25, 2022

Conversation

Velin92
Copy link
Member

@Velin92 Velin92 commented Oct 25, 2022

No description provided.

@Velin92 Velin92 linked an issue Oct 25, 2022 that may be closed by this pull request
@Velin92 Velin92 requested a review from langleyd October 25, 2022 14:47
@langleyd langleyd added the Trigger-PR-Build Label to trigger builds for PRs label Oct 25, 2022
Copy link
Member

@langleyd langleyd left a comment

Choose a reason for hiding this comment

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

Looks great, just one point.

wysiwygViewModel.$idealHeight
.removeDuplicates()
.sink { [weak hostingViewController] _ in
hostingViewController?.view.setNeedsLayout()
Copy link
Member

Choose a reason for hiding this comment

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

Maybe a comment to describe why this is needed?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixes that bug that made the view stay centered and expanded when it is maximised and then minimised.
Essentially the superview does not recognize the change back to the minimised form, and does not layout again its subviews. By listening to the ideal height changes, it forces the super view to do another layout again.

Copy link
Member Author

Choose a reason for hiding this comment

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

added

@github-actions
Copy link

📱 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/pVwYyR

@codecov
Copy link

codecov bot commented Oct 25, 2022

Codecov Report

Base: 11.67% // Head: 11.67% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (2fcceaa) compared to base (8e1bf4f).
Patch coverage: 80.48% of modified lines in pull request are covered.

❗ Current head 2fcceaa differs from pull request most recent head eae3931. Consider uploading reports for the commit eae3931 to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##           develop    #6971    +/-   ##
=========================================
  Coverage    11.67%   11.67%            
=========================================
  Files         1607     1608     +1     
  Lines       157726   157916   +190     
  Branches     63719    63894   +175     
=========================================
+ Hits         18414    18442    +28     
- Misses      138691   138852   +161     
- Partials       621      622     +1     
Flag Coverage Δ
unittests 6.10% <0.00%> (+0.01%) ⬆️

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

Impacted Files Coverage Δ
.../WYSIWYGInputToolbar/WysiwygInputToolbarView.swift 0.00% <0.00%> (ø)
...tSwiftUI/Modules/Room/Composer/View/Composer.swift 80.12% <97.05%> (-9.46%) ⬇️
...onsOverview/View/UserSessionListItemViewData.swift 60.00% <0.00%> (-40.00%) ⬇️
...UserOtherSessions/UserOtherSessionsViewModel.swift 38.84% <0.00%> (-24.69%) ⬇️
...serSessionsOverview/View/UserSessionListItem.swift 44.15% <0.00%> (-17.67%) ⬇️
...es/UserSessions/Common/View/DeviceAvatarView.swift 39.28% <0.00%> (-8.55%) ⬇️
...view/View/UserSessionListItemViewDataFactory.swift 81.33% <0.00%> (-8.38%) ⬇️
...ons/UserOtherSessions/View/UserOtherSessions.swift 52.32% <0.00%> (-1.25%) ⬇️
Riot/Modules/MatrixKit/Models/Account/MXKAccount.m 13.53% <0.00%> (-0.08%) ⬇️
... and 8 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.

@sonarqubecloud
Copy link

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

@Velin92 Velin92 merged commit 0a6f539 into develop Oct 25, 2022
@Velin92 Velin92 deleted the mauroromito/6954_wysiwyg_max_min_toggle branch October 25, 2022 17:04
@Velin92 Velin92 restored the mauroromito/6954_wysiwyg_max_min_toggle branch October 26, 2022 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Trigger-PR-Build Label to trigger builds for PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Labs: Rich text-editor add maximise and minimise toggle button
2 participants