Benoit Marty
8415826a97
Import strings with Localazy.
2023-08-25 12:15:06 +02:00
Florian Renaud
360c24dd18
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
Florian Renaud
8f2647799e
Use a single preview for radio buttons with checked & unchecked states
2023-08-25 09:01:20 +02:00
Marco Romano
0abda97d6f
ListItem: Don't apply clickable modifier if onClick is null. ( #1146 )
...
If it is applied but disabled (like before this PR) it will hijack all touch input from the view and no other component in it can respond to clicks.
2023-08-24 15:11:13 +00:00
Jorge Martin Espinosa
b326ca28cc
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
e6490b3a89
Merge remote-tracking branch 'origin/develop' into feature/fre/improve_poll_event_timeline_rendering
2023-08-24 14:42:16 +02:00
Jorge Martin Espinosa
c670fc9e9c
Prevent verification while initial sync is in progress ( #1138 )
...
* Prevent verification while initial sync is in progress
* Add `canVerifySessionFlow` to simplify the check
2023-08-24 11:43:36 +00:00
Marco Romano
9fb0216272
Surface send poll start API from rust sdk ( #1140 )
...
Rust api added in: https://github.com/matrix-org/matrix-rust-sdk/pull/2391
Closes https://github.com/vector-im/element-meta/issues/2010
2023-08-24 11:54:01 +02:00
Jorge Martin Espinosa
648e2c378d
Fix sent videos being cropped ( #1124 )
2023-08-24 09:41:58 +02:00
renovate[bot]
53840c1009
Update dependency org.matrix.rustcomponents:sdk-android to v0.1.46 ( #1130 )
...
* Update dependency org.matrix.rustcomponents:sdk-android to v0.1.46
* Remove poll end code. The poll end event isn't shown in the timeline anymore.
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Marco Romano <marcor@element.io>
2023-08-24 06:43:05 +00:00
Benoit Marty
14c568dea2
Merge pull request #1127 from vector-im/feature/bma/finishOidc
...
Enable OIDC support
2023-08-23 17:01:41 +02:00
Jorge Martin Espinosa
7eb1f1c7bf
When event has no id, just cancel parsing the latest room message ( #1126 )
2023-08-23 12:50:22 +00:00
Benoit Marty
d293cae47f
Implement didRefreshTokens(): update database with updated SessionData.
2023-08-23 14:42:46 +02:00
Benoit Marty
6822e6dacb
Merge pull request #1112 from vector-im/feature/bma/fixButtonTheme
...
Fix button theme
2023-08-23 13:16:26 +02:00
Benoit Marty
bc57a03a39
Add setting entry point to manage account (OIDC)
2023-08-23 12:54:22 +02:00
Benoit Marty
6928dc6e44
Restore OIDC support.
2023-08-23 12:18:42 +02:00
Benoit Marty
7ea9512642
Simplify code (code review).
2023-08-22 18:10:49 +02:00
Jorge Martin Espinosa
1922c505ef
Make links in messages clickable again ( #1115 )
2023-08-22 15:21:43 +02:00
Florian Renaud
246e9c50e6
Do not handle poll end event
2023-08-22 10:55:18 +02:00
Florian Renaud
886c6526e8
Improve previews
2023-08-22 10:55:17 +02:00
Florian Renaud
81051295a4
Use custom RadioButton
2023-08-22 10:55:17 +02:00
Florian Renaud
079d89ace5
Update UI for poll in the timeline
2023-08-22 10:55:17 +02:00
Benoit Marty
549218eeb2
Button theme: fix small integration mistake on button padding from Figma.
2023-08-22 10:38:24 +02:00
Benoit Marty
d7b22047c6
Code clarity (no change effect): always use when with ButtonStyle.Filled, ButtonStyle.Outlined and ButtonStyle.Text cases.
2023-08-22 10:17:55 +02:00
ganfra
7898e60d59
Merge pull request #1108 from vector-im/feature/fga/fix_memory_leak_room_members
...
Fix memory leak on room members
2023-08-21 18:16:04 +02:00
ganfra
ddf542755f
Fix memory leak : parallelMap can be cancelled so all members were not destroyed
2023-08-21 17:49:39 +02:00
ganfra
380b5302f3
Update rust sdk to 0.1.44
2023-08-21 17:47:03 +02:00
Jorge Martin Espinosa
bfd938a970
Linkify raw links in HTML message contents ( #1102 )
...
* Linkify links in HTML too:
- Creates a `ClickableLinkText` for `String`.
- Adds a `linkify` parameter to the original function, which is `true` by default.
- Does the linkify logic inside that component, if `linkify` is true.
* Add changelog
* Make sure we don't linkify user mentions or room aliases.
* Use remember to avoid re-processing the text for no reason.
2023-08-21 16:31:01 +02:00
Benoit Marty
8fea775e2a
Fix deprecated API usage.
2023-08-21 14:33:47 +02:00
Jorge Martin Espinosa
0f77b4557b
[Compound] Platform components (Lists) ( #990 )
...
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-21 10:34:57 +02:00
Benoit Marty
cc3829380d
Sync Localazy strings again after removing 2 strings added by the Web team test.
2023-08-21 09:50:44 +02:00
ElementBot
ef8a60b657
Sync Strings from Localazy ( #1098 )
...
Co-authored-by: bmarty <bmarty@users.noreply.github.com>
2023-08-21 08:34:19 +02:00
Jorge Martín
1c0f773d78
Fix TextButtons being displayed in black.
...
Set the default `LocalContentColor` to `onSurface`.
2023-08-18 14:55:12 +02:00
Benoit Marty
6f91be7923
Missing cleanup
2023-08-17 18:02:52 +02:00
Benoit Marty
f0eb072a17
Merge pull request #1068 from vector-im/fix/jme/snackbar-padding
...
Fix snackbar padding
2023-08-17 17:53:54 +02:00
Benoit Marty
40fcb6b17d
Merge pull request #1057 from vector-im/sync-localazy
...
Sync Strings
2023-08-17 17:46:35 +02:00
Jorge Martín
489c4560d2
Fix snackbar padding
2023-08-17 16:01:59 +02:00
Jorge Martin Espinosa
0324719606
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
983b83a56f
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
renovate[bot]
4a630f141d
Update kotlin - TO BE MERGED AFTER THE RELEASE ( #789 )
...
* Update kotlin
* Update kotlinc.xml
* Update ksp
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Marco Romano <marcor@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2023-08-17 08:58:10 +00:00
Florian Renaud
41d0d21c80
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
75c19a7e04
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
8a62abe93e
"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
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
bmarty
b61a8a219a
Sync Strings from Localazy
2023-08-14 00:08:49 +00:00
ganfra
a911134636
Update rust sdk to 0.1.42 (changes in tracing and sync apis) ( #1055 )
...
* Update rust sdk to 0.1.42 (changes in tracing and sync apis)
* Fix sample compilation
---------
Co-authored-by: ganfra <francoisg@element.io>
2023-08-11 21:32:31 +00:00
ElementBot
38a25dc3e9
Sync Strings from Localazy ( #1032 )
...
Co-authored-by: Florian14 <Florian14@users.noreply.github.com>
2023-08-11 14:34:05 +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