Commit Graph

648 Commits

Author SHA1 Message Date
ganfra
2d02c01d5f Pinned event : hide/show banner on timeline scroll 2024-07-25 18:37:46 +02:00
ganfra
df09d82a58 Pinned messages : introduces banner view 2024-07-23 13:05:59 +02:00
Benoit Marty
8a0d7183ee Remove the alpha channel on those 2 images.
Reduce the image size and fixes an issue in dark mode.
2024-07-18 16:20:00 +02:00
Benoit Marty
32f5c018d5 Ensure that the manual dark theme is rendering correctly regarding night resource and keyboard. 2024-07-18 14:37:47 +02:00
Benoit Marty
685f43374d Rename val for clarity. 2024-07-17 18:42:15 +02:00
Benoit Marty
1dcdde98c2 Reduce the risk of text truncation in buttons. 2024-07-17 17:46:36 +02:00
Benoit Marty
29b115dfdf Introduce ElementThemeApp to avoid code duplication. 2024-07-09 11:10:10 +02:00
Jorge Martin Espinosa
c0e1c33159 Fix MainActionButton layout for long texts (#3158)
* Fix `MainActionButton` layout for long texts

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-07-08 11:43:24 +00:00
Benoit Marty
ea62ed7c5a Improve click behavior on room timeline title. #3063 2024-07-04 09:26:39 +02:00
Jorge Martin Espinosa
950e502ca6 Improve screenshot testing with ComposablePreviewScanner (#3125)
* Use ComposablePreviewScanner to rework how screenshot testing works
* Add test sharding
* Update screenshots
* Fixes for Element Gallery

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-07-03 13:05:06 +02:00
Benoit Marty
c09e6d009b Fix KDoc issue 2024-06-21 16:53:44 +02:00
Benoit Marty
e8fe8f51c8 Use DmAvatars in header of DM details. 2024-06-21 15:55:01 +02:00
Benoit Marty
f62be45303 Create DmAvatars to render both users of a DM. 2024-06-21 15:45:22 +02:00
Benoit Marty
5ea495da1b Use repeat in the Preview. 2024-06-20 17:59:26 +02:00
Benoit Marty
84f42537b8 Use ImmutableList in Composable. 2024-06-20 15:56:33 +02:00
Benoit Marty
0b9f5a5214 Add enum Suggestion instead of reusing TimelineRoom 2024-06-20 15:00:26 +02:00
Benoit Marty
11e4ee34ed Use heroes to render room avatars 2024-06-20 13:10:25 +02:00
Benoit Marty
ff63755165 Add enum EditProfileDetails instead of reusing RoomHeader 2024-06-20 11:43:15 +02:00
Benoit Marty
f886bf7105 Introduce CompositeAvatar to render heroes when main AvatarData does not have URL. 2024-06-20 11:28:52 +02:00
Benoit Marty
ce5b9e034a Allow scroll in the "Enter recovery key" screen. #3042 2024-06-18 15:42:07 +02:00
Benoit Marty
e4bfc5ef8f Merge pull request #3035 from element-hq/feature/bma/fixFdroidNotification
Feature/bma/fix fdroid notification
2024-06-18 12:55:27 +02:00
ganfra
873eeadb65 ProgressDialog : rename isCancellable param to showCancelButton on the ProgressDialogContent method. 2024-06-18 10:36:19 +02:00
Benoit Marty
2e8b63c006 Add a shortcut to navigate to the notification settings in case of error. 2024-06-17 16:29:10 +02:00
Benoit Marty
deb0e0aaac Create component ErrorDialogWithDoNotShowAgain 2024-06-17 11:30:24 +02:00
ganfra
4f3cb5a1e5 Progress dialog : add dialog properties parameter 2024-06-14 18:59:42 +02:00
Benoit Marty
4a84350261 Remove empty manifest files. 2024-06-13 18:20:19 +02:00
Jorge Martin Espinosa
6f8de0b2c6 Element Call ringing notifications (#2978)
- Add `ActiveCallManager` to handle incoming and ongoing calls.
- Add ringing call notifications with full screen intents and missed call ones as part of the 'conversation' notifications.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-06-10 11:51:19 +02:00
Jorge Martin Espinosa
35702c04e9 Sign in with QR code (#2793)
* Add QR code login.
* Add FF to disable it in release mode.
* Force portrait orientation on the login flow.
* Create `NumberedList` UI components.
* Improve camera permission dialog.
* Make nodes in qrcode feature use `QrCodeLoginScope` instead of `AppScope`
* Bump SDK version.
* Fix maestro tests

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-05-31 14:38:27 +02:00
Benoit Marty
cdf6f48112 Change Test class suffix. 2024-05-30 10:11:18 +02:00
Benoit Marty
36102cc90b Suppress ContentTrailingLambda for AlertDialogContent( 2024-05-29 12:40:14 +02:00
Benoit Marty
919849acc2 Move content @Composable to the end of the parameter list.
A @Composable `content` parameter should be moved to be the trailing lambda in a composable function.
2024-05-29 12:38:14 +02:00
Benoit Marty
87689d787e Lambda parameters in a composable function should be in present tense, not past tense.
https://mrmans0n.github.io/compose-rules/rules/#naming-parameters-properly
2024-05-29 12:18:23 +02:00
Benoit Marty
8cd392a2b8 Merge branch 'develop' into renovate/io.nlopez.compose.rules-detekt-0.x 2024-05-28 08:59:36 +02:00
Benoit Marty
a96351643e UseLet 2024-05-28 00:14:23 +02:00
Benoit Marty
b32cebf2c0 supportingContent should be null if there is nothing to display. 2024-05-28 00:11:30 +02:00
Benoit Marty
ea93579b23 trailingContent and supportingContent should be null if there is nothing to display. 2024-05-27 17:33:29 +02:00
Benoit Marty
8339a6f1f3 No Composable if subtitle is null 2024-05-27 17:28:17 +02:00
Benoit Marty
8e1b48d3d5 Add preview without subtitle 2024-05-27 17:27:20 +02:00
Benoit Marty
f2317e9aa5 Remove unused parameter. 2024-05-27 17:25:02 +02:00
Benoit Marty
55824900d2 Fix formatting issue. 2024-05-27 14:19:30 +02:00
Benoit Marty
223d0632cf Fix test by making the whole ListItem clickable.
Also improve height of View to let the test see the View.
2024-05-27 13:51:18 +02:00
Benoit Marty
a57b9cb49f Let Preference composables use ListItem.
Let PreferenceCheckbox use ListItem and add missing previews.
Let PreferenceCategory use ListSectionHeader
Let PreferenceSlide use ListItem
Let PreferenceRow use ListItem
Let PreferenceText use ListItem
2024-05-27 12:19:10 +02:00
Benoit Marty
e77f5f2bd7 Suppress warning for ModifierComposed (detekt) 2024-05-17 17:00:28 +02:00
Benoit Marty
f82ab91f6e Supress warning ModifierComposed for autofill, there is a low risk of performance issue here. 2024-05-17 17:00:27 +02:00
Benoit Marty
7b70cac7c5 Rework Modifier.applyIf.
It was using `Modifier.composed` which is not good for performance and detekt is warning about this.
2024-05-17 17:00:27 +02:00
Benoit Marty
bb48bb7531 Migrate AvatarActionBottomSheet to Material3 BottomSheet
Also correctly handle the back press when this bottom sheet is opened, previously it was leaving the room edition screen.
ModalBottomSheetLayout can now be deleted.
2024-05-15 16:20:47 +02:00
Jorge Martin Espinosa
e1694fa4e8 Add room badges (#2822)
* Add room badges

* Remove no longer used `onShareRoomMember` callback

* Update screenshots

* Add changelog

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-05-09 08:38:40 +02:00
Jorge Martin Espinosa
b524645b89 UX cleanup: room details (#2816)
* UX cleanup: room details screen

Add new CTA buttons for Invite and Call actions

* Update screenshots

* Fix maestro

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-05-08 11:42:33 +02:00
Benoit Marty
1f0b711355 Add missing color preview. 2024-04-26 14:30:51 +02:00
Benoit Marty
21ddeb00fe Format and cleanup files 2024-04-26 13:57:08 +02:00