Commit Graph

311 Commits

Author SHA1 Message Date
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
bmarty
734177571a Import strings from Element Android 2023-03-07 06:06:30 +00:00
Jorge Martin Espinosa
e0bb1da258 Add consumer proguard rules for SQLCipher (#138)
* Add consumer proguard rules for SQLCipher

* Add changelog

* Explain why these rules are necessary

Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>

* Try to switch to a supported version of Compose Rules to avoid dependency issues

---------

Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
2023-03-06 19:40:05 +01:00
Benoit Marty
ccf4cc1bc4 Move InMemorySessionStore in it's own module implementation 2023-03-06 13:10:27 +01:00
Benoit Marty
a66312d9e2 Split module session-storage into api and impl. 2023-03-06 13:10:27 +01:00
Benoit Marty
0037da4ce5 Split module dateformatter into api, impl and test. 2023-03-06 11:58:11 +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
bmarty
d2a0ce6935 Import strings from Element Android 2023-03-03 06:06:26 +00:00
Benoit Marty
8faca4fdac Move class of matrix.api module to api sub package. 2023-03-02 17:32:47 +01:00
Benoit Marty
0b5abc7a73 Move module matrixtest to matrix.test 2023-03-02 17:19:58 +01:00
Benoit Marty
fbdc1a477a 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
c20013243b 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
d687acf57f Fix test compilation 2023-03-01 11:11:09 +01:00
ganfra
2bbdecb6f0 Use DaySeperatorFormatter 2023-02-28 14:27:54 +01:00
ganfra
61ca79a2da Timeline test: check timeline is initialized and disposed 2023-02-28 11:25:08 +01:00
ganfra
39edc780fe Makes sure to test loadMore method on TimelinePresenter 2023-02-27 20:30:22 +01:00
ganfra
a23ecfca1b Merge branch 'develop' into feature/fga/update_rust_sdk and allow using 'libs' from precompiled script 2023-02-27 14:14:49 +01:00
ganfra
ac5015d3b3 Fix test compilation 2023-02-27 12:19:43 +01:00
bmarty
bff36d50fa Import strings from Element Android 2023-02-25 06:06:00 +00:00
ganfra
bf95f2a2c7 Format code 2023-02-24 20:40:48 +01:00
ganfra
fa4c8d62cf Improve a bit timeline pagination 2023-02-24 20:34:32 +01:00
ganfra
247f6d2188 Update rust-sdk (from maven) 2023-02-24 15:05:20 +01:00
ganfra
8d4d8e96bd Merge develop into feature/fga/update_rust_sdk 2023-02-24 11:14:36 +01:00
Benoit Marty
da7df5d11e Merge pull request #90 from vector-im/sync-strings
Sync strings
2023-02-17 12:02:07 +01:00
bmarty
38599166fd Import strings from Element Android 2023-02-17 06:06:26 +00:00
Benoit Marty
bdc96da04f Improve preview for OutlinedTextField and TextField 2023-02-15 12:57:08 +01:00
ganfra
31eb01a7c2 Merge branch 'develop' into feature/fga/update_rust_sdk 2023-02-14 21:15:28 +01:00
ganfra
9526eac81c Add fetchMembers and use it when init timeline (import again rust-sdk with fix on poisoning) 2023-02-14 20:13:47 +01:00
Benoit Marty
ed3466d8c3 Fix compilation warning (even if this drawable will never be used at runtime) 2023-02-14 18:20:19 +01:00
Benoit Marty
0959f652a8 Add some previews. 2023-02-14 17:03:02 +01:00
Benoit Marty
6d9e79132b Add some previews. 2023-02-14 17:03:02 +01:00
Benoit Marty
8cb8c2f306 Move and rename VectorIcon 2023-02-14 17:03:02 +01:00
Benoit Marty
12fb178eb5 Add some previews. 2023-02-14 17:03:02 +01:00
Benoit Marty
3c3f473534 Add some previews. 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
35c7d4c132 Add Preview for timeline items. 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
aecc294df9 Add a way to Preview images. 2023-02-14 17:03:02 +01:00
Benoit Marty
ec687edc2d Extract Provider (and rename them) to their own file and move fixture(s) there. 2023-02-14 17:03:02 +01:00
Benoit Marty
f04f2dad9e Give the id to AvatarData to be able to compute initial properly. 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
7a3a4ca026 Add StringPreviewParameterProvider 2023-02-14 17:03:02 +01:00
Benoit Marty
e1b9d1da02 PreviewParameterProvider FTW 2023-02-14 17:03:02 +01:00
Benoit Marty
395d432220 Add some Preview 2023-02-14 17:03:02 +01:00
Benoit Marty
78a83c0592 Merge pull request #73 from vector-im/feature/bma/moreTests
More tests
2023-02-14 17:01:28 +01:00
bmarty
34f62f392c Import strings from Element Android 2023-02-14 06:06:21 +00:00
bmarty
6600131113 Import strings from Element Android 2023-02-10 06:06:37 +00:00
Benoit Marty
6169323043 Move test data to TestData.kt 2023-02-09 18:41:58 +01:00
Benoit Marty
a0e56426c4 Cleanup and centralize test data. 2023-02-09 17:44:20 +01:00
Benoit Marty
ad62a613cc Add test for MessagesPresenter 2023-02-09 16:12:22 +01:00