Commit Graph

680 Commits

Author SHA1 Message Date
Benoit Marty
a77662421c Add support for slash commands (under Feature Flag) (#6482)
* Add support for slash commands

* Update screenshots

* Rename module `slash` to `slashcommands`

* Rename `SlashCommand` to `SlashCommandService`

* Introduce MsgType in order to send text message with a different msgtype value.

* Format file and add parameter names, add default values and cleanup

* Add isSupported parameter to filter out unsupported yet commands.

* Slash commands: disable suggestions if the feature is disabled.

* Fix sending shrug command.

* Add missing test on SuggestionsProcessor

* Add tests on MessageComposerPresenter about slash command.

* Fix import ordering

* Add missing tests on CommandExecutor

* Add missing tests in MarkdownTextEditorStateTest

* Slash commands: Improve code when sending message with prefix.

* Slash commands: Add support for /unflip

---------

Co-authored-by: ElementBot <android@element.io>
2026-04-02 16:15:32 +02:00
Benoit Marty
3b078654a2 Iterate design on EditUserProfileView 2026-03-24 15:04:55 +01:00
Benoit Marty
0fbed400eb Sync string again. 2026-03-16 14:54:06 +01:00
bmarty
3a0e01b63d Sync Strings from Localazy 2026-03-16 00:42:32 +00:00
Benoit Marty
4b61bb1e42 Fix test 2026-03-04 21:02:37 +01:00
Benoit Marty
1682ae88e7 Rename our classes too. 2026-03-04 17:41:44 +01:00
ElementBot
5bcaad1e81 Sync Strings from Localazy (#6269)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2026-03-02 14:54:50 +01:00
renovate[bot]
89a6f5a7bf Update metro to v0.11.0 (#6245)
* Update metro to v0.11.0

* Fix `@AssistedInject` usages

Now the injected variables in the factories must match the names in the constructors

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2026-02-25 16:19:47 +01:00
bmarty
6c81e88689 Sync Strings from Localazy 2026-02-23 00:39:49 +00:00
Benoit Marty
8cc2d77964 Fix issues detected by Paparazzi 2026-02-10 15:30:14 +01:00
ganfra
9641d3ef4f Add tests and clean code after RoomList Filter rework 2026-01-30 15:33:51 +01:00
ElementBot
b731d9a4a3 Sync Strings from Localazy (#6085)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2026-01-26 12:06:38 +01:00
Benoit Marty
b89e165dd6 Do not retrieve the version on each recomposition 2026-01-16 15:47:34 +01:00
Jorge Martin Espinosa
03d14087e6 Create spaces (#5982)
* Allow creating a space with `CreateRoomParameters`

* Add 'Create space' menu item in the spaces home screen. Also, imports new strings related to spaces.

* Link the 'Create space' button with the screen to create the space

* Unify room access and visibility for `ConfigureRoom`, use the updated design

* Fix `EditRoomDetails` avatar size (68dp)

* Replace `EditableAvatarView` and `UnsavedAvatar` copmonents with `AvatarPickerView`

* `AvatarDataFetcherFactory`: Make sure we use a fallback image fetcher when the URL is not an MXC one (a local one, i.e.). This removes the previous need for a separate `UnsavedAvatarView`

* Use `AvatarPickerView` in all the screens where `EditableAvatarView` was used

* Improve naming and previews

* Update strings, remove unused ones for `RoomAccessItem`

* Make `isSpace` part of the `CreateRoomConfig`

* Ensure the content fits in the screenshots for `AvatarPickerSizesPreview`

* Add `AvatarDataFetcherFactoryTest`

* Add new feature flag for creating spaces

* Fix ripple being too large for the `Pick` state

* Tweak margins and section titles a bit

* Add preview for `HomeTopBar` with the spaces case

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2026-01-13 14:35:49 +01:00
Benoit Marty
46ae4b9f6b Merge pull request #5945 from element-hq/feature/bma/listItemFont
Use only font from compound
2025-12-29 09:24:01 +01:00
renovate[bot]
7b3f082eb3 fix(deps): update kotlin to 2.3.0 (#5917)
* fix(deps): update kotlin to 2.3.0

* Cleanup - remove `datetime` compat version

* Fix several lint issues caused by the Kotlin compiler inference working better (checks in nullables, vars, etc.)

* Fix tests by removing mock in `File.readBytes`, it seems like it's no longer allowed. Using a tmp file works well enough.

---------

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>
2025-12-22 14:28:15 +01:00
Benoit Marty
4402585a52 Use typography instead of materialTypography. 2025-12-20 17:03:18 +01:00
Benoit Marty
65c17eacc6 Merge pull request #5909 from element-hq/feature/bma/qrCodeLogin
Link new device using QrCode - First version
2025-12-18 16:08:21 +01:00
Jorge Martín
69eda26235 Check computeCacheSize function in DeveloperSettingsPresenterTest 2025-12-18 14:08:38 +01:00
Jorge Martín
4ef0dfed8c Try fixing UI test (it works locally) 2025-12-18 14:08:38 +01:00
Jorge Martín
88f45517ca Fix test 2025-12-18 14:08:38 +01:00
Jorge Martín
b201b40639 Add a new entry in the developer settings to check the store sizes 2025-12-18 14:08:38 +01:00
Benoit Marty
fd446e98dd Link new device using QrCode. 2025-12-16 16:14:04 +01:00
ElementBot
6880cf518c Sync Strings from Localazy (#5904)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2025-12-15 23:51:19 +01:00
Jorge Martín
482d7e0648 Add a periodic DB vacuuming task 2025-12-10 15:22:16 +01:00
Jorge Martín
9c72310cb4 Add developer option to optimize the SDK DBs 2025-12-10 15:22:16 +01:00
Benoit Marty
d65cbd46a9 PermissionsEvents -> PermissionsEvent 2025-12-10 10:50:10 +01:00
Benoit Marty
2f52d7c683 EditUserProfileEvents -> EditUserProfileEvent 2025-12-03 18:05:11 +01:00
Benoit Marty
f913b5963e Fix test 2025-12-03 18:05:11 +01:00
Benoit Marty
eeef1b11ea Iterate on Save change dialog. 2025-12-03 18:04:53 +01:00
bmarty
2b49c40592 Sync Strings from Localazy 2025-12-01 00:23:54 +00:00
Benoit Marty
b1ea71e3bf Fix crash when clicking fast on back key on the Developer settings screen. 2025-11-21 15:54:03 +01:00
Benoit Marty
883fb36fcc Fix crash when clicking fast on back key on the Labs screen. 2025-11-21 15:52:54 +01:00
Benoit Marty
13af794872 Remove BaseNavigator, it's actually not ideal when looking for usage. 2025-11-21 15:50:42 +01:00
Benoit Marty
5150f38dfe Remove BaseCallback, it's actually not ideal when looking for usage. 2025-11-21 15:46:10 +01:00
Benoit Marty
6c8dfff963 Avoid using navigateUp. 2025-11-21 15:13:23 +01:00
Benoit Marty
914a44c6dc Add unit test on EditUserProfileView 2025-11-21 14:41:19 +01:00
Benoit Marty
d9a0e4971d Add preview 2025-11-21 14:24:48 +01:00
Benoit Marty
5000ba6424 Add unit tests 2025-11-21 12:03:38 +01:00
Benoit Marty
89404a0dd9 Use test extension 2025-11-21 11:56:26 +01:00
Benoit Marty
636c4c940e Show not save dialog when exiting user profile edition with unsaved changes 2025-11-21 11:55:20 +01:00
ElementBot
42dd6c3544 Sync Strings from Localazy (#5782)
Co-authored-by: jmartinesp <480955+jmartinesp@users.noreply.github.com>
2025-11-20 15:25:19 +00:00
Benoit Marty
d8cacba43a Improve API: use RoomId instead of String. 2025-11-19 10:14:03 +01:00
Benoit Marty
88f0111137 Ensure in test that rooms are sorted. 2025-11-19 10:14:03 +01:00
Benoit Marty
a64fe57ec6 Use test extension 2025-11-19 10:14:03 +01:00
Benoit Marty
a50844c0e6 Avoid creating a new Collator and apply same decomposition across codebase. 2025-11-19 10:14:03 +01:00
Benoit Marty
d799fa3b5a Fix reported crash.
https://github.com/element-hq/element-x-android-rageshakes/issues/8517
2025-11-19 10:14:03 +01:00
Benoit Marty
de2ab5a557 Merge pull request #5722 from element-hq/feature/bma/moduleCleanup
Module cleanup
2025-11-18 16:14:10 +01:00
Benoit Marty
399ad6ea03 Ensure the color has a # prefix. 2025-11-17 18:03:43 +01:00
Benoit Marty
ced5af18d0 Do not attempt to restore the pusher after 2 removal in a short time. 2025-11-13 23:15:00 +01:00