Watch: keep Recent past 10 behind an N more row with a full list, and settle all in one call
This commit is contained in:
1 parent
2a127327bf
commit
a5222e14e8
13 files changed
+384
-52
No files matched your search
@@ -52,11 +52,17 @@ struct SnapshotTests {
|
||||
@Test func recentWithSettleAll() async throws {
|
||||
let feed = try await DemoGateway().feed()
|
||||
try write(feedColumn {
|
||||
RecentHeader(recent: feed.recent)
|
||||
RecentHeader(recent: feed.recent, more: feed.moreRecent)
|
||||
ForEach(feed.recent) { StatusCard(item: $0) }
|
||||
MoreRecentRow(count: feed.moreRecent)
|
||||
}, "feed-recent.png")
|
||||
}
|
||||
|
||||
@Test func fullRecentList() async throws {
|
||||
// The preview model has every demo Recent thread loaded.
|
||||
try write(titled("Recent", RecentView(scrolls: false)), "recent.png")
|
||||
}
|
||||
|
||||
@Test func subagentThread() async throws {
|
||||
let detail = try await DemoGateway().thread(hostId: "mac-mini", threadId: "t-homelab")
|
||||
try write(titled("Thread", ThreadView(hostId: "mac-mini", threadId: "t-homelab", detail: detail, scrolls: false)), "thread-subagent.png")
|
||||
|
||||
Reference in new issue
Block a user