Commit graph

176 commits

Author SHA1 Message Date
Chris Smith
ff68974ea3 Invite people to a room: add dividers 2023-06-05 10:51:05 +01:00
ElementBot
9068248814 Update screenshots 2023-06-05 08:31:53 +00:00
Chris Smith
db5d8860f6 Merge remote-tracking branch 'origin/develop' into misc/cjs/create-join-design-feedback 2023-06-05 09:23:33 +01:00
Benoit Marty
ea3221b18b Merge pull request #520 from vector-im/feature/bma/testRecordScreenshotAction
Test record screenshot action
2023-06-02 18:04:55 +02:00
ElementBot
9da8c104bc Update screenshots 2023-06-02 15:31:50 +00:00
Chris Smith
9c21a1dd74 Merge remote-tracking branch 'origin/develop' into misc/cjs/create-join-design-feedback 2023-06-02 16:25:07 +01:00
Jorge Martin Espinosa
4d2caf8172 Fix SearchBar colors. Also fix tertiary color in dark mode. (#516)
* Fix SearchBar colors. Also fix tertiary color in dark mode.
2023-06-02 17:20:43 +02:00
ganfra
a98195ed62 Generate screenshots 2023-06-02 17:02:49 +02:00
ganfra
c5ac14014c Merge branch 'develop' into feature/fga/improve_timeline_file_rendering 2023-06-02 17:00:13 +02:00
Chris Smith
e62660cd11 Update screenshot tests 2023-06-02 15:31:51 +01:00
Jorge Martin Espinosa
dc4b385ada [Message actions] Update timeline context menu (#498)
* Replace bottom sheets in timeline with M3 ones.

* Add missing options to menu with the right icons

* Add message summary and reaction emoji row.

* Use the same icon in the message summary and file timeline item
2023-06-02 12:08:54 +00:00
Benoit Marty
9072305735 Merge pull request #502 from vector-im/feature/bma/onboardingIteration
Onboarding iteration
2023-06-02 10:30:29 +02:00
ganfra
7db29b58c3 Generate screenshots 2023-06-01 18:47:50 +02:00
Benoit Marty
5ad94d14b1 Record screenshots. 2023-06-01 18:00:47 +02:00
Florian Renaud
5d0fb45ff6 Update room properties from room details (#439)
-  Add the edit action in the room details
-  Add "Add topic" button in room details
-  Add the screen behind that action to edit some room properties: avatar, name, topic
   -  Handle the save button action
      - enable the button only if changes are detected
      - display a loader "updating room"
      - display an error dialog if any request has failed
- Check user has the right power level to change various attributes
   - "Add topic" is only shown if there's no topic and they are able to set on
   - Edit menu is only shown if they can change topic, name or avatar
   - On the edit page, any fields they can't change are uneditable

Co-authored-by: Chris Smith <csmith@lunarian.uk>
2023-06-01 15:10:29 +00:00
Benoit Marty
72a0179160 Record screenshots 2023-06-01 10:54:40 +02:00
Chris Smith
473bfd1e23 Display a notice if Matrix ID isn't resolved (#461)
Display a notice if Matrix ID isn't resolved

If we can't get the profile of a user after an mxid was
searched for, show a warning under their ID to say the
invite probably won't be delivered.

Closes #424
2023-06-01 08:40:45 +00:00
Benoit Marty
44bc6f5ef5 Record screenshots 2023-05-30 16:00:46 +02:00
Benoit Marty
9551a5e6f8 Rework the set homeserver part: get the info, instead of hard-coded value, and implement retry in case of error. 2023-05-30 15:14:57 +02:00
Benoit Marty
28ff9ea437 Reduce number of warnings 2023-05-30 11:43:38 +02:00
Benoit Marty
85f7a6aeb4 Record screenshots 2023-05-30 11:36:31 +02:00
Benoit Marty
bf62be3b0f Record screenshots. 2023-05-30 11:09:38 +02:00
Benoit Marty
25e432d24e Fix setting y offset to -12.dp can overlap a state event displayed above. Rework how the vertical offset are applied. 2023-05-30 10:50:06 +02:00
Benoit Marty
6621163d27 Document [TimelineItemGroupPosition] and improve preview of [MessageEventBubble]. 2023-05-30 10:17:25 +02:00
Jorge Martín
668b0e7273 Merge remote-tracking branch 'origin/develop' into feature/fga/image_loading 2023-05-29 18:11:53 +02:00
Jorge Martin Espinosa
d37c6e58e0 Revert RenderingMode to NORMAL in ScreenshotTest (#475)
* Revert `RenderingMode` to `NORMAL` in `ScreenshotTest`

* Remove no longer needed code
2023-05-29 18:00:57 +02:00
ganfra
fce45b828c Media: generate again screenshots... 2023-05-26 19:13:51 +02:00
ganfra
462f8c138a Merge branch 'develop' into feature/fga/image_loading 2023-05-26 13:43:51 +02:00
Jorge Martin Espinosa
7aae71c2d4 Display timestamps for text messages (#465) 2023-05-26 10:51:15 +00:00
ganfra
2832c95c69 Media: update screenshots again 2023-05-26 12:20:51 +02:00
ganfra
2c0771ecc0 Merge branch 'develop' into feature/fga/image_loading 2023-05-26 11:39:34 +02:00
Benoit Marty
a77ff69a65 Merge pull request #443 from vector-im/feature/bma/timelineStateEventFormatting
Timeline state event formatting
2023-05-26 10:43:10 +02:00
Marco Romano
b145fcbc50 Enable one last ignored test for LeaveRoomPresenterImpl (#462)
Most of the tests in `LeaveRoomPresenterImplTest.kt` where using `UnconfinedTestDispatcher` which was conflating some of the state returned by the presenter. This prevented to test one specific case which had been left with an `@Ignore` annotation.
This PR switches to `StandardTestDispatcher` so that the ignored test case can work and also fixes some other test cases whose behavior is now more correct under the `StandardTestDispatcher`.

Also updates our test factory method for `CoroutineDispatchers` to more easily obtain a `CoroutineDispatchers` which uses `StandardTestDispatcher`.
2023-05-26 07:51:41 +02:00
ganfra
d5c0591439 Media: generate screenshots again 2023-05-25 23:02:55 +02:00
ganfra
1fe14ef685 Media: update screenshots 2023-05-25 15:58:08 +02:00
Benoit Marty
f36b5d62e0 Record screenshot 2023-05-25 14:39:39 +02:00
Benoit Marty
52d35e0ac4 Better icon for this use case. 2023-05-25 14:17:09 +02:00
Benoit Marty
4b9a01d753 Record screenshots 2023-05-25 14:17:09 +02:00
Benoit Marty
80b656a9c5 Use gradle logger to filter out when running with only warning logs. 2023-05-25 12:03:51 +02:00
Benoit Marty
124e6c7cbd Merge pull request #455 from vector-im/misc/cjs/preview-names
Fix bad preview name for invite list
2023-05-25 11:35:06 +02:00
Marco Romano
0dee0784ba Room list contextual menu (#427)
- Adds `ModalBottomSheet` to our design components (it wraps the homonimous Material3 one).
- Adds  a bottom sheet to the Room list using the aforementioned design component.
- Adds navigation from the room list to a room detail (context menu "Settings" action).
- Consolidates the "leave room flow" into a new `leaveroom` module used by both the room list and the room details.
  - Adds progress indicator to the leave room flow
- Uses new `leaveroom` module in `roomdetails` module too. 

Parent issue:
- https://github.com/vector-im/element-x-android/issues/261
2023-05-25 06:42:44 +00:00
Chris Smith
bd242aee64 Fix bad preview name for invite list 2023-05-24 11:12:14 +01:00
Chris Smith
198d6d4c56 Invite users to existing rooms (#441)
Invite users to existing rooms

Scope:

- Allow inviting from the room detail screen and the member list
- Invite option is only shown if the user has the correct power level
- Search flow the same as creating a new room, allowing multi-select
- Existing room members/invitees are disabled with a custom caption
- Sending is asynchronous, an error dialog will appear wherever the
  user is if necessary

Closes #245
2023-05-23 09:23:24 +00:00
Chris Smith
848f1cb988 Refactor search related functionality (#436)
Refactor search related functionality

This is a prelude to adding the feature of inviting users to
a room, getting everything in the right place and reusable.

What this does:

## User search refactor

Moves the (global) user search logic (dealing with MXIDs,
minimum lengths, debounces) into a `UserRepository`.

This now sits in a `usersearch` library, which will be
used by the create room flow and the new invite flow.

## SearchBar logic pull-up

Every place we use SearchBar, we're doing the same things
to style placeholders, show back/cancel buttons, etc.

We also have a results type that is duplicated for
basically every feature that uses the search bar.

I've pushed all this common functionality into the
SearchBar itself. This makes the component a bit less
general purpose, but saves a lot of repetition.

## Remove the userlist feature

Almost all the functionality of the userlist feature
is now exclusively used by the create room feature.
Room details uses its own version because the
requirements are different.

Components useful elsewhere (SelectedUsers and
SelectedUser) have gone to matrixui, everything else
has gone to createroom.

## Other bits and pieces

I've fixed everywhere that uses Scaffold to correctly
consume the WindowInsets if the contentPadding is
applied to the contents (which it universally is).
This was a change in the last version of Material3
(I guess previously Scaffold handled the consumption
for us). This fixes weird gaps above search bars.

Added overloads for the MatrixUserRow and
CheckedMatrixUserRow that take the name/subtitle/avatar
separately, so the invites list can pass arbitrary
text like "User has already been invited".

The `blockuser` package was for some reason not
under `impl` but alongside it, I've bumped it into
the right place.
2023-05-22 09:06:54 +00:00
Marco Romano
8b986b57f0 New copy for members search results (#430)
* New copy for members search results

Context: https://matrix.to/#/!dypRwVXIkJaTAACHPd:element.io/$Obt7MbgGtHBqJHpZqcdd6OQ5XgxxNXSJofnFG1NyWWM?via=matrix.org&via=element.io&via=t2l.io

Related to: https://github.com/vector-im/element-x-android/issues/246
2023-05-17 13:21:23 +00:00
Florian Renaud
7a36d084e6 change wording for DM creation dialog 2023-05-16 16:36:47 +02:00
Florian Renaud
7ffe463e23 Rename preview 2023-05-16 16:36:47 +02:00
Florian Renaud
d903901457 Select private privacy by default 2023-05-16 16:36:47 +02:00
Florian Renaud
6d9f6664d8 Make the configure room screen scrollable 2023-05-16 16:36:46 +02:00
Florian Renaud
4d3cd0709e Update screenshots 2023-05-16 14:32:23 +02:00