Commit f39ba0744e
Copy SHA
f39ba0744efe77f5e1e0212d58eba0070114a615
parent: 640a8729ac
Verified · cmc
cmc <hello@cleberg.net> · 2026-10-09 05:35 UTC
Agenda: shorter past-scheduled gutter
Past-scheduled rows show "5w ago" instead of "Sched. 5w ago"; the scheduled icon and "ago" (against "late" for deadlines) carry the kind. The iOS gutter keeps its text on one line, scaling down to 0.8 for long ages.
Changed files (4)
Sources/OrgPresentation/AgendaRows.swift
+2 −2 · view
@@ -42,7 +42,7 @@ public struct AgendaEvent: Sendable, Equatable, Identifiable {
42 42 // /
43 43 // / T h e g u t t e r h o l d s t h e t i m e ( ` 0 8 : 0 0 ` , ` 1 3 : 5 0 – 1 4 : 3 0 ` ) o r , u n t i m e d , a s h o r t s t a t u s :
44 44 // / d e a d l i n e s ` D u e t o d a y ` , ` D u e i n 2 d ` , ` 3 d l a t e ` , ` D u e ` ( o n a d a y o t h e r t h a n t o d a y ) ;
45 // / s c h e d u l e d ` S c h e d u l e d ` , ` S c h e d . 4 d a g o ` ; h a b i t s ` H a b i t ` ; t i m e s t a m p s , d i a r y s e x p s a n d
45 // / s c h e d u l e d ` S c h e d u l e d ` , ` 4 d a g o ` ; h a b i t s ` H a b i t ` ; t i m e s t a m p s , d i a r y s e x p s a n d
46 46 // / c a l e n d a r e v e n t s ` A l l d a y ` ; r a n g e s ` D a y 2 / 5 ` ; l o g m o d e ` C l o s e d ` , ` C l o c k e d ` , ` S t a t e ` ; T O D O
47 47 // / a n d m a t c h l i s t s n o t h i n g . A g e s u s e ` A g e n d a A g e . c o m p a c t ` .
48 48 public struct AgendaRow : Sendable , Equatable , Identifiable {
@@ -115,7 +115,7 @@ public struct AgendaRow: Sendable, Equatable, Identifiable {
115 115 } else {
116 116 icon = . scheduled
117 117 let on = planning ? ? day
118 untimed = on < day ? " Sched. \( AgendaAge . compact ( day - on ) ) ago " : " Scheduled "
118 untimed = on < day ? " \( AgendaAge . compact ( day - on ) ) ago " : " Scheduled "
119 119 }
120 120 status = late ? . overdue : . normal
121 121 case . timestamp , . sexp :
Sources/OrgstarMobile/AgendaScreen.swift
+2 −3 · view
@@ -645,10 +645,9 @@ struct AgendaRowView: View {
645 645 Text ( row . gutter )
646 646 . font ( . caption . weight ( . medium ) . monospacedDigit ( ) )
647 647 . foregroundStyle ( statusColor )
648 . lineLimit ( 2 )
648 . lineLimit ( 1 )
649 649 . allowsTightening ( true )
650 . minimumScaleFactor ( 0.8 5 )
651 . fixedSize ( horizontal : false , vertical : true )
650 . minimumScaleFactor ( 0.8 )
652 651 }
653 652 }
654 653 }
Tests/OrgPresentationTests/AgendaRowsTests.swift
+2 −2 · view
@@ -68,8 +68,8 @@ struct AgendaRowsTests {
68 68 # expect ( row ? . status = = status , " \( title ) " , sourceLocation : sourceLocation )
69 69 # expect ( row ? . icon = = icon , " \( title ) " , sourceLocation : sourceLocation )
70 70 }
71 check ( " Pay rent " , " Sched. 4d ago " , . overdue , . scheduled )
72 check ( " Ancient chore " , " Sched. 1y 4mo ago " , . overdue , . scheduled )
71 check ( " Pay rent " , " 4d ago " , . overdue , . scheduled )
72 check ( " Ancient chore " , " 1y 4mo ago " , . overdue , . scheduled )
73 73 check ( " Send forms " , " 3d late " , . overdue , . deadline )
74 74 check ( " File taxes " , " Due today " , . dueSoon , . deadline )
75 75 check ( " Renew passport " , " Due in 4d " , . dueSoon , . deadline )
docs/plans/2026-10-08-agenda-redesign.md
+1 −1 · view
@@ -32,7 +32,7 @@ Timed rows show `08:00` or `13:50–14:30` (zero-padded, en dash; past midnight
32 32 | Deadline, on today, upcoming | `Due in 2d` | due-soon |
33 33 | Deadline, on another day | `Due` | overdue if before today, else normal |
34 34 | Scheduled | `Scheduled` | overdue if before today, else normal |
35 | Scheduled, carried to today | ` Sched. 4d ago` | overdue |
35 | Scheduled, carried to today | `4d ago` | overdue |
36 36 | Habit | `Habit` | overdue if scheduled before today |
37 37 | Timestamp, diary sexp | `All day` | normal |
38 38 | Range, middle days | `Day 2/5` | normal |