Benoit Marty
cfdc595c84
Add preview for Text media.
2025-03-18 11:24:13 +01:00
Benoit Marty
2e9a158fb0
Update Matrix Room API and allow media swipe on pinned event only.
2025-02-17 16:45:25 +01:00
Benoit Marty
d26414f1d3
Provide duration
2025-01-22 16:22:18 +01:00
Benoit Marty
7df65b0350
Add support for files navigation (when coming from the gallery)
2025-01-22 16:22:15 +01:00
Benoit Marty
97f3be3dc5
Apply dual licenses: AGPL + Element Commercial to file headers.
...
2 replace all actions have been performed:
- "SPDX-License-Identifier: AGPL-3.0-only" to "SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial"
- "Please see LICENSE in the repository root for full details." to "Please see LICENSE files in the repository root for full details."
2025-01-07 10:05:04 +01:00
Benoit Marty
5c41de60fa
Move share and download actions to the bottom sheet
2024-12-19 16:20:50 +01:00
Benoit Marty
49b413b92f
Distinguish Audio and Voice media items.
2024-12-16 10:54:47 +01:00
Benoit Marty
ce09aac59d
Add audio file support in the gallery and in the media viewer.
...
Make MediaPlayerControllerView compatible to control audio playback
2024-12-13 09:45:45 +01:00
Benoit Marty
da272ddb07
Implement month separator for the Gallery.
...
Improve day separator rendering in the timeline.
Use Today, Yesterday, and the name of the day if less than 7 days and do not render the year for the current year.
Improve date format for the media viewer.
Rework how date and time are computed.
ActionListView: Time can take more space, so update the layout.
2024-12-11 23:57:57 +01:00
Benoit Marty
197fda5d0e
Rename onDone to onBackClick.
2024-12-10 08:51:43 +01:00
Benoit Marty
3e1b1c29d1
Media Gallery
2024-12-09 16:48:48 +01:00
Benoit Marty
3b5b443cbb
MediaViewer: iterate on design
2024-12-02 17:05:44 +01:00
Benoit Marty
96d7fbfadc
Move code to the impl module
2024-11-29 09:24:50 +01:00
Benoit Marty
9a6b39852b
Improve preview
2024-11-28 16:15:45 +01:00
Benoit Marty
62134022bb
PlayableState.Playable should only contain data useful for other components.
2024-11-28 14:38:58 +01:00
Benoit Marty
28ed0920a4
Cleanup
2024-11-27 16:12:28 +01:00
Benoit Marty
9c1ccdfe62
Add custom video player controller
2024-11-27 16:05:51 +01:00
Benoit Marty
c1c9f53015
Fix other API change: body renamed to filename
2024-10-16 16:09:32 +02:00
Benoit Marty
920dc2b0d7
Improve mapping regarding filename, caption and formattedCaption
2024-10-08 17:12:48 +02:00
Jorge Martin Espinosa
eeec7cc785
Centralise the DI code generation logic ( #3562 )
...
* Create Anvil extension helper
* Use the helper everywhere
2024-09-30 12:20:28 +00:00
ganfra
71c0eb19b2
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
acae30b1f9
Stop ignoring 2 tests and fix them.
2024-09-25 18:32:43 +02:00
Benoit Marty
3c3781d5d3
Fix visibility issue.
2024-09-24 18:23:19 +02:00
Benoit Marty
55704f0227
Less ugly code.
2024-09-24 18:21:30 +02:00
Benoit Marty
92834e8985
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
8102aa4744
media viewer: fix glitch when transition from thumbnail to fullview
2024-09-24 16:31:47 +02:00
Benoit Marty
f61df38e55
Migrate license to AGPL.
...
Run script `uv run license-editor --repository ../element-x-android`
2024-09-06 17:19:19 +02:00
Benoit Marty
f2b38e50e3
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
b0cebf5ca0
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
Benoit Marty
37d9a9f5a9
Lambda parameters in a composable function should be in present tense, not past tense.
...
https://mrmans0n.github.io/compose-rules/rules/#naming-parameters-properly
2024-05-29 12:18:23 +02:00
Benoit Marty
6f44ef7a8f
Rename class (code quality)
2024-05-23 14:38:52 +02:00
Benoit Marty
c6c00a60d4
Need a default value for Modifier.
2024-03-01 18:44:08 +01:00
Benoit Marty
7b1e57c9f4
Fix preview error of MediaVideoView.
2024-03-01 18:25:26 +01:00
Benoit Marty
e90b09b9cf
Fix import order.
2024-02-27 14:40:50 +01:00
Benoit Marty
f484be0e0b
Renaming function for code clarity.
2024-02-27 09:53:14 +01:00
Benoit Marty
43b5b2196e
Add test on MediaViewerView
2024-02-27 09:49:10 +01:00
ganfra
3a5f3c04d2
MediaViewer : fix konsist
2024-02-23 18:55:45 +01:00
ganfra
22676cc5eb
MediaViewer : introduce fullscreen and flick to dismiss behavior
2024-02-23 16:55:41 +01:00
Jorge Martin Espinosa
b69cb8175a
Update Compound to v0.0.5 and update icons ( #2380 )
...
Update Compound to `v0.0.5`:
- Make sure we fix all the breaking changes.
- Update some icons to use the compound version instead.
-Replace icons with their Compound counterparts when possible.
- Clean up unused icons.
- Fix issues with incorrect icons or sizes being used after replacing the temporary icons with the Compound ones.
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-02-12 16:41:58 +00:00
Benoit Marty
b104dba845
Remove Modifier parameter in private function when only default value is used.
...
This will improve the code coverage metrics, and this also fixes a few potential bug, where the Modifier was used several times.
2024-02-08 11:06:06 +01:00
Benoit Marty
5d086ad82d
Fix moar ktlint issues
2024-01-11 10:02:10 +01:00
renovate[bot]
c8bd362397
Update plugin ktlint to v12.1.0 ( #2200 )
...
* Update plugin ktlint to v12.1.0
* Run `./gradlew ktlintFormat` and fix some issues manually.
* Fix other issues reproted by Ktlint
* Limit false positives, KtLint removes unnecessary curly brace in String templates.
* Remove useless Unit
* Minor improvements over ktlint changes
* Restore `AlertDialogContent` behaviour
* Update screenshots
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benoit Marty <benoit@matrix.org>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-01-10 16:22:24 +01:00
Benoit Marty
7b2341aec7
Rename Async to AsyncData
2024-01-04 16:30:56 +01:00
Benoit Marty
c3908e7a6c
Add unit test for FileExtensionExtractor
2023-11-30 14:56:01 +01:00
Jorge Martin Espinosa
ab8402a4dc
Open room member avatar in a media viewer ( #1911 )
...
* Open room member avatar in viewer.
The `MediaViewer` was extracted to its own library module.
* Update screenshots
* Restore KSP processor in `:libraries:mediaviewer:api`, this should generate Showkase components again.
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-11-28 17:39:41 +00:00