Files
task-master/internal/ui/views/create.go
T
SkrueckenandCursor bfc1cbd4d9 Add ticket time tracking with reports and entry management.
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>
2026-10-19 11:05:10 +02:00

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
}