Commit graph

207 commits

Author SHA1 Message Date
Marco Romano
c5c9cd33da Refine handleSnackbarMessage API (#676)
As per our offline convos during a PR review.
2023-06-26 16:29:50 +02:00
Benoit Marty
4f269d37dd Improve PreferenceText rendering, in particular center the test on the right vertically, add padding in add more previews. 2023-06-26 11:06:36 +02:00
Jorge Martin Espinosa
9251cbf536 [Message Actions] Report messages (#642)
* Add report messages feature

* Try to improve how snackbars are delivered

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-23 10:44:47 +02:00
Marco Romano
e1bb5684cd Expose new windowInsets param from ModalBottomSheet (#662)
Part of new public API in compose.material3:1.1.1
2023-06-23 09:57:21 +02:00
Benoit Marty
9701abf15e Extract method about text to the design system module. 2023-06-16 09:40:00 +02:00
Jorge Martin Espinosa
244306545f Move logic of different BottomSheets in MessagesView to presenters (#600)
* Move bottom sheet logic in `MessagesView` to presenters.

* Make the block inside `SheetState.hide` suspend.
2023-06-15 14:58:18 +02:00
Benoit Marty
0c64921f10 Merge pull request #549 from vector-im/feature/bma/onboardingServer
Onboarding iteration
2023-06-13 09:21:50 +02:00
Benoit Marty
fde6b0e9bb Add some generated KDoc. 2023-06-09 18:40:31 +02:00
Benoit Marty
4f4d024a9f No need to pass maxLines = 1 if singleline = true anymore. 2023-06-09 18:16:23 +02:00
Benoit Marty
921a352947 Inline the scroll state. 2023-06-09 18:09:09 +02:00
Benoit Marty
1bc5277bc2 Fix icon tint 2023-06-08 16:56:20 +02:00
Benoit Marty
b039f0d01d Validate server on user click. 2023-06-08 16:34:44 +02:00
Jorge Martin Espinosa
c176eab4a3 [Message actions] New UI for replies (#545)
* Add 'reply to' UI to the message composer.

* Move the `BlurHashAsyncImage` to `:libraries:designsystem` as it is now used in several modules.

*  Create reusable `AttachmentThumbnail` and associated data classes and enums, it's now added to `:libraries:matrixui`.

* Re-use `AttachmentThumbnail` in a `ActionListView` and `TextComposer`.

* Add 'inReplyTo' models and UI.

* Add min size for images

* Create a separate layout for media items with no reply to info. Also, separate `Timeline__Row` components from `TimelineView`, as it was getting too large.

* Added `EqualWidthColumn` to use inside message bubbles. Also fixed some modifiers for media items replying to other messages.

* Disable `inReplyToClicked`.

* Remove unused resources and libraries.

* Remove any traces of `BlurHashAsyncImage` in `:features:messages`, since it was moved to the design system.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-08 12:15:13 +02:00
Benoit Marty
80cfd74aa9 Fix some errors 2023-06-07 16:55:37 +02:00
ganfra
76e35582da Merge branch 'develop' into feature/fga/media_viewer_actions 2023-06-07 16:31:28 +02:00
Benoit Marty
cd860e9de3 Add test for ChangeAccountProviderPresenter and other presenters. 2023-06-07 15:18:23 +02:00
Jorge Martin Espinosa
e376c1be82 [Message actions] New UI for message composer and editing (#526)
* Add UI for edit composer mode

* Remove leftover code from the RTE implementation

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-07 13:06:19 +02:00
Benoit Marty
5b987ca691 Quality 2023-06-07 12:21:54 +02:00
Chris Smith
67fcfedb6e Merge pull request #529 from vector-im/misc/cjs/create-join-design-feedback-ii
More create and join room design tweaks
2023-06-07 09:19:16 +01:00
Benoit Marty
7001c7b9cc Account provider screen. - Crashing 2023-06-07 09:00:20 +02:00
Benoit Marty
67e85e0a36 Change account provider screen. 2023-06-07 09:00:20 +02:00
Benoit Marty
9f1605ab46 Improve composable for icons and create RoundedIconAtom. 2023-06-07 09:00:20 +02:00
Benoit Marty
5d7be76feb Merge pull request #527 from vector-im/feature/bma/designSystem
Preparatory work to integrate new FTUE screen
2023-06-07 08:59:13 +02:00
ganfra
51389053bf Media : timeline file adjustment 2023-06-06 23:10:02 +02:00
ganfra
c0def1c3dc Media actions: add more tests 2023-06-06 22:08:57 +02:00
Chris Smith
b3ac6e2b97 Bump some font sizes from small to medium after review 2023-06-06 16:44:19 +01:00
Chris Smith
c9df5e7d34 Remove PreferenceDivider
It's now functionally identical to a plain Divider as the default
is 0.5dp thickness.
2023-06-06 16:44:18 +01:00
Chris Smith
fe6afb7281 Dividers should be 0.5dp not 1dp 2023-06-06 16:44:18 +01:00
Chris Smith
dce38dfe8d Progress dialog: use primary colour not onSurface 2023-06-06 16:44:18 +01:00
Chris Smith
34a67bdb2c Create room: labels shouldn't be bold 2023-06-06 16:44:18 +01:00
ganfra
438fc6bb99 Merge branch 'develop' into feature/fga/media_viewer_actions 2023-06-06 14:35:25 +02:00
Benoit Marty
2d7b4a0bf8 Introduce HeaderFooterPage. 2023-06-05 13:06:06 +02:00
Benoit Marty
83a700877b Introduce IconTitleSubtitleMolecule. 2023-06-05 12:44:51 +02:00
Chris Smith
663f116a48 SearchBar: Remove explicit tint on close icon
This is now set properly by the activeColors/inactiveColors
2023-06-05 11:31:14 +01:00
Benoit Marty
9f5daf070a Introduce ButtonColumnMolecule and ButtonRowMolecule. 2023-06-05 12:21:50 +02:00
ganfra
89d4b81f80 Media action: show snackbar when file saved on disk 2023-06-02 19:41:18 +02: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
Chris Smith
3256e9bd80 Treat empty avatar urls the same as null 2023-06-02 14:17:19 +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
Chris Smith
c1eba96124 Merge remote-tracking branch 'origin/develop' into misc/cjs/create-join-design-feedback 2023-06-01 16:50:34 +01:00
Chris Smith
07225575e5 Outlined button tweaks
Force the height in InviteSummaryRow as compose defaults to a min
height of 40dp

Change the button text style to ignore font padding so the text
aligns properly
2023-06-01 16:48:27 +01: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
Chris Smith
9827c30fc0 Merge remote-tracking branch 'origin/develop' into misc/cjs/create-join-design-feedback 2023-06-01 13:26:27 +01:00
Chris Smith
43ea115bd7 Search bar: close button colour 2023-06-01 10:14:41 +01:00
Chris Smith
109faf409c Add TextStyle for getting rid of font padding 2023-06-01 10:14:19 +01:00
Chris Smith
4c8f82ccb6 Progress dialog: match designs, deduplicate code 2023-06-01 10:13:53 +01:00
Chris Smith
9874a01fc5 Outline buttons: font weight 2023-06-01 10:13:30 +01:00
Benoit Marty
6dbccb696b Introduce pages in our design system. 2023-06-01 10:51:03 +02:00