Commit Graph

324 Commits

Author SHA1 Message Date
Benoit Marty f5a0e83cb2 Merge pull request #2941 from element-hq/sync-localazy
Sync Strings
2024-05-29 16:27:17 +02:00
bmarty ca5bc71057 Sync Strings from Localazy 2024-05-29 12:44:57 +00: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
Jorge Martin Espinosa 04e503177b Notifications: simplify the flow by removing persistence (#2924)
* Notifications: simplify the flow by removing persistence. 
* Bump of minSdk to `24` (Android 7).
* Add migration to remove `notification.bin` file
2024-05-29 08:03:23 +00:00
Benoit Marty 17678add86 Merge pull request #2928 from element-hq/feature/bma/movePushSetting
Move push provider setting
2024-05-29 00:29:24 +02:00
Benoit Marty 35a02a2a12 Fix test 2024-05-28 18:47:27 +02:00
Benoit Marty b2c8299be3 Remove obsolete comment. 2024-05-28 14:43:50 +02:00
Benoit Marty 48b58b47b9 Add UI test on BlockedUserView 2024-05-28 14:33:21 +02:00
Benoit Marty 643acb17b6 Render data of blocked users (behind deactivated feature flag). 2024-05-28 14:33:21 +02:00
Benoit Marty 9a24e7d4af Change type of NotificationSettingsState.currentPushDistributor from AsyncAction to AsyncData 2024-05-28 14:18:00 +02:00
Benoit Marty ab99137baf Apply .toImmutableList() only once. 2024-05-28 14:12:46 +02:00
Benoit Marty 3349df5a24 Set the value of currentDistributorName by reading again the value from the service. 2024-05-28 14:08:20 +02:00
Benoit Marty ea3a7855b3 Fix test, NotificationSettingsEvents.RefreshSystemNotificationsEnabled is emitting first. 2024-05-28 09:25:29 +02:00
Benoit Marty c253da11b0 Remove unnecessary boundType parameter 2024-05-28 08:55:42 +02:00
Benoit Marty 05b3337e6f Hide the advance setting section if there is no error and their is only one available push distributor. 2024-05-28 08:55:41 +02:00
Benoit Marty 300ca40af4 Move setting to change push provider to the Notifications setting screen. #2912
Also improve previews of NotificationSettingsView.
2024-05-28 08:55:41 +02:00
Benoit Marty d0b2233a7b Merge pull request #2922 from element-hq/feature/bma/iterateOnPreferenceDesign2
Iterate on preference design
2024-05-28 00:36:28 +02:00
Benoit Marty 6c11fb8bac Remove trailing comma 2024-05-27 17:23:42 +02:00
Benoit Marty b3e0f6e843 Translations: pt -> pt-rBR 2024-05-27 14:51:32 +02:00
Benoit Marty b30076ecca 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 34f7819702 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
bmarty f24e537580 Sync Strings from Localazy 2024-05-27 00:17:53 +00:00
Benoit Marty 707a530752 Fix wrong package name. 2024-05-22 14:44:35 +02:00
Benoit Marty 71763e3fed Merge pull request #2873 from element-hq/feature/bma/pushProviderSwitch
Push provider switch
2024-05-21 16:52:01 +02:00
ganfra ac123bdcd8 Merge pull request #2874 from element-hq/feature/fga/fix_2692
Fix modal contents overlapping screen lock pin #2692
2024-05-21 15:53:51 +02:00
Benoit Marty 06d80ee497 Add ui test on AdvancedSettingsView. 2024-05-21 14:46:41 +02:00
Benoit Marty 4f03486675 distributors and distributorNames do not need to be mutable. 2024-05-21 14:45:51 +02:00
Benoit Marty 936579ddcc Rename members for clarity 2024-05-21 14:45:51 +02:00
Benoit Marty ada777e45c Add test for push distributor change. 2024-05-21 14:45:20 +02:00
Benoit Marty 92d6b72b2a Localazy 2024-05-21 14:45:19 +02:00
Benoit Marty 82a2992ab3 Cleanup 2024-05-21 14:45:19 +02:00
Benoit Marty 7f9a30a033 Improve code and display error. 2024-05-21 14:45:16 +02:00
Benoit Marty d88ef8769e Add distributor selection in advanced settings 2024-05-21 14:45:15 +02:00
Jorge Martin Espinosa 880ebb4de8 Plain text editor implementation based on markdown input (#2840)
* Add plain text editor based on markdown input
- Fix autofocus of message composer.
- Remove `Message` data class, fetch the details in `MessagesPresenter` instead.
- Remove `enable rich text` option from advanced settings, set it as a build configuration instead.
* Fix MentionSpanProvider
* Bump RTE library to released `v2.37.3`

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-05-21 13:58:53 +02:00
Jorge Martin Espinosa 3f2413bc95 Session falsely displayed as 'verified' with no internet connection (#2884)
* Session falsely displayed as 'verified' with no internet connection
	- Remove the need to wait for `isReady` for `SessionVerificationService.canVerifySessionFlow` to fix this.
	- Rename `SessionVerificationService.canVerifySessionFlow` to `needsSessionVerification`.
	- Make `isReady` private.
2024-05-21 11:41:18 +00:00
ganfra 73905fa695 Pin : clean up after PR review #2692 2024-05-20 16:34:26 +02:00
bmarty 83a8a631f2 Sync Strings from Localazy 2024-05-20 00:23:05 +00:00
Benoit Marty 5ab96c3bdc Do not use MutableState in Composable function parameter. 2024-05-15 18:05:08 +02:00
Benoit Marty 193081a554 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
Benoit Marty 0b9724af84 EditUserProfileState.userId cannot be null.
It simplifies a bit the codebase.
2024-05-15 09:46:01 +02:00
Benoit Marty 4b720f90b7 Rename parameter since it can reference a userId or a roomId 2024-05-15 09:25:59 +02:00
bmarty 0910da0a14 Sync Strings from Localazy 2024-05-13 12:47:48 +00:00
Jorge Martin Espinosa 5c59f6c20f Enforce mandatory session verification only for new logins (#2811)
* Enforce mandatory session verification only for new logins

- Creates `AppMigration` base interface as a way to isolate migration logic, app migrations must implement this interface.
- Creates `AppMigration01` with the existing logs removal migration and `AppMigration02` with the logic to allow existing sessions to skip verification.
- Add `DefaultSessionPreferencesStoreFactory.remove(sessionId)` to allow a ephemeral session store access to exist outside the `SessionScope` for this new migration.

* Fix tests

* Add more tests.

This also includes creating several abstractions.

* Review changes.

- Make `orderedMigrations` a class property, `migrations` just a constructor parameter to avoid incorrect usages.
- Create `lastMigration` property too, use it instead of `MIGRATION_VERSION`.
2024-05-07 14:06:34 +00:00
Benoit Marty 89545e0800 Merge pull request #2797 from element-hq/sync-localazy
Sync Strings
2024-05-06 17:23:42 +02:00
Jorge Martin Espinosa e82e3330b2 UX cleanup: reorder options in the main settings screen (#2802)
* UX cleanup: reorder options in the main settings screen

* Update screenshots

* Group sections in composables

* Add some horizontal padding to the `Footer` component

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-05-06 15:20:03 +00:00
bmarty 68fdaef8b8 Sync Strings from Localazy 2024-05-06 00:19:35 +00:00
bmarty 4f82baa2b0 Sync Strings from Localazy 2024-04-29 00:18:59 +00:00
Benoit Marty ce7bb11724 Ensure roomId are not rendered in the UI.
Add preview to see the effect.
Use RoomAvatar data fallback everywhere, to not use roomId (`!` char) for the avatar initial, but rather `#`.
2024-04-25 11:52:40 +02:00
Benoit Marty d06ec9099b Add Ui test on DeveloperSettingsView 2024-04-23 13:55:28 +02:00
Benoit Marty 16d289e180 Exclude fun ContentToPreview() from coverage, this is not production code. 2024-04-08 16:20:42 +02:00