Benoit Marty
5e01bed77c
Fix test compilation after change on other PR getting merged.
2024-02-09 09:48:20 +01:00
Benoit Marty
e73a480495
Merge pull request #2354 from element-hq/feature/bma/markUnread
...
Mark room as unread
2024-02-08 17:36:29 +01:00
Benoit Marty
dc65e60e66
Mark as unread: add a feature flag, disabled on release build.
2024-02-08 11:49:14 +01:00
Benoit Marty
22df759fb4
Remove extra new lines
2024-02-08 11:34:54 +01:00
Benoit Marty
9bd8c3ebcf
Introduce RoomListBottomSheetEvents "scope" for Events from the Room List Bottom Sheet.
2024-02-08 11:34:54 +01:00
Benoit Marty
e66c793fbe
Simplify a bit the API.
2024-02-08 11:34:54 +01:00
Benoit Marty
8a3f33ce1a
Add test for RoomListContextMenu
2024-02-08 11:34:54 +01:00
Benoit Marty
48b7f054ee
Introduce function aContextMenuShown to create RoomListState.ContextMenu.Shown
2024-02-08 11:34:54 +01:00
Benoit Marty
3b68ac49d3
Fix test after default value change on parameter of createRoomListRoomSummary.
2024-02-08 11:34:54 +01:00
Benoit Marty
8665104756
Remove unnecessary parenthesis
2024-02-08 11:34:54 +01:00
Benoit Marty
6646b068bd
Add more tests
2024-02-08 11:34:54 +01:00
Benoit Marty
12da93a926
Give 0 has default value for fixtures creators.
...
Also increases the readability of tests.
2024-02-08 11:34:54 +01:00
Benoit Marty
0f8eda050b
Add test to check behavior of isMarkedUnread parameter
2024-02-08 11:34:54 +01:00
Benoit Marty
330e760386
Move RoomListRoomSummary factory to a dedicated file, more tests will be added.
2024-02-08 11:34:54 +01:00
Benoit Marty
ca91b23512
Add ability mark as unread / mark as read a room.
2024-02-08 11:33:43 +01:00
Benoit Marty
72b89338b3
Remove Modifier parameter in private function when only default value is used.
...
This will improve the code coverage metrics, and this also fixes a few potential bug, where the Modifier was used several times.
2024-02-08 11:06:06 +01:00
Jorge Martin Espinosa
6f082232d3
Move migration screen to within the room list ( #2361 )
...
* Rename migration bg drawable and add night variant
* Move `migration` package from `ftue` to `messages:impl` module
* Update `SunsetPage` with light and dark modes
* Fix bloom colors when nested theme is used
* Integrate the migration screen in the room list
* Fix `WaitListView` cancel button color
* Clear migration store when removing the app's cache
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io >
2024-02-08 10:01:08 +00:00
Benoit Marty
a1f78372d6
Remove LogCompositions.
...
It was used at the beginning of the project, but is not useful anymore.
2024-02-07 16:33:48 +01:00
Benoit Marty
6d6500771b
Do not use a key for the LazyColumn, or the scroll will not behave as expected if a room is moved to the top of the list.
2024-02-06 15:33:03 +01:00
bmarty
7911a26003
Sync Strings from Localazy
2024-02-05 00:09:59 +00:00
Jorge Martín
166ed9ae79
Only display placeholder list when the room list hasn't loaded yet
2024-02-02 13:31:43 +01:00
Jorge Martín
9783dee537
Tweak room list behaviour:
...
- Instead of an extra item, use `contentPadding`.
- Make sure each item has an unique id.
2024-02-02 13:05:37 +01:00
Jorge Martín
ee5f30d0d9
Fix full placeholder screen
2024-02-02 13:04:56 +01:00
Jorge Martín
b0ce6e7d89
Make the RoomListRoomSummaryFactory.createPlaceholder and RoomListRoomSummaryFactory.createFakeList functions static ones
2024-02-02 13:04:28 +01:00
Jorge Martín
b390215701
Add an empty state to the room list.
...
- Make `RoomListDataSource.allRooms` a `SharedFlow` so we can know when we don't have a value yet.
- Map its output in `RoomListPresenter` to `AsyncData`.
- Display the new empty state when the room list has loaded and has no items.
2024-02-02 12:39:09 +01:00
jmartinesp
697c482b6d
Sync Strings from Localazy
2024-01-31 11:38:48 +00:00
Benoit Marty
444954bad9
Merge pull request #2293 from element-hq/feature/bma/notificationCount
...
Iterate on notification badges
2024-01-30 10:33:17 +01:00
bmarty
2be0a69c50
Sync Strings from Localazy
2024-01-29 00:09:56 +00:00
Benoit Marty
fa7566079e
Fix test compilation issue.
2024-01-25 17:22:10 +01:00
Benoit Marty
5737bd8e7a
Ensure the icon stay grey if the global setting is set to mention only.
...
Implement the iOS logic #2282
2024-01-25 16:17:27 +01:00
Benoit Marty
01ba6aa917
Rework: improve OnGoingCallIcon API.
2024-01-25 15:29:11 +01:00
Benoit Marty
4035c1ca5b
Rework: extract sub fun composable.
2024-01-25 15:06:34 +01:00
Benoit Marty
fe0e82b5d6
Map roomInfo.numUnreadNotifications to RoomSummaryDetails.numUnreadNotifications
2024-01-25 15:00:43 +01:00
Benoit Marty
51c40f2b13
Make isTimestampHighlighted a computed val.
2024-01-23 11:20:10 +01:00
Benoit Marty
ca1f907ec5
Use new Rust fields numUnreadMessages and numUnreadMentions, and iterate on the room badge rendering.
2024-01-22 15:48:46 +01:00
Benoit Marty
38515a9718
Fix detekt issue:
...
Use `?.let {}` instead of if/else with a null block when checking for nullable values [UseLet]
2024-01-22 14:21:49 +01:00
Benoit Marty
2acd00bcd8
Introduce RoomListRoomSummaryFactory and remove RoomListRoomSummaryPlaceholders.
2024-01-22 11:29:54 +01:00
Benoit Marty
5bcef21154
Remove default value for constructor of RoomListRoomSummary.
2024-01-22 11:11:44 +01:00
Benoit Marty
3ec86f9b5f
Ensure there is no timestamp in RoomListRoomSummary if lastMessage is null.
2024-01-22 11:05:25 +01:00
Benoit Marty
e72b5c4614
Ensure roomId are unique in the list.
2024-01-22 11:02:45 +01:00
Benoit Marty
9a9beeb532
Use aRoomListRoomSummary function instead of invoking the constructor.
2024-01-22 11:02:13 +01:00
Benoit Marty
0334da7a14
fun aRoomListRoomSummary: make internal, add all fields and reorder to match RoomListRoomSummary constructor order.
2024-01-22 10:59:42 +01:00
Benoit Marty
ca5850e0e5
Do not use the function for preview in test.
2024-01-22 10:49:19 +01:00
Benoit Marty
846fd0106e
Preview with a last message by default.
2024-01-19 17:59:18 +01:00
Benoit Marty
ccec00515d
Improve aRoomListRoomSummary method.
2024-01-19 16:51:05 +01:00
Benoit Marty
82a3750cd8
Remove notificationMode to userDefinedNotificationMode to match SDK name.
2024-01-19 16:46:42 +01:00
Benoit Marty
9b3a0c1f08
Remove hasOngoingCall to hasRoomCall to match SDK name.
2024-01-19 16:16:57 +01:00
Benoit Marty
0e57fbf352
Rename userAvatarURLString to userAvatarUrl
2024-01-19 15:59:50 +01:00
Benoit Marty
603b10264b
Rename avatarURLString to avatarUrl
2024-01-19 15:58:37 +01:00
Jorge Martin Espinosa
64a18afc1b
Replace 'leave room' text with 'leave conversation' for DMs ( #2231 )
...
* Replace 'leave room' text with 'leave conversation' for DMs
* Add `isDm` property to both `RoomSummary` and `RoomListRoomSummary`
* Remove redundant `leave_conversation_alert_subtitle_*` texts
* Fix maestro flow
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io >
2024-01-16 15:49:44 +01:00