Commit graph

4424 commits

Author SHA1 Message Date
Marco Romano
b145fcbc50 Enable one last ignored test for LeaveRoomPresenterImpl (#462)
Most of the tests in `LeaveRoomPresenterImplTest.kt` where using `UnconfinedTestDispatcher` which was conflating some of the state returned by the presenter. This prevented to test one specific case which had been left with an `@Ignore` annotation.
This PR switches to `StandardTestDispatcher` so that the ignored test case can work and also fixes some other test cases whose behavior is now more correct under the `StandardTestDispatcher`.

Also updates our test factory method for `CoroutineDispatchers` to more easily obtain a `CoroutineDispatchers` which uses `StandardTestDispatcher`.
2023-05-26 07:51:41 +02:00
ganfra
d5c0591439 Media: generate screenshots again 2023-05-25 23:02:55 +02:00
ganfra
e0106fe907 Media: some more improvements over MediaViewer 2023-05-25 23:02:19 +02:00
Benoit Marty
6102ffa7e4 Add test for TimelinePresenter: Collapse and expand group. 2023-05-25 18:10:32 +02:00
ganfra
5e5737aa61 Media: add some previews in the TimelineView 2023-05-25 17:47:53 +02:00
Benoit Marty
9be8112c9c Add test for TimelineItemGrouper and fix a bug: the last group if any was not added to the list. 2023-05-25 17:32:55 +02:00
ganfra
c741b35035 Media: polish TimelineVideo item 2023-05-25 16:21:53 +02:00
ganfra
1fe14ef685 Media: update screenshots 2023-05-25 15:58:08 +02:00
ganfra
f7b45d7823 Media: more cleanup 2023-05-25 15:47:08 +02:00
ganfra
4f3dc8bc71 Merge pull request #456 from vector-im/renovate/io.nlopez.compose.rules-detekt-0.x
Update dependency io.nlopez.compose.rules:detekt to v0.1.7
2023-05-25 15:34:20 +02:00
Benoit Marty
11db753904 Merge pull request #460 from vector-im/feature/bma/logCleanup
Log cleanup
2023-05-25 15:29:40 +02:00
ganfra
6eaee151c5 Media: update androidx.media 2023-05-25 15:29:02 +02:00
ganfra
48389ccd26 Media: improve BlurHashAsyncImage 2023-05-25 15:28:37 +02:00
Benoit Marty
2898d830d8 Fix warning "Use version catalog instead" 2023-05-25 15:04:01 +02:00
Benoit Marty
f36b5d62e0 Record screenshot 2023-05-25 14:39:39 +02:00
Benoit Marty
78c99a340e Fix missing modifier parameter. 2023-05-25 14:17:09 +02:00
Benoit Marty
9efb703854 Fix test compilation 2023-05-25 14:17:09 +02:00
Benoit Marty
4c20450c2a This is default value when reverseLayout = true 2023-05-25 14:17:09 +02:00
Benoit Marty
52d35e0ac4 Better icon for this use case. 2023-05-25 14:17:09 +02:00
Benoit Marty
31ec3267db Animate collapse/expand change 2023-05-25 14:17:09 +02:00
Benoit Marty
4b9a01d753 Record screenshots 2023-05-25 14:17:09 +02:00
Benoit Marty
0c95912c9c Group some state events in the timeline 2023-05-25 14:17:09 +02:00
Benoit Marty
26198140df No actions (yet) for State Event. 2023-05-25 14:16:23 +02:00
Benoit Marty
75f6c99ea9 Render State Event in the timeline. 2023-05-25 14:16:23 +02:00
Benoit Marty
66baf1632e Extract to sub classes 2023-05-25 14:16:23 +02:00
Benoit Marty
b7278f3e3e Process state event in timeline - WIP 2023-05-25 14:16:23 +02:00
Benoit Marty
a5fc4ffe84 Rename processMessageItem to simple format 2023-05-25 14:16:23 +02:00
Benoit Marty
abf7089cea Inject StringProvider instead of context. 2023-05-25 14:16:23 +02:00
Benoit Marty
9d66af834d Move RoomLastMessageFormatter and related class and resource to the new module eventformatter, in order to prepare rendering of state event in the timeline. 2023-05-25 14:15:35 +02:00
Benoit Marty
6edc7a9323 Reduce logging level to --warn to reduce verbosity for testing and checking quality workflows. Keep default (lifecycle) for build workflow.
https://docs.gradle.org/current/userguide/logging.html
2023-05-25 12:09:18 +02:00
Benoit Marty
80b656a9c5 Use gradle logger to filter out when running with only warning logs. 2023-05-25 12:03:51 +02:00
Benoit Marty
fdb1ebf0ce Sort by filename for easier search in the logs. 2023-05-25 11:51:46 +02:00
Benoit Marty
5f81ac82e0 Merge pull request #448 from vector-im/feature/bma/testTimeout
Create the mockked Bitmap outside the test, to remove increased time out
2023-05-25 11:35:31 +02:00
Benoit Marty
124e6c7cbd Merge pull request #455 from vector-im/misc/cjs/preview-names
Fix bad preview name for invite list
2023-05-25 11:35:06 +02:00
Benoit Marty
ef5cc053f1 Merge pull request #453 from vector-im/renovate/io.element.android
Update dependency io.element.android:wysiwyg to v2.2.1
2023-05-25 11:34:30 +02:00
Benoit Marty
f9e8ab05e4 Merge pull request #459 from vector-im/renovate/activity
Update activity to v1.7.2
2023-05-25 11:33:57 +02:00
Marco Romano
0dee0784ba Room list contextual menu (#427)
- Adds `ModalBottomSheet` to our design components (it wraps the homonimous Material3 one).
- Adds  a bottom sheet to the Room list using the aforementioned design component.
- Adds navigation from the room list to a room detail (context menu "Settings" action).
- Consolidates the "leave room flow" into a new `leaveroom` module used by both the room list and the room details.
  - Adds progress indicator to the leave room flow
- Uses new `leaveroom` module in `roomdetails` module too. 

Parent issue:
- https://github.com/vector-im/element-x-android/issues/261
2023-05-25 06:42:44 +00:00
renovate[bot]
796d78a203 Update activity to v1.7.2 2023-05-24 20:29:04 +00:00
ganfra
3e01a2f317 Media: some code clean-up 2023-05-24 22:23:38 +02:00
ganfra
92e19c3dd9 Media: improve a bit the viewers 2023-05-24 22:19:18 +02:00
renovate[bot]
03bbd64780 Update dependency io.element.android:wysiwyg to v2.2.1 2023-05-24 17:09:00 +00:00
Benoit Marty
897540ed04 Merge pull request #447 from vector-im/feature/bma/wysiwyg2.2.0
Wysiwyg 2.2.0
2023-05-24 19:07:35 +02:00
ganfra
fc601acd28 Merge branch 'develop' into feature/fga/image_loading 2023-05-24 17:39:27 +02:00
renovate[bot]
4780bec25c Update dependency io.nlopez.compose.rules:detekt to v0.1.7 2023-05-24 15:37:07 +00:00
ganfra
75f85a97b7 Media: makes sure system ui get back to normal when leaving preview/viewer 2023-05-24 17:30:09 +02:00
ganfra
ced60c672e Media: add more tests 2023-05-24 17:06:27 +02:00
renovate[bot]
642741d08d Update dependency com.google.auto.service:auto-service-annotations to v1.1.0 (#452)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-24 12:13:53 +02:00
Chris Smith
bd242aee64 Fix bad preview name for invite list 2023-05-24 11:12:14 +01:00
ganfra
468b609ee1 Merge pull request #451 from vector-im/renovate/com.google.auto.service-auto-service-1.x
Update dependency com.google.auto.service:auto-service to v1.1.0
2023-05-24 11:51:25 +02:00
Benoit Marty
30bb3e01a4 Merge pull request #449 from vector-im/feature/bma/fasterTest
Reduce time to run test from 15 minutes to about 8
2023-05-24 09:28:13 +02:00