hayaksi1
03c330ee07
Rename PreviewParameterProvider subclasses to the PreviewParam suffix
...
The `Provider` suffix reads as a dependency provider rather than as preview
data, and it collides with the real providers in the codebase — `StringProvider`,
`PickerProvider`, the login feature's `AccountProvider` — so the name says
nothing about which of the two a class is. `PreviewParam` says it.
195 classes are renamed, along with the 185 files named after them, the konsist
rule that enforces the convention, the presentation-class file templates and the
onboarding documentation.
This cannot be split. `Konsist.scopeFromProduction()` scans the whole project, so
flipping the assertion before every class has moved leaves the rule red, and a
rule that accepted either suffix during a transition would be exactly the kind of
compatibility layer this convention change is meant to remove.
Two judgement calls in the rule itself. The `name.endsWith("PreviewProvider")`
exclusion is dropped: its only job was to reject a redundant `Preview` before
`Provider`, and the new suffix already contains it; no class currently ends with
`PreviewProvider`, so removing it changes nothing today. And
`EditableAvatarViewUriProvider` is renamed rather than deleted from the exclusion
list even though no such class exists in this repository, since it presumably
comes from the modules overlaid for the enterprise build.
Nothing keyed off the old suffix: no snapshot filename contains a provider class
name, so no Paparazzi image changes, and the Kover variants match on `*Presenter`,
`*State` and `*ViewKt`, so coverage bounds are unaffected.
2026-08-17 17:40:33 +03:00
Benoit Marty
a740423343
Sync strings.
2026-08-17 11:34:52 +02:00
Benoit Marty
d1cf1aa09f
Fix deprecation warning on androidx.compose.material3.ListItem
2026-08-06 18:35:17 +02:00
Benoit Marty
c430877d87
Ensure Robolectric test are run using API 36 until the library support API 37.
2026-06-18 12:18:32 +02:00
ElementBot
d39b208099
Sync Strings from Localazy ( #7021 )
...
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com >
2026-06-16 12:59:45 +02:00
ElementBot
0aaa80cbdc
Sync Strings from Localazy ( #6856 )
...
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com >
2026-05-26 08:05:07 +00:00
bmarty
dcc67f9fc6
Sync Strings from Localazy
2026-05-18 00:57:56 +00:00
Benoit Marty
11b9efa2c9
Migrate to v2 testing APIs
2026-04-30 16:04:07 +02:00
ElementBot
9a2ad3928a
Merge pull request #6658 from element-hq/sync-localazy
...
Sync Strings
2026-04-27 09:17:54 +02:00
bmarty
23c1112dcf
Sync Strings from Localazy
2026-04-13 00:48:40 +00:00
bmarty
299d5a9394
Sync Strings from Localazy
2026-03-16 00:42:32 +00:00
ElementBot
cf479a8df0
Sync Strings from Localazy ( #6269 )
...
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com >
2026-03-02 14:54:50 +01:00
ElementBot
ad881c303a
Sync Strings from Localazy ( #5904 )
...
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com >
2025-12-15 23:51:19 +01:00
bmarty
32d56ea92d
Sync Strings from Localazy
2025-12-01 00:23:54 +00:00
ElementBot
703496e059
Sync Strings from Localazy ( #5782 )
...
Co-authored-by: jmartinesp <480955+jmartinesp@users.noreply.github.com >
2025-11-20 15:25:19 +00:00
Benoit Marty
eb31505dc7
Copyright: Add Element Creations Ltd. copyright
2025-11-10 11:05:05 +01:00
Benoit Marty
f86431e663
Copyright: Add final period
2025-11-10 10:13:41 +01:00
Benoit Marty
7ad9c8f687
Rename handleEvents to handleEvent
2025-11-07 12:21:43 +01:00
Benoit Marty
07b6148035
Remove context(parentNode: Node) and provide the parent Node as a parameter.
2025-10-31 12:04:57 +01:00
Benoit Marty
6298209ad9
Create Fake classes in test modules
2025-10-30 18:32:31 +01:00
Benoit Marty
f174084942
Use context parameter for the parentNode
2025-10-30 16:32:53 +01:00
Benoit Marty
eef0fbf4be
Fix "Arrow is redundant when parameter list is empty"
...
And other issues that ktlint now reports
2025-10-30 14:33:25 +01:00
Benoit Marty
263e761907
Remove @Inject, not necessary anymore when class is annotated with @ContributesBinding
2025-10-22 18:52:37 +02:00
Benoit Marty
fb344d2761
Sync strings.
2025-10-09 12:21:15 +02:00
renovate[bot]
5b9ce7a210
Update metro to v0.6.7 ( #5416 )
...
* Update metro to v0.6.7
* Replace `@Inject` with `@AssistedInject` where needed
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io >
2025-09-26 08:16:36 +00:00
Benoit Marty
4d7d0ac8d0
Avoid using AndroidJUnit4 runner to test Entrypoint implementations.
2025-09-16 14:38:32 +02:00
Benoit Marty
a1aeb24f23
Add test on DefaultEntryPoints
2025-09-16 14:38:32 +02:00
Benoit Marty
a575019760
Use DependencyHandlerScope.testCommonDependencies()
2025-09-16 14:38:31 +02:00
Benoit Marty
e88743bd6a
Rename anvil modules to annotations and codegen
2025-09-05 14:26:27 +02:00
bmarty
8027ce9dca
Sync Strings from Localazy
2025-09-05 07:44:19 +00:00
Jorge Martín
e8328858ab
Fixes after rebase
2025-09-04 16:49:21 +02:00
Jorge Martín
4ab62a6a38
Redo DI gradle setup code
2025-09-04 16:49:20 +02:00
Jorge Martín
29a97fc0d9
Fix lint issues and restore commented out code
2025-09-04 16:49:18 +02:00
Jorge Martín
b76a71ebf5
Start migrating Anvil KSP to Metro
2025-09-04 16:48:34 +02:00
ElementBot
02c9549bc0
Sync Strings from Localazy ( #5249 )
...
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com >
2025-09-01 12:44:49 +02:00
ElementBot
7c40c87d9a
Sync Strings from Localazy ( #5178 )
...
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com >
2025-08-18 11:09:27 +02:00
ElementBot
4b12c3f805
Sync Strings ( #5146 )
...
* Sync Strings from Localazy
* Remove unused WelcomeView.
* Remove unused WelcomeView.
---------
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com >
Co-authored-by: Benoit Marty <benoit@matrix.org >
2025-08-11 12:49:29 +00:00
ElementBot
d9ede0544c
Sync Strings from Localazy ( #4983 )
...
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com >
2025-07-04 14:37:59 +00:00
Benoit Marty
70aa31df00
[a11y] Ensure that heading() is applied to all screen titles.
2025-07-04 12:15:42 +02:00
bmarty
284241a4ec
Sync Strings from Localazy
2025-06-30 00:33:54 +00:00
ElementBot
520c1293b6
Sync Strings from Localazy ( #4842 )
...
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com >
2025-06-11 14:13:33 +02:00
ElementBot
e8f29a38bf
Sync Strings ( #4775 )
2025-05-30 08:47:39 +00:00
ElementBot
bfa05ece67
Sync Strings from Localazy ( #4677 )
...
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com >
2025-05-05 12:11:22 +02:00
ganfra
0b83e66733
Feature : Report room ( #4654 )
...
* feature (report room) : introduce all presentation classes.
* feature (report room) : branch entry point in the room list
* refactor (matrix ui) : move some code from appnav to matrix ui
* feature (report room) : add api on room
* feature (report room) : adjust ui
* feature (report room) : branch api
* feature (decline invite and block) : move things around and introduce presentation classes
* feature (decline invite and block) : continue to move things
* feature (report room) : remove reference to "conversation" for now
* feature (report room) : add report room action to room detail screen
* feature (report room) : enabled button state
* feature (report room) : improve code and reuse
* feature (report room) : add feature flag
* feature (report room) : change feature flag to static bool
* feature (report room) : add tests
* feature (report room) : fix ui with new api on ListItem
* feature (report room) : clean up and add more tests.
* Update screenshots
* feature (report room) : more test and fix issue
* feature (report room) : update strings
* feature (report room) : fix konsist preview
* feature (report room) : disable feature
* Update screenshots
* var -> val
* Improve preview of AcceptDeclineInviteView
* Improve preview consistency
* Add missing test on DismissErrorAndHideContent
* Update screenshots
* Add missing tests
---------
Co-authored-by: ElementBot <android@element.io >
Co-authored-by: Benoit Marty <benoit@matrix.org >
2025-05-02 12:25:19 +02:00