Commit graph

171 commits

Author SHA1 Message Date
Jorge Martin Espinosa
95b6356d0b
Add special flow for leaving a space as the last owner (#6112)
* When the user is in a v12 room, use different UI to select the last owner when leaving

- Add `LeaveSpaceRoom.areCreatorsPrivileged` to detect when this is happening.
- Import new strings.
- Build the new UI.
- Attach it to a change member roles screen navigation.

* Don't display the `isLastOwner` UI if the user is the only joined one in the room

* Rename `LeaveSpaceState.isLastOwner` to `.needsOwnerChange`. This way, it's easier to understand the difference with the passed `LeaveSpaceRoom.isLastOwner` value

* Add a test for the new check of user not being the last joined member

* Fix paddings in `LeaveSpaceView`

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2026-01-30 09:10:00 +00:00
ganfra
94a2b2e5f8 Fix renaming after rebase 2026-01-27 21:19:21 +01:00
ganfra
a85c566341 Clean up unused imports and improve code documentation 2026-01-27 18:43:38 +01:00
ganfra
44d33af6dc Call spaceRoomList.reset when exiting add/remove room flow 2026-01-27 18:43:38 +01:00
ganfra
e896c7604d Iterate on manage space rooms, but not happy with the reset method. 2026-01-27 18:43:38 +01:00
renovate[bot]
bcd707d307
Update dependency org.matrix.rustcomponents:sdk-android to v26.1.27 (#6096)
* Update dependency org.matrix.rustcomponents:sdk-android to v26.1.27

* Fix breaking API changes: `LeaveSpaceRoom.isLastAdmin` is now `LeaveSpaceRoom.isLastOwner`.

* Rename `isLastAdmin` to `isLastOwner` in our codebase too.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2026-01-27 15:02:55 +00:00
Jorge Martin Espinosa
61cbc54942
Add 'Create room' option to menu in space screen (#6095) 2026-01-27 14:07:06 +01:00
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
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
5b700f7b98 Let SearchBar/SearchField use TextFieldState 2026-01-23 10:32:58 +01:00
ganfra
c53dbf7b2d Quality improvements after PR review 2026-01-22 19:57:04 +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
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
bmarty
45ed8619dd Sync Strings from Localazy 2026-01-19 00:35:31 +00:00
ganfra
f999898b92 Add doc to SpacePermissions data class 2026-01-16 11:18:16 +01:00
ganfra
9d5b2c57bc Remove unused imports and fix code style issues 2026-01-15 18:18:27 +01:00
ganfra
b4f15e595d Change canEditSpaceGraph to observe space settings feature flag 2026-01-15 17:43:44 +01:00
ganfra
3757ac144c Replace SpaceState.currentSpace with spaceInfo (RoomInfo) 2026-01-15 17:37:34 +01:00
ganfra
e7789ef869 Move canEditSpaceGraph out of SettingsPermissions to his own Permissions 2026-01-15 16:41:33 +01:00
ganfra
8dc7caa737 Move manage rooms menu item to top of space menu 2026-01-15 12:41:11 +01:00
ganfra
e5e4b18b80 Rename canManageRooms to canEditSpaceGraph 2026-01-15 12:40:47 +01:00
ganfra
57b89d241f Add proper localization for space room removal UI 2026-01-15 12:14:08 +01:00
ganfra
8b8151722a Add tests for space manage rooms mode 2026-01-14 17:47:20 +01:00
ganfra
525e9b5d50 Hide unread count in manage space rooms mode 2026-01-14 17:46:59 +01:00
ganfra
15c7cbade6 Animate transition from/to space manage rooms mode. 2026-01-14 16:39:57 +01:00
ganfra
f50165807d Iterate on removing space child rooms. 2026-01-14 15:29:18 +01:00
ganfra
b7ff884838 Add manage mode to space view for removing child rooms, wip. 2026-01-13 22:08:48 +01:00
Benoit Marty
00448756a8 Ensure that room / space avatar always have a contentDescription. 2026-01-02 16:23:15 +01:00
Benoit Marty
0bb315608d Rename parameter 2025-12-29 09:47:29 +01:00
ganfra
e998a4f36e change(space) : add "settings" entry menu 2025-12-22 09:40:46 +01:00
ganfra
7d98bd0af5 quality: fix tests after latest changes 2025-12-16 20:34:26 +01:00
ganfra
c734d5c485 Merge branch 'develop' into feature/fga/space_settings_iteration 2025-12-16 11:02:29 +01:00
ElementBot
ad881c303a
Sync Strings from Localazy (#5904)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2025-12-15 23:51:19 +01:00
ganfra
4edcba6aea quality: format and remove unused code 2025-12-15 21:05:07 +01:00
ganfra
313aa7e3c2 change(space) : last admin navigate to security&privacy 2025-12-15 20:46:23 +01:00
ganfra
79de4514b8 change(room permissions): ensure closing screen without permissions 2025-12-11 17:39:10 +01:00
ganfra
4749bc3cf0 change(room permissions): fix securityAndPrivacy permissions computation 2025-12-11 11:54:12 +01:00
ganfra
c0c8fd1315 change(space settings): manage permissions 2025-12-10 13:44:46 +01:00
ganfra
3db384b3f4 change(space settings): allow accessing edit details 2025-12-10 12:07:28 +01:00
Benoit Marty
b7bc8e20d5 Fix compilation issue after rebase. 2025-12-03 18:26:25 +01:00
ganfra
e9e699ee19
Merge pull request #5827 from element-hq/feature/fga/space_feature_flags
Space feature flags
2025-12-03 17:53:03 +01:00
ganfra
3633866ace quality: fix SpacePresenterTest 2025-12-03 11:28:24 +01:00
bmarty
32d56ea92d Sync Strings from Localazy 2025-12-01 00:23:54 +00:00
ganfra
86a2f55db3 space: start branching space settings flow 2025-11-28 17:13:08 +01:00