Reaction highlights (#1145)

* Highlight own reactions

- Highlight own reactions on timeline and improve style.
- Highlight reactions on message bottom sheet only when it our own.

* Improve overlay background colours

* pin to new sdk version

* Remove the red used for debug.

* Fix padding, overlap and only display count if > 1.

- Fix reaction padding and overlap of reaction and bubble.
- Only display count if greater than 1.
- Return EmptyView for TimelineDeliveryStatus.cancelled.

* Fix colors as per design recommendations.

* Add Snapshot tests for reactions and documentation.

- Add UITests for the timeline including reactions.
- Add the reference snapshots.
- Add documentation on how to run snapshot tests and update the reference snapshots.

* Fix Package.resolved
This commit is contained in:
David Langley
2023-06-25 13:24:48 +01:00
committed by GitHub
parent 41772b57eb
commit 13decc668a
12 changed files with 64 additions and 13 deletions
+6
View File
@@ -161,6 +161,12 @@ class RoomScreenUITests: XCTestCase {
try await app.assertScreenshot(.roomSmallTimelineWithReadReceipts)
}
func testTimelineReactions() async throws {
let app = Application.launch(.roomSmallTimelineWithReactions)
try await app.assertScreenshot(.roomSmallTimelineWithReactions)
}
// MARK: - Helper Methods
private func performOperation(_ operation: UITestsSignal, using client: UITestsSignalling.Client) async throws {
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6b77e85ff9c5f5b1d888c97af89a511f788aa9e74eb0d609659c7d81e2b89b94
size 231654
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2c6127923272006fe70a164fca243c1683d32d0227c8066f6794957567724a41
size 328078
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bfc0399661f579abcba48d2d003e710e1f54b235186d26d5fb7f6d3ffcbe235a
size 232688
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ae1da33e7d2bdddd25617f63d797c2b14c0d646645f19348d2aea2a1729a0950
size 328669