Commit Graph

2571 Commits

Author SHA1 Message Date
ganfra
28db48540c Merge pull request #816 from vector-im/feature/fga/fix_loading_room_node_padding
LoadingRoomNode : fix windowInsets...
2023-07-10 15:49:51 +02:00
ganfra
5d1be53ff4 RoomNodeView: remove contentWindowInsets=systemBars as it's default one 2023-07-10 15:33:32 +02:00
ganfra
8af99fe280 LoadingRoomNodeView: ConsumeWindowInsets... 2023-07-10 15:13:32 +02:00
Jorge Martin Espinosa
9170c5eb71 Display room invitation notification (#735)
* Notifications: Add some extra mappings so we keep the original contents and can pass it later to an UI layer

* Fix notifications not appearing for a room if the app was on that room when it went to background.

* Modernize how we create spannable strings for notifications, remove unneeded dependency

* Remove actions from invite notifications temporarily

* Add `NotificationDrawerManager` interface to be able to clear membership notifications when accepting or rejecting a room invite

* Fix tests

* Add comment to clarify some weird behaviours

* Address review comments

* Set circle shape for `largeBitmap` in message notifications

* Fix no avatar in DM rooms

* Fix rebase issues

* Add invite list pending intent:

- Refactor pending intents.
- Make `DeepLinkData` a sealed interface.
- Fix and add tests.

* Rename `navigate__` functions to `attach__`

* Add an extra test case for the `InviteList` deep link

* Address most review comments.

* Fix rebase issue

* Add fallback notification type, allow dismissing invite notifications.

Fallback notifications have a different underlying type and can be dismissed at will.

* Fix tests
2023-07-10 14:34:58 +02:00
Benoit Marty
4afdccb3ed Merge pull request #826 from vector-im/feature/bma/swipeAction
Improve swipe to reply rendering
2023-07-10 13:56:29 +02:00
ganfra
d3982e447c Merge pull request #834 from vector-im/feature/fga/avoid_multiple_sync_loops
Feature/fga/avoid multiple sync loops
2023-07-10 13:37:35 +02:00
ganfra
0216a42531 Sync: add more safety to avoid some race conditions 2023-07-10 13:25:16 +02:00
Chris Smith
130c026d81 Merge pull request #824 from vector-im/misc/cjs/left-align-top-bars 2023-07-10 12:23:29 +01:00
ganfra
870b5d3fe1 Sync: should avoid having multiple sync loops 2023-07-10 13:08:55 +02:00
Benoit Marty
6bf707bf5f Merge pull request #828 from vector-im/sync-localazy
Sync Strings
2023-07-10 13:08:03 +02:00
Benoit Marty
4fb277a0c3 Add exepction for SwipeableActionsState. 2023-07-10 13:03:55 +02:00
Benoit Marty
1ec566372f avoid typo report 2023-07-10 13:02:19 +02:00
Benoit Marty
47240e208b Remove the legacy script which imports Strigns from Element Android project. 2023-07-10 12:15:41 +02:00
Benoit Marty
282369bfe2 Sync again after adding missing value in Localazy. 2023-07-10 12:14:25 +02:00
ElementBot
03d470b190 Update screenshots 2023-07-10 10:12:38 +00:00
Benoit Marty
40a0917c5e Attempt to reduce swipe sensitivity (#810) 2023-07-10 11:54:44 +02:00
Benoit Marty
39de8c1bb0 Improve preview rendering. 2023-07-10 11:52:27 +02:00
Benoit Marty
da0b4d573b Space must be above the item. 2023-07-10 11:52:27 +02:00
Benoit Marty
73074b3a68 Add missing content when canReply is false. 2023-07-10 11:52:27 +02:00
Benoit Marty
1d6bfd19f1 Improve animation of Swipe to reply: replace usage of SwipeToDismiss by Modifier.draggable 2023-07-10 11:52:27 +02:00
Benoit Marty
6e65b7db86 Fix bad modifier parameter usage. 2023-07-10 11:52:27 +02:00
Marco Romano
026296eb43 Use @DayNightPreviews for static map (#832)
* Use @DayNightPreviews for static map

To properly screenshot the dark pin.

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-10 10:45:11 +02:00
Jorge Martin Espinosa
10d5ada93d Remove extra syncService.startSync() call (#830) 2023-07-10 10:45:02 +02:00
Chris Smith
f059970db1 Merge pull request #802 from vector-im/feature/cjs/stop-editing-dms 2023-07-10 09:14:43 +01:00
Jorge Martin Espinosa
ac0b799b6e Make Showkase browser work in the nightly versions (#829) 2023-07-10 10:10:22 +02:00
Jorge Martin Espinosa
299492713e Update screenshots (#831)
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-10 09:42:34 +02:00
bmarty
0cf24610c9 Sync Strings from Localazy 2023-07-10 00:11:05 +00:00
jonnyandrew
565d943466 Truncate and ellipsize long reactions (#821)
* Truncate and ellipsize long reactions

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-08 17:53:29 +01:00
Benoit Marty
84b2415226 Merge pull request #814 from vector-im/renovate/io.nlopez.compose.rules-detekt-0.x
Update dependency io.nlopez.compose.rules:detekt to v0.1.12
2023-07-07 22:18:47 +02:00
Benoit Marty
734d2b71f7 Merge pull request #823 from vector-im/feature/bma/snackbarFix
Snackbar fix
2023-07-07 22:04:37 +02:00
Marco Romano
220a6087f9 Use @DayNightPreviews to correctly render the PinIcon in dark mode (#795)
- Fixes rendering of `-night` resources in screenshot tests by overriding the `nightMode` with `paparazzi.unsafeUpdateConfig()`.
2023-07-07 16:35:34 +02:00
Benoit Marty
50aa4946d9 Fix test. 2023-07-07 16:22:42 +02:00
Benoit Marty
15c42ff9c3 Cleanup 2023-07-07 16:15:59 +02:00
ElementBot
4fd7bc43f0 Update screenshots 2023-07-07 13:56:16 +00:00
Chris Smith
ea8ba25c45 Create room: close icon should be on the left
This is a navigation icon, which goes on the LHS of the top bar.
2023-07-07 14:46:28 +01:00
Benoit Marty
be73fc7ba2 Fix Snackbar colors. 2023-07-07 15:39:43 +02:00
Benoit Marty
f8ff8d5e09 Use the CoroutineScope from the LaunchedEffect. 2023-07-07 15:35:16 +02:00
Benoit Marty
3e9396e27c Show Snackbar once the verification is finish in the correct screen (#812) 2023-07-07 15:34:15 +02:00
ElementBot
ade86bc947 Update screenshots 2023-07-07 13:24:14 +00:00
jonnyandrew
850781444b Collapse long lists of message reactions (#806)
---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-07 13:19:11 +00:00
Benoit Marty
54d2a881b8 ignore typo. 2023-07-07 15:14:53 +02:00
Chris Smith
4f014fcde2 Add test for leaving rooms
Completely unrelated to what I was doing, but might appease the
code coverage gods?
2023-07-07 14:13:18 +01:00
Chris Smith
0f8cf50244 Room details: don't allow edits in DMs
If the room is a DM, we won't allow any editing functionality
regardless of power levels.

If there is no topic set, then the entire section is hidden,
like in rooms without a topic where you lack the power level
to change it.

Closes #799
2023-07-07 14:13:18 +01:00
Chris Smith
2b901f2678 Merge pull request #817 from vector-im/misc/cjs/drop-coverage-threshold 2023-07-07 14:08:39 +01:00
Chris Smith
85d20c7874 Remove CenterAlignedTopAppBar
Centering the titles is very iOS-y and not aligned with the material
guidelines (which say center aligned top bars are only for the main
root page in the app). They also present issues when we have titles
and textual actions that end up being quite long in other languages,
as they end up merging together.

Fixes #655
2023-07-07 13:59:05 +01:00
Chris Smith
7b6d98c7d8 Reduce code coverage threshold for presenters
Drop from 90% to 85% to allow for smaller presenters where the
number of untestable instructions generated by kotlin/compose
can reach ~10% of the entire file.
2023-07-07 13:22:28 +01:00
ganfra
e94295bef8 LoadingRoomNode : fix windowInsets... 2023-07-07 14:16:52 +02:00
Benoit Marty
2347c815a7 Merge pull request #811 from vector-im/feature/bma/verificationSnackbar
Display the "verification success" Snackbar only when the state is `VerificationFlowState.Finished`.
2023-07-07 14:12:52 +02:00
renovate[bot]
d12b6ad1a5 Update dependency io.nlopez.compose.rules:detekt to v0.1.12 2023-07-07 11:26:39 +00:00
Chris Smith
e0d5096afb Merge pull request #797 from vector-im/feature/cjs/hide-self-in-search 2023-07-07 12:26:05 +01:00