-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds Thread List UI Component (#621)
* Add threads tab to demo app * Add `NoThreadsView` implementation * Add `ThreadList` design implementation + Add `MessagePreviewFormatter` * Fix Channel List not preselecting a channel for iPads * Add background selection to Channel List items on iPad * Revert "Fix Channel List not preselecting a channel for iPads" This reverts commit 99d2699. * Revert "Add background selection to Channel List items on iPad" This reverts commit 75539ac. * Add `ChatThreadList` + `ChatThreadListNavigatableItem` * Add `ChatThreadListLoadingView` implementation and handle empty and loading states * Add `ChatThreadListHeaderViewModifier` implementation * Fix Channel List shimmering effect and improve shimmering animation * Add the possibility to customise the background of Thread List * Add `ChatThreadListErrorBannerView` * Add `ChatThreadListFooterView` + Loading More Theads * Add mark thread read logic to `ChatChannelViewModel` * Add markThreadAsUnreadAction when message is the root of a thread and inside a thread view * Fix double mark unread action * Add `ChatThreadListHeaderView` to display new available threads * Add thread selection logic to iPad * Add a modifier that wraps the thread list so that the list can be customized based on state changes * Update CHANGELOG.md * Add missing comments to Thread List View Model * Add more doc comments to public views * Add background color when a thread is selected on iPad * Add background color when a channel is selected on iPad * Fix Channel List not preselecting channel in iPad * Update CHANGELOG.md * Add Thread List Item test coverage * Add test coverage to ChatThreadListView * Add Thread List View Model test coverage * Fix snapshot tests * Remove ChatThreadListScreen since it is not needed * Fix changelog typoe * Do not pass colors to the view factory * Use message preview formatter from utils * Forgotten public inits * Remove unused properties in Thread List View * Remove unused colors and utils from ChatThreadListViewModel * [CI] Snapshots * Missing public inits * Fix glitch in loading view * Add missing comments to some public views * Fix layout shift when a thread has a new unread message * Add `ChatThreadListItemViewModel` to make it easier for customers to reuse formatting logic * Fix thread list item view test not compiling * [CI] Snapshots --------- Co-authored-by: Stream Bot <[email protected]> Co-authored-by: Stream Bot <[email protected]>
- Loading branch information
1 parent
9a9e8a1
commit 6c5cfeb
Showing
60 changed files
with
2,352 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
{ | ||
"entries": { | ||
"brew": { | ||
"mint": { | ||
"version": "0.17.5", | ||
"bottle": { | ||
"rebuild": 0, | ||
"root_url": "https://ghcr.io/v2/homebrew/core", | ||
"files": { | ||
"arm64_sequoia": { | ||
"cellar": ":any_skip_relocation", | ||
"url": "https://ghcr.io/v2/homebrew/core/mint/blobs/sha256:a754e28b7b9e4e13c31af783857de64d2550b8866c2c9eb3ac9216154ab0f25a", | ||
"sha256": "a754e28b7b9e4e13c31af783857de64d2550b8866c2c9eb3ac9216154ab0f25a" | ||
}, | ||
"arm64_sonoma": { | ||
"cellar": ":any_skip_relocation", | ||
"url": "https://ghcr.io/v2/homebrew/core/mint/blobs/sha256:ada351985ef562807e7460f869c527bb314600311738a944219225226f43addf", | ||
"sha256": "ada351985ef562807e7460f869c527bb314600311738a944219225226f43addf" | ||
}, | ||
"arm64_ventura": { | ||
"cellar": ":any_skip_relocation", | ||
"url": "https://ghcr.io/v2/homebrew/core/mint/blobs/sha256:250948fe6fc14179d7c381d084a90d6796861ba9a8456617cadda9ac62cbc2b8", | ||
"sha256": "250948fe6fc14179d7c381d084a90d6796861ba9a8456617cadda9ac62cbc2b8" | ||
}, | ||
"arm64_monterey": { | ||
"cellar": ":any_skip_relocation", | ||
"url": "https://ghcr.io/v2/homebrew/core/mint/blobs/sha256:6546b80b980a45036415162189dd340b1f8d3f4e82a80d40a24e7b5dd672eb04", | ||
"sha256": "6546b80b980a45036415162189dd340b1f8d3f4e82a80d40a24e7b5dd672eb04" | ||
}, | ||
"arm64_big_sur": { | ||
"cellar": ":any_skip_relocation", | ||
"url": "https://ghcr.io/v2/homebrew/core/mint/blobs/sha256:39f9d254b248a44bb44e399081b7e50a6c598834e2bf86bb7de3ebc349f11e0d", | ||
"sha256": "39f9d254b248a44bb44e399081b7e50a6c598834e2bf86bb7de3ebc349f11e0d" | ||
}, | ||
"sonoma": { | ||
"cellar": ":any_skip_relocation", | ||
"url": "https://ghcr.io/v2/homebrew/core/mint/blobs/sha256:154b8b94602d6d38249cfa936f7d071d9113935b3756d5781021fe04c3971e29", | ||
"sha256": "154b8b94602d6d38249cfa936f7d071d9113935b3756d5781021fe04c3971e29" | ||
}, | ||
"ventura": { | ||
"cellar": ":any_skip_relocation", | ||
"url": "https://ghcr.io/v2/homebrew/core/mint/blobs/sha256:068f9984e81b578f2ed6cef4cc9659835a689bdecf121651ea24ebcfefd49339", | ||
"sha256": "068f9984e81b578f2ed6cef4cc9659835a689bdecf121651ea24ebcfefd49339" | ||
}, | ||
"monterey": { | ||
"cellar": ":any_skip_relocation", | ||
"url": "https://ghcr.io/v2/homebrew/core/mint/blobs/sha256:f8b09a640942548a151c7450c85f33d40162c7540049666131740d49c68e61e6", | ||
"sha256": "f8b09a640942548a151c7450c85f33d40162c7540049666131740d49c68e61e6" | ||
}, | ||
"big_sur": { | ||
"cellar": ":any_skip_relocation", | ||
"url": "https://ghcr.io/v2/homebrew/core/mint/blobs/sha256:528ea907912e8002cd3a769e8ddda4556cf2482122c3f848a7d923146df37101", | ||
"sha256": "528ea907912e8002cd3a769e8ddda4556cf2482122c3f848a7d923146df37101" | ||
}, | ||
"x86_64_linux": { | ||
"cellar": "/home/linuxbrew/.linuxbrew/Cellar", | ||
"url": "https://ghcr.io/v2/homebrew/core/mint/blobs/sha256:7c8dd63f0310a46f67550f92ee48a370fadfc1a4d884b8a3904a36b7b610b3f2", | ||
"sha256": "7c8dd63f0310a46f67550f92ee48a370fadfc1a4d884b8a3904a36b7b610b3f2" | ||
} | ||
} | ||
} | ||
}, | ||
"sonar-scanner": { | ||
"version": "6.2.1.4610", | ||
"bottle": { | ||
"rebuild": 1, | ||
"root_url": "https://ghcr.io/v2/homebrew/core", | ||
"files": { | ||
"all": { | ||
"cellar": ":any_skip_relocation", | ||
"url": "https://ghcr.io/v2/homebrew/core/sonar-scanner/blobs/sha256:5e24f759a690b4abb55737325a6c9e94d42b2235abd0e93021306d6016d967e6", | ||
"sha256": "5e24f759a690b4abb55737325a6c9e94d42b2235abd0e93021306d6016d967e6" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"system": { | ||
"macos": { | ||
"sonoma": { | ||
"HOMEBREW_VERSION": "4.4.0", | ||
"HOMEBREW_PREFIX": "/opt/homebrew", | ||
"Homebrew/homebrew-core": "api", | ||
"CLT": "16.0.0.0.1.1724870825", | ||
"Xcode": "15.4", | ||
"macOS": "14.7" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.