Commit graph

97 commits

Author SHA1 Message Date
Maxime NATUREL
e5349040b2 Moving back button into button package 2023-03-08 15:46:47 +01:00
Maxime NATUREL
3efb141afc Fix duplicated strings and use back button 2023-03-08 15:46:46 +01:00
Jorge Martin Espinosa
811cca6289 Clear focus when submitting forms to prevent issues with the IME keyboard. (#139) 2023-03-08 15:30:40 +01:00
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
Benoit Marty
466579c4d3 Move class of matrix.api module to api sub package. 2023-03-02 17:32:47 +01:00
Benoit Marty
c2dff7888c Move module matrixtest to matrix.test 2023-03-02 17:19:58 +01:00
Benoit Marty
b8467e547c Split module matrix to matrix.api with interfaces and data classes and matrix.impl with Rust implementation. 2023-03-02 17:12:13 +01:00
Jorge Martin Espinosa
6677f80abe Store session data in a secure way (#98)
* Replace SessionData DataStore with an encrypted SQLite DB.

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
2023-03-02 16:48:54 +01:00
ganfra
b86d5a67e5 Bypass error of setHomeserver 2023-02-27 18:11:51 +01:00
Benoit Marty
9234f47ce3 Move and rename VectorIcon 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
2ea45a9ee1 Mode test for ChangeServerView 2023-02-14 17:03:02 +01:00
Benoit Marty
e120ca7163 Extract Provider (and rename them) to their own file and move fixture(s) there. 2023-02-14 17:03:02 +01:00
Benoit Marty
0f0c001c3c Enforce no default value in state. 2023-02-14 17:03:02 +01:00
Benoit Marty
3142b884c5 Move test data to TestData.kt 2023-02-09 18:41:58 +01:00
Benoit Marty
606cd3efc3 Cleanup and centralize test data. 2023-02-09 17:44:20 +01:00
Benoit Marty
8fb1f2655e Add test for LoginRootPresenter 2023-02-07 17:35:46 +01:00
Benoit Marty
5ca2b475cc Add test for ChangeServerPresenter 2023-02-07 16:57:33 +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
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
2cac2b59ab Cleanup and TODO. 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
2b7c965236 Remove bad usage of ElementSurface 2023-02-03 12:56:53 +01:00
Benoit Marty
7d85d8da30 Add ElementCircularProgressIndicator and ElementOutlinedTextField. 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
9cf88fff5f Merge branch 'develop' into feature/fga/fix_restoration 2023-02-01 16:05:05 +01:00
ganfra
fc07ff29f5 Remove PresenterConnector and molecule runtime in feature modules, directly call Presenter.present method 2023-02-01 15:56:07 +01:00
Benoit Marty
3410b70af4 Optimize import 2023-01-30 16:36:51 +01:00
Benoit Marty
94b4f6ac63 Merge pull request #58 from vector-im/feature/bma/investigation
Add animation between screens
2023-01-25 11:49:01 +01:00
Benoit Marty
9b515a95ff Rename function (code review) 2023-01-25 11:14:50 +01:00
ganfra
87d0191324 Change/move some gradle modules to be better separated. Let core module be a kotlin lib. 2023-01-24 17:38:57 +01:00
Benoit Marty
78cbca3193 Animation between screens 2023-01-24 17:24:40 +01:00
Benoit Marty
dd10fbe395 Naming convention and no need for a val for presenter 2023-01-24 09:48:35 +01:00
Benoit Marty
8647016e61 Use the modifier parameter. 2023-01-24 09:45:11 +01:00
ganfra
dd00f99f0c enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") 2023-01-20 19:13:44 +01:00
ganfra
5748bc53a6 Finish removing x. from packages (keep it in app module for now) 2023-01-20 18:52:59 +01:00
ganfra
e616d75d9d Rename all features modules 2023-01-20 18:35:03 +01:00
ganfra
caa04aa485 Rename uistrings module 2023-01-20 17:42:09 +01:00
ganfra
89ae06fe59 Rename testtags module 2023-01-20 17:30:35 +01:00
ganfra
907d7eba75 Rename matrix modules 2023-01-20 17:27:47 +01:00
ganfra
bbbbc3495d Rename di module 2023-01-20 17:12:40 +01:00
ganfra
a2f0c64921 Rename designsystem module 2023-01-20 17:09:12 +01:00
ganfra
f6672fa5de Rename core module 2023-01-20 16:34:04 +01:00
ganfra
bc9b8e6b90 Rename architecture module 2023-01-20 16:26:43 +01:00
Benoit Marty
09240e23d3 Change package and fix KDoc. 2023-01-20 12:43:49 +01:00
Benoit Marty
c3b1dbe1c4 testtags 2023-01-20 10:26:32 +01:00