Commit Graph

259 Commits

Author SHA1 Message Date
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
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
ElementBot
e50744c2c9 Update screenshots 2023-06-30 17:04:37 +00:00
ElementBot
eabad292d7 Update screenshots 2023-06-30 15:25:04 +00:00
ElementBot
e2b3162f3e Update screenshots 2023-06-30 09:23:10 +00:00
ElementBot
529a7c87ef Update screenshots 2023-06-30 08:34:28 +00:00
Chris Smith
6b61a6eaf5 Merge remote-tracking branch 'origin/develop' into feature/cjs/view-location-in-timeline 2023-06-30 09:30:31 +01:00
Marco Romano
0858cfb272 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
ae6fa4b756 Update screenshots 2023-06-29 16:28:00 +00:00
ganfra
e4aae094c2 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
863048ebf7 Update screenshots 2023-06-29 16:37:15 +01:00
ElementBot
46a6c14742 Update screenshots 2023-06-29 13:35:08 +00:00
ElementBot
bd2c1c5c6c Update screenshots 2023-06-29 11:04:08 +00:00
Chris Smith
712a9226e6 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
f5baa4a3a7 Merge branch 'develop' into feature/fga/media_upload_progress 2023-06-29 11:36:37 +02:00
ElementBot
d64b968866 Update screenshots 2023-06-29 09:27:48 +00:00
Jorge Martin Espinosa
79f7537c0b 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
dd562eccc8 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
f7d498599b 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
8490042953 Update screenshots 2023-06-27 20:12:56 +00:00
Jorge Martin Espinosa
02dc447624 [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
2c76a9e288 Update screenshots 2023-06-27 13:54:18 +00:00
Marco Romano
3eb6a4bc5a 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
001e724a04 Update screenshots 2023-06-26 11:07:22 +02:00
Chris Smith
8fe5a0fe27 Merge remote-tracking branch 'origin/develop' into misc/cjs/invite-string-change 2023-06-23 14:10:17 +01:00
Jorge Martin Espinosa
bdb1841e44 [Message Actions] Report messages (#642)
* Add report messages feature

* Try to improve how snackbars are delivered

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-23 10:44:47 +02:00
Jorge Martin Espinosa
de7bbbd5cf [Message Actions] Forward messages (#635)
* Add forwarding messages base

* Make forwarding single-selection

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-22 13:27:59 +02:00
ElementBot
95255ee04c Update screenshots 2023-06-22 07:21:19 +00:00
Benoit Marty
4b55641aae Merge pull request #631 from vector-im/feature/bma/sendPermission
Take into acount send permission (power level)
2023-06-21 11:35:33 +02:00
Jorge Martin Espinosa
ec9f0e2869 Set max lines to 2 in replies for composer (#645)
* Set `maxLines = 2` for the composer message preview in replies

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-20 17:07:53 +02:00
ganfra
c3b2db47bd Merge pull request #617 from vector-im/feature/fga/fix_media_pre_processing
Feature/fga/fix media pre processing
2023-06-20 16:17:50 +02:00
ElementBot
11ccd8d35c Update screenshots 2023-06-20 08:56:35 +00:00
Johannes Marbach
c63cba2cb8 Remove send message section until it's actually implemented (#632)
Fixes: #616
2023-06-19 17:24:34 +02:00
Benoit Marty
3e114a4655 Merge pull request #625 from vector-im/feature/bma/codeCov
Add missing screenshots for test.
2023-06-19 14:51:50 +02:00
github-actions[bot]
3f7738c001 Sync Strings (#630)
* Sync Strings from Localazy

* Update strings, remove broken German translation

* Update screenshots

---------

Co-authored-by: bmarty <bmarty@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-19 11:18:01 +00:00
ElementBot
9dfaa62f42 Update screenshots 2023-06-19 10:00:45 +00:00
ElementBot
094376cb8c Update screenshots 2023-06-16 15:19:29 +00:00