Commit Graph

149 Commits

Author SHA1 Message Date
Benoit Marty
3c250b2a0d Unblock develop 2023-06-13 11:11:27 +02:00
Benoit Marty
1734b3ec60 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
ef7ddb8d0f Merge pull request #549 from vector-im/feature/bma/onboardingServer
Onboarding iteration
2023-06-13 09:21:50 +02:00
ganfra
92adef5384 Extract fetchDetailsForEvent and use coroutineDispatchers.io 2023-06-12 20:23:58 +02:00
Benoit Marty
91d20e1b78 Enforce usage of TestScope.testScheduler 2023-06-12 19:49:56 +02:00
Jorge Martin Espinosa
4a5373395d 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
e591a588b3 [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
b0386e6235 [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
70eefe7c42 Clean tests values for file extension 2023-06-08 17:17:13 +02:00
ganfra
8318d45124 Tests: fix tests for media 2023-06-08 16:10:38 +02:00
Jorge Martin Espinosa
25c32cb1e8 [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
8a3a70ffa5 Merge branch 'develop' into feature/fga/media_viewer_actions 2023-06-07 16:31:28 +02:00
ganfra
a2fc02f90e Media: extract LocalMediaViewState to his own file 2023-06-07 15:58:05 +02:00
ganfra
c69c3ea942 Media: make some minor UI fixes 2023-06-07 15:55:16 +02:00
ganfra
865d521545 Media: address PR review 2023-06-07 15:41:07 +02:00
Jorge Martin Espinosa
595fbda220 [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
6b264a6397 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
4b704fe02c Media : timeline file adjustment 2023-06-06 23:10:02 +02:00
ganfra
e3457fb594 Media: clean up code 2023-06-06 22:18:13 +02:00
ganfra
730f50a433 Media actions: add more tests 2023-06-06 22:08:57 +02:00
ganfra
20eb2ade54 Merge branch 'develop' into feature/fga/media_viewer_actions 2023-06-06 14:35:25 +02:00
ganfra
80b918b273 Media: make tests passing again 2023-06-06 13:48:12 +02:00
ganfra
4a71aab95e Media: rework how we get the activity context (and fix test compilation) 2023-06-05 23:39:48 +02:00
ganfra
61fc57d3ef File: improve a bit pdf loading 2023-06-05 22:45:49 +02:00
ganfra
3a2ef0238b 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]
03c28ac52d Sync Strings (#522)
Sync Strings from Localazy
2023-06-05 15:26:50 +00:00
Benoit Marty
b89bca4ca9 Introduce ButtonColumnMolecule and ButtonRowMolecule. 2023-06-05 12:21:50 +02:00
ganfra
8e1ade897d MediaViewer: improve actions (save on disk and share) 2023-06-02 20:13:17 +02:00
ganfra
31ba1a1a06 Media action: show snackbar when file saved on disk 2023-06-02 19:41:18 +02:00
ganfra
c2fa9e6add Media Viewer: rename the shared file with the known name if any. 2023-06-02 17:46:48 +02:00
ganfra
235efeadb6 Pdf : fix after merge 2023-06-02 17:29:24 +02:00
ganfra
3ee9ba4979 Merge branch 'develop' into feature/fga/media_viewer_actions 2023-06-02 17:22:10 +02:00
ganfra
d8b506eaff 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
d3957dad96 Merge pull request #511 from vector-im/feature/fga/pdf_renderer
In-app PDF renderer
2023-06-02 17:16:42 +02:00
ganfra
edf34d0e40 Merge branch 'develop' into feature/fga/improve_timeline_file_rendering 2023-06-02 17:00:13 +02:00
ganfra
ba3b0eed80 Pdf : add small comment 2023-06-02 16:48:17 +02:00
ganfra
0a762dc232 Merge branch 'develop' into feature/fga/pdf_renderer 2023-06-02 16:43:55 +02:00
ganfra
4ab535cf33 Media: implements share action 2023-06-02 16:43:28 +02:00
Jorge Martin Espinosa
0009409a3b [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
ganfra
80b410860f Media: improve creation of LocalMedia 2023-06-02 09:44:07 +02:00
ganfra
70e9dfa25d Media: finally revert to using only uri but with the proper scheme.. 2023-06-02 08:55:43 +02:00
ganfra
ab48735ddc Media: refactor LocalMedia so the source of data is clear (uri or file) 2023-06-01 22:35:17 +02:00
ganfra
c0470d4bb5 Media viewer: start adding save on disk action 2023-06-01 22:01:05 +02:00
ganfra
d4eb60f2eb File: new design for file timeline item 2023-06-01 18:41:54 +02:00
ganfra
d8fe22a6a1 Pdf: rework pdf viewer a bit 2023-06-01 17:42:05 +02:00
Jorge Martin Espinosa
b50350aaa0 [Room details] Open room member details when clicking on user data in timeline (#482) 2023-06-01 12:03:27 +02:00
ganfra
e754d17c13 Pdf: improve rendering with zoom and spaces between pages 2023-05-31 23:48:23 +02:00
ganfra
dfacb42d76 Pdf: first iteration of pdf renderer 2023-05-31 23:20:49 +02:00
Chris Smith
a908589bad Fix flaky media tests. (#479)
Creating a mock during the test run seems to sometimes take a
large amount of time when running the tests in parallel (possibly
some kind of resource contention?)

Instead, perform the mocking in the test class so it's part of
the setup, not the  actual test runs.
2023-05-30 13:57:03 +00:00
Benoit Marty
534bf67883 Sync localazy to fix lint error. 2023-05-30 13:55:23 +02:00