Commit graph

160 commits

Author SHA1 Message Date
ganfra
2290b6dba5 Merge pull request #603 from vector-im/feature/fga/update-rust-sdk-0.1.20
Matrix rust sdk: update to 0.1.20 (and fix compilation issues)
2023-06-15 16:35:45 +02:00
Benoit Marty
97923af7d8 Merge pull request #591 from vector-im/feature/bma/noDelayInTests
No delay in tests
2023-06-15 15:27:41 +02:00
ganfra
d4526e52c6 Matrix rust sdk: update to 0.1.20 (and fix compilation issues) 2023-06-15 15:26:53 +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
ganfra
65ecfcc681 Merge pull request #599 from vector-im/feature/fga/timeline_media_improvements
Feature/fga/timeline media improvements
2023-06-15 14:36:15 +02:00
ganfra
cc1e3d9a0a Timeline: use thumbnailSource for image if available (except for gif) 2023-06-15 12:11:37 +02:00
ganfra
e817afef84 Media: introduce a Kind.File so we don't use In-memory bytearray in timeline 2023-06-15 12:06:58 +02:00
ganfra
18cdfdf439 Merge pull request #597 from vector-im/feature/fga/fix_reply_timeline_ui
Feature/fga/fix reply timeline UI
2023-06-15 11:38:30 +02:00
Jorge Martin Espinosa
31555c4bd0 [Message Actions] Retry sending failed messages (#596)
* Add `RetrySendMessageMenu` to retry sending failed messages or removing its local echo.

* Fix initial event being retrieved, not the updated one

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-15 11:27:37 +02:00
Benoit Marty
9b4b9e9140 Introduce simulateLongTask to ensure that the Presenter State Loading is visible.
Also do some cleanup on the tests.
2023-06-15 10:57:05 +02:00
ganfra
8ddc1090b1 Timeline: fix wrong username for reply 2023-06-15 10:28:23 +02:00
ganfra
800896be88 Timeline: fix ReplyToContent clip on click 2023-06-15 10:28:12 +02:00
Benoit Marty
4a56d433c6 Unblock develop 2023-06-13 11:11:27 +02:00
Benoit Marty
d557d1fcad Merge pull request #584 from vector-im/feature/fga/fix_work_on_main_thread
Extract fetchDetailsForEvent and use coroutineDispatchers.io
2023-06-13 10:05:01 +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
ganfra
26746f5e27 Extract fetchDetailsForEvent and use coroutineDispatchers.io 2023-06-12 20:23:58 +02:00
Benoit Marty
9e73e70a22 Enforce usage of TestScope.testScheduler 2023-06-12 19:49:56 +02:00
Jorge Martin Espinosa
1831ec7ab4 Fix timeline item padding and corners (#573)
* Try to fix timeline offsets and rounded corners.
---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-12 10:42:35 +02:00
Jorge Martin Espinosa
9fa261e393 [Message Actions] Add emoji reactions option (#568)
* Add logic to send message reactions

* Add emoji library, create EmojiPicker component

* Fix bottom sheet behaviors

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-09 16:56:40 +02:00
Jorge Martin Espinosa
688ab3bd5e [Message Actions] Display debug info for events in the timeline (#555)
* Display debug info for events in the timeline on debug builds.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-09 06:13:22 +00:00
ganfra
50c015801f Clean tests values for file extension 2023-06-08 17:17:13 +02:00
ganfra
efee010b8c Tests: fix tests for media 2023-06-08 16:10:38 +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
ganfra
76e35582da Merge branch 'develop' into feature/fga/media_viewer_actions 2023-06-07 16:31:28 +02:00
ganfra
c48dd99bf9 Media: extract LocalMediaViewState to his own file 2023-06-07 15:58:05 +02:00
ganfra
c9f6093f22 Media: make some minor UI fixes 2023-06-07 15:55:16 +02:00
ganfra
a09ea589f2 Media: address PR review 2023-06-07 15:41:07 +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
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
468ed5276f Media: clean up code 2023-06-06 22:18:13 +02:00
ganfra
c0def1c3dc Media actions: add more tests 2023-06-06 22:08:57 +02:00
ganfra
438fc6bb99 Merge branch 'develop' into feature/fga/media_viewer_actions 2023-06-06 14:35:25 +02:00
ganfra
950e474c72 Media: make tests passing again 2023-06-06 13:48:12 +02:00
ganfra
092e1544ca Media: rework how we get the activity context (and fix test compilation) 2023-06-05 23:39:48 +02:00
ganfra
be009baed7 File: improve a bit pdf loading 2023-06-05 22:45:49 +02:00
ganfra
e322ba1b32 Media: handle openWith and share actions (need to inject context for tests...). Also introduce MediaInfo 2023-06-05 20:52:17 +02:00
github-actions[bot]
044a3c991e Sync Strings (#522)
Sync Strings from Localazy
2023-06-05 15:26:50 +00:00
Benoit Marty
9f5daf070a Introduce ButtonColumnMolecule and ButtonRowMolecule. 2023-06-05 12:21:50 +02:00
ganfra
fa63ed1faf MediaViewer: improve actions (save on disk and share) 2023-06-02 20:13:17 +02:00
ganfra
89d4b81f80 Media action: show snackbar when file saved on disk 2023-06-02 19:41:18 +02:00
ganfra
1d9ef72ed5 Media Viewer: rename the shared file with the known name if any. 2023-06-02 17:46:48 +02:00
ganfra
d5bff3437b Pdf : fix after merge 2023-06-02 17:29:24 +02:00
ganfra
c06b22961b Merge branch 'develop' into feature/fga/media_viewer_actions 2023-06-02 17:22:10 +02:00
ganfra
5b1b02613b Merge pull request #512 from vector-im/feature/fga/improve_timeline_file_rendering
Timeline file item iteration
2023-06-02 17:18:19 +02:00
ganfra
1230769c4c Merge pull request #511 from vector-im/feature/fga/pdf_renderer
In-app PDF renderer
2023-06-02 17:16:42 +02:00
ganfra
c5ac14014c Merge branch 'develop' into feature/fga/improve_timeline_file_rendering 2023-06-02 17:00:13 +02:00
ganfra
d878e7274d Pdf : add small comment 2023-06-02 16:48:17 +02:00
ganfra
26adc55ea9 Merge branch 'develop' into feature/fga/pdf_renderer 2023-06-02 16:43:55 +02:00
ganfra
1c01c0a6cc Media: implements share action 2023-06-02 16:43:28 +02:00