Commit graph

170 commits

Author SHA1 Message Date
Benoit Marty
d86430d56a Move bottom state to the View state 2024-12-10 13:38:28 +01:00
Benoit Marty
b3648c1d18 Improve preview. 2024-12-10 13:10:25 +01:00
Benoit Marty
c5568b430d Iterate on Error rendering. 2024-12-10 13:04:53 +01:00
Benoit Marty
e28163a116 Introduce GroupedMediaItems for code clarity 2024-12-10 13:01:33 +01:00
Benoit Marty
35bc9597eb Add missing previews 2024-12-10 12:28:42 +01:00
Benoit Marty
281d425cba More formatting 2024-12-10 10:42:23 +01:00
Benoit Marty
7587c47587 Fix test. 2024-12-10 09:56:08 +01:00
Benoit Marty
88b191d7c1 Format file. 2024-12-10 09:28:46 +01:00
Benoit Marty
dbb0996725 Remove not needed MediaGalleryTimelineProvider 2024-12-10 09:24:31 +01:00
Benoit Marty
6433239837 Change scope to RoomScope 2024-12-10 09:04:14 +01:00
Benoit Marty
3a934bd592 Remove TimelineMediaItemsCacheInvalidator, it is not needed. 2024-12-10 09:01:42 +01:00
Benoit Marty
d06e6192e6 Rename imageItems to imageAndVideoItems. 2024-12-10 08:57:36 +01:00
Benoit Marty
f0fb6698e4 Rename onDone to onBackClick. 2024-12-10 08:51:43 +01:00
Benoit Marty
6113e4cd40 Rename preview. 2024-12-10 08:07:12 +01:00
Benoit Marty
7a95d21da8 Fix preview 2024-12-09 17:52:59 +01:00
Benoit Marty
ad6dd6ec7e Fix preview. 2024-12-09 17:34:52 +01:00
Benoit Marty
0096e528c4 Sync strings. 2024-12-09 17:16:29 +01:00
Benoit Marty
28725a364f Media Gallery 2024-12-09 16:48:48 +01:00
Benoit Marty
53567562d5 MediaViewer: Show divider above the caption only if there is a caption and the media is video (to have a divider with the video controller) 2024-12-06 10:19:19 +01:00
Benoit Marty
2c6b4e31b9 MediaViewer: Align title to left and move action bottom to top bar. 2024-12-06 10:02:16 +01:00
Benoit Marty
b6a1700449 Merge pull request #3979 from element-hq/feature/bma/mediaCaption
MediaViewer: iterate on design
2024-12-03 13:03:15 +01:00
Benoit Marty
01c4a10ab9 Fix detekt issues. 2024-12-03 09:26:16 +01:00
Benoit Marty
447a4d0700 Fix modifier issue. 2024-12-02 18:09:29 +01:00
Benoit Marty
f0c07c15a8 Add Divider 2024-12-02 17:39:00 +01:00
Benoit Marty
8db489f9d5 Video player: Iterate on Play/Pause button 2024-12-02 17:38:59 +01:00
Benoit Marty
3175d9242a Improve preview. 2024-12-02 17:38:58 +01:00
Benoit Marty
23b5776474 MediaViewer: iterate on design 2024-12-02 17:05:44 +01:00
Benoit Marty
ba88faf296 Do not auto-play videos. 2024-12-02 14:46:56 +01:00
Benoit Marty
52f86a8c5f Exclude ExoPlayerForPreview from coverage metrics. 2024-12-02 09:07:08 +01:00
Benoit Marty
0d39e921e9 Fix preview rendering 2024-11-29 11:49:21 +01:00
Benoit Marty
556fc38f62 Add some previews. 2024-11-29 11:23:02 +01:00
Benoit Marty
81679cceae Rename file and split test. 2024-11-29 09:56:16 +01:00
Benoit Marty
5cccbe584d Extract fun from LocalMediaView and move some files. 2024-11-29 09:24:52 +01:00
Benoit Marty
b05d9507ea Move code to the impl module 2024-11-29 09:24:50 +01:00
Benoit Marty
dedfaa998f Improve preview 2024-11-28 16:15:45 +01:00
Benoit Marty
ff3355f453 PlayableState.Playable should only contain data useful for other components. 2024-11-28 14:38:58 +01:00
Benoit Marty
9916efefa2 Cleanup 2024-11-27 16:12:28 +01:00
Benoit Marty
c46c54efa2 Add custom video player controller 2024-11-27 16:05:51 +01:00
Benoit Marty
2724815d79 Fix other API change: body renamed to filename 2024-10-16 16:09:32 +02:00
Benoit Marty
f7a3f707fb Improve mapping regarding filename, caption and formattedCaption 2024-10-08 17:12:48 +02:00
Jorge Martin Espinosa
2efdb3ae45 Centralise the DI code generation logic (#3562)
* Create Anvil extension helper

* Use the helper everywhere
2024-09-30 12:20:28 +00:00
ganfra
5bc89f3c7b Merge pull request #3537 from element-hq/feature/fga/fix_image_viewer_glitch
Fix image viewer glitch
2024-09-26 11:28:34 +02:00
Benoit Marty
0b326d6853 Stop ignoring 2 tests and fix them. 2024-09-25 18:32:43 +02:00
Benoit Marty
cfcd7518dc Fix visibility issue. 2024-09-24 18:23:19 +02:00
Benoit Marty
ae2616d6a2 Less ugly code. 2024-09-24 18:21:30 +02:00
Benoit Marty
4d91260a8e Fix crash when pdf cannot be opened.
https://sentry.tools.element.io/organizations/element/issues/1570011/events/efcaaf7382194fd4b7991ca6b05e7532/
2024-09-24 17:25:51 +02:00
ganfra
dc2e05bafd media viewer: fix glitch when transition from thumbnail to fullview 2024-09-24 16:31:47 +02:00
Benoit Marty
2b016227e9 Migrate license to AGPL.
Run script `uv run license-editor --repository ../element-x-android`
2024-09-06 17:19:19 +02:00
Benoit Marty
a8f0c6c2b2 Add test on function name which may start or end with spaces and fix existing issues. 2024-08-20 17:11:30 +02:00
Jorge Martin Espinosa
950e502ca6 Improve screenshot testing with ComposablePreviewScanner (#3125)
* Use ComposablePreviewScanner to rework how screenshot testing works
* Add test sharding
* Update screenshots
* Fixes for Element Gallery

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-07-03 13:05:06 +02:00