RoomMemberDetailsScreen (#727)

* generated files

* Revert "generated files"

This reverts commit f62c1dbcd9e505083ad4ff17532e2c054e253187.

* renaming files to RoomMembersList

* completed the renaming of the list files

* added generated files

* basic setup of the view and the mock

* added a new mock with a avatar

* share/copy link

* copyUserLink implemented

* removed unimplemented tests

* block user UI

* navigation to room member details added

* implemented but we require a sync from the Rust side

* adjusted some UI test screens

* alert for unblocking

* completed

* some tests

* changelog

* some unit tests

* improved the tests

* removed unused comment

* Update ElementX/Sources/Services/Room/RoomProxy.swift

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

* optional displayName

* removing toggle

* removed cancel title

* Update UnitTests/Sources/RoomMemberDetailsViewModelTests.swift

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

* removing Group

* pr suggestion

* better naming

* removed capitalizingFirstLetter

* Update ElementX/Sources/Other/Extensions/Alert.swift

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

* trailing closure

* removed useless catch clause

* naming conformed to ignore

---------

Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
This commit is contained in:
Mauro
2023-03-24 20:27:47 +01:00
committed by GitHub
parent 9cd38d1a4c
commit 8daa23b27a
41 changed files with 835 additions and 94 deletions
@@ -18,9 +18,8 @@ import ElementX
import XCTest
class RoomMemberDetailsScreenUITests: XCTestCase {
func testInitialStateComponents() {
let app = Application.launch(.roomMemberDetailsScreen)
app.assertScreenshot(.roomMemberDetailsScreen)
func testInitialStateComponentsForAccountOwner() {
let app = Application.launch(.roomMemberDetailsAccountOwner)
app.assertScreenshot(.roomMemberDetailsAccountOwner)
}
}
@@ -0,0 +1,26 @@
//
// Copyright 2022 New Vector Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
import ElementX
import XCTest
class RoomMembersListScreenUITests: XCTestCase {
func testInitialStateComponents() {
let app = Application.launch(.roomMembersListScreen)
app.assertScreenshot(.roomMembersListScreen)
}
}
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5afc94645db66763519ca354f302e3e3ca5e380c9a7a9b6d634b4fc9ed98c31c
size 73131
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1d6d23f2c8fb88c9baeab1181bbc1a59dc07fc36da4d9f3192f4e3d943e60a70
size 150567
oid sha256:abfabc7f8c5f26e407e1f6263678bff477afb1e44dff8f5d612e76cd367e41da
size 152690
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:65b9fb1f561d907511a365a893840e638fdab7905a16a3a67e8136ea86a7ae6d
size 77514
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7533db27ed76004d975897520ea841421fb54aa77c9966330e41771ef7c18dba
size 91562
oid sha256:90e6f07709c9cad3b3c2b085eaff8f546c1ff5b67d6f010c075c2a3b7ec78570
size 91291
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7d267a4f41ee25c78e7beba699d89f67fa03da101a7b2cf30a973731cc38267f
size 116394
oid sha256:02de3604c91bc4566ebb8a4805906f6567b6fb96c9e7d773a1e4351c57c6950e
size 116185
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5afc94645db66763519ca354f302e3e3ca5e380c9a7a9b6d634b4fc9ed98c31c
size 73131
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d52f746ba47e31fb6aaa72dc7def6cd3ce9bde9a32eb2bbe7ad0da16d2249745
size 109874
oid sha256:f53cb9fcc716b9d58c78a6fd31f6181c9ccee3561d53c0850fa8b0c586637241
size 109441
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f7d2db5f50221fcea17f3f0453b5098cae0dbdf16a1d531d34ad5656917481c4
size 146955
oid sha256:488bbb53e818a65a3b7e9aeeb362477c5550acca91296f5f994534a8271e7f7b
size 148772
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:65b9fb1f561d907511a365a893840e638fdab7905a16a3a67e8136ea86a7ae6d
size 77514