Commit graph

45 commits

Author SHA1 Message Date
Jorge Martin Espinosa
d36ca2907c 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
c87c0ea28c 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
f300842a87 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
35eb0174b7 Create RoomListStateProvider 2023-02-16 11:15:07 +01:00
Benoit Marty
2dae6b6d7b Add test for HtmlDocument. 2023-02-15 15:20:12 +01:00
Benoit Marty
bdae51f252 Improve BubbleStateProvider (and this removes duplicated values!) 2023-02-15 15:20:05 +01:00
Benoit Marty
6a534e7536 Improve preview for OutlinedTextField and TextField 2023-02-15 12:57:08 +01:00
Benoit Marty
1505951d31 Update screenshot test reference 2023-02-14 17:03:02 +01:00
Benoit Marty
a9222fae32 Remove duplicated ShowkaseButton and fix colors. 2023-02-14 17:03:02 +01:00
Benoit Marty
6bb01d640f Make @Preview internal.
And exclude class generated by Showkase
2023-02-14 17:03:02 +01:00
Benoit Marty
b439109d05 Enable Showkase for matrixui 2023-02-14 17:03:02 +01:00
Benoit Marty
700204df69 Add preview for RoomListTopBar 2023-02-14 17:03:02 +01:00
Benoit Marty
fe44c8906d Add some Preview 2023-02-14 17:03:02 +01:00
Benoit Marty
8413b9792f Add preview for colors. 2023-02-03 16:29:17 +01:00
Benoit Marty
426005f298 Fix detekt issue, optimize import, fix color of preference category title 2023-02-03 13:43:00 +01:00
Benoit Marty
d7e62f4ae3 Update Screenshot test reference. 2023-02-03 13:12:11 +01:00
Benoit Marty
bbe10382b0 ElementTheme + MaterialTheme3 2023-02-03 12:57:42 +01:00
Benoit Marty
201508678a Rename component. No need for Element prefix 2023-02-03 12:57:42 +01:00
Benoit Marty
cdfc13cb15 Material3 only in designsystem. 2023-02-03 12:56:53 +01:00
Benoit Marty
9d32b05fbb Rework Preview for a better rendering in the IDE. 2023-02-03 12:56:53 +01:00
Benoit Marty
e3fed8b4f5 Optimize import 2023-02-03 12:56:53 +01:00
Benoit Marty
e4cc733f4a First draft of full custom theme.
ElementTheme everywhere

Create ElementButton
2023-02-03 12:55:36 +01:00
ganfra
e616d75d9d Rename all features modules 2023-01-20 18:35:03 +01:00
ganfra
0c6cd35b69 Rename tests/uitest modules 2023-01-20 17:51:52 +01:00
ganfra
a2f0c64921 Rename designsystem module 2023-01-20 17:09:12 +01:00
Benoit Marty
ce0f0fdb6e Update screenshot after paparazzi version upgrade to 1.2.0 (and remove o 2023-01-19 10:19:43 +01:00
Benoit Marty
1a847f5d67 Add images for screenshot test. 2023-01-18 15:49:57 +01:00
Benoit Marty
8ac154ed12 Rename folder to kotlin 2023-01-18 15:49:57 +01:00
Benoit Marty
bfb8f4bba2 Cleanup 2023-01-18 15:49:57 +01:00
Benoit Marty
2b9fb78f14 Update preview 2023-01-18 15:49:57 +01:00
Benoit Marty
54aa496247 Ktlint 2023-01-18 15:49:57 +01:00
Benoit Marty
b1bd793736 Add missing licence 2023-01-18 15:49:57 +01:00
Benoit Marty
0b6b1eeeef Add screenshots 2023-01-18 15:49:57 +01:00
Benoit Marty
809ad978eb Paparazzi: Apply fix from https://github.com/chrisbanes/paparazzi/pull/2 2023-01-18 15:49:57 +01:00
Benoit Marty
1336e2ab79 Change name of test 2023-01-18 15:49:57 +01:00
Benoit Marty
e9d8d1a7fa Fix some Previews 2023-01-18 15:49:57 +01:00
Benoit Marty
fd32ef7781 1.1.0 2023-01-18 15:20:45 +01:00
Benoit Marty
e6aea23657 Disable test parameters for now. 2023-01-18 15:20:45 +01:00
Benoit Marty
d68787b936 Plugin config 2023-01-18 15:20:45 +01:00
Benoit Marty
e6f0c01799 Test locales and themes 2023-01-18 15:20:32 +01:00
Benoit Marty
1a206543a2 Update screenshot test 2023-01-18 15:20:32 +01:00
Benoit Marty
f8074d2ff4 Add Modifier parameter 2023-01-18 15:20:32 +01:00
Benoit Marty
0c511b1092 Make generated code visible 2023-01-18 15:20:32 +01:00
Benoit Marty
7bbadf3765 Create extensions to include all libraries and all modules 2023-01-18 15:20:32 +01:00
Benoit Marty
d06351b69f Move Showkase to a dedicated module for ui tests. 2023-01-18 15:19:54 +01:00