Commit graph

146 commits

Author SHA1 Message Date
Benoit Marty
e2f4ec3cf0 Fix more warning and replace deprecated code. Also use TextField from our components. 2023-05-15 13:43:27 +02:00
Benoit Marty
457b83184a Use default material3 version again and cleanup @OptIn annotations.
Material3 is now 1.1.0
2023-05-15 12:28:31 +02:00
Jorge Martin Espinosa
014c0f4186 [Media upload] Add media pickers to the Room screen and the composer (#380)
* Add media pickers to the Room screen and the composer.

* Fix exclude rules for translations
2023-05-04 11:51:03 +02:00
Chris Smith
581c5ab2d2 Move and refactor MatrixUser (#381)
Move and refactor MatrixUser

Instead of living in matrixui and having an AvatarData, this can
reside in the matrix module and just have the URL. An extension
method in matrixui can then provide the AvatarData when required.

This removes some small duplication, and pushes the UI-specific
information (i.e., what size of avatar is going to be rendered)
further down the stack. It also aligns the field names with those
used by the rust SDK (e.g. "displayName" instead of "userName").
2023-05-03 16:30:19 +00:00
Jorge Martin Espinosa
9a45e48d9e Group design components in Showkase for the Compound team (#375)
* Screenshot tests changes:

    - Group components for Showkase.
    - Set special Paparazzi config for scrolling screens using non null `Preview.heightDp`.
    - Add merged theme preview with `ElementThemedPreview` component.
2023-05-02 16:13:35 +00:00
Jorge Martin Espinosa
d4c311545d Design fixes for room detail, dm & room member detail screens (#363)
* Design fixes for room detail, dm & room member detail screens.

* Record new screenshots, improve RoomDetailsStateProvider.

* Move MainActionButton to its own component in the design system.
2023-05-02 14:02:51 +00:00
ganfra
40f3f2873b Merge branch 'develop' into feature/fga/some_room_related_fixes 2023-04-27 17:25:12 +02:00
Jorge Martin Espinosa
0234553bca [Room list] Search & menu improvements (#356)
* Remove settings menu item, start splitting search UI. Also, add `applyIf` and `circularReveal` modifiers.

* Split UI & logic for room list search

* Suppress `composed` warning, improve its debuggability

* Add content description to the user's avatar, fix window insets. Also, remove unused `SearchRoomListTopBar`.
2023-04-25 11:35:36 +00:00
ganfra
1ab96e2f34 Some clean up 2023-04-25 11:17:05 +02:00
ganfra
f601bb5c1b Timeline: copy getInitial method from EA to avoid showing @ as avatar. 2023-04-24 10:57:05 +02:00
ganfra
5104fc8ac1 Fix bottomsheet not using right theme (BottomSheet is not part of material3) 2023-04-20 15:58:20 +02:00
Chris Smith
34cc352053 Invite list view
Adds a CTA on the room list to view invites if there are any.

The invite list presents each invite with accept/decline buttons
and (for room invites) the sender details.

Fixes #102
2023-04-19 10:20:48 +01:00
Jorge Martin Espinosa
d391275420 [Room List] Show offline indicator when the device is offline (#239)
* Implement the network status indicator.

* Add `networkmonitor` feature.
2023-04-17 17:01:16 +02: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
97a40b35df Update screenshots 2023-04-13 16:19:55 +02:00
Florian Renaud
9c1c9f33d1 Room visibility 2023-04-13 15:44:45 +02:00
Florian Renaud
1c6e088d5c Navigate from people view to configuration view 2023-04-13 15:44:44 +02:00
Hans Christian Schmitz
f74c5711f4 Add support for autofilling login text fields (#293)
* Add support for autofilling login text fields

Support autofilling login text fields via Android Autofill with the
experimental AndroidX Compose API for it.

Based on https://bryanherbst.com/2021/04/13/compose-autofill/ (with permission).

Signed-off-by: Hans Christian Schmitz <git@hcsch.eu>

* Move autofill implementation to designsystem library

Signed-off-by: Hans Christian Schmitz <git@hcsch.eu>

---------

Signed-off-by: Hans Christian Schmitz <git@hcsch.eu>
2023-04-10 08:21:57 +02:00
Florian Renaud
8132dc15e7 Merge remote-tracking branch 'origin/develop' into feature/fre/start_chat_with_matrix_id 2023-04-05 17:43:52 +02:00
Jorge Martin Espinosa
3aea24380a [Room Details] Leave room (#296)
* Add leave room functionality to the Room Details screen

* Add snackbar message throught `SnackbarDistpacher`
2023-04-05 15:36:41 +02:00
Florian Renaud
0dffd78872 Use RetryDialog 2023-04-05 12:02:10 +02:00
Florian Renaud
eef1eea2a8 Merge remote-tracking branch 'origin/develop' into
feature/fre/start_chat_with_matrix_id
2023-04-05 10:16:33 +02:00
Jorge Martin Espinosa
11f041d940 [Room member list] Display room member list (#276)
* Implement room member list

* Move timeline initialization back to `TimelinePresenter`.

* Fix crash when the `innerRoom` inside a `RustMatrixRoom` is destroyed but `syncUpdateFlow` is still running.

* Address review comments
2023-04-04 16:07:57 +00:00
Jorge Martin Espinosa
610e4aa8b6 Revert "Update Gradle and AGP to v8.0 (#283)" (#295)
This reverts commit cda0606a0d.
2023-04-04 14:44:01 +00:00
Florian Renaud
36afd71c29 Handle errors on create DM 2023-04-04 15:44:38 +02:00
Jorge Martin Espinosa
cda0606a0d Update Gradle and AGP to v8.0 (#283)
* Update dependency gradle to v8

* Handle upgrading Gradle to v8.0.2

* Update AGP to 8.0.0-RC01

* Try to set JAVA_HOME to JDK17

* Update lint version.

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

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-03 18:02:34 +02:00
Jorge Martin Espinosa
ecc73dd325 [Room Details] Implement room details screen (#256)
* Implement Room Details screen

* Add option to create permalink from room id and alias, add share room action
2023-03-29 05:16:27 +00:00
Jorge Martin Espinosa
4a121fbd0f Improve ButtonWithProgress component, replace login and change server buttons (#235)
* Improve `ButtonWithProgress` component.

* Replace `CircularProgresIndicator` with `ButtonWithProgress` in login and server selection screens.
2023-03-28 22:56:59 +02:00
Benoit Marty
998178b70f [Strings] Use strings from localazy. 2023-03-27 14:44:24 +02:00
Jorge Martin Espinosa
7d0d076657 [Verify Session] Design fixes (#230)
* Design fixes.

* Make text in emoji items secondary color and the snackbar duration short again

* Try to make margins smaller on smaller displays

---------

Co-authored-by: Florian Renaud <florianr@element.io>
2023-03-23 14:54:44 +00:00
Florian Renaud
62a65f7507 Merge pull request #211 from vector-im/feature/fre/start_chat_search_matrixid
[Start chat] Show a single result when searching for a matrixId
2023-03-21 13:58:24 +01:00
Jorge Martin Espinosa
2906168baa Handle 'invalid server' error in server selection screen properly. (#214)
* Handle 'invalid server' error in server selection screen properly.

* Use `action_learn_more` for composing the server location footer action.
2023-03-21 09:34:14 +01:00
Benoit Marty
c7aac2788e Create ButtonWithProgress composable 2023-03-17 17:22:38 +01:00
Benoit Marty
1f0149daeb Merge branch 'develop' into feature/bma/networkModule 2023-03-17 13:39:01 +01:00
Jorge Martin Espinosa
dcb98f06aa Add Session Verification flow (#197) 2023-03-17 10:07:19 +01:00
Benoit Marty
52b62a2018 Add preview for CircularProgressIndicator 2023-03-16 16:34:36 +01:00
Jorge Martin Espinosa
cd09c15df4 Fix behaviour of Enter and Tab hardware keys in TextFields (#216)
* Fix behaviour of Enter and Tab hardware keys in TextFields

* Add changelog
2023-03-15 13:57:51 +01:00
Florian Renaud
74fdb34269 Move DockedSearchBar to common SearchBar 2023-03-14 15:59:20 +01:00
Florian Renaud
5a20c14524 Set avatar size value to dp 2023-03-14 15:23:29 +01:00
Florian Renaud
e8404ad62a Update avatar size on search results 2023-03-13 15:30:42 +01:00
Jorge Martin Espinosa
ff5694239c Address design comments on the change server screen (#196)
* Address design comments on the change server screen

* Update screenshots

* Address review comments.
2023-03-09 13:51:44 +00:00
Florian Renaud
3fc55a8d95 Rework create room action buttons and remove custom TextIconButton 2023-03-08 15:46:48 +01:00
Florian Renaud
5d521b5b9f Use material icons while design system is not ready 2023-03-08 15:46:48 +01:00
Florian Renaud
604d9447e4 Fix rendering of wrong composable in preview 2023-03-08 15:46:48 +01:00
Maxime NATUREL
e198e93090 TextIconButton component 2023-03-08 15:46:47 +01:00
Maxime NATUREL
8bd40867b4 Wrapper for TextButton 2023-03-08 15:46:47 +01:00
Maxime NATUREL
e5349040b2 Moving back button into button package 2023-03-08 15:46:47 +01:00
Maxime NATUREL
e6c7afd614 Add buttons to create and invite 2023-03-08 15:46:47 +01:00
Maxime NATUREL
3efb141afc Fix duplicated strings and use back button 2023-03-08 15:46:46 +01:00
Florian Renaud
1f85df8a1a Update SearchBar by using the DockedSearchBar from material3 2023-03-08 15:46:46 +01:00