Session Order Adjustment

Nucleic-Session: 19C20841-87D4-45F9-A5AD-EBB92B735F82
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-05 04:13:38 -07:00
co-authored by Nucleic
parent 359f4ab452
commit 86f6b308c6
@@ -10,10 +10,7 @@ struct SessionsView: View {
private var grouped: [(title: String, rows: [WireSessionSummary])] {
let pool = (showArchived ? store.sessions : store.liveSessions)
.sorted {
let a = StatusStyle.sortRank($0), b = StatusStyle.sortRank($1)
return a == b ? $0.updatedAt > $1.updatedAt : a < b
}
.sorted(by: StatusStyle.attentionThenRecency)
let needs = pool.filter { $0.status.needsYou($0.disposition) }
let running = pool.filter { $0.status == .running || $0.status == .provisioning || $0.status == .idle }
let done = pool.filter { !needs.contains($0) && !running.contains($0) }