Session Order Adjustment
Nucleic-Session: 19C20841-87D4-45F9-A5AD-EBB92B735F82 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -140,10 +140,7 @@ private struct SplitSidebar: View {
|
||||
/// Live sessions grouped under their project (dashboard order), with anything whose project
|
||||
/// isn't in the dashboard collected into a trailing "Other" group. Attention-first sort.
|
||||
private var projectGroups: [(name: String, rows: [WireSessionSummary])] {
|
||||
let live = store.liveSessions.sorted {
|
||||
let a = StatusStyle.sortRank($0), b = StatusStyle.sortRank($1)
|
||||
return a == b ? $0.updatedAt > $1.updatedAt : a < b
|
||||
}
|
||||
let live = store.liveSessions.sorted(by: StatusStyle.attentionThenRecency)
|
||||
var groups: [(name: String, rows: [WireSessionSummary])] = []
|
||||
var placed = Set<SessionID>()
|
||||
for project in store.dashboard.projects {
|
||||
|
||||
Reference in New Issue
Block a user