Commit 56043c8483

56043c8483c93521586a536df0e18511931a280f

parent: 104dd73fbc

Unsigned

cmc <hello@cleberg.net> · 2026-09-07 22:09 UTC

MR state filter: the source-gone segment is one word (!85)

Five segments share a phone's width and "Source gone" truncated to "Source…" on an iPhone 16. The segment now reads "Gone"; rows and chips still say "source gone" in full. Unit test updated; not screenshot-verified, since no signed-in simulator remains after the smoke token was revoked.

Layout: unified · split

gitbay/MRs/MRFilter.swift +4 −1
@@ -10,8 +10,11 @@ nonisolated struct MRFilter: Equatable, Sendable {
1010 case all
1111
1212 var id: String { rawValue }
13 /// Segment text. Five segments share a phone's width, so the
14 /// source-gone state is one word; the rows and chips still say
15 /// "source gone" in full.
1316 var label: String {
14 self == .sourceGone ? "Source gone" : rawValue.capitalized
17 self == .sourceGone ? "Gone" : rawValue.capitalized
1518 }
1619 }
1720
gitbayTests/ListFilterTests.swift +1 −1
@@ -107,7 +107,7 @@ struct MRFilterTests {
107107 var f = MRFilter()
108108 f.state = .sourceGone
109109 #expect(f.flags() == ["--state", "source_gone"])
110 #expect(MRFilter.State.sourceGone.label == "Source gone")
110 #expect(MRFilter.State.sourceGone.label == "Gone")
111111 }
112112
113113 @Test func everyStateTheCommandAcceptsIsOffered() {