Commit Graph

382 Commits

Author SHA1 Message Date
ElementBot
6a1d0df735 Update screenshots 2023-08-25 13:08:05 +00:00
ElementBot
8914522c31 Update screenshots 2023-08-25 10:22:22 +00:00
Florian Renaud
a70149d86d Merge pull request #1141 from vector-im/bugfix/fre/improve_timestamp_position
Improve timestamp rendering for poll event content
2023-08-25 10:45:23 +02:00
Florian Renaud
9999b95852 Merge pull request #1113 from vector-im/feature/fre/improve_poll_event_timeline_rendering
[Poll] Render ended poll and improve UI in the timeline
2023-08-25 10:14:15 +02:00
ElementBot
4d2fd9176b Update screenshots 2023-08-25 07:14:37 +00:00
ElementBot
8aebb94006 Update screenshots 2023-08-25 09:07:10 +02:00
Jorge Martin Espinosa
7f50671a45 Improve list items: add lists to dialogs, rework ListItem customizations (#1119)
* Improve list items:

- Create `ListItemContent`.
- Create `ListItemStyle`.
- Apply those to `ListItem` components.
- Create helper list item components for checkboxes, switches, radio buttons.
* Create single/multiple selection dialogs.
* Create `SingleSelectionListItem` and `MultipleSelectionListItem`
- Add `subtitle` to `AlertDialogContents`.
- Fix paddings and margins inside dialogs.
- Add `ListOption`.
* Adds small delay before hiding the single selection dialog.
---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-24 15:11:05 +02:00
Florian Renaud
ebf6a98c34 Merge remote-tracking branch 'origin/develop' into feature/fre/improve_poll_event_timeline_rendering 2023-08-24 14:42:16 +02:00
ElementBot
a7a36a9435 Update screenshots 2023-08-24 06:26:31 +00:00
Benoit Marty
6941bc69f6 Merge pull request #1127 from vector-im/feature/bma/finishOidc
Enable OIDC support
2023-08-23 17:01:41 +02:00
ElementBot
d9ff14d9bc Update screenshots 2023-08-23 13:28:17 +00:00
Benoit Marty
3f8e7eaef8 Add missing tests. 2023-08-23 13:49:03 +02:00
ElementBot
88bcd690b3 Update screenshots 2023-08-22 10:19:26 +00:00
ElementBot
b363080370 Update screenshots 2023-08-22 08:49:40 +00:00
Jorge Martin Espinosa
b36667844d [Compound] Platform components (Lists) (#990)
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-21 10:34:57 +02:00
Benoit Marty
cea474dca0 Merge pull request #963 from vector-im/julioromano/showLocationRequestPermission
Show location request permission in expanded location view
2023-08-18 16:58:51 +02:00
Benoit Marty
486aca8598 Merge pull request #1088 from vector-im/fix/jme/1077-textbuttons-in-dark-theme
Fix TextButtons being displayed in black
2023-08-18 16:14:42 +02:00
ElementBot
51b0aefe6c Update screenshots 2023-08-18 14:07:50 +00:00
Benoit Marty
13e22705b9 Merge pull request #1093 from vector-im/feature/bma/senderNameBubble
Feature/bma/sender name bubble
2023-08-18 15:59:20 +02:00
ElementBot
25210244c1 Update screenshots 2023-08-18 13:45:49 +00:00
ElementBot
4abfd6aa0f Update screenshots 2023-08-18 13:16:39 +00:00
Jorge Martin Espinosa
c1a00e15ee Fix rendering of inline elements in list items in messages (#1091)
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-18 13:14:55 +00:00
ElementBot
daf98b8a6f Update screenshots 2023-08-18 06:56:43 +00:00
ElementBot
c5502087b3 Update screenshots 2023-08-17 17:09:42 +00:00
Benoit Marty
e762e44cd5 Shorter screenshot filename. 2023-08-17 18:40:07 +02:00
Benoit Marty
b7be2165a7 Move io.element.android.tests.uitests.ScreenshotTest to ui.T to generate much shorter name for screenshot files. 2023-08-17 18:09:09 +02:00
Jorge Martin Espinosa
e3cfbc113b Upgrade compose-material3 to 1.2.0-alpha05 version (#1011)
Co-authored-by: ElementBot <benoitm+elementbot@element.io>

Also upgrade compileSdk to 34.
2023-08-17 14:20:54 +02:00
Jorge Martin Espinosa
814c8edc4f Media upload cancellation (#1058)
* Initial implementation of media upload cancellation

* Add tests

* Add changelog

* Update screenshots

* Add documentation

* Fix lint issues

* Fix review comments

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-17 09:02:03 +00:00
Florian Renaud
1083b431b6 Add feature flag for polls (#1064)
* Handle poll events from the sdk

* Render started poll event in the timeline

* Create poll module

* Check poll kind before revealing the results

* Check if user has voted before revealing the results

* Add active poll previews

* Minor cleanup

* Update todos

* Fix CI

* Remove hardcoded string

* Update preview

* changelog file

* Update screenshots

* Use CommonPlurals

* Set poll root view as selectableGroup

* Improve poll result rendering

* Update screenshots

* Add missing showkase processor

* Update screenshots

* Add feature flag for polls

* Add supporting text in PreferenceCheckbox

* Render poll events if feature flag is enabled

* changelog

* Update screenshots

* Fix tests

* Move feature flag check to poll factory

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-16 15:14:38 +00:00
Jorge Martin Espinosa
9cb2424101 Add workaround for blur in ElementLogoAtom for OS < 9. (#1061)
* Add workaround for blur in `ElementLogoAtom` for OS < 9.

* Update screenshots

* Pass `useBlurredShadow` to `ElementLogoAtom`

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-16 15:13:49 +00:00
Florian Renaud
f2d1658ffa "View only" polls in the timeline (#1031)
* Handle poll events from the sdk

* Render started poll event in the timeline

* Create poll module

* Check poll kind before revealing the results

* Check if user has voted before revealing the results

* Add active poll previews

* Minor cleanup

* Update todos

* Fix CI

* Remove hardcoded string

* Update preview

* changelog file

* Update screenshots

* Use CommonPlurals

* Set poll root view as selectableGroup

* Improve poll result rendering

* Update screenshots

* Add missing showkase processor

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-16 14:19:12 +00:00
Jorge Martin Espinosa
e248920909 [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
a04cb2963c 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
53e80e6b5d [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
37a4d49494 [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
0773e99216 [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
af932b31c4 [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
30c513b1b5 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
8fd71b4126 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
75137c1469 Fix detekt issues in develop (#1004)
Co-authored-by: Marco Romano <marcor@element.io>
2023-07-31 14:01:08 +02:00
ElementBot
cac4aa6f42 Update screenshots 2023-07-28 14:24:03 +00:00
ElementBot
8c363602c0 Update screenshots 2023-07-27 14:33:34 +00:00
Jorge Martin Espinosa
e351e87dbc [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
9bd97ad329 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
c7d5baa356 Update screenshots 2023-07-26 12:12:39 +00:00
ganfra
c6e023b053 Add consumeItemsUntilPredicate to check how it goes... 2023-07-26 13:07:11 +02:00
ganfra
b96b0b10f5 Turbine: introduce consumeItemsUntilTimeout 2023-07-25 18:37:32 +02:00
ElementBot
fa963dcc11 Update screenshots 2023-07-25 14:20:05 +00:00
Benoit Marty
bbd6399c65 Merge pull request #952 from vector-im/feature/bma/fixPushStoreCrash
Fix push store crash
2023-07-25 09:43:37 +02:00
Benoit Marty
0594db1379 Merge pull request #947 from vector-im/feature/bma/sentry
Sentry
2023-07-24 13:54:06 +02:00