Commit Graph

52 Commits

Author SHA1 Message Date
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
ganfra 58e2c93018 Update tests and avoid useless recomposition 2023-05-02 13:04:00 +02:00
ganfra 23a7b871f7 RoomMembers: change the API again.. 2023-04-28 15:04:33 +02:00
ganfra 1ab96e2f34 Some clean up 2023-04-25 11:17:05 +02:00
Florian Renaud 97a40b35df Update screenshots 2023-04-13 16:19:55 +02:00
Florian Renaud 9b9ccced81 Add fake list of matrix users 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
Florian Renaud ac8a6f90fd Remove default onClick from MatrixUserRow 2023-03-23 11:46:56 +01:00
Maxime NATUREL a1fe191b64 Reuse fillMaxWidth on MatrixUserRow 2023-03-22 12:26:01 +01:00
Maxime NATUREL ceef65316e Using nullable onClick to avoid passing a new parameter 2023-03-22 12:26:01 +01:00
Maxime NATUREL ddcde735fe Present the last added user first 2023-03-22 12:25:59 +01:00
Maxime NATUREL cee313597b Adding checkbox in result when multi selection of users is enabled 2023-03-22 12:25:59 +01: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
Benoit Marty 771855dfe3 Let coil use our OkHttpClient. 2023-03-16 15:31:57 +01:00
Florian Renaud 0cd8c3f93c Merge remote-tracking branch 'origin/develop' into feature/fre/start_chat_search_matrixid 2023-03-15 11:23:46 +01:00
Florian Renaud d2e5e4fc45 Improve MatrixUserRow paddings 2023-03-14 17:07:38 +01:00
Florian Renaud 5a20c14524 Set avatar size value to dp 2023-03-14 15:23:29 +01:00
Florian Renaud 9e4e4b6124 Show result when searching for matrix id 2023-03-13 15:29:28 +01:00
ganfra fb85f35525 [MatrixSDK] start mapping all the timeline objects 2023-03-10 18:32:46 +01:00
Benoit Marty 466579c4d3 Move class of matrix.api module to api sub package. 2023-03-02 17:32:47 +01:00
Jorge Martin Espinosa 6677f80abe Store session data in a secure way (#98)
* Replace SessionData DataStore with an encrypted SQLite DB.

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
2023-03-02 16:48:54 +01:00
Benoit Marty 442fb212ae Add some previews. 2023-02-14 17:03:02 +01:00
Benoit Marty 53c8d3ff7c Add Preview for timeline items. 2023-02-14 17:03:02 +01:00
Benoit Marty e120ca7163 Extract Provider (and rename them) to their own file and move fixture(s) there. 2023-02-14 17:03:02 +01:00
Benoit Marty 443076f636 Give the id to AvatarData to be able to compute initial properly. 2023-02-14 17:03:02 +01:00
Benoit Marty b439109d05 Enable Showkase for matrixui 2023-02-14 17:03:02 +01:00
Benoit Marty afe5499158 PreviewParameterProvider FTW 2023-02-14 17:03:02 +01:00
Benoit Marty bbe10382b0 ElementTheme + MaterialTheme3 2023-02-03 12:57:42 +01:00
Benoit Marty cdfc13cb15 Material3 only in designsystem. 2023-02-03 12:56:53 +01:00
Benoit Marty 9d32b05fbb Rework Preview for a better rendering in the IDE. 2023-02-03 12:56:53 +01:00
Benoit Marty e4cc733f4a First draft of full custom theme.
ElementTheme everywhere

Create ElementButton
2023-02-03 12:55:36 +01:00
ganfra 8b4b8886a9 Clean up 2023-02-01 16:02:54 +01:00
ganfra b8860a6658 Simplify AvatarData and avoid carrying ByteArray 2023-02-01 15:57:00 +01:00
ganfra 907d7eba75 Rename matrix modules 2023-01-20 17:27:47 +01:00
ganfra bbbbc3495d Rename di module 2023-01-20 17:12:40 +01:00
ganfra a2f0c64921 Rename designsystem module 2023-01-20 17:09:12 +01:00
Benoit Marty 948d4f64f7 Do not use theme in the Preview, it breaks the screenshots building. 2023-01-18 15:29:07 +01:00
Benoit Marty 862900ed9a Rename folders java to kotlin 2023-01-18 13:51:30 +01:00
ganfra 55d6ca566f Apply ktlint format 2023-01-13 18:37:28 +01:00
ganfra f95b3b5d79 Add copyright on new files 2023-01-13 18:36:16 +01:00
ganfra 7a29ce1d8d Remove viewmodel/fragment references 2023-01-13 18:20:10 +01:00
ganfra ec1bbdeb9c Finish migration of Messages screen 2023-01-13 18:05:14 +01:00
ganfra ae2534488b Refactor where Dagger Components belongs (in node) 2023-01-12 21:14:48 +01:00
ganfra 478f516cf1 Make some data class @Immutable when needed 2023-01-11 17:08:56 +01:00
ganfra 9e211b5e04 Merge branch 'develop' into feature/fga/navigation First step: makes it compile by disabling the new screens (need to migrate to nodes) 2023-01-06 19:22:52 +01:00
Benoit Marty 516e491af2 Clean up 2022-12-22 18:28:44 +01:00
Benoit Marty 7a3a91a51f Improve Setting screen 2022-12-22 18:11:41 +01:00
Benoit Marty 08eb8de09b Create a UserViewModel to avoid duplicated code. 2022-12-22 17:33:04 +01:00
Benoit Marty d397d0741d Create a MatrixItemHelper to avoid duplicated code. 2022-12-22 17:13:53 +01:00
Benoit Marty d8e4880ce6 Create a MatrixUserHeader composable 2022-12-22 16:08:01 +01:00