Commit Graph

1600 Commits

Author SHA1 Message Date
Benoit Marty
51e663ffdc Account management with OIDC: split account and session management. #1303 2023-09-14 16:38:13 +02:00
Benoit Marty
aa22e731f9 Import English strings from Localazy 2023-09-14 16:33:09 +02:00
David Langley
433c3554f8 Merge pull request #1304 from vector-im/dla/feature/connect_sdk_to_global_notifications_ui
Add global notification settings
2023-09-14 11:17:11 +01:00
Marco Romano
6d6a346369 Change "anonymous" copy in the create poll screen (#1325) 2023-09-14 12:12:49 +02:00
Jorge Martin Espinosa
b7e0befc6a Fix long click on simple formatted messages (#1327) 2023-09-14 11:51:10 +02:00
David Langley
3c03bd7f71 Fix warning for removed call notification setting code. 2023-09-14 09:51:45 +01:00
David Langley
cf3fd06c7e Merge branch 'develop' into dla/feature/connect_sdk_to_global_notifications_ui 2023-09-13 21:15:03 +01:00
David Langley
ef84996ba3 lint 2023-09-13 21:14:37 +01:00
David Langley
7b8a73096c - Remove call notification toggle 2023-09-13 21:12:16 +01:00
David Langley
a1a9b57df7 Address PR review comments.
- use util startNotificationSettingsIntent.
- add documentation.
- use remember with userPushStoreFactory for recomposition.
2023-09-13 21:03:52 +01:00
Jorge Martin Espinosa
c1ae0ead3b Fix top padding in room list when app is opened in offline mode (#1299)
* Fix top padding in room list when app is opened in offline mode

* Fix `avatarBloom` not passing the `bottomSoftEdgeColor` to `bloom`
2023-09-13 15:13:15 +00:00
Marco Romano
1fdcdff4b8 Poll Creation: Switch focus to newly added option field when clicking "Add option". #1294
Poll Creation: Switch focus to newly added option field when clicking "Add option".
2023-09-13 16:59:17 +02:00
Jorge Martín
dfdd8e59f7 Request focus after adding an answer 2023-09-13 16:35:32 +02:00
Marco Romano
b860bd30bd GRemove the @JvmField annotation whenever using WarmUpRule. 2023-09-13 15:19:26 +02:00
David Langley
827dd35791 Enabled NotificationSettings by default, Fix spacing, use activeMemberCount for isOneToOne.
- Enabled Notification Settings by default
- Fix spacing
- Use activeMemberCount for isOneToOne
2023-09-13 14:18:28 +01:00
David Langley
50211a49bc Merge branch 'dla/feature/connect_sdk_to_global_notifications_ui' of https://github.com/vector-im/element-x-android into dla/feature/connect_sdk_to_global_notifications_ui 2023-09-13 13:22:11 +01:00
David Langley
d7b820e474 Use CommonStirngs 2023-09-13 13:22:05 +01:00
Marco Romano
1144cee572 Poll Creation: Switch focus to newly added option field when clicking "Add option".
- Also scrolls the list to make the "Add option" button visible for further additions.
2023-09-13 14:12:58 +02:00
David Langley
91cf00a3c4 Merge branch 'develop' into dla/feature/connect_sdk_to_global_notifications_ui 2023-09-13 13:00:11 +01:00
David Langley
ccd684ea40 Add tests, mocks and lint 2023-09-13 12:44:22 +01:00
Marco Romano
55f51a01a0 Improve ListItem logical item grouping 2023-09-13 13:43:54 +02:00
Marco Romano
47f030cffe Test analytics when sending messages (#1296)
Covers changes in https://github.com/vector-im/element-x-android/pull/1288
2023-09-13 13:43:17 +02:00
Marco Romano
c3e595bf4f Set proper progress indicator track color on polls (#1295)
Not yet a semantic color, so hardcoding it.
2023-09-13 11:51:29 +02:00
jonnyandrew
d5b01ac0b4 [Rich text editor] Add feature flag for rich text editor (#1289) 2023-09-13 08:17:02 +00:00
Marco Romano
f136a308b2 Send composer analytics when sending a message (#1288)
Composer event are not sent to posthog when sending messages.

After investigation I've found that in `MessageComposerPresenter` the `analyticsService.capture()` call is invoked in the `SetMode` event handler rather than in the `SendMessage` event handler.

This change should result in the desired behavior.
2023-09-13 07:59:57 +02:00
David Langley
7d95feadc1 Merge branch 'develop' of https://github.com/vector-im/element-x-android into dla/feature/connect_sdk_to_global_notifications_ui 2023-09-12 16:30:36 +01:00
Marco Romano
5b018fd308 Polls analytics (#1285)
Send poll analytics event (creation, vote, end) where appropriate.
2023-09-12 16:03:40 +02:00
Benoit Marty
aeaf3409bf Merge pull request #1271 from vector-im/feature/bma/replyCondition
Reply action: harmonize condition
2023-09-12 15:13:40 +02:00
Benoit Marty
eccb793be4 Renane fun. 2023-09-12 15:13:19 +02:00
Benoit Marty
878e25a565 Merge pull request #1286 from vector-im/feature/bma/timestampAlign
Timestamp align
2023-09-12 15:02:51 +02:00
Benoit Marty
2913e2b3ff Fix overlapping issue - still not perfect when text is on several lines. 2023-09-12 14:28:49 +02:00
Jorge Martin Espinosa
07d63298be [Compound] Improve Bloom (#1272)
* Improve Bloom:
  - Simplify bloom blurred image.
  - Display very subtle bloom for avatars with soft colors.
* Improve caching and performance

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-09-12 14:02:59 +02:00
Marco Romano
5ddaf0547f Update analytics sdk to v0.8.0 (#1284)
Integrates a few breaking changes introducing a `messageType` Composer prop:
- Sends `messageType` = Text by default in composer.
- Refactors existing location analytics to send the appropriate `messageType`.
2023-09-12 14:01:33 +02:00
Marco Romano
aa67dfb17a New icons for Poll and Poll end (#1280)
Now both icons come from our designs and have a consistent size and padding (previously the poll one was coming from the material icons).
2023-09-12 13:35:26 +02:00
Benoit Marty
c4f2ecbe78 Attempt to add extra spacing for Document (#1228) 2023-09-12 13:20:29 +02:00
David Langley
2f6f28bfbb Implement Notification Settings
- Add UI and logic to inform the user of mismatched notification settings and help them correct it.
- Display a warning when the system notification settings are disabled and a link out to the app settings.
- A toggle to disable notifications for the device
- A screen for editing the group and direct chat notification defaults.
- A toggle for switching on/off atRoom and call notifications.
2023-09-12 01:11:13 +01:00
Benoit Marty
d626243834 Disable swipe to reply action for unsupported events. 2023-09-11 16:23:29 +02:00
Benoit Marty
a14f13a2a2 Hide Reply action if user cannot post to the room. 2023-09-11 16:02:26 +02:00
Jorge Martin Espinosa
94dc6f41e2 [Compound] Bloom (#1253)
* Add `bloom` and `avatarBloom` modifiers.

* Add `ConnectivityIndicatorContainer` to control the padding needed at the top.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-09-11 15:43:23 +02:00
Benoit Marty
0a8e6ad073 Merge pull request #1268 from vector-im/feature/bma/moreTrace
Add SDK trace item, set RUST_BACKTRACE and be able to configure trace before a session exists.
2023-09-11 12:34:32 +02:00
Benoit Marty
04a132373a Fix and add test. 2023-09-11 12:12:48 +02:00
Benoit Marty
fad442760d Now that we use a cache, there is no need to provide AvatarColors to the Avatar composable. 2023-09-11 10:55:26 +02:00
Benoit Marty
5a85efc458 Implement a in-memory cache for user avatar colors. 2023-09-11 10:55:26 +02:00
Benoit Marty
82bc4b9917 Fix preview 3 of AddPeopleView. 2023-09-11 10:55:26 +02:00
Benoit Marty
8cb84576be Add @OptIn(ExperimentalCoroutinesApi::class)
Fix warning on runCurrent()
2023-09-11 10:55:26 +02:00
Benoit Marty
d4f286a821 Reorder params. 2023-09-11 10:40:49 +02:00
Benoit Marty
6864b65962 Add a way to configure tracing when the session does not exist yet. 2023-09-11 09:58:40 +02:00
Benoit Marty
bb1b1f0253 Add ConfigureTracingEntryPoint to be able to access the screen from outside the Preference screen. 2023-09-11 09:57:45 +02:00
Benoit Marty
5f77740533 Iterate on tracing configuration
- Add targets matrix_sdk, matrix_sdk::client and matrix_sdk::oidc
- introduce default log level.
2023-09-11 08:57:09 +02:00
Jorge Martin Espinosa
f03cbc1c2e Make sure notification permission screen is dismissed (#1263)
* Make sure notification permission screen is dismissed
2023-09-11 07:54:44 +02:00