Commit graph

698 commits

Author SHA1 Message Date
ganfra
a475cb8568 fix : hide keyboard when TextComposer is removed from composition 2024-12-03 12:11:41 +01:00
Benoit Marty
7a8b942dfb Slider: import design. 2024-11-27 16:05:51 +01:00
Jorge Martin Espinosa
1b6f77d25a
Replace textPlaceholder color usages with textSecondary (#3873)
* Replace `textPlaceholder` color usages with `textSecondary`

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2024-11-15 07:55:33 +00:00
ganfra
cffd2da10b
Merge pull request #3834 from element-hq/feature/fga/design_system_text_field
Design system : implement new TextField
2024-11-12 11:18:07 +01:00
ganfra
bb85e81311 design : format textfield code 2024-11-08 15:41:07 +01:00
ganfra
3910c42855 design : TextField2 is now TextField 2024-11-08 15:37:10 +01:00
ganfra
83caf94ccb design : remove some usages of TextField and LabelledTextField 2024-11-08 15:29:07 +01:00
ganfra
e378b20868 design : removes usage of OutlinedTextField 2024-11-08 15:15:08 +01:00
ganfra
0d7641b3b2 design : updates TextField api 2024-11-08 15:14:48 +01:00
Benoit Marty
8b21efa32a Ensure the invisible buttons have the correct size. 2024-11-07 18:51:44 +01:00
ganfra
6126e51f6f design : new TextField api 2024-11-07 18:34:44 +01:00
Benoit Marty
1c020bcf26
Merge pull request #3750 from element-hq/feature/bma/cryptoIteration
UI iteration on the encryption settings
2024-10-30 11:11:35 +01:00
Benoit Marty
f03a432bb2 Remove blank line. 2024-10-29 18:03:08 +01:00
Benoit Marty
229f843a2d Move TextWithLabelMolecule to the designsystem module. 2024-10-29 16:43:26 +01:00
Benoit Marty
77e45d4523 ListItem: allow list item to be clickable even when disabled. 2024-10-29 12:20:25 +01:00
Jorge Martin Espinosa
384c4a55da
Update accent color for Checkbox, RadioButton and Switch components (#3728)
* Update accent color for `Checkbox`, `RadioButton` and `Switch` components

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2024-10-24 11:14:15 +02:00
Benoit Marty
95d95d4f89
Merge pull request #3718 from element-hq/feature/bma/verifiedUserBadge
Verified user badge
2024-10-23 14:20:23 +02:00
Benoit Marty
fb353e9657 Doc 2024-10-22 12:29:18 +02:00
Benoit Marty
a29cedf112 Remove RoundedIconAtomSize.Large, we must use BigIcon now. 2024-10-22 11:56:35 +02:00
Benoit Marty
daaaf92a87 Let IconTitleSubtitleMolecule use BigIcon. 2024-10-22 11:53:30 +02:00
Benoit Marty
e3b77ce219 Fix color of BigIcon according to Figma 2024-10-22 11:40:40 +02:00
Benoit Marty
1ca8c5131b Change model and create MatrixBadgeRowMolecule 2024-10-22 10:18:43 +02:00
Benoit Marty
77b87af52a Move RoomBadge to atomic package and rename to MatrixBadge 2024-10-22 10:18:42 +02:00
Benoit Marty
7dc11a2226 RoundedIconAtom: add new size Big. 2024-10-21 20:03:40 +02:00
Benoit Marty
3094e47e11 Remove blank line 2024-10-21 09:42:04 +02:00
Benoit Marty
28eb7766dd Fix supportingColor not correct on Destructive ListItem. 2024-10-18 15:12:32 +02:00
Benoit Marty
a613fcfe9d Add more preview for Destructive ListItem. It reveals some errors. 2024-10-18 15:12:31 +02:00
Benoit Marty
6c92217a95 ListItem: Update the preview so that they all contain both enabled and disabled rendering. 2024-10-18 12:40:53 +02:00
Benoit Marty
6e27266988 Rename some classes which implement PreviewParameterProvider according to the new naming convention.
`Provider` suffix is enough and more used than `PreviewProvider`, so let's make the codebase more consistent.
2024-10-16 11:17:46 +02:00
Benoit Marty
ecd7bb0458 AsyncActionView: provide the value to the confirmationDialog lambda. 2024-10-14 11:02:47 +02:00
Benoit Marty
fb52657b12 Let AsyncAction.Confirming be an interface, with a AsyncAction.ConfirmingNoParams data object.
This will allow inheritance of `AsyncAction.Confirming` with parameter(s).
2024-10-14 10:49:55 +02:00
Jorge Martin Espinosa
366db4791b
Upgrade Kotlin to v2.0 (#3594)
* Bump Kotlin to v2.0

* Fix lots of issues due to the upgrade: lint issues, function signature incompatibilities, broken tests, etc.

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-10-10 08:32:00 +00:00
renovate[bot]
1f2075f1b3
fix(deps): update dependency androidx.compose:compose-bom to v2024.09.03 (#3583)
* fix(deps): update dependency androidx.compose:compose-bom to v2024.09.03

* Fix the `LinearProgressIndicator` new style

* Update screenshots

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: ElementBot <android@element.io>
2024-10-09 11:50:11 +00:00
Benoit Marty
81fc52dcfa Add component ComposerAlertMolecule 2024-10-07 22:15:34 +02:00
renovate[bot]
98d9abecd9
fix(deps): update dependency io.nlopez.compose.rules:detekt to v0.4.15 (#3595)
* Update dependency io.nlopez.compose.rules:detekt to v0.4.15

* Fix new detekt issues

* Fix KtLint

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2024-10-04 16:58:19 +02:00
ganfra
adc03c9676 timeline : improve jumpTo precision (introducing animateScrollToItemCenter) 2024-10-03 15:33:03 +02:00
Jorge Martin Espinosa
79c17f714f
Use Anvil KSP instead of the Square KAPT one (#3564)
* Use Anvil KSP instead of the Square KAPT one

* Fix several configuration cache, lint and test issues

* Allow incremental kotlin compilation in the CI

* Workaround Robolectric + Compose issue that caused `AppNotIdleException`

* Update the `enterprise` commit hash

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2024-10-02 11:52:17 +00:00
renovate[bot]
231217c438
Update dependency io.element.android:compound-android to v0.1.0 (#3524)
* Update dependency io.element.android:compound-android to v0.1.0

* Fix usages of `AvatarColorsProvider`

* Update screenshots

* Fix tests and lint issues

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: ElementBot <android@element.io>
2024-09-26 14:54:25 +00:00
renovate[bot]
9756afc5d1
Update dependency androidx.compose:compose-bom to v2024.09.00 (#3399)
* Update dependency androidx.compose:compose-bom to v2024.09.00

* Adapt code for changes.

* Workaround crash when closing the RTE

* Fix broken bottom sheet colors and shape

* Fix tons of warnings and deprecations

* Fix lint issues

* Fix more M3 update changes

* Update screenshots

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: ganfra <francoisg@matrix.org>
Co-authored-by: ElementBot <android@element.io>
2024-09-26 09:30:20 +02:00
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