Benoit Marty
7ec876bc8a
Rename `isLastSession` to `isLastDevice`, to match SDK naming.
8 months ago
Jorge Martin Espinosa
b69cb8175a
Update Compound to v0.0.5 and update icons ( #2380 )
...
Update Compound to `v0.0.5`:
- Make sure we fix all the breaking changes.
- Update some icons to use the compound version instead.
-Replace icons with their Compound counterparts when possible.
- Clean up unused icons.
- Fix issues with incorrect icons or sizes being used after replacing the temporary icons with the Compound ones.
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
9 months ago
Benoit Marty
688c4dae22
Rename parameter, since it is also invoked in the confirmation dialog, not only for the error dialog.
9 months ago
bmarty
03c95555e3
Sync Strings from Localazy
9 months ago
Benoit Marty
eb51b49aef
Always use the `latest...` fix.
9 months ago
Benoit Marty
3ced570b3c
Fix detekt issue:
...
Lambda parameters in a @Composable that are referenced directly inside of restarting effects can cause issues or unpredictable behavior.
If restarting the effect is ok, you can add the reference to this parameter as a key in that effect, so when the parameter changes, a new effect is created.
However, if the effect is not to be restarted, you will need to use `rememberUpdatedState` on the parameter and use its result in the effect.
See https://mrmans0n.github.io/compose-rules/rules/#be-mindful-of-the-arguments-you-use-inside-of-a-restarting-effect for more information. [LambdaParameterInRestartableEffect]
9 months ago
ElementBot
6bc080c279
Sync Strings ( #2230 )
...
Co-authored-by: bmarty <bmarty@users.noreply.github.com>
10 months ago
Benoit Marty
5d086ad82d
Fix moar ktlint issues
10 months ago
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>
10 months ago
Benoit Marty
5e42368965
Add missing test for LogoutView
10 months ago
Benoit Marty
2a6a3ded5e
Iterate on EnsureCalledOnce devX
10 months ago
Benoit Marty
2c667a0dc0
Add `run` method to EnsureCalledOnce and EnsureCalledOnceWithParam to ensure that `assertSuccess` is always called.
10 months ago
Benoit Marty
dee8008917
Use string resource instead of hard-coded strings.
10 months ago
Benoit Marty
7944804cd9
Fix test in release.
10 months ago
Benoit Marty
44ad93f625
Add first tests on compose click interaction.
10 months ago
Benoit Marty
1fcb8fea00
Fix flaky test using deterministic `awaitFirstItem` instead of `awaitLastSequentialItem`
10 months ago
Benoit Marty
7b2341aec7
Rename Async to AsyncData
10 months ago
Benoit Marty
d953c979e1
Introduce AsyncAction with a Confirmation state and use it for logout action.
10 months ago
Benoit Marty
7db7a32d43
Use a RetryDialog here, it does not change the rendering, but is more appropriate.
10 months ago
Benoit Marty
481d80d1f0
Add comment to clarify the `SteadyException` case.
10 months ago
Benoit Marty
1f2b2df469
Quality
10 months ago
Benoit Marty
c871dc2492
Add test for `DefaultDirectLogoutPresenter`
10 months ago
Benoit Marty
2b983e923e
Sign out: direct flow if not last session and if not currently backing up keys #2072
...
Extract some stuff from existing Logout to avoid duplication.
10 months ago
bmarty
e6f4a7364f
Sync Strings from Localazy
10 months ago
Benoit Marty
b9b746bea7
Attempt to fix test on CI.
...
The test is failing on CI with this error:
expected instance of: io.element.android.libraries.architecture.Async$Success
but was instance of : io.element.android.libraries.architecture.Async$Loading
with value : Loading(prevData=null)
10 months ago
Jorge Martín
c5c920cfa6
Revert "Merge pull request #2071 from element-hq/feature/bma/fixTests"
...
This reverts commit 19edf067fa
, reversing
changes made to fb766f5176
.
10 months ago
Benoit Marty
258e074978
Last attempt...
11 months ago
Benoit Marty
f94f5e4713
Second attempt...
11 months ago
Benoit Marty
139f5cdf72
Attempt to fix test on CI.
...
The test is failing on CI with this error:
expected instance of: io.element.android.libraries.architecture.Async$Success
but was instance of : io.element.android.libraries.architecture.Async$Loading
with value : Loading(prevData=null)
11 months ago
Benoit Marty
14b20b7e59
Attempt to fix test on CI
11 months ago
Benoit Marty
b0dabb128d
Fix test in release
...
Be deterministic to try to fix test on CI.
11 months ago
Benoit Marty
21945004de
Fix title of sign out screen regarding the different states
11 months ago
Benoit Marty
39cca2ce09
Sync localazy using fixed script
11 months ago
Benoit Marty
24d3981261
Run the script again.
11 months ago
bmarty
fced91addb
Sync Strings from Localazy
11 months ago
Marco Romano
6ea26dd6c4
Upgrade to rust sdk 0.1.71 ( #1905 )
...
https://github.com/matrix-org/matrix-rust-components-kotlin/releases/tag/sdk-v0.1.71
There are breaking changes as specified in: https://github.com/vector-im/element-x-android/issues/1898 plus the one related to the poll history feature.
11 months ago
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>
11 months ago
ElementBot
3bf34eae01
Sync Strings ( #1789 )
...
Co-authored-by: bmarty <bmarty@users.noreply.github.com>
12 months ago
Benoit Marty
7bd2ccd2a9
FlowStepPage: make `onBackClicked` nullable and remove `canGoBack`.
12 months ago
Benoit Marty
163bc8703f
Rename UserStoryFlowPage to FlowStepPage
...
Rename UserStoryFlowPage to FlowStepPage
12 months ago
Benoit Marty
85fa899b5d
Let LogoutView use UserStoryFlowPage.
12 months ago
bmarty
2fca8412b2
Sync Strings from Localazy
12 months ago
Benoit Marty
250389633b
Progress for LinearProgressIndicator and CircularProgressIndicator are now lambdas.
1 year ago
Benoit Marty
23cf703925
Fix maestro test.
1 year ago
Benoit Marty
6143ea8764
Fix tests
1 year ago
Benoit Marty
d09d95b269
Avoid runBlocking. Start with a nullable boolean.
1 year ago
Benoit Marty
5013ff061e
Secure backup: create a feature flag (disabled)
1 year ago
Benoit Marty
7e1b991654
Consider keys are backing up only for SteadyStateException.Connection
1 year ago
Benoit Marty
2f62779ad4
Sign out: handle no network error.
1 year ago
Benoit Marty
20d6383b8a
Map new state `BackupUploadState.Error`
1 year ago