v1.2.0 — Log hours from the TUI / Log ore da TUI
🇬🇧 English
Log hours from the TUI. The CLI can now create time entries on ClickUp directly from the terminal (it used to be read-only). New Log hours screen, opened with n from Home and Report, with three modes:
- Guided — pick a known list (current report ∪ config) → a task → form.
- Task ID/URL — paste a task ID or a ClickUp URL → form.
- Timer — start/stop a stopwatch; on stop the entry is recorded. A timer already running when you open the screen is shown for stopping.
The form has a flexible duration parser (2h30, 2h30m, 1.5h, 1,5h, 90m, 45 = hours), today-by-default editable date, and an optional note. After saving, press r to reload the report. You always log your own hours.
Under the hood: new pure internal/duration package; client methods CreateTimeEntry, ListTasks, timer Start/Stop/Current, ExtractTaskID; shared POST helper. Docs are now bilingual (English-primary README.md + README.it.md).
Closes #1.
🇮🇹 Italiano
Log ore dalla TUI. La CLI ora crea time entry su ClickUp direttamente da terminale (prima era sola lettura). Nuova schermata Log ore, aperta col tasto n da Home e Report, con tre modalità:
- Guidato — scegli una lista nota (report corrente ∪ config) → un task → form.
- Task ID/URL — incolli un ID task o un URL ClickUp → form.
- Timer — avvii/fermi un cronometro; allo stop la voce viene registrata. Un timer già in corso all'apertura viene mostrato per lo stop.
Il form ha un parser durata flessibile (2h30, 2h30m, 1.5h, 1,5h, 90m, 45 = ore), data default oggi (editabile) e nota opzionale. Dopo il salvataggio, r ricarica il report. Si loggano sempre le proprie ore.
Sotto il cofano: nuovo package puro internal/duration; metodi client CreateTimeEntry, ListTasks, timer Start/Stop/Current, ExtractTaskID; helper POST condiviso. La documentazione è ora bilingue (README.md inglese primario + README.it.md).
Chiude #1.