Knocked Preview implementation (#3426)

* JoinRoomScreen ui for knocking

* code improvement

* updated previews

* added knocked state with tests

* send knock request

* Apply suggestions from code review

Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>

* pr comments

* update tests

* new API

* knock implementation and cancel knock

* update strings

* added a knocked cell in the home screen

* design update

* updated SDK

* simplified the invite case code

* pr comments

* updated previews

* added message as reason

* updated strings

* fixing tests

---------

Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
This commit is contained in:
Mauro
2024-10-24 17:23:06 +02:00
committed by GitHub
parent 7d373c07a3
commit 2511c98090
48 changed files with 492 additions and 120 deletions
@@ -245,6 +245,12 @@ extension PreviewTests {
}
}
func test_homeScreenKnockedCell() {
for preview in HomeScreenKnockedCell_Previews._allPreviews {
assertSnapshots(matching: preview)
}
}
func test_homeScreenRecoveryKeyConfirmationBanner() {
for preview in HomeScreenRecoveryKeyConfirmationBanner_Previews._allPreviews {
assertSnapshots(matching: preview)
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:37d4585f90bb64bf739101413ed1a7e24db10161670bd0ba38409e146b31645f
size 175190
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:216f3373784519707d3659d6282a1c59202f189407c2f1226bdff510a5f9261c
size 188573
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c674069ca803e934769bb070a528e415ca12de00f722fbb67bf0624a1f24305f
size 120759
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1d39cc8560c7f57e27764b782dd5ef07e31d883d265f675d8e4f394dccd82e69
size 142235
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:227bd893c17ef8a6042e6eab9372eb78c3cbb631c4b232f13d6e6f0179ce02c7
size 1982377
oid sha256:d5b3a8bd64746aad774b15fc3e3500bbab4144d64ed4f8714f9b2527c70a494c
size 1990774
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:146c20f80acac9bf9497aa93562cb930bea02e6fb82507d971a22c26bf3e28a6
size 1946311
oid sha256:b6be25a2a046c3d1088ae6f87e4e1e0033062225c624095d679f1083ffe538b6
size 1945746
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:adb3e3a08681e2febea9cd377862eededc6b576bfe06c753bf075eb886f55f9f
size 1788568
oid sha256:46447c25230d95f04d122924d938f6f4b5eacd633140e586c3c276322f8e8b75
size 1791354
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:47bda34db0009a5f2d04a9ab3fdb761d9efb266046c85abf786051ec3d30f081
size 1973723
oid sha256:e0070dcdfe989211600c14fdb7b96af79cfb2b50ae8c3d560f7fe738b368be48
size 1982637
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:efda9145642c0bef47507f9de249565cb09897bfed8f4fa6ae79ec792c067fb5
size 1890674
oid sha256:c85ef3dcec00111c6c6bb9fe6cfbb1f2bbf332631cc681ea41642f411a4c761e
size 1890475
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:91e9b65c2ad0972f12351bad8d93c627a9d73a87cb22356cd9fc53c81625ed7d
size 1983445
oid sha256:41f91af2b20ff571cdf281d4dedaf1f6749a8fdaf33508a1b70511ef6e477af4
size 1995837
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:48852e2e65d9c3000b2069521628f577426801ab4a804a1f30100540a573bc66
size 1947292
oid sha256:daf1b08dbe20c63aa66d1c16e3bc41fdc92a54ad4f143ccfcd9ca8382964a0fe
size 1946727
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:338b8be69ace718a2796101e2ccfbe93dca412e299279a6078b785fec10e7e4b
size 1797161
oid sha256:08e0296e33a657e0c42f95cb2e4963cb8f32c3a37979262cd76bc4c3ac3a7132
size 1799819
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7d768cff2a5e42c223808f4fc3b1b3f7fbfe13d94711ae2ddeb77d24c2088517
size 1990759
oid sha256:8283d5d60db3b91caa096216e4dbb1d5e5342375080c81e5814acbb01b41c8c9
size 2000079
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b1e33030ab7373ae71f3ac6b2580a1187f8ec21d81da94831a3f8ea6fdbcfc0a
size 1895360
oid sha256:0fde3ae365ead45c6789493ec6dcd5569f420d823d778ebe2549b36e1076052a
size 1895270
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b5bb2adb3c27c6adad8d72174d662688ce1b40a90d748b00354717abf5d37f56
size 817765
oid sha256:616a8a5fe92ef87797d9a69bd5d7581e685edad21b002bf079d1a02fdb782987
size 827638
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:eca394ab7064165321d8eba0c1110b56c5e815260cef52f69cc61ec7c4bc7d3b
size 796819
oid sha256:6d7390ef83a9fb7e8887aff95c03282d4fbcf3826cf3e254d523373a2c434df0
size 798961
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0be47f8b5c89c0d03e4713e32686c457452851ccc246bf4588f5cb5f82fdbabc
size 701611
oid sha256:3f9518a386e4c12c9e1527eb5f841fb0ca56fc8658529b58d6d459376caca39b
size 705027
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6f21b9720b09a4fdc89f4f1f25548200d159b404ed6431693defe99c401f99d2
size 812339
oid sha256:19d3b48e373ed4e263c9cb0f6e5a3566a9c6612f19da8468be420eca0a10cd92
size 819795
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c001018d811bda7d9db87503f38d94dc23a2102bc134d08b69e3af171ecbf350
size 755374
oid sha256:068da1ad317aefc4ebed25f4ac259cd5fe46a5ce444b6e22051455d69bfea78e
size 756893
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9a922e59c0fec9924f16c3e224af836de79d818fab3e686c1fb34c707be1fc23
size 820225
oid sha256:6ecca9bbfa7a1d245a96fc27aacfb5d60931ba1437639ebd8e9ff1756bd705c6
size 835366
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7fb7955f605d2ad9e5678438af15a1a354baab5f00e59ca0ff458759e93d76b1
size 798533
oid sha256:450d28a2af4b81f2db2e8a1fb28405d029439cabf5f48688b448391dd7e43b05
size 800675
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:471ae5bf707a3f9e91b7f8cea098287bb21d618297d027a72c105575b5049ff8
size 709284
oid sha256:858759589a323ce04e894f398c230c0454f64a3c3148b183f9ecdbeb29955b89
size 714177
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7ae617786ed8ee75c55bf33222bdf80faca1dac30a5d0fca84175e3ed7f42d9f
size 829745
oid sha256:eb3a1c2ac88a74a4f9c402a46a8512abc2596937b92c3d17fa30a7cdf10ce22a
size 835796
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:93d65076d29abb7a6476b649fae781a8be6bad9d4b905c8251b7253498af3d3e
size 761944
oid sha256:eaa7027ce0d6ba02e75bc6b35cd7080a4cf217e6d36b3aa2bcebfce6355ad117
size 763528