Commit graph

7359 commits

Author SHA1 Message Date
Benoit Marty
bc30aee359 Iterate on sessionVerificationService.sessionVerifiedStatus and fix tests. 2024-06-18 11:02:19 +02:00
Benoit Marty
f09b77f72f Update test after merging develop. 2024-06-18 10:33:07 +02:00
Benoit Marty
69dbb08034
Merge branch 'develop' into feature/bma/fixFdroidNotification 2024-06-18 10:28:04 +02:00
Benoit Marty
849f64f4aa
Merge pull request #3044 from element-hq/feature/bma/testDefaultClearCacheUseCase
Add test on DefaultClearCacheUseCase
2024-06-18 10:27:45 +02:00
Jorge Martin Espinosa
b741c32e91
Add full screen intent permissions banner (#3024)
* Add full screen intent permissions banner, creating `:libraries:fullscreenintent` modules.
* Add it to notification settings too:
    - Create `libraries:fullscreenintent` modules for the permission presenter and associated data.
    - Add the presenter and states to `NotificationSettingsPresenter` and `NotificationSettingsView`.
* Use the right API to check for full screen intent permissions.
- Use the right package name for `:libraries:permission` contents.
* Fix broken tests (flaky?)
* Ignore coverage verification for fake and small presenters

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-06-18 07:41:10 +00:00
Benoit Marty
9349f1bf6a Remove trailing line. 2024-06-17 18:58:07 +02:00
Benoit Marty
85eae468b7 Cleanup 2024-06-17 18:27:57 +02:00
ElementBot
46f71de5ef Update screenshots 2024-06-17 16:15:43 +00:00
Benoit Marty
d97db21d75 Rather use NoDistributorsAvailable, it has more chance to happen IRL. 2024-06-17 18:03:00 +02:00
Benoit Marty
892a6d5503 Add test about selecting the first provider with a distributor. 2024-06-17 17:54:55 +02:00
Benoit Marty
0908e9b9e4 Fix test issue. 2024-06-17 17:49:01 +02:00
Benoit Marty
e12f723ff7 Fix test compilation issue. 2024-06-17 17:38:10 +02:00
Benoit Marty
b4b407a69e Store the first provider even if no distributor is available, else error in troubleshoot test will not be accurate.
Also when registering for the first time, pick the fist available provider with at least one distributor.
2024-06-17 17:36:39 +02:00
Benoit Marty
f72fc36de8 Update PushProvider API, remove isAvailable(), but instead rely on getDistributors() to eventually return an empty list of Distributors. 2024-06-17 17:25:13 +02:00
Benoit Marty
1f8b525548 Fix back navigation issue, when opening directly the notification troubleshoot screen. 2024-06-17 16:53:21 +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
b916aee958 Add test on DefaultClearCacheUseCase 2024-06-17 16:01:56 +02:00
Benoit Marty
efa7a2d046 Move InMemoryMigrationScreenStore to a test module. 2024-06-17 15:26:50 +02:00
Benoit Marty
4de151cae8 Rename member. 2024-06-17 15:18:22 +02:00
Benoit Marty
d3cf140501 Create test module with FakeFtueService 2024-06-17 15:12:08 +02:00
Benoit Marty
b68b08300a Add test on DefaultFtueService.reset(). 2024-06-17 15:04:20 +02:00
Benoit Marty
03a197e530 Rename method and val. 2024-06-17 14:56:56 +02:00
Benoit Marty
e31fc17c9a Add Unit test on UserPushStoreDataStore 2024-06-17 14:48:52 +02:00
Benoit Marty
eb07ae2855 Add test on ignoreRegistrationError and setIgnoreRegistrationError 2024-06-17 14:48:52 +02:00
Benoit Marty
7d1e841c68 Rename member. 2024-06-17 14:48:52 +02:00
Benoit Marty
abc0e7edf7 Move setIgnoreRegistrationError call. 2024-06-17 14:48:51 +02:00
ElementBot
5fa3802373 Update screenshots 2024-06-17 11:22:16 +00:00
Benoit Marty
64930e4435 Add ability to not show the pusher registration again. 2024-06-17 11:38:32 +02:00
Benoit Marty
675f93a5ad Create component ErrorDialogWithDoNotShowAgain 2024-06-17 11:30:24 +02:00
Benoit Marty
725c3838af Render an error dialog in case registering a pusher fails. 2024-06-17 11:30:23 +02:00
Benoit Marty
21ce1c40b3 Add pusher status in the state.
It improve the tests and we may want to render errors in the View at some point.
2024-06-17 11:30:23 +02:00
Benoit Marty
3d5951cbf0 Add test on pusher registration 2024-06-17 11:30:22 +02:00
Benoit Marty
68d2a1af8b More log. 2024-06-17 11:30:22 +02:00
Benoit Marty
247b60b9ce Add Timber tag. 2024-06-17 11:30:21 +02:00
Benoit Marty
101a6e6ff2 Ensure that the code is not run twice. 2024-06-17 11:30:21 +02:00
Benoit Marty
acde970f01 Extract function and add more logs. 2024-06-17 11:30:21 +02:00
Benoit Marty
907fae10ac Pusher add more log and change comment to log. 2024-06-17 11:30:20 +02:00
Benoit Marty
148177f24e Fix typo in log. 2024-06-17 11:30:20 +02:00
Benoit Marty
c7672ab250
Merge pull request #3040 from element-hq/sync-localazy
Sync Strings
2024-06-17 09:53:11 +02:00
bmarty
9288b90ac6 Sync Strings from Localazy 2024-06-17 00:23:40 +00:00
Benoit Marty
5c2d612bb3
Merge pull request #3030 from element-hq/feature/bma/codeCleanup
Code cleanup and store badges
2024-06-14 15:15:01 +02:00
Benoit Marty
ac625b9cec
Merge pull request #3036 from element-hq/feature/bma/fixTests
Fix test `present - notification settings set custom`
2024-06-14 15:14:43 +02:00
Benoit Marty
11d853bcca Fix test present - notification settings set custom 2024-06-14 13:41:37 +02:00
Benoit Marty
c4333544ac Remove other wrong dependency. 2024-06-14 10:30:10 +02:00
Benoit Marty
7c18133bb3 Fix wrong dependency.
implementation -> testImplementation
2024-06-14 10:29:59 +02:00
Benoit Marty
828cf4cc8d Remove wrong dependency. 2024-06-14 10:29:48 +02:00
Benoit Marty
303642bb8e Fix script on CI 2024-06-14 10:27:03 +02:00
Benoit Marty
d43d0cda9e Add Python script to check for invalid dependencies - keeping the existing errors to check that the CI works as expected. 2024-06-14 09:29:23 +02:00
Benoit Marty
f096485d9d Fix formatting issue. 2024-06-13 18:20:19 +02:00
Benoit Marty
11711e8f67 Remove empty manifest files. 2024-06-13 18:20:19 +02:00