Commit graph

903 commits

Author SHA1 Message Date
Benoit Marty
c4e0370f41 Copyright: run command uv run license-editor --repository ../element-x-android 2025-11-10 10:09:26 +01:00
Skye Elliot
d4dba4b0fc
chore: Remove unused import. 2025-11-07 15:24:24 +00:00
Skye Elliot
7595a0be35
fix: Use Icon(imageVector = icon) over rememberVectorPainter(icon) 2025-11-07 15:18:08 +00:00
Skye Elliot
b163959241
refactor: Extract ComposerAlertMoleculeParamsProvider to new file. 2025-11-07 15:15:00 +00:00
Skye Elliot
2f9bcde9fc
Merge branch 'develop' into kaylendog/history-sharing/alert 2025-11-07 15:10:29 +00:00
ganfra
0cad4175fa Merge branch 'develop' into feature/fga/role_and_permissions_rework 2025-11-06 13:51:04 +01:00
Skye Elliot
5fe2c86e1d
feat: Convert ComposerAlertMolecule to use alert levels. 2025-11-06 12:44:02 +00:00
ganfra
91c7b597ce design: improve PreferenceDropdown 2025-11-06 10:59:50 +01:00
Benoit Marty
06226c1052 Rename preview. 2025-11-06 09:33:43 +01:00
ganfra
fe7bc4fd9d change(roles and permissions): clean code 2025-11-05 15:40:34 +01:00
ganfra
8b60c8309c design: PreferenceDropdown now uses DropdownMenu 2025-11-05 10:21:09 +01:00
ganfra
3de8618c64 design: update DropdownMenu to better match figma 2025-11-05 10:16:51 +01:00
Benoit Marty
d94e247404 Extract SaveChangesDialog to its own file 2025-11-04 15:58:59 +01:00
ganfra
e557ceb702 change(roles and permissions): update change permission design 2025-11-03 21:40:42 +01:00
Jorge Martin Espinosa
353c00e032
Display only valid emojis in recent emoji list (#5612)
* Create `:libraries:recentemojis` and move `AddRecentEmoji` and `GetRecentEmojis` there

- Make sure `GetRecentEmojis` won't return duplicate or invalid emojis.
- `ActionListPresenter` now handles merging suggested and recent emojis, not `ActionListView`.
2025-10-30 15:27:51 +00:00
Benoit Marty
eef0fbf4be Fix "Arrow is redundant when parameter list is empty"
And other issues that ktlint now reports
2025-10-30 14:33:25 +01:00
Jorge Martin Espinosa
6c3b280ecd
Fix marking a room as read re-instantiates its timeline (#5628)
* Add `Timeline.markAsRead` to avoid reinstantiating the timeline using `Room.markAsRead`

* Mark as read when exiting the room screen, destroy the timeline when fully closed

* Ensure `MarkAsFullyReadAndExit` event can only be processed once

* Fix `DelayedVisibility` not being displayed in previews
2025-10-30 08:39:06 +01:00
ganfra
dfb9bc5ab0 design(home) : use enterAlwaysScrollBehavior for the RoomListFiltersView 2025-10-23 16:41:43 +02:00
Benoit Marty
eb18e962ce Add missing icon in the list 2025-10-22 16:14:06 +02:00
Benoit Marty
5437a5738f Remove icon preview duplication.
We now have IconsCompoundPreview with the same content in only one image.
2025-10-22 16:11:41 +02:00
Benoit Marty
49c23a922e Improve API and fix theme glitch when switching between accounts. 2025-10-22 09:32:15 +02:00
Benoit Marty
757b1761d3 SuperButton: always use gradientActionColors(). 2025-10-15 14:18:52 +02:00
Benoit Marty
b60a83b344 GradientFloatingActionButton: use gradientActionColors(). 2025-10-15 14:17:00 +02:00
Benoit Marty
844e1d2ce5 Let the enterprise build be able to update the colors. 2025-10-15 11:25:58 +02:00
Benoit Marty
d8f84e5e55 Let the test use sample data. 2025-10-13 17:12:42 +02:00
Benoit Marty
26fcd1567c Let the preview provider use stable data. I do not get why the generated screenshot was always similar. 2025-10-13 17:12:40 +02:00
Benoit Marty
52869e432a Update comment. createFakeWaveform will be removed. 2025-10-13 17:12:38 +02:00
Benoit Marty
194b97ee10 Centralize WaveForm samples. 2025-10-13 17:12:36 +02:00
Benoit Marty
3fb110d991
Merge pull request #5503 from element-hq/feature/bma/immutableCleanup
Do some cleanup on our immutable annotation usage
2025-10-10 17:42:26 +02:00
Benoit Marty
271ae19436 Remove useless Immutable annotation 2025-10-09 18:22:33 +02:00
ganfra
be8455b54d
Merge pull request #5493 from element-hq/feature/fga/space_description
feature(space): make sure to handle topic properly
2025-10-09 15:39:15 +02:00
Benoit Marty
33089ff158
Merge pull request #5495 from element-hq/feature/bma/removeAvatarPreviews
Reduce number of Previews for Avatar.
2025-10-09 12:01:08 +02:00
Benoit Marty
c2560ad91c
Merge pull request #5490 from element-hq/feature/bma/improveImmutables
Ensure that we are using Immutable instead of Persistent
2025-10-09 11:48:32 +02:00
ganfra
f3e47bd107 misc(design) : introduce SimpleModalBottomSheet component 2025-10-09 11:25:54 +02:00
Benoit Marty
e3d11fa0f9 Reduce number of Preview for Avatar.
It will cover more cases, and it will limit the risk of conflict on screenshot, which happen each time we touch AvatarSize.
2025-10-09 09:55:19 +02:00
ganfra
9d05eb8e6f feature(space): make sure to handle topic properly 2025-10-09 09:37:59 +02:00
Benoit Marty
6ac9e09ba3 Disable Avatar cluster for now. 2025-10-08 18:08:08 +02:00
Benoit Marty
67c9daa0bf Add Konsist test to check that toPersistentList() is not used.
Same for `toPersistentSet()` and `toPersistentMap()`.
Fix existing issues.
2025-10-08 15:51:18 +02:00
Benoit Marty
10603d6dd1 Add a preview for all icons.
It will help to investigate icon rendering issue using Showkase browser.
2025-10-08 11:45:12 +02:00
Benoit Marty
2bb3508af8 Use "BETA" word from Localazy and ensure layout is correct in IconTitleSubtitleMolecule if the title is long. 2025-10-07 14:46:20 +02:00
Benoit Marty
8d6a75e662 Use semantics colors. 2025-10-03 15:07:41 +02:00
Benoit Marty
9f71bc4575 Add a way to use the primary color for the icon. 2025-10-03 00:14:27 +02:00
Benoit Marty
23ed5e71fd Add Composable for a Beta label 2025-10-03 00:14:24 +02:00
Benoit Marty
0e3efafa6d
Merge branch 'develop' into feature/bma/leaveSpace 2025-09-26 15:46:57 +02:00
Benoit Marty
1e546335df
Multi accounts - experimental first implementation (#5285)
* Multi account - Do not reset analytics store on sign out.

Else when 1 of many accounts is removed, the analytics opt in screen is displayed again.

* Multi accounts - first implementation.

* Multi accounts - Prevent user from logging twice with the same account

* Multi accounts - ignore automatic GoBack in case of error.

* Multi accounts - update first view when adding an account.

* Rename method storeData to addSession.

* Multi accounts - handle account switch when coming from a notification

* Multi accounts - handle login link when there is already an account.

* Multi accounts - handle click on push history for not current account.

* Multi accounts - improve layout and add preview.

* Add accountselect modules

* Multi accounts - incoming share with account selection

* Multi accounts - check the feature flag before allowing login using login link.

* Multi accounts - swipe on account icon

* Cleanup

* Multi accounts - fix other implementation of SessionStore

* Multi accounts - fix PreferencesRootPresenterTest

* Multi accounts - Add test on AccountSelectPresenter

* Multi accounts - Fix test on HomePresenter - WIP

* Update database to be able to sort accounts by creation date.

* Add unit test on takeCurrentUserWithNeighbors

* Fix test and improve code.

* Add exception

* Multi accounts - handle permalink

* Code quality

* Multi accounts - localization

* Fix issue after rebase on develop

* Fix issue after rebase on develop

* Fix tests

* Fix tests

* Fix tests

* Fix tests

* Update Multi accounts flag details.

* Add missing test on DatabaseSessionStore

* Add missing preview on LoginModeView

* Remove dead code.

* Add missing preview on PushHistoryView

* Document API.

* Rename API and update test.

* Remove MatrixAuthenticationService.loggedInStateFlow()

* Update screenshots

* Remove unused import

* Add exception

* Fix compilation issue after rebase on develop.

* Update screenshots

* Fix test

* Avoid calling getLatestSession() twice

* Rename `matrixUserAndNeighbors` to `currentUserAndNeighbors`

* Extract code to its own class.

* Add comment to clarify the code.

* Init current user profile with what we now have in the database.

It allows having the cached data (user display name and avatar) when starting the application when no network is available.

* Let the RustMatrixClient update the profile in the session database

* Fix test.

* When logging out from Pin code screen, logout from all the sessions.

tom

* Make PushData.clientSecret mandatory.
Also do not restore the last session as a fallback, it can lead to error in a multi account context, or even when a ghost pusher send a Push.

* Change test in RustMatrixAuthenticationServiceTest

* Do not use MatrixAuthenticationService in RootFlowNode, only use SessionStore

* Remove MatrixAuthenticationService.getLatestSessionId()

* Fix compilation issue after merging develop

* Add test on DefaultAccountSelectEntryPoint

* Fix compilation issue after merging develop

* Introduce LoggedInAccountSwitcherNode, to improve animation when switching between accounts.

* Rename Node to follow naming convention.

* Fix navigation issue after login.

* Remove unused import

* Revert "Fix navigation issue after login."

This reverts commit e409630856d7a7e741548016d7afe174ff1b40f7.

* Revert "Rename Node to follow naming convention."

This reverts commit 883b1f37c7207512d9f6605749977ad9045846a1.

* Revert "Introduce LoggedInAccountSwitcherNode, to improve animation when switching between accounts."

This reverts commit 9c698ff8152aceb5fd2b8b5ab5f609d28de64d24.

* Metro now have `@AssistedInject`.

* Update screenshots

* Introduce DelegateTransitionHandler and use it in RootFlowNode

---------

Co-authored-by: ElementBot <android@element.io>
Co-authored-by: ganfra <francoisg@element.io>
2025-09-26 15:45:06 +02:00
Benoit Marty
74c2ee46d8 Leave space - Add screen to leave a space. 2025-09-26 14:14:00 +02:00
Benoit Marty
f3f19ec476
Merge branch 'develop' into feature/fga/join_space 2025-09-24 11:20:17 +02:00
Jorge Martin Espinosa
0a5c178fe8
Add thread decoration with latest event details (#5355)
* Add thread decoration with latest event details
* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2025-09-23 14:57:50 +00:00
ganfra
c4308e9810 Merge branch 'develop' into feature/fga/join_space 2025-09-19 16:35:55 +02:00
ganfra
c44bf89ed5 design (join room) : update design of join room screen 2025-09-16 14:51:11 +02:00