Commit Graph

300 Commits

Author SHA1 Message Date
ganfra f2910272e8 feat(design) : update send button to match new background 2024-12-05 17:23:52 +01:00
ganfra a81392d8ac fix(composer) : use HideKeyboardWhenDisposed only in MessagesView 2024-12-04 11:31:33 +01:00
ganfra a475cb8568 fix : hide keyboard when TextComposer is removed from composition 2024-12-03 12:11:41 +01:00
Benoit Marty 94ebac7e74 Add warning when adding a caption. 2024-12-02 15:53:48 +01:00
bmarty 5f8007d6f1 Sync Strings from Localazy 2024-12-02 00:30:02 +00:00
ElementBot d9f8e9ce58 Sync Strings (#3936)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-11-25 09:06:57 +00:00
Benoit Marty 9830522a30 Remove default value and clarify the code 2024-11-21 09:55:43 +01:00
Benoit Marty fab9da2264 Edit / Add / Remove caption 2024-11-21 09:45:27 +01:00
Benoit Marty 0e36b2e6c7 Iterate on send button design. 2024-11-20 10:15:53 +01:00
ElementBot bc59a70043 Sync Strings - add translations to Finnish (#3883)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-11-18 11:37:17 +00:00
ElementBot 156e27a761 Sync Strings (#3852)
* Sync Strings from Localazy

* Fix tests

---------

Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2024-11-11 13:09:30 +01:00
Benoit Marty 19eb4c8395 Do not allow caption on audio files.
Regular files are not previewed, but prevent caption as well there.
2024-11-04 14:24:39 +01:00
Benoit Marty 39ab2f848a Fix multiple previews issue. 2024-11-04 14:24:39 +01:00
Benoit Marty 223eae9602 Send caption with media 2024-11-04 14:24:39 +01:00
bmarty 0b609db1db Sync Strings from Localazy 2024-11-04 00:27:46 +00:00
Benoit Marty 32e462cfc0 Fix import in test. 2024-10-30 15:58:49 +01:00
Benoit Marty 47f8172144 Format files 2024-10-30 15:45:12 +01:00
Benoit Marty f1050b783e TextComposer: Fix preview color. 2024-10-30 15:23:39 +01:00
Benoit Marty 06d994c9d2 TextComposer: Add more preview content. 2024-10-30 15:19:51 +01:00
Benoit Marty b79ab2e1e5 Fix Preview issue with TextComposerReplyPreview 2024-10-30 15:13:01 +01:00
Benoit Marty 04b9044608 Optimize code for Preview.
There should be no change in the preview.
2024-10-30 15:10:13 +01:00
Benoit Marty 26a4441d64 Create fixtures for TextEditorState. 2024-10-30 14:48:18 +01:00
Benoit Marty 1f8f1c998f Fix API Break: introduce EventOrTransactionId 2024-10-18 08:49:11 +02:00
Benoit Marty b2fe4d95e2 Reduce start padding, the InReplyToView already have a 8 end padding. 2024-10-16 14:11:57 +02:00
Benoit Marty b1ab737393 Add preview on ComposerModeView 2024-10-16 14:11:55 +02:00
Benoit Marty d1582f3778 Extract methods aMessageComposerModeEdit() and aMessageComposerModeReply() 2024-10-16 13:50:58 +02:00
Benoit Marty 43b6370a0b Reduce end padding of the composer, to give more space when composing messages. 2024-10-16 13:37:50 +02:00
Benoit Marty 8561949944 Change type of parameter to MessageComposerMode.Special 2024-10-16 13:01:09 +02:00
ganfra eeb6b6f4bf misc : remove direct usage of RoomSummary in UI and let RoomSummary use RoomInfo. 2024-10-08 21:34:34 +02:00
bmarty e25ba65170 Sync Strings from Localazy 2024-10-07 00:28:33 +00:00
Benoit Marty dd2a1b3388 Add settings to hide images and videos in the timeline.
Hide images, videos and stickers in the timeline.
Disable click on hidden content. It must be revealed first.
Add preview without BlurHash.
Also hide image in thumbnails.
2024-10-04 17:01:51 +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
renovate[bot] 9756afc5d1 Update dependency androidx.compose:compose-bom to v2024.09.00 (#3399)
* Update dependency androidx.compose:compose-bom to v2024.09.00

* Adapt code for changes.

* Workaround crash when closing the RTE

* Fix broken bottom sheet colors and shape

* Fix tons of warnings and deprecations

* Fix lint issues

* Fix more M3 update changes

* Update screenshots

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: ganfra <francoisg@matrix.org>
Co-authored-by: ElementBot <android@element.io>
2024-09-26 09:30:20 +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
Jorge Martin Espinosa 94f1388402 Use the right colors for @room mention pills (#3376)
* `@room` mentions the current user, so it should use the same colors as an explicit mention to them

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-09-02 15:14:54 +00:00
Benoit Marty b112713d69 Rename test because method has been renamed. 2024-08-21 18:36:06 +02:00
Benoit Marty 2488ea6c98 Add missing test for MarkdownTextEditorState 2024-08-21 18:35:23 +02:00
Benoit Marty b3e8cf443e Fix test regression. 2024-08-21 16:59:44 +02:00
Benoit Marty 57d927e9aa Suggestion for room alias.
Rename `Mention` to `IntentionalMention` for clarity
Remove dead code, there is no intentional mention for Room or RoomAlias.
Rename `IntentionalMention.AtRoom` to `IntentionalMention.Room` to match Rust naming
2024-08-21 15:32:05 +02:00
bmarty 3e67448006 Sync Strings from Localazy 2024-08-19 00:25:36 +00:00
bmarty 76804d9e48 Sync Strings from Localazy 2024-07-29 00:26:27 +00:00
ElementBot 1f01bd73c4 Sync Strings (#3232)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-07-22 08:59:47 +00:00
renovate[bot] 21553d757a Update wysiwyg to v2.37.7 (#3218)
* Update wysiwyg to v2.37.7

* Fix API breaks

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2024-07-19 14:14:21 +02:00
Jorge Martin Espinosa 2ff5fa67fc Restore intentional mentions in the markdown/plain text editor (#3193)
* Restore intentional mentions in the markdown/plain text editor

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-07-15 18:27:59 +02:00
ganfra c7dd2d5b6e Merge pull request #3132 from element-hq/feature/fga/draft_in_memory_when_editing
Draft : add volatile storage when moving to edit mode.
2024-07-03 15:38:00 +02:00
jmartinesp dabaa2d265 Sync Strings from Localazy 2024-07-03 11:21:27 +00: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
ganfra 82838d6ea5 Draft : use the volatile draft store when moving to edit mode 2024-07-03 12:03:51 +02:00
bmarty 32c5da898b Sync Strings from Localazy 2024-07-01 00:22:10 +00:00
Jorge Martin Espinosa d6b259b85a Fix @room mentions crashing in debug builds (#3107)
* Fix `@room` mentions crashing in debug builds

* Iterate on previous solution, add `MentionSpan.Type.EVERYONE`
2024-06-27 15:31:19 +00:00