Commit graph

3055 commits

Author SHA1 Message Date
Jorge Martin Espinosa
9e1ff513e4
[Compound] Implement Snackbars based on designs (#1054)
* Make `InternalButton` internal instead of private so it can be customised.

Also, change the `ButtonColors.contentColor` for text buttons to `LocalContentColor.current` by default.

* Add temporary color for Snackbar action label

* Implement `Snackbar` component based on Compound

* Propagate changes to all other components

* Use right Preview annotation config

* Move `ButtonVisuals` to their own file

* Update screenshots

* Make previews internal

* Update screenshots

* Set a custom token for contentColor in AppBars

* Change 'Label' to 'Action' in the previews

* Add changelog

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-16 10:38:28 +00:00
renovate[bot]
acf29036a6
Update dependency io.mockk:mockk to v1.13.7 (#1059)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-16 06:53:23 +00:00
ganfra
a911134636
Update rust sdk to 0.1.42 (changes in tracing and sync apis) (#1055)
* Update rust sdk to 0.1.42 (changes in tracing and sync apis)

* Fix sample compilation

---------

Co-authored-by: ganfra <francoisg@element.io>
2023-08-11 21:32:31 +00:00
David Langley
08a0f710d7
Show selected reactions on the emoji picker. (#1014)
* Show selected reactions on the emoji picker.

* Unused import

* Update screenshots

* Use ImmutableSet

* Fix lint issues.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-11 15:47:06 +00:00
ElementBot
38a25dc3e9
Sync Strings from Localazy (#1032)
Co-authored-by: Florian14 <Florian14@users.noreply.github.com>
2023-08-11 14:34:05 +00:00
Jorge Martin Espinosa
f35272c4fe
[Compound] Implement DropdownMenu customisations. (#1050)
* Compound: implement `DropdownMenu` customisations.

* Update screenshots

* Add changelog

* Address review comments

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-11 13:09:51 +00:00
Jorge Martin Espinosa
a77b59824c
[Compound] Implement dialogs (#1043)
* Implement dialogs following Compound tokens

* Update screenshots

* Fix confirmation dialog preview

* Update screenshots

* Add changelog

* Add Figma designs link

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-11 12:44:40 +00:00
Jorge Martin Espinosa
d08631fa07
[Compound] implement IconButton changes (#1049)
* Compound: implement IconButton changes.

* Use `LocalContentColor` for tinting

* Update screenshots

* Add changelog

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-11 10:01:18 +00:00
renovate[bot]
c6503e87f7
Update dependency app.cash.molecule:molecule-runtime to v1.2.0 (#1047)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-10 08:25:49 +00:00
ganfra
e600b0515f
Sync: remove distincUntilChanged which can cause sync to stay blocked (#1044)
Co-authored-by: ganfra <francoisg@element.io>
2023-08-09 18:59:04 +00:00
ganfra
fa51f6eaa7
Feature/fga/sync states (#1042)
* Change RoomSummaryDataSource to RoomListService to better reflects the rust api

* Better Sync management

* Sync: improve sync spinner rendering

* Sync: make test compiles

* Sync: add more test for sync spinner

* Sync: more clean-up

* Sync: pr review

---------

Co-authored-by: ganfra <francoisg@element.io>
2023-08-09 12:37:43 +00:00
Jorge Martin Espinosa
2131af28d5
Enable filter push notifications by push rules (#1041)
* Enable filter push notifications by push rules

* Remove unused `filterByPushRules` parameter

* Use fallback notification only for items not filetered by the push rules

* Fix tests
2023-08-09 12:12:39 +00:00
ganfra
e8d1f21a14
Feature/fga/rust sdk tracing (#1036)
* Align TracingConfiguration with iOS

* Create TracingTree from rust sdk

* tracing: create a working configuration with RustTracingTree

* Tracing: WIP implementation of new api

* Tracing: clean up

* Tracing: use the latest api

* Tracing: some more clean up

* Remove generated logcat file after compressing it

---------

Co-authored-by: ganfra <francoisg@element.io>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-08-09 10:18:49 +00:00
ganfra
6800723722
Update rust sdk to 0.1.41 (just make it compiles) (#1040)
Co-authored-by: ganfra <francoisg@element.io>
2023-08-09 09:16:47 +00:00
Jorge Martin Espinosa
23982dde47
[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
renovate[bot]
fdee5d8a76
Update dependency io.sentry:sentry-android to v6.28.0 (#1028)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-08 11:08:38 +00:00
renovate[bot]
456bc09edf
Update danger/danger-js action to v11.2.8 (#1008)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-08 09:47:09 +00:00
Jorge Martin Espinosa
598a63d267
Use for instead of forEach with ranges (#1035)
* Use `for` instead of `forEach` with ranges.

`forEach` is several times slower when used with ranges.

* Add changelog
2023-08-08 08:48:39 +00:00
renovate[bot]
ca63bebe5f
Update plugin ktlint to v11.5.1 (#1034)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-08 06:00:11 +00:00
renovate[bot]
c535795e3b
Update dependency com.google.firebase:firebase-bom to v32.2.2 (#1025)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-04 09:44:21 +00:00
renovate[bot]
fbbfd92925
Update dependency org.matrix.rustcomponents:sdk-android to v0.1.40 (#1026)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-04 09:43:06 +00:00
ganfra
b5b120d09e
Update rust sdk to 0.1.39 (#1024)
Co-authored-by: ganfra <francoisg@element.io>
2023-08-02 19:53:05 +00:00
David Langley
a68564b5f0
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
ganfra
ac7412c2d8
Feature/fga/matrix client versions (#1022)
* Extract a RustMatrixClientFactory

* Use serverVersions api on client builder to speed up startup.

* Clean up

* Fix compilation of sample

---------

Co-authored-by: ganfra <francoisg@element.io>
2023-08-02 18:56:26 +00:00
renovate[bot]
f68b357e54
Update dependency me.saket.telephoto:zoomable-image-coil to v0.5.0 (#1017)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-02 18:43:47 +00:00
Jorge Martin Espinosa
82c5b1a348
Fix notification rendering by removing leftover test code (#1019) 2023-08-02 11:55:13 +00:00
Jorge Martin Espinosa
58ed74607d
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
Jorge Martín
99909e9b9f Fix concurrentcy group for building develop with a matrix of variants 2023-08-02 11:20:25 +02:00
Jorge Martín
a6d6869e55 Fix concurrentcy group for building develop 2023-08-02 11:19:28 +02:00
renovate[bot]
9bc336d17c
Update dependency org.matrix.rustcomponents:sdk-android to v0.1.38 (#1015)
* Update dependency org.matrix.rustcomponents:sdk-android to v0.1.38

* Fix API breaks

* Use `roomListItem.avatarUrl` if possible

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-08-01 10:29:36 +00:00
ganfra
62a367520e
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
Jorge Martin Espinosa
b14c741422
CI improvements (#1012) 2023-07-31 21:05:28 +02:00
David Langley
0b95ef09b7
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
Jorge Martin Espinosa
ca3e284991
Try to skip extra checks in the CI for up to date PRs in merge queue. (#1010)
* Try to skip extra checks in the CI for up to date PRs in merge queue.

* Try to simplify check

* Remove expression syntax from `if`s
2023-07-31 15:19:51 +00:00
Marco Romano
2a59e6ae78
Properly inline tryOrNull() (#1003)
Nullable params can't be inlined, default empty lambdas are therefore preferred.
2023-07-31 13:49:57 +00:00
ElementBot
784b84d1e8
Sync Strings from Localazy (#1002)
Co-authored-by: bmarty <bmarty@users.noreply.github.com>
2023-07-31 13:49:52 +00:00
renovate[bot]
90598af343
Update dependency com.freeletics.flowredux:compose to v1.2.0 (#996)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-31 13:48:34 +00:00
Jorge Martin Espinosa
9e85c74c9c
Try to fix using the merge queue (#1009) 2023-07-31 13:35:38 +00:00
Jorge Martin Espinosa
eb80f5bbfe
Fix detekt issues in develop (#1004)
Co-authored-by: Marco Romano <marcor@element.io>
2023-07-31 14:01:08 +02:00
ganfra
f1d438e701
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
fb2b548be9
Merge pull request #998 from vector-im/feature/fga/safer_callback_flows
No crash when room is already destroyed...
2023-07-31 11:59:54 +02:00
ganfra
f26e3b4979 Fix CI 2023-07-31 11:58:49 +02:00
ganfra
13209b0aa0 Merge branch 'develop' into feature/fga/safer_callback_flows 2023-07-31 11:36:59 +02:00
ganfra
e9802ffea6 Small changes after reviews 2023-07-31 11:36:28 +02:00
ganfra
986b689f07
Merge pull request #999 from vector-im/renovate/anvil
Update anvil to v2.4.7-1-8
2023-07-31 10:09:33 +02:00
renovate[bot]
53659379aa
Update anvil to v2.4.7-1-8 2023-07-29 04:17:49 +00:00
ganfra
fa9fa69697 Makes sure NotificationService is suspendable 2023-07-28 17:56:17 +02:00
ganfra
d63a3e2d77 Messages: remove some blocking code from main thread 2023-07-28 17:55:43 +02:00
Benoit Marty
5ed29b1466
Merge pull request #986 from vector-im/feature/bma/bigFontSizeImprovement
Big font size improvements
2023-07-28 17:02:29 +02:00
Benoit Marty
792eb687bd
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