Commit Graph

46 Commits

Author SHA1 Message Date
Benoit Marty
40e00d0761 New name pattern for screenshot test reference after upgrading com.google.testparameterinjector:test-parameter-injector to v1.10 2023-03-08 15:28:03 +01:00
Jorge Martin Espinosa
ec66ed0a68 Use user friendly error messages in login following iOS logic (#174)
* Use user friendly error messages in login following iOS logic, fix dialog colors.

* Use `AlertDialogDefaults` for the default properties of dialogs

* Improve Maestro tests with wrong password dialog

* Add tests for error messages
2023-03-07 17:55:48 +01:00
Jorge Martin Espinosa
33b88b8026 Refine sign in flow to match designs and iOS flow (#100)
* Fix dark theme

* First attempt at replicating iOS' UI & flows.

* Try to fix Maestro tests

* Add error dialogs and tests

* Remove unused modifiers

* Try to fix detekt issues

* Tidy up maestro login flow a bit

* Add `CompoundColorPalette` with some needed colors

* Fixes to designs

* Fix detekt issues

* More design fixes

* Some other minor design fixes

* Add changelog

* Minor tweaks.

* Remove legacy dark material theme as it's no longer needed.

* Move sliding sync 'learn more' url to constants object

* Remove unused focusManager

* Change how the displayed homeserver works

* Keep user input as homeserver if it's valid

* Remove `CompoundColorPalette`, try to fix issue when toggling dark mode.

* Add `@Stable` to the theme, adjust how it toggles in dark mode

* Remove unused strings

* Update screenshots

* Re-organize components in LoginRootScreen

* Bump min coverage to 55, max to 60

* Always replace the snapshots contents when running `recordPaparazzi`

* Fix dark theme preview of components using content colors

* Add `BackButton` component

* Handle errors with dialogs in a generic way

* Align our Dialog components with the designs, use them were needed

* Use a `MatrixHomeserverDetails` data class instead of just an URL.

* `AuthenticationService.getHomeserverDetails()` now returns a `StateFlow`.

Also, try to fix coverage issues in tests.
2023-03-06 09:30:16 +01:00
Jorge Martin Espinosa
633f65e557 CI: make sure Paparazzi test failures stop the test flow (#117)
* Run Paparazzi tests just once when koverMergedReport is used.
* Make sure a Paparazzi failure breaks the test flow and blocks merging.
* Change ./gradlew check call in quality.yml to custom runQualityChecks task.
2023-03-02 09:15:47 +01:00
Benoit Marty
9b036b7b71 Create RoomListStateProvider 2023-02-16 11:15:07 +01:00
Benoit Marty
afd7319460 Add test for HtmlDocument. 2023-02-15 15:20:12 +01:00
Benoit Marty
9ac08ed3b7 Improve BubbleStateProvider (and this removes duplicated values!) 2023-02-15 15:20:05 +01:00
Benoit Marty
bdc96da04f Improve preview for OutlinedTextField and TextField 2023-02-15 12:57:08 +01:00
Benoit Marty
11a641cb93 Update screenshot test reference 2023-02-14 17:03:02 +01:00
Benoit Marty
e40735e0e0 Remove duplicated ShowkaseButton and fix colors. 2023-02-14 17:03:02 +01:00
Benoit Marty
41e63173b3 Make @Preview internal.
And exclude class generated by Showkase
2023-02-14 17:03:02 +01:00
Benoit Marty
d82e0e5d9e Enable Showkase for matrixui 2023-02-14 17:03:02 +01:00
Benoit Marty
3e4a61a3a5 Add preview for RoomListTopBar 2023-02-14 17:03:02 +01:00
Benoit Marty
395d432220 Add some Preview 2023-02-14 17:03:02 +01:00
Benoit Marty
864b70f512 Add preview for colors. 2023-02-03 16:29:17 +01:00
Benoit Marty
732fb9bd1e Fix detekt issue, optimize import, fix color of preference category title 2023-02-03 13:43:00 +01:00
Benoit Marty
01a4788814 Update Screenshot test reference. 2023-02-03 13:12:11 +01:00
Benoit Marty
decd3a9585 ElementTheme + MaterialTheme3 2023-02-03 12:57:42 +01:00
Benoit Marty
37840af3fd Rename component. No need for Element prefix 2023-02-03 12:57:42 +01:00
Benoit Marty
fb4c5138ee Material3 only in designsystem. 2023-02-03 12:56:53 +01:00
Benoit Marty
2cfa921a70 Rework Preview for a better rendering in the IDE. 2023-02-03 12:56:53 +01:00
Benoit Marty
8f551fbe03 Optimize import 2023-02-03 12:56:53 +01:00
Benoit Marty
6e4edc8289 First draft of full custom theme.
ElementTheme everywhere

Create ElementButton
2023-02-03 12:55:36 +01:00
ganfra
f800e22477 Rename all features modules 2023-01-20 18:35:03 +01:00
ganfra
6cc38c9c49 Rename tests/uitest modules 2023-01-20 17:51:52 +01:00
ganfra
7903e855ec Rename designsystem module 2023-01-20 17:09:12 +01:00
Benoit Marty
3e568e3ae4 Update screenshot after paparazzi version upgrade to 1.2.0 (and remove o 2023-01-19 10:19:43 +01:00
Benoit Marty
8cf527c393 Add images for screenshot test. 2023-01-18 15:49:57 +01:00
Benoit Marty
1cca81ea67 Rename folder to kotlin 2023-01-18 15:49:57 +01:00
Benoit Marty
0830da6785 Cleanup 2023-01-18 15:49:57 +01:00
Benoit Marty
05e9105dd9 Update preview 2023-01-18 15:49:57 +01:00
Benoit Marty
c2d8b4e029 Ktlint 2023-01-18 15:49:57 +01:00
Benoit Marty
99afa1c170 Add missing licence 2023-01-18 15:49:57 +01:00
Benoit Marty
9bd251de4d Add screenshots 2023-01-18 15:49:57 +01:00
Benoit Marty
5985a6faa6 Paparazzi: Apply fix from https://github.com/chrisbanes/paparazzi/pull/2 2023-01-18 15:49:57 +01:00
Benoit Marty
33d9d554a3 Change name of test 2023-01-18 15:49:57 +01:00
Benoit Marty
58b4f24f9d Fix some Previews 2023-01-18 15:49:57 +01:00
Benoit Marty
a4bed29a93 1.1.0 2023-01-18 15:20:45 +01:00
Benoit Marty
e67cd22861 Disable test parameters for now. 2023-01-18 15:20:45 +01:00
Benoit Marty
2ef43173e7 Plugin config 2023-01-18 15:20:45 +01:00
Benoit Marty
26cc900973 Test locales and themes 2023-01-18 15:20:32 +01:00
Benoit Marty
4b91dc4d0f Update screenshot test 2023-01-18 15:20:32 +01:00
Benoit Marty
67ba304ad2 Add Modifier parameter 2023-01-18 15:20:32 +01:00
Benoit Marty
160bc2b302 Make generated code visible 2023-01-18 15:20:32 +01:00
Benoit Marty
722365dc82 Create extensions to include all libraries and all modules 2023-01-18 15:20:32 +01:00
Benoit Marty
8a34c37eea Move Showkase to a dedicated module for ui tests. 2023-01-18 15:19:54 +01:00