Commit graph

659 commits

Author SHA1 Message Date
Benoit Marty
5a6859b251 Make text parts in bold. 2024-09-17 17:39:23 +02:00
Benoit Marty
b87bec6228 Account deactivation. 2024-09-17 16:51:11 +02:00
ganfra
47d0c505b5
Merge pull request #3461 from element-hq/feature/fga/send_failure_identity_changes
Require acknowledgement to send to a verified user if their identity changed or if a device is unverified.
2024-09-16 16:00:18 +02:00
Jorge Martin Espinosa
663362ac7f
Add forced logout flow when the proxy is no longer available (#3458)
* Add `MatrixClient.isSlidingSyncProxySupported` function

* Update localazy strings

* Modify `ErrorDialog` to have an `onSubmit` call, which will be used for the submit action.

Also make the title text optional and dismissing the dialog by tapping outside/going back configurable.

* Check if a forced migration to SSS is needed because the proxy is no longer available.

In that case, display the non-dismissable dialog and force the user to log out after enabling SSS.

* Enable native/simplified sliding sync by default.

* Refactor the login to make sure we:

1. Always try native/simplified sliding sync login first, if available.
2. Then, if it wasn't available or failed with an sliding sync not supported error, try with the proxy instead (either discovered proxy or forced custom one).

* Move logic to `LoggedInPresenter` and the UI to `LoggedInView`

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-09-16 09:13:02 +00:00
ganfra
ff368b4072 Send failure verified user : resolve ui and logic 2024-09-13 16:40:07 +02:00
ganfra
b2c7ea02fb Design : allow passing ListItemColor to ListItem composable to customise as you want. 2024-09-13 16:40:06 +02:00
Jorge Martin Espinosa
67e262fdc8
Add banner for optional migration to simplified sliding sync (#3429)
* Add banner for optional migration to native sliding sync

- Add `MatrixClient.isNativeSlidingSyncSupported()` and `MatrixClient.isUsingNativeSlidingSync` to check whether the home server supports native sliding sync and we're already using it.
- Add `NativeSlidingSyncMigrationBanner` composable to the `RoomList` screen when the home server supports native sliding sync but the current session is not using it.
- Add an extra logout successful action to the logout flow, create `EnableNativeSlidingSyncUseCase` so it can be used there.

* Update screenshots

* Make sure the sliding sync migration banner has lower priority than the encryption setup ones

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-09-09 18:13:19 +02:00
Benoit Marty
375ac25d8d Migrate license to AGPL - XML files. 2024-09-06 17:43:35 +02:00
Benoit Marty
f61df38e55 Migrate license to AGPL.
Run script `uv run license-editor --repository ../element-x-android`
2024-09-06 17:19:19 +02:00
Benoit Marty
faf1e7da9f Iterate on shield mapping and rendering
Also handle click on the timeline and information displayed on long click.
2024-08-14 17:24:11 +02:00
renovate[bot]
738295a933
Update android.gradle.plugin to v8.5.2 (#3004)
* Update android.gradle.plugin

* Fix release builds with AGP 8.5 by removing the minification config in each library module. I believe this is now centralised.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2024-08-09 15:04:10 +02:00
ganfra
03a0e4fa08 Pinned event : hide/show banner on timeline scroll 2024-07-25 18:37:46 +02:00
ganfra
c76ff38f00 Pinned messages : introduces banner view 2024-07-23 13:05:59 +02:00
Benoit Marty
930833300f 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
5ca0f645ad Ensure that the manual dark theme is rendering correctly regarding night resource and keyboard. 2024-07-18 14:37:47 +02:00
Benoit Marty
2126556105 Rename val for clarity. 2024-07-17 18:42:15 +02:00
Benoit Marty
13853a39a5 Reduce the risk of text truncation in buttons. 2024-07-17 17:46:36 +02:00
Benoit Marty
bb5ae89b2f Introduce ElementThemeApp to avoid code duplication. 2024-07-09 11:10:10 +02:00
Jorge Martin Espinosa
c550436500
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
6a1304a252 Improve click behavior on room timeline title. #3063 2024-07-04 09:26:39 +02:00
Jorge Martin Espinosa
b0cebf5ca0
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
f0917ad38a Fix KDoc issue 2024-06-21 16:53:44 +02:00
Benoit Marty
da1f8cd465 Use DmAvatars in header of DM details. 2024-06-21 15:55:01 +02:00
Benoit Marty
f4325aed50 Create DmAvatars to render both users of a DM. 2024-06-21 15:45:22 +02:00
Benoit Marty
3ce4af97cc Use repeat in the Preview. 2024-06-20 17:59:26 +02:00
Benoit Marty
a2ff1dc933 Use ImmutableList in Composable. 2024-06-20 15:56:33 +02:00
Benoit Marty
a9f23c06b0 Add enum Suggestion instead of reusing TimelineRoom 2024-06-20 15:00:26 +02:00
Benoit Marty
ad02e05bf4 Use heroes to render room avatars 2024-06-20 13:10:25 +02:00
Benoit Marty
a0f21d0b63 Add enum EditProfileDetails instead of reusing RoomHeader 2024-06-20 11:43:15 +02:00
Benoit Marty
61c21b6a96 Introduce CompositeAvatar to render heroes when main AvatarData does not have URL. 2024-06-20 11:28:52 +02:00
Benoit Marty
47856c22ce Allow scroll in the "Enter recovery key" screen. #3042 2024-06-18 15:42:07 +02:00
Benoit Marty
7b5e7c4c00
Merge pull request #3035 from element-hq/feature/bma/fixFdroidNotification
Feature/bma/fix fdroid notification
2024-06-18 12:55:27 +02:00
ganfra
97ec100e76 ProgressDialog : rename isCancellable param to showCancelButton on the ProgressDialogContent method. 2024-06-18 10:36:19 +02:00
Benoit Marty
5180ce388c Add a shortcut to navigate to the notification settings in case of error. 2024-06-17 16:29:10 +02:00
Benoit Marty
675f93a5ad Create component ErrorDialogWithDoNotShowAgain 2024-06-17 11:30:24 +02:00
ganfra
f53dbef8de Progress dialog : add dialog properties parameter 2024-06-14 18:59:42 +02:00
Benoit Marty
11711e8f67 Remove empty manifest files. 2024-06-13 18:20:19 +02:00
Jorge Martin Espinosa
30a1367714
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
c8bd04ceb1
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
ec8cb2e32f Change Test class suffix. 2024-05-30 10:11:18 +02:00
Benoit Marty
c6f4c9e12a Suppress ContentTrailingLambda for AlertDialogContent( 2024-05-29 12:40:14 +02:00
Benoit Marty
e97e21e785 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
37d9a9f5a9 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
683f7d4748
Merge branch 'develop' into renovate/io.nlopez.compose.rules-detekt-0.x 2024-05-28 08:59:36 +02:00
Benoit Marty
414e2bb3f1 UseLet 2024-05-28 00:14:23 +02:00
Benoit Marty
79057678d7 supportingContent should be null if there is nothing to display. 2024-05-28 00:11:30 +02:00
Benoit Marty
f743934e0f trailingContent and supportingContent should be null if there is nothing to display. 2024-05-27 17:33:29 +02:00
Benoit Marty
ef4cf42b71 No Composable if subtitle is null 2024-05-27 17:28:17 +02:00
Benoit Marty
cf057310b4 Add preview without subtitle 2024-05-27 17:27:20 +02:00
Benoit Marty
8eeb95e867 Remove unused parameter. 2024-05-27 17:25:02 +02:00