AT Protocol Terminal Interface Explorer
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

better jetstream event styling

+4 -2
+4 -2
ui/jetstream.go
··· 4 4 "context" 5 5 "fmt" 6 6 "log/slog" 7 + "time" 7 8 8 9 "github.com/bluesky-social/jetstream/pkg/models" 9 10 "github.com/charmbracelet/bubbles/list" ··· 26 27 } 27 28 func (j jetEventItem) Title() string { 28 29 return fmt.Sprintf("%s %s %s", 29 - j.evt.Commit.Operation, j.evt.Commit.Collection, j.evt.Commit.RKey, 30 + opStyle.Render(j.evt.Commit.Operation), j.evt.Commit.Collection, dimStyle.Render(j.evt.Commit.RKey), 30 31 ) 31 32 } 32 33 33 34 func (j jetEventItem) Description() string { 34 - return fmt.Sprintf("%s - %s", j.evt.Did, j.evt.TimeUS) 35 + t := time.Unix(0, j.evt.TimeUS*int64(time.Microsecond)) 36 + return fmt.Sprintf("%s - %s", didStyle.Render(j.evt.Did), t.Format("2006-01-02 15:04:05")) 35 37 } 36 38 37 39 type eventMsg struct {