Commit graph

351 commits

Author SHA1 Message Date
Jorge Martin Espinosa
9e1ff513e4
[Compound] Implement Snackbars based on designs (#1054)
* Make `InternalButton` internal instead of private so it can be customised.

Also, change the `ButtonColors.contentColor` for text buttons to `LocalContentColor.current` by default.

* Add temporary color for Snackbar action label

* Implement `Snackbar` component based on Compound

* Propagate changes to all other components

* Use right Preview annotation config

* Move `ButtonVisuals` to their own file

* Update screenshots

* Make previews internal

* Update screenshots

* Set a custom token for contentColor in AppBars

* Change 'Label' to 'Action' in the previews

* Add changelog

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-16 10:38:28 +00:00
David Langley
08a0f710d7
Show selected reactions on the emoji picker. (#1014)
* Show selected reactions on the emoji picker.

* Unused import

* Update screenshots

* Use ImmutableSet

* Fix lint issues.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-11 15:47:06 +00:00
Jorge Martin Espinosa
f35272c4fe
[Compound] Implement DropdownMenu customisations. (#1050)
* Compound: implement `DropdownMenu` customisations.

* Update screenshots

* Add changelog

* Address review comments

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-11 13:09:51 +00:00
Jorge Martin Espinosa
a77b59824c
[Compound] Implement dialogs (#1043)
* Implement dialogs following Compound tokens

* Update screenshots

* Fix confirmation dialog preview

* Update screenshots

* Add changelog

* Add Figma designs link

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-11 12:44:40 +00:00
Jorge Martin Espinosa
d08631fa07
[Compound] implement IconButton changes (#1049)
* Compound: implement IconButton changes.

* Use `LocalContentColor` for tinting

* Update screenshots

* Add changelog

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-11 10:01:18 +00:00
Jorge Martin Espinosa
23982dde47
[Compound] Implement components (Button) (#1021)
* Create `CompoundButton`

* Some fixes

* Lint fixes

* Start replacing existing `Button` usages

* Replace button usages

* Remove previous Button composable

* Rename `CompoundButton` to `Button`

* Fix emphasized button being displayed as Text

* Fix cancel button in `WaitListView`

* Update screenshots

* Add shorthand functions for `OutlinedButton` and `TextButton`

* Add changelog

* Fix wrong size used for emphasized button in dialog

* Create a private `ButtonInternal` implementation with the shared logic.

- Make `ButtonStyle` private.
- Rename `title` to `text`.
- Rename `buttonStyle` and `buttonSize` to just `style` and `size`.

* Fix several warnings and lint issues.

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-08 16:11:37 +00:00
David Langley
a68564b5f0
Reactions ux updates (#1020)
* Fix ordering of reaction count/key label on outgoing messages and fix reaction button height

- Fix ordering of reaction count/key label on outgoing messages
- Fix reaction button height

* Fix emojis circles on action list

* Fix shape of reaction summary button when pressed

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-02 19:18:16 +00:00
David Langley
0b95ef09b7
Reaction summary view and sorting reactions by count and then timestamp (#942)
* Sort reactions by count and then timestamp

- Sort reactions within an aggregation by timestamp descending. This puts the most recent at the top, useful in cases like the reaction summary view or getting the most recent reaction.
- Sort aggregated reactions by count and then timestamp ascending, using the most recent reaction in the aggregation. This appends new aggregations on the end of the reaction layout.

* Add reaction summary view

* fix warnings

* Fix test unit tests and add sorting tests

- Fix broken build in test code
- Add a test for reaction sorting

* Remove default closure, move logic to presenter and add tests

* Update screenshots

* Fix imports

* Revert Screenshots I didn't update

* Fix imports remove screetshots

* Update screenshots

* Update screenshots

* Address comments.

* Update screenshots

* Remove unnecessary snapshotFlow

* Fix code quality checks

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-31 17:39:20 +00:00
Jorge Martin Espinosa
eb80f5bbfe
Fix detekt issues in develop (#1004)
Co-authored-by: Marco Romano <marcor@element.io>
2023-07-31 14:01:08 +02:00
ElementBot
7353c693bc Update screenshots 2023-07-28 14:24:03 +00:00
ElementBot
1d0f4c2dd2 Update screenshots 2023-07-27 14:33:34 +00:00
Jorge Martin Espinosa
914235228d
[Compound] Implement platform components (Switch, RadioButton, Checkbox) (#982)
* Create our custom Switch component

* Update RadioButton colors

* Update Checkbox colors

* Fix padding in `ReplyToContent`

* Add `indeterminate` and `hasError` parameters to `CheckBox`.

Improve previews.

* Improve Switch previews.

* Improve RadioButton previews.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-27 14:55:58 +02:00
Jorge Martin Espinosa
dbec1a0a60
Improve fetch members performance, relax regexes for validating ids (#964)
* Fetched `RoomMembers` are mapped in parallel

* Add horizontal padding to room/user name in room details screen

* Relax User & Event id regex matches

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-26 16:31:26 +02:00
ElementBot
ec2191c74a Update screenshots 2023-07-26 12:12:39 +00:00
ganfra
75c9624f6f Add consumeItemsUntilPredicate to check how it goes... 2023-07-26 13:07:11 +02:00
ganfra
b6b16dbefe Turbine: introduce consumeItemsUntilTimeout 2023-07-25 18:37:32 +02:00
ElementBot
89e2340fda Update screenshots 2023-07-25 14:20:05 +00:00
Benoit Marty
caaa1923c7
Merge pull request #952 from vector-im/feature/bma/fixPushStoreCrash
Fix push store crash
2023-07-25 09:43:37 +02:00
Benoit Marty
0599515708
Merge pull request #947 from vector-im/feature/bma/sentry
Sentry
2023-07-24 13:54:06 +02:00
Benoit Marty
4312a96851 Cleanup: there are no androidTest on those modules. 2023-07-24 12:41:02 +02:00
ElementBot
d9f361ce0a Update screenshots 2023-07-24 08:18:21 +00:00
ElementBot
4e4e26d6f2 Update screenshots 2023-07-21 19:53:55 +00:00
Benoit Marty
5e2e03f054
Merge branch 'develop' into feature/bma/noWarnings 2023-07-21 12:17:50 +02:00
David Langley
d9be396a04
Merge pull request #912 from vector-im/feature/dla_custom_reactions_layout
Reactions layout improvements
2023-07-21 11:00:43 +01:00
Benoit Marty
2928073e22 Enable detekt rules UnusedImports and cleanup the code. 2023-07-20 18:00:23 +02:00
Marco Romano
a1313c2890
Update permission request dialog copy. (#931)
As per new designs.

Part of:
- https://github.com/vector-im/element-meta/issues/1682
2023-07-20 14:50:24 +00:00
Marco Romano
d964650804
Use correct share my location icon in button (#936)
As per newer design specs.

Related to:
- https://github.com/vector-im/element-meta/issues/1678
2023-07-20 13:59:06 +00:00
Marco Romano
c746981000
Add screenshots with ~1.5 lines long desc to expanded location view (#923)
This will help in catching alignment regressions.

Related to:
- https://github.com/vector-im/element-meta/issues/1678
2023-07-20 13:42:35 +00:00
ElementBot
404caed314 Update screenshots 2023-07-20 05:51:05 +00:00
Benoit Marty
8b97d50050
Merge pull request #920 from vector-im/feature/bma/slidingSyncState
Sliding sync state rendering
2023-07-19 16:26:14 +02:00
ElementBot
0ed7afc2d6 Update screenshots 2023-07-19 13:51:57 +00:00
Benoit Marty
62354326a9 Exclude app module for now. 2023-07-19 15:27:21 +02:00
Marco Romano
4162d16f52
Location expanded view: show own location (#916)
If the location permission is granted:
- Shows the user's own location
- Shows a button to center the map on it

Part of:
- https://github.com/vector-im/element-meta/issues/1678
2023-07-19 13:26:06 +00:00
Benoit Marty
2b71922cae Ensure uitest take preview from app module. 2023-07-19 14:47:30 +02:00
Benoit Marty
2686e5d912 Ensure uitest take preview from appnav module. 2023-07-19 14:41:41 +02:00
Marco Romano
4c1a691b78
Fix insets for nav bar in send location view (#915)
Improvement of https://github.com/vector-im/element-x-android/pull/770

- https://github.com/vector-im/element-meta/issues/1682
2023-07-19 13:57:34 +02:00
Marco Romano
3c45a5ece4
Send My Location (#770)
- https://github.com/vector-im/element-meta/issues/1682
2023-07-19 09:58:13 +00:00
David Langley
ec3c524cae Don't update non reaction screenshots 2023-07-19 09:36:09 +01:00
David Langley
26864eb826 Update screenshots 2023-07-19 09:28:02 +01:00
ElementBot
913527670f Update screenshots 2023-07-18 16:38:41 +00:00
ganfra
d7cb8e076c
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
ElementBot
e98aee9f39 Update screenshots 2023-07-18 14:51:59 +00:00
ganfra
84500d41eb Merge branch 'develop' into feature/fga/better_media_handling 2023-07-18 15:13:59 +02:00
ElementBot
1a51b0410a Update screenshots 2023-07-18 13:07:52 +00:00
ElementBot
bb6132c0fd Update screenshots 2023-07-18 12:35:42 +00:00
ElementBot
bfef2c0a6b Update screenshots 2023-07-18 10:39:24 +00:00
ElementBot
12a30ed914 Update screenshots 2023-07-18 10:23:43 +00:00
Benoit Marty
bb3aee6d7e
Merge pull request #895 from vector-im/feature/bma/fixDarkWelcome
Fix dark welcome
2023-07-18 11:19:10 +02:00
ElementBot
b8d9655e8e Update screenshots 2023-07-18 10:12:56 +02:00
ganfra
8f01e8133f Merge branch 'develop' into feature/fga/better_timeline_scroll 2023-07-17 23:35:41 +02:00