Commit Graph

294 Commits

Author SHA1 Message Date
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
2206f70acc Merge pull request #847 from vector-im/feature/bma/blockUserUx
Improve block/unblock user ux
2023-07-12 16:33:12 +02:00
ganfra
ff23a54acc Merge pull request #843 from vector-im/feature/fga/coroutine_dispatcher
Feature/fga/coroutine dispatcher
2023-07-11 20:42:01 +02:00
ElementBot
e34e615a7a Update screenshots 2023-07-11 16:19:22 +00:00
ElementBot
d989f45b78 Update screenshots 2023-07-11 09:41:37 +00:00
ganfra
c2c81d3747 Coroutine: remove diffUpdateDispatcher, not used anymore 2023-07-11 11:40:55 +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
ElementBot
03d470b190 Update screenshots 2023-07-10 10:12:38 +00:00
Marco Romano
026296eb43 Use @DayNightPreviews for static map (#832)
* Use @DayNightPreviews for static map

To properly screenshot the dark pin.

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-10 10:45:11 +02:00
Jorge Martin Espinosa
299492713e Update screenshots (#831)
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-10 09:42:34 +02:00
jonnyandrew
565d943466 Truncate and ellipsize long reactions (#821)
* Truncate and ellipsize long reactions

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-08 17:53:29 +01: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
ElementBot
4fd7bc43f0 Update screenshots 2023-07-07 13:56:16 +00:00
ElementBot
ade86bc947 Update screenshots 2023-07-07 13:24:14 +00: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
ganfra
da27970116 Merge branch 'develop' into feature/fga/waiting_ss_room 2023-07-07 11:34:45 +02:00
Jorge Martin Espinosa
df8f447e23 [Design] Use outlined textfields in login screen (#801)
* Use outlined textfields in the login screen

* Fix enabled status

* Fix loading state for button in `ConfirmAccountProviderView` too

* Update subtitle string

* Remove no longer used translation

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-07 10:08:38 +02:00
Jorge Martin Espinosa
f98427a41a Force the default locale to the selected one for screenshot tests (#805) 2023-07-07 10:06:20 +02:00
Benoit Marty
3209025250 Merge pull request #804 from vector-im/feature/bma/missingPreview2
Add a missing preview using DayNightPreviews annotation
2023-07-06 20:54:30 +02:00
Benoit Marty
4e8725d390 Merge pull request #781 from vector-im/feature/bma/waitingListScreen
Implement waiting list screen (error IO_ELEMENT_X_WAIT_LIST)
2023-07-06 18:24:41 +02:00
ElementBot
05fd196e66 Update screenshots 2023-07-06 18:22:48 +02:00
jonnyandrew
e39cc9555c Fix multi-line reactions blocking message content (#785)
Fixes vector-im/element-x-android#753

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-06 12:44:37 +00:00
ElementBot
7ec11bd60b Update screenshots 2023-07-06 10:40:20 +00: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
ElementBot
42e1416320 Update screenshots 2023-07-06 09:59:04 +00:00
Chris Smith
bbd1ff31a3 Merge pull request #783 from vector-im/feature/cjs/location-descriptions 2023-07-06 10:33:59 +01:00
ElementBot
f67d15022e Update screenshots 2023-07-06 09:13:08 +00:00
Chris Smith
a122b7b6ce Merge remote-tracking branch 'origin/develop' into feature/cjs/location-descriptions 2023-07-06 10:01:31 +01:00
jonnyandrew
4a2b6b4b8a Highlight user's reactions in message actions menu (#778)
Part of #342
---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-06 08:41:47 +00:00
jonnyandrew
b2ffad5663 Add 'more reactions' button to message (#756)
- Add 'more reactions' button to message
- Fix display of existing emoji reactions to match designs
- Refactor emoji reactions to reduce nesting of composables


---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-05 15:38:20 +00:00
Chris Smith
a3f04a9eb2 Fix screenshot test name 2023-07-05 16:26:51 +01:00
ElementBot
458c74793b Update screenshots 2023-07-05 14:27:27 +00:00
Benoit Marty
8f774fc4e7 Merge branch 'develop' into feature/bma/swipeToReply 2023-07-05 16:10:43 +02:00
Jorge Martin Espinosa
02fa8aaf46 Fix actions for redacted, not sent and media messages (#771)
* Fix actions for redacted, not sent and media messages

* Make `EventDebugInfoView` sections fill max width

* Don't display action list if there are no actions to display

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-05 14:08:17 +00: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
Chris Smith
87853b467f s/view/show/ 2023-07-05 10:19:07 +01:00
ElementBot
514bab48e8 Update screenshots 2023-07-04 15:28:43 +00:00
ElementBot
c796d064da Update screenshots 2023-07-04 13:43:35 +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
12f50926de Merge pull request #755 from vector-im/feature/bma/scrollToBottom
Scroll to bottom
2023-07-03 18:20:32 +02:00
ElementBot
c3c0ed6e24 Update screenshots 2023-07-03 15:28:29 +00:00
ElementBot
ddcc58ce52 Update screenshots 2023-07-03 14:41:20 +00:00
ElementBot
052deda5e1 Update screenshots 2023-07-03 12:14:23 +00:00
Chris Smith
5b35bb4277 Merge pull request #740 from vector-im/feature/cjs/location-replies
Show location replies per the designs
2023-07-03 12:52:28 +01:00
ElementBot
3d56a2a807 Update screenshots 2023-07-03 11:30:34 +00:00
ElementBot
1df4132f36 Update screenshots 2023-07-03 10:22:59 +00:00
ElementBot
11ad08d3d4 Update screenshots 2023-07-03 08:40:20 +00:00