Commit graph

272 commits

Author SHA1 Message Date
Benoit Marty
77e2ff4953
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
jonnyandrew
5b7c42a50a 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
Marco Romano
3449ea486a 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
aafd4f8347 Update screenshots 2023-07-06 09:59:04 +00:00
Chris Smith
5cfaae24b8 Merge pull request #783 from vector-im/feature/cjs/location-descriptions 2023-07-06 10:33:59 +01:00
ElementBot
6191361398 Update screenshots 2023-07-06 09:13:08 +00:00
Chris Smith
27bc3c60b8 Merge remote-tracking branch 'origin/develop' into feature/cjs/location-descriptions 2023-07-06 10:01:31 +01:00
jonnyandrew
8e72d5cab5 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
a6825b66e1 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
7e581ea9d4 Fix screenshot test name 2023-07-05 16:26:51 +01:00
ElementBot
9f554b47e0 Update screenshots 2023-07-05 14:27:27 +00:00
Benoit Marty
579e4df9cc Merge branch 'develop' into feature/bma/swipeToReply 2023-07-05 16:10:43 +02:00
Jorge Martin Espinosa
78a26c034e 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
ca695ca077 Revert "Auto generate dark mode previews and screenshots (#776)" (#784)
This reverts commit fd467c2451.
2023-07-05 15:47:53 +02:00
Marco Romano
fd467c2451 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
0eb7cd82fc s/view/show/ 2023-07-05 10:19:07 +01:00
ElementBot
1174d7ccc6 Update screenshots 2023-07-04 15:28:43 +00:00
ElementBot
e55ed2f10b Update screenshots 2023-07-04 13:43:35 +00:00
Benoit Marty
e7331e8be0 Merge pull request #742 from vector-im/feature/bma/settingsUi
Settings UI
2023-07-04 10:13:14 +02:00
Benoit Marty
29e87ca7da Merge pull request #752 from vector-im/feature/bma/onBoardingIteration
Desing: onboarding iteration
2023-07-03 20:28:16 +02:00
Benoit Marty
f0ed80803a Merge pull request #755 from vector-im/feature/bma/scrollToBottom
Scroll to bottom
2023-07-03 18:20:32 +02:00
ElementBot
64dde1cee1 Update screenshots 2023-07-03 15:28:29 +00:00
ElementBot
9ddc721d23 Update screenshots 2023-07-03 14:41:20 +00:00
ElementBot
ee1a26f3ef Update screenshots 2023-07-03 12:14:23 +00:00
Chris Smith
8590ad74ac 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
543f853add Update screenshots 2023-07-03 11:30:34 +00:00
ElementBot
9167bf516f Update screenshots 2023-07-03 10:22:59 +00:00
ElementBot
68c8032d47 Update screenshots 2023-07-03 08:40:20 +00:00
ElementBot
a70935208e Update screenshots 2023-06-30 17:04:37 +00:00
ElementBot
765cc89a72 Update screenshots 2023-06-30 15:25:04 +00:00
ElementBot
8980778f0a Update screenshots 2023-06-30 09:23:10 +00:00
ElementBot
a58834240e Update screenshots 2023-06-30 08:34:28 +00:00
Chris Smith
005b22391f Merge remote-tracking branch 'origin/develop' into feature/cjs/view-location-in-timeline 2023-06-30 09:30:31 +01:00
Marco Romano
7a12a812fe Send pin-drop location (#636)
Share pindrop location

This feature allows the user to share any location by just selecting it from the map.

Closes: https://github.com/vector-im/element-x-android/issues/690
2023-06-29 22:07:47 +00:00
ElementBot
ed97dcfa5f Update screenshots 2023-06-29 16:28:00 +00:00
ganfra
84fce4bcc7 Merge pull request #721 from vector-im/feature/fga/media_upload_progress
Feature/fga/media upload progress
2023-06-29 18:01:50 +02:00
ElementBot
9ec800ad89 Update screenshots 2023-06-29 16:37:15 +01:00
ElementBot
ddb1ce3502 Update screenshots 2023-06-29 13:35:08 +00:00
ElementBot
ca58c997b5 Update screenshots 2023-06-29 11:04:08 +00:00
Chris Smith
f4e17cf12d Merge pull request #696 from vector-im/feature/cjs/leaving-dms
Show a prompt to reinvite other party in a DM
2023-06-29 10:42:35 +01:00
ganfra
6b06a1e1c9 Merge branch 'develop' into feature/fga/media_upload_progress 2023-06-29 11:36:37 +02:00
ElementBot
7dbfbf1aeb Update screenshots 2023-06-29 09:27:48 +00:00
Jorge Martin Espinosa
91060c76a7 Update compound theme colors (#718)
* Update `*surfaceVariant` colors in `MaterialTheme`.

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-29 09:19:31 +02:00
Jorge Martin Espinosa
679ee301dd Create a dummy value by default for LocalSnackbarDispatcher. (#715)
This should solve the issue with needing to provide a `LocalSnackbarDispatcher` for previews and screenshot tests.
2023-06-28 18:59:08 +02:00
Chris Smith
53861fedb6 Show a prompt to reinvite other party in a DM
If you are looking at a DM where the other party has left then
when you focus the composer for the first time we'll show a
dialog asking if you want to reinvite the other party.

Closes #590
2023-06-28 17:20:51 +01:00
ElementBot
5cfb2080bd Update screenshots 2023-06-27 20:12:56 +00:00
Jorge Martin Espinosa
a16335b4b7 [Compound] Integrate compound tokens (#586)
* Added tokens.

* Apply color to MaterialTheme, also add typography.

* Map colors to the right ones in the themes.

* Create and improve previews of some components

* More preview improvements

* Add `tertiary` and `onTertiary` colors, remove some unused ones.

* Fix usage of deleted color token

* Fix bug in Switch previews

* Create a separate `:libraries:theme` module to keep everything related to colors, typography and Compound in general.

* Fix `DatePickerPreview`

* Add missing Compound generated files by fixing their package name

* Move `ElementTheme` to the `:libraries:theme` module, make some variables internal.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-27 16:15:40 +00:00
ElementBot
698d5174ff Update screenshots 2023-06-27 13:54:18 +00:00
Marco Romano
882f75864c Set up SDK & reusable map view component (#476)
Adds `libraries/map` which contains some initial building blocks that will be used by the location sharing feature.

Ref: https://github.com/vector-im/element-meta/issues/1684
2023-06-27 07:23:00 +00:00
ElementBot
e579bf3221 Update screenshots 2023-06-26 11:07:22 +02:00