-
-
Notifications
You must be signed in to change notification settings - Fork 831
Extract view/join room logic to room helper #8329
Conversation
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.
generally looks good, just some code quality things that haven't quite made it to formal documentation yet (they exist as internal proposals, but not as public docs).
Codecov Report
@@ Coverage Diff @@
## develop #8329 +/- ##
===========================================
- Coverage 30.03% 30.02% -0.01%
===========================================
Files 881 882 +1
Lines 50213 50226 +13
Branches 12791 12794 +3
===========================================
+ Hits 15081 15082 +1
- Misses 35132 35144 +12
|
review was on an old diff, and may have been addressed
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.
Looks good overall, thanks! 😄
Modal.createTrackedDialog(e.message, '', ErrorDialog, { | ||
title: e.message, | ||
description: e.description, | ||
}); |
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.
Maybe utils/error.ts
should offer this as showErrorModal()
? I assume this could become a common pattern.
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'm not sure we can do this as the .ts
files should not have anything to do with UI according to our new style guide.
So i guess we should probably have some UI helpers?
Originally introduced in #8329 All usages were removed in #9605 This error also has problems with showing tranlsated versions in the logs. Part of element-hq/element-web#9597 We should be using the new `UserFriendlyError` for this kind of thing anyway. Introduced in #10440
Originally introduced in #8329 All usages were removed in #9605 This error also has problems with showing tranlsated versions in the logs. Part of element-hq/element-web#9597 We should be using the new `UserFriendlyError` for this kind of thing anyway. Introduced in #10440
In preparation for element-hq/element-web#21354, we need the logic extracted to helper function so that it can be re-used across the product
This change is marked as an internal change (Task), so will not be included in the changelog.
Preview: https://pr8329--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.