Commit graph

108 commits

Author SHA1 Message Date
Chris Smith
99f571b4eb Search for users to start a new DM. (#376)
Search for users to start a new DM.

Hooks up the create room UI to the matrix client to get
search results. Searches are debounced for 500ms and
only executed when 3 or more characters are entered.

Wrap the result state so we can distinguish between
"no results because we haven't searched yet" and
"no results because the API returned nothing", and
add a "No results found" message in the UI for the
latter case.

Closes #95
2023-05-03 13:26:31 +00:00
Benoit Marty
79cc6161a3 Merge pull request #370 from vector-im/sync-localazy
Sync Strings
2023-05-02 17:45:50 +02:00
bmarty
8f1793ffa4 Sync Strings from Localazy 2023-05-01 00:09:50 +00:00
ganfra
40f3f2873b Merge branch 'develop' into feature/fga/some_room_related_fixes 2023-04-27 17:25:12 +02:00
bmarty
860777d20c Sync Strings from Localazy 2023-04-24 00:09:54 +00:00
ganfra
a1869a3019 Improve handling members 2023-04-20 18:21:47 +02:00
Jorge Martin Espinosa
fae3417181 Validate several ids in constructors (#336)
* Validate ids in constructors.

* Remove redundant `.value` usage in string interpolation.

* Make a distinction between `SessionId` and `UserId` in `TestData`.
2023-04-18 16:17:13 +00:00
Jorge Martin Espinosa
de010545fb Update Gradle to 8.1 and AGP to v8.0 (#329)
* Update AGP to 8.0.0.

* Set JAVA_HOME to JDK17

* Update lint version.

* Use right JDK for dependency analysis, replace deprecated env var.

* Upgrade to Gradle 8.1.

* Remove `@Supress(DSL_SCOPE_VIOLATION)` as it's no longer needed.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-17 08:49:52 +00:00
Florian Renaud
509299b1d2 Revert "move instruction"
This reverts commit 9c56c62548.
2023-04-14 17:27:47 +02:00
Florian Renaud
9c56c62548 move instruction 2023-04-14 16:49:11 +02:00
Florian Renaud
9fcbab851a Rename callbacks for clarity and consistency 2023-04-14 16:46:45 +02:00
Florian Renaud
3c9af936ab Add tests on create action 2023-04-14 16:26:14 +02:00
Florian Renaud
81fc3406c8 Handle create room action 2023-04-14 14:57:25 +02:00
Florian Renaud
c9edd8c6cd Add missing test 2023-04-14 14:54:38 +02:00
Florian Renaud
b59fab03e1 Fix privacy item binding 2023-04-14 14:05:07 +02:00
Florian Renaud
1bc59bb9ab update ConfigureRoomPresenter unit tests 2023-04-14 09:17:44 +02:00
Florian Renaud
ddb49da7f3 rename state provider 2023-04-13 23:32:27 +02:00
Florian Renaud
d9844e4ffa Merge branch 'feature/fre/create_room_screen' into feature/fre/create_room_flow_persist_data 2023-04-13 23:28:19 +02:00
Florian Renaud
7c3a3e225e Split ConfigureRoomView into multiple files 2023-04-13 23:20:30 +02:00
Florian Renaud
89d78105a7 Pass item to RoomPrivacyOption 2023-04-13 18:06:17 +02:00
Florian Renaud
b1740da056 Fix hardcoding privacy option 2023-04-13 17:56:18 +02:00
Florian Renaud
dac6534e1e use derived state 2023-04-13 17:49:14 +02:00
Florian Renaud
9105f13fb2 Remove wildcard import 2023-04-13 16:58:53 +02:00
Florian Renaud
60e5c1c544 Fix unit tests 2023-04-13 16:58:53 +02:00
Florian Renaud
2ee536da3b do not reverse selected user list ordering & add autoscroll when selecting user 2023-04-13 16:19:57 +02:00
Florian Renaud
063d3a66df Show toast for not implemented actions 2023-04-13 16:19:56 +02:00
Florian Renaud
2167068410 Remove useless selectedUsers parameter 2023-04-13 16:19:56 +02:00
Florian Renaud
8d84011808 Introduce ConfigureRoomFlowNode and bind CreateRoomScope to this flow 2023-04-13 16:19:56 +02:00
Florian Renaud
68c093a0df Improve AddPeople node 2023-04-13 16:19:56 +02:00
Florian Renaud
6a8179a5b5 Persist selected users in data store 2023-04-13 16:19:56 +02:00
Florian Renaud
cc13629f96 Fix tests 2023-04-13 16:19:56 +02:00
Florian Renaud
34515e4b49 Rename MatrixUserDataSource to UserListDataSource 2023-04-13 16:19:55 +02:00
Florian Renaud
97a40b35df Update screenshots 2023-04-13 16:19:55 +02:00
Florian Renaud
552f66a92a Split user list views into multiple files 2023-04-13 16:19:55 +02:00
Florian Renaud
5d630c7b5b Add RemoveFromSelection event in room configuration screen 2023-04-13 16:19:55 +02:00
Florian Renaud
ee0b8edf5e Add CreateRoomScope with data store 2023-04-13 16:19:55 +02:00
Florian Renaud
0ea59b52db Fix modifier usage 2023-04-13 16:18:33 +02:00
Florian Renaud
8d77e700d1 declare node callback in local variable 2023-04-13 15:54:48 +02:00
Florian Renaud
dc8bd18bed reorder params 2023-04-13 15:49:46 +02:00
Florian Renaud
f66b905330 Add tests for ConfigureRoomPresenter 2023-04-13 15:49:03 +02:00
Florian Renaud
99bb29c81a Use string resources 2023-04-13 15:49:00 +02:00
Florian Renaud
d8ee822546 plug back button 2023-04-13 15:44:45 +02:00
Florian Renaud
5d8c0fa5bd Update enable state of create room button 2023-04-13 15:44:45 +02:00
Florian Renaud
572ac9aef0 Use rememberLazyListState 2023-04-13 15:44:45 +02:00
Florian Renaud
2b912ebe47 Extract room name and topic to dedicated composable 2023-04-13 15:44:45 +02:00
Florian Renaud
9c1c9f33d1 Room visibility 2023-04-13 15:44:45 +02:00
Florian Renaud
a2c4fec639 Fix build 2023-04-13 15:44:45 +02:00
Florian Renaud
17014e5784 Add topic and room name to the state 2023-04-13 15:44:45 +02:00
Florian Renaud
9b9ccced81 Add fake list of matrix users 2023-04-13 15:44:45 +02:00
Florian Renaud
2aa61dc679 Change wording of create a room button 2023-04-13 15:44:44 +02:00