Commit graph

227 commits

Author SHA1 Message Date
Benoit Marty
5caebaaa1b Introduce RoomListRoomSummaryFactory and remove RoomListRoomSummaryPlaceholders. 2024-01-22 11:29:54 +01:00
Benoit Marty
7832eb74b9 Remove default value for constructor of RoomListRoomSummary. 2024-01-22 11:11:44 +01:00
Benoit Marty
8eba12593b Ensure there is no timestamp in RoomListRoomSummary if lastMessage is null. 2024-01-22 11:05:25 +01:00
Benoit Marty
ed1112f09b Ensure roomId are unique in the list. 2024-01-22 11:02:45 +01:00
Benoit Marty
7fee884677 Use aRoomListRoomSummary function instead of invoking the constructor. 2024-01-22 11:02:13 +01:00
Benoit Marty
579f4d6a4e fun aRoomListRoomSummary: make internal, add all fields and reorder to match RoomListRoomSummary constructor order. 2024-01-22 10:59:42 +01:00
Benoit Marty
4924f86d3b Do not use the function for preview in test. 2024-01-22 10:49:19 +01:00
Benoit Marty
cf6bcca9cd Preview with a last message by default. 2024-01-19 17:59:18 +01:00
Benoit Marty
9d586bf2bb Improve aRoomListRoomSummary method. 2024-01-19 16:51:05 +01:00
Benoit Marty
782f73fb7c Remove notificationMode to userDefinedNotificationMode to match SDK name. 2024-01-19 16:46:42 +01:00
Benoit Marty
ecb000b8ed Remove hasOngoingCall to hasRoomCall to match SDK name. 2024-01-19 16:16:57 +01:00
Benoit Marty
be0da18a7b Rename userAvatarURLString to userAvatarUrl 2024-01-19 15:59:50 +01:00
Benoit Marty
d1c7520065 Rename avatarURLString to avatarUrl 2024-01-19 15:58:37 +01:00
Jorge Martin Espinosa
27f55c0bc4
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
ElementBot
6bc080c279
Sync Strings (#2230)
Co-authored-by: bmarty <bmarty@users.noreply.github.com>
2024-01-15 09:21:04 +01:00
Benoit Marty
5d086ad82d Fix moar ktlint issues 2024-01-11 10:02:10 +01:00
Benoit Marty
a831f05f6e Fix ktlint issues 2024-01-10 19:33:39 +01:00
renovate[bot]
c8bd362397
Update plugin ktlint to v12.1.0 (#2200)
* Update plugin ktlint to v12.1.0

* Run `./gradlew ktlintFormat` and fix some issues manually.

* Fix other issues reproted by Ktlint

* Limit false positives, KtLint removes unnecessary curly brace in String templates.

* Remove useless Unit

* Minor improvements over ktlint changes

* Restore `AlertDialogContent` behaviour

* Update screenshots

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benoit Marty <benoit@matrix.org>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-01-10 16:22:24 +01:00
Benoit Marty
dd4aa681c6 Remove now useless ExperimentalLayoutApi opt in 2023-12-28 12:41:02 +01:00
bmarty
e6f4a7364f Sync Strings from Localazy 2023-12-26 09:39:48 +01:00
Jorge Martin Espinosa
cbf34929af
Revert "Room list badges" 2023-12-22 11:02:07 +01:00
Benoit Marty
91027f82e9 Fix test. 2023-12-21 16:11:03 +01:00
Benoit Marty
02fe9c4580 Handle PR review. 2023-12-21 16:05:51 +01:00
Benoit Marty
3a7804b3b0 We can have numUnreadMentions > 0 and numUnreadMessages == 0, in this case, display both icons. 2023-12-21 15:39:52 +01:00
Benoit Marty
f2c989cbd6 Iterate on indicators on room list #2079 2023-12-21 14:51:31 +01:00
Benoit Marty
c18959f0a0 Use VideoCallSolid and also delete local ic_video_call.xml icon. 2023-12-20 17:33:49 +01:00
Benoit Marty
fb766f5176
Merge pull request #2077 from element-hq/feature/bma/timestamp
Feature/bma/timestamp
2023-12-20 15:17:43 +01:00
Jorge Martin Espinosa
0e1d9e82f5
Font size on 'All Chats' was changing mid animation (#2073)
* Font size on 'All Chats' was changing mid animation
2023-12-20 13:52:19 +00:00
Benoit Marty
3d9fbe70d4 Fix timestamp font #2065 2023-12-20 11:42:29 +01:00
Benoit Marty
03a00330a6 Add RoomListConfig to be able to hide menu items. And hide them #2062. 2023-12-19 15:10:22 +01:00
Benoit Marty
cde8e0df25
Merge pull request #2040 from element-hq/feature/bma/fixLinkify
fix linkify
2023-12-18 14:51:14 +01:00
bmarty
e60508a631 Sync Strings from Localazy 2023-12-18 00:10:14 +00:00
Benoit Marty
0129fdd370 Attempt to fix test on CI... 2023-12-17 11:25:28 +01:00
Benoit Marty
39cca2ce09 Sync localazy using fixed script 2023-12-08 19:24:35 +01:00
Benoit Marty
b98351ec36
Merge pull request #1952 from vector-im/sync-localazy
Sync Strings
2023-12-05 13:47:44 +01:00
Benoit Marty
24d3981261 Run the script again. 2023-12-05 12:25:59 +01:00
Benoit Marty
fd42c78b15 Sync again 2023-12-05 11:25:47 +01:00
Benoit Marty
fa590202c3 Add Konsist test to check that assertThat is imported, and fix existing issues. 2023-12-04 15:18:01 +01:00
bmarty
fced91addb Sync Strings from Localazy 2023-12-04 00:09:56 +00:00
Jorge Martin Espinosa
ba4d3a70c7
Try to make all collections used in Compose code immutable (#1922)
* Try to make all collections used in Compose code immutable.

Mark sealed interfaces as `@Immutable` too

* Add gradle code to check the compose compiler reports

* Fix some more unstable classes
2023-11-29 15:02:08 +00:00
Jorge Martin Espinosa
087d2728d5
Extract compound tokens and theming to compound-android library (#1888)
* Replace tokens & icons with the external Compound ones

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-11-27 10:30:07 +01:00
ganfra
0fb4eb005c RoomList : rework a bit the api and make usage of entriesWithDynamicAdapters 2023-11-22 18:06:19 +01:00
Jorge Martin Espinosa
a5bad53c62
Iterate design on several screens: update icons, replace PreferenceTexts (#1771)
- Batch import new icons from the design team.
- Rename _september icons since they're just extra icons that need to be integrated in Compound in the future, and it should be ok if we don't distinguish between ic_september_*, ic_november_* etc., so all icons are now simply ic_* in the designsystem module.
- Create a new CompoundIconListPreviewProvider to add chunked lists of icons for previews. Add an exception for it to Konsist.
- Move some icons to use Compound icons.
- Remove most PreferenceText usages, use ListItem instead.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-11-15 10:52:37 +01:00
Benoit Marty
74c13a7f79 Cleanup 2023-11-14 14:11:34 +01:00
Benoit Marty
0adc3b1f1d Localazy: move screen_notification_settings_ strings to the :features:preferences:impl module.
Need to also import `screen_notification_settings_edit_failed_updating_default_mode` to the module `:features:roomdetails:impl`.
2023-11-14 11:12:35 +01:00
Jorge Martin Espinosa
d648f85d75
Add active call icon to room list summaries (#1792)
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-11-13 15:35:11 +00:00
bmarty
2fca8412b2 Sync Strings from Localazy 2023-11-06 08:23:40 +00:00
Benoit Marty
d09d95b269 Avoid runBlocking. Start with a nullable boolean. 2023-10-31 21:52:33 +01:00
Benoit Marty
5013ff061e Secure backup: create a feature flag (disabled) 2023-10-31 21:52:33 +01:00
Benoit Marty
5728d621bb
Merge pull request #1648 from vector-im/feature/bma/secureBackup
Secure backup
2023-10-30 21:29:54 +01:00