Documentation
¶
Overview ¶
Package format provides formatting helpers for TUI components.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PersonInitials ¶
PersonInitials returns initials from a name.
func RecordingTypeIcon ¶
RecordingTypeIcon returns an icon for the recording type.
func RecordingTypeName ¶
RecordingTypeName returns a human-readable name for recording types.
func RelativeTime ¶
RelativeTime formats a time as a relative duration (e.g., "2h ago", "3d ago").
Types ¶
type Person ¶
type Person struct {
ID int64
Name string
Email string
AvatarURL string
Admin bool
Owner bool
TimeZone string
PersonType string // client, employee, etc.
}
Person formats a person for picker display.
func (Person) ToPickerDescription ¶
ToPickerDescription returns a formatted description for picker display.
func (Person) ToPickerTitle ¶
ToPickerTitle returns a formatted title for picker display.
type Project ¶
type Project struct {
ID int64
Name string
Purpose string
Description string
Status string
Bookmarked bool
}
Project formats a project for picker display.
func (Project) ToPickerDescription ¶
ToPickerDescription returns a formatted description for picker display.
func (Project) ToPickerTitle ¶
ToPickerTitle returns a formatted title for picker display.
type Recording ¶
type Recording struct {
ID int64
Type string
Title string
Content string
Creator string
CreatedAt time.Time
}
Recording formats a recording for picker display.
func (Recording) ToPickerDescription ¶
ToPickerDescription returns a formatted description for picker display.
func (Recording) ToPickerTitle ¶
ToPickerTitle returns a formatted title for picker display.