Commit Graph

145 Commits

Author SHA1 Message Date
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
bmarty e8218b3a7c Sync Strings from Localazy 2024-12-09 00:30:45 +00: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
ganfra 3910c42855 design : TextField2 is now TextField 2024-11-08 15:37:10 +01:00
ganfra e378b20868 design : removes usage of OutlinedTextField 2024-11-08 15:15:08 +01:00
bmarty b179518962 Sync Strings from Localazy 2024-10-21 00:27:20 +00:00
Benoit Marty 1f8f1c998f Fix API Break: introduce EventOrTransactionId 2024-10-18 08:49:11 +02:00
bmarty e25ba65170 Sync Strings from Localazy 2024-10-07 00:28:33 +00:00
renovate[bot] 3001efb525 Update dependency org.matrix.rustcomponents:sdk-android to v0.2.50 (#3565)
* Adapt to changes in the SDK

* Update dependency org.matrix.rustcomponents:sdk-android to v0.2.50

* Use lambda instead of overriding the `EventDebugInfoProvider` interface

* Fix test proposal.
We may find a better way to compare data class instance if we need to do more comparison in the future...

---------

Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-10-01 09:44:52 +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
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
ganfra c30398ccc7 Pinned messages: clean code 2024-09-04 14:27:18 +02:00
ganfra 12e7e05551 Merge branch 'develop' into feature/fga/pinned_messages_list 2024-09-04 14:11:53 +02:00
ganfra 51f7599c38 Pinned messages list : fix all tests after changes 2024-09-04 12:09:17 +02:00
renovate[bot] 9fb82a1e86 Update dependency org.matrix.rustcomponents:sdk-android to v0.2.41 (#3384)
* Introduce value class UniqueId.

* Allow reactions on non-sent Event, the SDK can now handle it.

Also the SDK will manage local echo for reactions.

* Update dependency org.matrix.rustcomponents:sdk-android to v0.2.41

* Fixes after SDK upgrade:

- Use `ClientBuilderSlidingSync` to set `SlidingSyncVersionBuilder` in `RustMatrixClientFactory`.
- `Room.toggleReaction(emoji: String, eventId: EventId)` is now `Room.toggleReaction(emoji: String, uniqueId: UniqueId)`, since reactions can now be applied to local echoes too in the SDK.

* Rename exception case

* Fix wrong error case being used in test

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
Co-authored-by: Benoit Marty <benoitm@matrix.org>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2024-09-03 20:09:33 +02:00
ganfra bd327aac88 Pinned events : simplify poll content view 2024-08-30 18:27:19 +02:00
ganfra 2193b9a300 Pinned events : start displaying actions in timeline 2024-08-30 15:15:22 +02:00
bmarty cd267249ec Sync Strings from Localazy 2024-08-26 00:25:40 +00: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
Benoit Marty 5bda29ca7e Rework FakeMatrixRoom so that it contains only lambdas. (#3229)
* Upgrade lint to 8.7.0-alpha01

* FakeMatrixRoom: lambda everywhere

Fix test compilation issues
2024-07-22 10:39:48 +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 ccf7efe9b1 Sending queue : fix more tests. 2024-06-13 10:27:57 +02:00
ganfra b927daffe7 Merge branch 'develop' into feature/fga/message_queuing 2024-06-11 17:08:47 +02:00
bmarty f3d286911c Sync Strings from Localazy 2024-06-10 00:17:04 +00:00
ganfra 7100a9d619 Message queuing : use redactEvent on timeline instead of room. 2024-06-06 15:23:28 +02:00
Benoit Marty f5a0e83cb2 Merge pull request #2941 from element-hq/sync-localazy
Sync Strings
2024-05-29 16:27:17 +02:00
Benoit Marty 9fee141bb8 Add a Konsist test to check function parameter name, and fix existing issue. 2024-05-29 15:31:49 +02:00
bmarty ca5bc71057 Sync Strings from Localazy 2024-05-29 12:44:57 +00:00
Benoit Marty 7eb7e21d27 Rename Event of PollHistoryEvents 2024-05-29 12:34:47 +02:00
Benoit Marty ea63f2aa32 Rename some fun regarding polls 2024-05-29 12:32:51 +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 b3e0f6e843 Translations: pt -> pt-rBR 2024-05-27 14:51:32 +02:00
bmarty 83a8a631f2 Sync Strings from Localazy 2024-05-20 00:23:05 +00:00
bmarty 0910da0a14 Sync Strings from Localazy 2024-05-13 12:47:48 +00:00
bmarty 68fdaef8b8 Sync Strings from Localazy 2024-05-06 00:19:35 +00:00
Benoit Marty f4f5888d5b Move LiveTimelineProvider to the test module. 2024-04-26 14:47:01 +02:00
Benoit Marty 300d3e34b1 Format and cleanup files 2024-04-26 13:57:08 +02:00
Benoit Marty 2c8abbed0c Merge branch 'develop' into feature/fga/permalink_timeline 2024-04-26 12:50:38 +02:00
ganfra 97b9d75a0d Timeline : makes sure all tests are passing 2024-04-25 14:35:37 +02:00
ganfra bffa2d717f Timeline : continue to fix more tests... 2024-04-25 12:41:34 +02:00
ganfra bf87b975fc Timeline permalink : start updating tests 2024-04-24 21:33:20 +02:00
ganfra fed1733cb5 Timeline : makes sure to use the right timeline when making some action (edit, reply, reaction) 2024-04-24 16:42:35 +02:00
ganfra 0d7cffe400 Timeline permalink : continue to iterate (try a strategy to avoid forward insertion to "auto-scroll") 2024-04-23 13:30:55 +02:00
Benoit Marty 74a9a54719 Rename Preview to follow code convention 2024-04-19 14:30:45 +02:00
ganfra 83e7c13618 Timeline : start reworking timeline apis 2024-04-17 21:32:02 +02:00
Benoit Marty e18e5f1cc5 Run ./tools/localazy/downloadStrings.sh --all 2024-04-02 18:12:36 +02:00
bmarty 5809864182 Sync Strings from Localazy 2024-04-01 00:17:18 +00:00