Commit graph

5510 commits

Author SHA1 Message Date
Jorge Martin Espinosa
6a9d084a50
Add an empty state for the space screen if the user can modify its graph (#6064)
* Add an empty state for the space screen if the user can modify its graph. It adds a new 'create room' button that allows you to open the create room screen with some preset values.

* When computing the editable spaces in `ConfigureRoomPresenter`, also set up the initial selected parent space if possible

* Use `Builder` pattern for `CreateRoomEntryPoint`

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2026-01-27 11:12:12 +01:00
Benoit Marty
fc8afab1bb
Merge pull request #6092 from element-hq/feature/bma/endPollConfirmation
Display a confirmation dialog when ending a poll from the event bottom sheet
2026-01-27 10:47:12 +01:00
Benoit Marty
9a6ebe9639 Use presenter test extension. 2026-01-27 10:08:25 +01:00
Benoit Marty
f4802d960e ReadReceiptBottomSheetEvents -> ReadReceiptBottomSheetEvent 2026-01-27 10:03:28 +01:00
Benoit Marty
0ca69f0e5c ReactionSummaryEvents -> ReactionSummaryEvent 2026-01-27 10:02:44 +01:00
Benoit Marty
b6fcb0240d EmojiPickerEvents -> EmojiPickerEvent 2026-01-27 10:02:08 +01:00
Benoit Marty
f9a39fd552 CustomReactionEvents -> CustomReactionEvent 2026-01-27 10:01:38 +01:00
Benoit Marty
3133db3cf6 ReportMessageEvents -> ReportMessageEvent 2026-01-27 10:00:44 +01:00
Benoit Marty
9227d96d3e PinnedMessagesListEvents -> PinnedMessagesListEvent 2026-01-27 10:00:02 +01:00
Benoit Marty
3af41c814f PinnedMessagesBannerEvents -> PinnedMessagesBannerEvent 2026-01-27 09:59:18 +01:00
Benoit Marty
79b8742e95 ResolveVerifiedUserSendFailureEvent -> ResolveVerifiedUserSendFailureEven 2026-01-27 09:58:44 +01:00
Benoit Marty
f74f6b0d45 AttachmentsPreviewEvents -> AttachmentsPreviewEvent 2026-01-27 09:57:36 +01:00
Benoit Marty
f5b5bee326 LinkEvents -> LinkEvent 2026-01-27 09:55:20 +01:00
Benoit Marty
dc3152af12 EventFromTimelineItem -> TimelineItemEvent 2026-01-27 09:47:49 +01:00
Benoit Marty
4d5ec1cf8b TimelineEvents -> TimelineEvent 2026-01-27 09:45:10 +01:00
Benoit Marty
bdd8d373c5 MessagesEvents -> MessagesEvent 2026-01-27 09:38:45 +01:00
Benoit Marty
a0b60394c4 Use presenter test extension. 2026-01-27 09:35:51 +01:00
Benoit Marty
5721ae2d3b ActionListEvents -> ActionListEvent 2026-01-27 09:34:18 +01:00
Benoit Marty
89fac40265 Add confirmation dialog when ending poll from the bottom sheet. 2026-01-27 09:26:03 +01:00
Benoit Marty
8db6409a42 Remove unused MessagesEvents.Dismiss 2026-01-27 09:13:07 +01:00
Jorge Martin Espinosa
80ba0e9b0d
Fix rageshakes not uploading if they are too long (#6075)
* Fix rageshakes not uploading if they are too long. The max log line size in the default rageshake server is `1_000_000`.

* Change upload order to ensure the current logs and the push rules are always sent.

* Add 'buffer' for unexpected log lines.
2026-01-27 07:44:12 +01:00
Jorge Martin Espinosa
62768359cb
Create a new room in a space (#6061)
* Add `SpaceService.editableSpaces` and `SpaceService.addChildToSpace`

* Add `parentSpace` to `CreateRoomConfig`

* Allow setting a parent space to a room in `ConfigureRoomPresenter`, make sure the room is added to the parent space when creating it

* `ConfigureRoomPresenter`: Load the list of possible spaces a room can be added to

* Refactor `RoomVisibilityState` to internally use `JoinRuleItem`

This gets rid of `RoomAccess` and `RoomAccessItem`, and it will allow us to map the join rule items in a cleaner way to both join rules and the UI

* Implement the UI changes:

- Display the parent space.
- Allow selecting a new one.
- Import needed strings.

* Fix existing tests

* Add `@Immutable` annotation to `SpaceRoom`, since it was detected as unstable.

Maybe because of `RoomType`?

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2026-01-26 18:23:02 +01:00
Benoit Marty
e8b14e62cf Sync all strings and fix compilation issue. 2026-01-26 14:13:06 +01:00
ElementBot
3ab67a5e15
Sync Strings from Localazy (#6085)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2026-01-26 12:06:38 +01:00
ganfra
5d40c64a3b
Merge pull request #6074 from element-hq/feature/fga/fix_edit_details
Fix RoomDetailsEditView avatar picker for spaces
2026-01-23 15:55:37 +01:00
ganfra
11f6def9ca Fix RoomDetailsEditView avatar picker for spaces
- Use correct AvatarType based on whether editing a space or room
- Add roomRawName to remember key to update avatar when name changes
- Respect canChangeAvatar state to disable picker when not permitted
2026-01-23 12:12:12 +01:00
ganfra
5b700f7b98 Let SearchBar/SearchField use TextFieldState 2026-01-23 10:32:58 +01:00
ganfra
3f624c601c
Merge pull request #6063 from element-hq/feature/fga/space_add_existing_room
Implement Space 'Add existing rooms' feature
2026-01-22 20:31:13 +01:00
ganfra
c53dbf7b2d Quality improvements after PR review 2026-01-22 19:57:04 +01:00
Benoit Marty
71a97f0f09 Use presenter test extension. 2026-01-22 17:18:59 +01:00
Benoit Marty
570903ff6b JoinRoomByAddressEvents -> JoinRoomByAddressEvent 2026-01-22 17:16:59 +01:00
Benoit Marty
a243ef7b0b First try to resolve the room before checking for the alias validity. Fixes #5611 2026-01-22 17:09:54 +01:00
ganfra
5c1b68b36d Fix quality 2026-01-22 10:46:01 +01:00
ganfra
df62694b2f Add tests to AddRoomToSpace feature 2026-01-22 10:24:09 +01:00
Benoit Marty
1541781fd9
Merge pull request #6040 from element-hq/feature/bma/updateBugReportScreenshot
Ensure screenshot is up to date
2026-01-22 09:42:24 +01:00
ganfra
d45d1e0327 Iterate on space "Add existing rooms" ui 2026-01-21 19:58:45 +01:00
ganfra
e9a55ea79a Sync strings 2026-01-21 19:49:47 +01:00
ganfra
52aa6bc539 Refactor AddRoomToSpaceSearchDataSource to use AssistedInject 2026-01-21 17:44:53 +01:00
ganfra
9d8a2b654b Iterate on space "Add existing rooms" logic and ui 2026-01-21 17:33:31 +01:00
ganfra
8e69174a11 Implement Space "Add existing rooms" logic and ui 2026-01-21 17:33:30 +01:00
ganfra
125cc056db Add "Add existing rooms" entry to space 2026-01-21 17:33:30 +01:00
ganfra
d2bd1bb784
Merge pull request #6054 from element-hq/feature/fga/room_list_coroutine_scope
sdk : allow passing coroutineScope to RoomList
2026-01-21 17:21:29 +01:00
ganfra
9ae97048a0
Merge pull request #6043 from element-hq/renovate/metro
fix(deps): update metro to v0.10.0
2026-01-21 17:01:42 +01:00
ganfra
e6d8b07538 sdk : allow passing coroutineScope to RoomList 2026-01-21 16:48:22 +01:00
Jorge Martin Espinosa
a1b81046f0
Add empty state view for HomeSpacesView (#6047)
* Add empty state view for `HomeSpacesView`

This links to the create space flow, and has an 'explore public spaces', hidden for now.

* Make sure we display the empty view if the 'create spaces' FF is enabled

Also, remove the tab and navigate to the chats tab if the FF is disabled and the last space is left

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2026-01-21 10:36:12 +01:00
ganfra
dd68db3fc1
Merge pull request #6045 from element-hq/feature/fga/invite_people_suggestions
Add suggestions section to InvitePeopleView
2026-01-20 13:45:42 +01:00
Benoit Marty
c901772145 Metro 0.10.0: Classes annotated with ContributesIntoSet do not need to be annotated with Inject. 2026-01-20 10:13:39 +01:00
ganfra
660265e8d8 Add suggestions section to InvitePeopleView 2026-01-20 10:09:49 +01:00
Jorge Martin Espinosa
eda0aa87ce
Keep the child state in AttachmentsPreviewPresenter up to date (#6039)
This makes the `handleEvents` function capture the reference and be able to check the updated state, unblocking the media sending flow
2026-01-20 10:09:30 +01:00
ElementBot
2c6e2c6c89
Sync Strings from Localazy (#6042)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2026-01-20 10:04:53 +01:00