Commit Graph

304 Commits

Author SHA1 Message Date
ganfra
e09b8aca0e Merge pull request #900 from vector-im/feature/fga/better_media_handling
Feature/fga/better media handling
2023-07-18 17:52:41 +02:00
ganfra
fa0aeccf22 Media: Clean after pr reviews 2023-07-18 16:38:36 +02:00
ganfra
f7c55f8d04 Merge branch 'develop' into feature/fga/better_media_handling 2023-07-18 15:13:59 +02:00
Benoit Marty
56691ed753 Use Large and remove Huge. 2023-07-18 14:58:09 +02:00
Benoit Marty
b86f829cfc Create Huge logo size 2023-07-18 12:12:39 +02:00
Benoit Marty
7d9a02075a Small refacto to have more Preview. 2023-07-18 11:32:52 +02:00
Benoit Marty
4186c810e4 Small refacto. 2023-07-18 11:22:51 +02:00
Benoit Marty
9013bb6f1d No need to use trick for night resource when using DayNightPreviews annotation. 2023-07-18 11:19:46 +02:00
Benoit Marty
d3f1d122ed Fix preview. 2023-07-18 10:12:56 +02:00
Benoit Marty
0fd9ba5602 Format file 2023-07-18 10:12:56 +02:00
Benoit Marty
9a76adcd5e Fix text color 2023-07-18 10:12:56 +02:00
Jorge Martin Espinosa
280b7e32e0 Hide encryption history + FTUE flow (#839)
* First attempt at implementing encrypted history banner and removing old UTDs

* Get the right behavior in the timeline

* Implement the designs

* Extract post-processing logic, add tests

* Add encryption banner to timeline screenshots

* Create FTUE feature to handle welcome screen and analytics

* Move classes to their own packages, add tests for `DefaultFtueState`.

* Remove unnecessary private MutableStateFlow

* Move some FTUE related methods and classes back to the `impl` module

* Handle back press at each FTUE step

* Remove unneeded `TestScope` receiver for `createState` in tests.

* Use light & dark previews for the banner view.

* Move color customization from `TextStyle` to `Text` component.

* Rename `InfoList` design components, use them in `AnalyticsOptInView` too.

* Cleanup MatrixClient.

* Fix copy&paste error

Co-authored-by: Benoit Marty <benoit@matrix.org>

* Fix typo

* Fix Maestro tests

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2023-07-17 18:34:36 +02:00
ganfra
c4d0938839 ProgressDialog: add cancelable... 2023-07-13 23:49:55 +02:00
Benoit Marty
be6b8c825b Fix account provider change on nightly and release (#861)
* Use parallelMap (same code)

* Add proguard rules. Fixes #818

* Rename file proguard-rules.pro to consumer-rules.pro for coherency.

* Remove empty and non-referenced proguard files.
2023-07-13 14:46:57 +02:00
Benoit Marty
16f30db20e Move TypographyAliases next to ColorAliases 2023-07-11 11:29:56 +02:00
Benoit Marty
d60a590cb5 Fix regression on some colors. Introduce a temporary color, since the color values are not in Compound. temporaryColorBgSpecial 2023-07-11 10:29:06 +02:00
Benoit Marty
84fad3e7f3 Create alias for typography (more semantic name). aliasButtonText 2023-07-11 10:29:06 +02:00
Benoit Marty
529f6d681e Create alias for typography (more semantic name). aliasScreenTitle 2023-07-11 10:29:06 +02:00
Benoit Marty
5f3ba74f30 Remove fontSize parameter. Must use style only. 2023-07-10 17:33:42 +02:00
Benoit Marty
277595412f Remove lineHeight parameter. Must use style only. 2023-07-10 17:33:42 +02:00
Benoit Marty
68f14141d6 Remove letterSpacing parameter. Must use style only. 2023-07-10 17:33:42 +02:00
Benoit Marty
d10fde194f Remove fontFamily parameter. Must use style only. 2023-07-10 17:33:42 +02:00
Benoit Marty
f0d3b9da53 Remove fontWeight parameter. Must use style only. 2023-07-10 17:33:42 +02:00
Benoit Marty
7be0e3ea4b Remove ElementTextStyles. Only ElementTheme.typography.* styles must be used now. 2023-07-10 17:33:42 +02:00
Benoit Marty
9b042cf056 Remove ElementColors. We should use semantics and material colors now. 2023-07-10 17:33:42 +02:00
Benoit Marty
4afdccb3ed Merge pull request #826 from vector-im/feature/bma/swipeAction
Improve swipe to reply rendering
2023-07-10 13:56:29 +02:00
Chris Smith
130c026d81 Merge pull request #824 from vector-im/misc/cjs/left-align-top-bars 2023-07-10 12:23:29 +01:00
Benoit Marty
1d6bfd19f1 Improve animation of Swipe to reply: replace usage of SwipeToDismiss by Modifier.draggable 2023-07-10 11:52:27 +02:00
Jorge Martin Espinosa
ac0b799b6e Make Showkase browser work in the nightly versions (#829) 2023-07-10 10:10:22 +02:00
Benoit Marty
734d2b71f7 Merge pull request #823 from vector-im/feature/bma/snackbarFix
Snackbar fix
2023-07-07 22:04:37 +02:00
Marco Romano
220a6087f9 Use @DayNightPreviews to correctly render the PinIcon in dark mode (#795)
- Fixes rendering of `-night` resources in screenshot tests by overriding the `nightMode` with `paparazzi.unsafeUpdateConfig()`.
2023-07-07 16:35:34 +02:00
Benoit Marty
15c42ff9c3 Cleanup 2023-07-07 16:15:59 +02:00
Benoit Marty
f8ff8d5e09 Use the CoroutineScope from the LaunchedEffect. 2023-07-07 15:35:16 +02:00
Benoit Marty
3e9396e27c Show Snackbar once the verification is finish in the correct screen (#812) 2023-07-07 15:34:15 +02:00
jonnyandrew
850781444b Collapse long lists of message reactions (#806)
---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-07 13:19:11 +00:00
Chris Smith
85d20c7874 Remove CenterAlignedTopAppBar
Centering the titles is very iOS-y and not aligned with the material
guidelines (which say center aligned top bars are only for the main
root page in the app). They also present issues when we have titles
and textual actions that end up being quite long in other languages,
as they end up merging together.

Fixes #655
2023-07-07 13:59:05 +01:00
ganfra
da27970116 Merge branch 'develop' into feature/fga/waiting_ss_room 2023-07-07 11:34:45 +02:00
Marco Romano
aed4b92761 Optional day night preview annotation (#793)
Adds the `@DayNightPreviews` annotation that when used on a composable will:
- Display both a day mode and night mode preview in Android Studio.
- Produce both a day and night screenshot during screenshot testing.

The usage of this new annotation is optional, all the current previews continue to work without breakages.
New code can use, when appropriate, the new `@DayNightPreviews` annotation and replace the pattern using three `LightPreview/DarkPreview/ContentToPreview` functions with:

```
@DayNightPreviews
@Composable
fun MyScreenPreview(@PreviewParameter(MyStateProvider::class) state: MyState) {
    ElementPreview {
        MyScreen(
            state = state,
        )
    }
}
```
2023-07-06 12:35:54 +02:00
Marco Romano
f33561c25d Revert "Auto generate dark mode previews and screenshots (#776)" (#784)
This reverts commit 79b529193c.
2023-07-05 15:47:53 +02:00
Marco Romano
79b529193c Auto generate dark mode previews and screenshots (#776)
With this change, composable previews and screenshots should be created with just:
```
@ElementPreviews
@Composable
fun MyViewPreview() {
    ElementPreview { 
        MyView()
    }
}
```

- Adds `@ElementPreviews` which is a shorthand for:
```
@Preview(name = "D")
@Preview(name = "N", uiMode = Configuration.UI_MODE_NIGHT_YES)
```
Should be used in connection with the now public `fun ElementPreview()` composable.

- Adds ElementPreviews to previewAnnotations in dangerfile
- Screenshots of night mode previews are now rendered with night mode
- Replaces `ElementPreviewLight` and `ElementThemedPreview` with `ElementPreview`
- Deprecates `ElementPreviewDark` which should be removed.
- Remaining usages of `ElementPreviewDark` are now ignored during screenshot tests
2023-07-05 13:58:24 +02:00
ganfra
8667784271 AwaitRoom : create loading state with placeholders 2023-07-05 12:42:01 +02:00
Marco Romano
d525304e67 Adds dark mode pin icon for location sharing (#766) 2023-07-04 13:23:53 +00:00
Benoit Marty
c1466fcea0 Merge pull request #742 from vector-im/feature/bma/settingsUi
Settings UI
2023-07-04 10:13:14 +02:00
Benoit Marty
9e5c009dda Merge pull request #752 from vector-im/feature/bma/onBoardingIteration
Desing: onboarding iteration
2023-07-03 20:28:16 +02:00
Benoit Marty
be92588c28 Improve rendering of preference anaytics screen. 2023-07-03 17:09:04 +02:00
Benoit Marty
dbc93398cf Fix wrong padding. 2023-07-03 17:09:04 +02:00
Benoit Marty
da7e9a8bf2 More cleanup on BugReportView. 2023-07-03 17:09:04 +02:00
Benoit Marty
1c6aa43bea Design iteration on bug report screen. 2023-07-03 17:09:04 +02:00
Benoit Marty
eefad5acde Fix click effect. 2023-07-03 17:09:04 +02:00
Benoit Marty
17532286bf Fix font of settings titles. 2023-07-03 17:09:04 +02:00