Support start/stop timer, manual durations, grouped reports, and per-ticket edit/delete of time entries with undo. Co-authored-by: Cursor <cursoragent@cursor.com>
24 lines
532 B
Go
24 lines
532 B
Go
package views
|
|
|
|
import (
|
|
"github.com/charmbracelet/bubbles/textinput"
|
|
)
|
|
|
|
// NewCreateInput returns a text input configured for creating a ticket.
|
|
func NewCreateInput() textinput.Model {
|
|
ti := textinput.New()
|
|
ti.Placeholder = "Ticket headline…"
|
|
ti.CharLimit = 200
|
|
ti.Width = 60
|
|
return ti
|
|
}
|
|
|
|
// NewTimeManualInput returns a text input for manual duration entry.
|
|
func NewTimeManualInput() textinput.Model {
|
|
ti := textinput.New()
|
|
ti.Placeholder = "Duration (1h30m, 90m, 1.5h)…"
|
|
ti.CharLimit = 32
|
|
ti.Width = 60
|
|
return ti
|
|
}
|