Jorge Martin Espinosa
af932b31c4
[Compound] Implement components (Button) ( #1021 )
...
* Create `CompoundButton`
* Some fixes
* Lint fixes
* Start replacing existing `Button` usages
* Replace button usages
* Remove previous Button composable
* Rename `CompoundButton` to `Button`
* Fix emphasized button being displayed as Text
* Fix cancel button in `WaitListView`
* Update screenshots
* Add shorthand functions for `OutlinedButton` and `TextButton`
* Add changelog
* Fix wrong size used for emphasized button in dialog
* Create a private `ButtonInternal` implementation with the shared logic.
- Make `ButtonStyle` private.
- Rename `title` to `text`.
- Rename `buttonStyle` and `buttonSize` to just `style` and `size`.
* Fix several warnings and lint issues.
* Update screenshots
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io >
2023-08-08 16:11:37 +00:00
David Langley
30c513b1b5
Reactions ux updates ( #1020 )
...
* Fix ordering of reaction count/key label on outgoing messages and fix reaction button height
- Fix ordering of reaction count/key label on outgoing messages
- Fix reaction button height
* Fix emojis circles on action list
* Fix shape of reaction summary button when pressed
* Update screenshots
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io >
2023-08-02 19:18:16 +00:00
Jorge Martin Espinosa
f8ebb5930d
Fix sending read receipts when entering a room ( #1016 )
...
* Fix sending read receipts when entering a room
* Improve solution for sending a read receipt when opening a room
* Roll back previous solution as it broke unit tests
* Remove dead code
2023-08-02 11:55:04 +00:00
ganfra
e453b984ef
RoomList: use same logic than Timeline for caching built items. ( #1013 )
...
* RoomList: use same logic than Timeline for caching built items. Extract into reusable components.
* RoomList: fix tests
* Fix `DiffCacheUpdater` docs
---------
Co-authored-by: ganfra <francoisg@element.io >
Co-authored-by: Jorge Martín <jorgem@element.io >
2023-08-01 08:53:41 +00:00
David Langley
8fd71b4126
Reaction summary view and sorting reactions by count and then timestamp ( #942 )
...
* Sort reactions by count and then timestamp
- Sort reactions within an aggregation by timestamp descending. This puts the most recent at the top, useful in cases like the reaction summary view or getting the most recent reaction.
- Sort aggregated reactions by count and then timestamp ascending, using the most recent reaction in the aggregation. This appends new aggregations on the end of the reaction layout.
* Add reaction summary view
* fix warnings
* Fix test unit tests and add sorting tests
- Fix broken build in test code
- Add a test for reaction sorting
* Remove default closure, move logic to presenter and add tests
* Update screenshots
* Fix imports
* Revert Screenshots I didn't update
* Fix imports remove screetshots
* Update screenshots
* Update screenshots
* Address comments.
* Update screenshots
* Remove unnecessary snapshotFlow
* Fix code quality checks
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io >
2023-07-31 17:39:20 +00:00
ganfra
7ecbbb0a81
Merge pull request #997 from vector-im/feature/fga/remove_from_main_thread
...
Feature/fga/remove from main thread
2023-07-31 13:39:06 +02:00
ganfra
4290ec7e70
Fix CI
2023-07-31 11:58:49 +02:00
ganfra
42f0474dd2
Messages: remove some blocking code from main thread
2023-07-28 17:55:43 +02:00
Benoit Marty
e927c05b07
Merge pull request #989 from vector-im/feature/bma/noEmojiForStateEvent
...
Prevent reaction on state events and deleted events
2023-07-28 16:56:50 +02:00
Benoit Marty
d06f86f79d
Merge pull request #967 from vector-im/feature/bma/detektConfig
...
Update detekt config.
2023-07-28 16:47:26 +02:00
Benoit Marty
157e761000
Rewrite the test, maybe the CI will be happier.
2023-07-28 15:33:35 +02:00
Benoit Marty
b2d3368f63
Allow user with enough power level to redact other's messages ( #969 )
2023-07-27 18:42:45 +02:00
Benoit Marty
09e30bcac6
Prevent reaction on state events and deleted events ( #971 )
2023-07-27 17:30:19 +02:00
Benoit Marty
5047136a7b
Merge pull request #983 from vector-im/feature/bma/lintErrors
...
Update lint rules, remove unused resource and sync strings.
2023-07-27 15:59:38 +02:00
Jorge Martin Espinosa
e351e87dbc
[Compound] Implement platform components (Switch, RadioButton, Checkbox) ( #982 )
...
* Create our custom Switch component
* Update RadioButton colors
* Update Checkbox colors
* Fix padding in `ReplyToContent`
* Add `indeterminate` and `hasError` parameters to `CheckBox`.
Improve previews.
* Improve Switch previews.
* Improve RadioButton previews.
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io >
2023-07-27 14:55:58 +02:00
Benoit Marty
d3cea1e69c
Sync strings.
2023-07-27 12:16:04 +02:00
Jorge Martin Espinosa
a9d1a299f5
Prepare update to Rust SDK 0.1.36 ( #966 )
...
* Update to Rust SDK 0.1.36
* Cancel fetching members when the we exit the room
2023-07-26 14:22:09 +00:00
Benoit Marty
9c1f9f47f2
Make some composable private.
2023-07-26 14:01:23 +02:00
ganfra
c6e023b053
Add consumeItemsUntilPredicate to check how it goes...
2023-07-26 13:07:11 +02:00
ganfra
2c2c23b3a1
Push to understand test failure in CI
2023-07-26 12:22:41 +02:00
Benoit Marty
6fff373613
Enable detekt rules OptionalUnit and fix existing issues.
2023-07-26 11:43:48 +02:00
Benoit Marty
1d3aa2cd05
Enable detekt rules CascadingCallWrapping and fix existing issues.
2023-07-26 11:07:25 +02:00
Benoit Marty
f055a25457
Enable detekt rule ThrowingExceptionsWithoutMessageOrCause and fix existing issues.
2023-07-26 10:33:51 +02:00
Benoit Marty
996574f2c6
Enable detekt rule PreviewPublic and fix existing issues.
2023-07-26 10:08:39 +02:00
ganfra
bbbee5a6d9
Fix tests
2023-07-25 18:37:54 +02:00
ganfra
cfd43af45c
Merge branch 'develop' into feature/fga/avoid_deadlocks
2023-07-25 16:09:24 +02:00
ganfra
9cf74eff63
Clean PR
2023-07-25 16:02:33 +02:00
Benoit Marty
727ebb5dc0
alternateText can't be an empty string. #955
2023-07-24 17:15:04 +02:00
bmarty
e196d951f8
Sync Strings from Localazy
2023-07-24 00:10:09 +00:00
Benoit Marty
45954b4723
Fix code quality check failures after new rules from #935 has been merged on develop.
2023-07-21 16:04:55 +02:00
ganfra
2f92203d85
Room: avoid calling displayName/avatarData on each recomposition
2023-07-21 15:19:19 +02:00
Benoit Marty
59a66479ab
Merge branch 'develop' into feature/bma/noWarnings
2023-07-21 12:17:50 +02:00
David Langley
4c87138a48
Merge pull request #912 from vector-im/feature/dla_custom_reactions_layout
...
Reactions layout improvements
2023-07-21 11:00:43 +01:00
Benoit Marty
e03408a806
Test new field canShareLocation
2023-07-20 23:18:18 +02:00
Benoit Marty
a41fffbe4c
Must skip 1 item due to the location feature flag value emitting 1 item.
2023-07-20 23:17:29 +02:00
Benoit Marty
f0d02996df
canShareLocation must be a MutableState.
2023-07-20 22:23:54 +02:00
Benoit Marty
cd3e6c42e2
Replace FeatureFlags.ShowMediaUploadingFlow by FeatureFlags.LocationSharing because it has more chance to be disabled.
...
I do not want to remove all our feature flags...
2023-07-20 22:20:38 +02:00
Benoit Marty
c72f1a09a7
Enable detekt rules UnnecessaryParentheses and cleanup the code.
2023-07-20 18:08:08 +02:00
Benoit Marty
55538c2773
Enable detekt rules UnusedImports and cleanup the code.
2023-07-20 18:00:23 +02:00
Benoit Marty
8f715cbc92
Enable detekt rules TopLevelPropertyNaming and cleanup the code.
2023-07-20 17:52:48 +02:00
Benoit Marty
2449cbbaa3
Fix warning (bottom sheet still not previewable correctly in screenshot test)
2023-07-20 17:41:18 +02:00
Benoit Marty
f77349332e
Fix warning (there is a TODO)
2023-07-20 17:39:55 +02:00
Benoit Marty
058f35c06a
Fix warning (keep the same format for all methods)
2023-07-20 17:39:55 +02:00
Benoit Marty
80f7b63acc
Fix warning (we will handle error case later)
2023-07-20 17:39:55 +02:00
Benoit Marty
7524758d05
Fix warning (there is a TODO)
2023-07-20 17:39:55 +02:00
Benoit Marty
5edcffca93
Fix warning (suppress unused param for now)
2023-07-20 15:47:42 +02:00
Benoit Marty
2872e8faca
Fix warning (suppress unused param for now)
2023-07-20 15:47:14 +02:00
Benoit Marty
dc9212c559
Fix warning (suppress unused param for now, EAX does not support sticker right now.)
2023-07-20 15:46:41 +02:00
Benoit Marty
45f8f134ae
Fix warning (suppress unused param for now)
2023-07-20 15:46:09 +02:00
Benoit Marty
8a82aab014
Fix warning (suppress unused param for now)
2023-07-20 15:45:18 +02:00