Skip to content

feat(tui): add keybindings and minor UI improvements#100

Merged
alxhall merged 2 commits intoponbac:masterfrom
alxhall:feature/yank-and-resume
Mar 6, 2026
Merged

feat(tui): add keybindings and minor UI improvements#100
alxhall merged 2 commits intoponbac:masterfrom
alxhall:feature/yank-and-resume

Conversation

@alxhall
Copy link
Collaborator

@alxhall alxhall commented Mar 2, 2026

This pull request introduces two new features—"Copy" (Y) and "Resume" (R)—for time entries, allowing users to quickly copy details from a previous entry to the running timer or fully resume a past entry. It also refines the timer's UI feedback and border colors for greater clarity and consistency. The most important changes are grouped below.

New Features: Copy and Resume Time Entries

  • Added YankEntryToTimer and ResumeEntry actions, enabling users to copy project/activity/note fields from a selected history entry to the running timer (Y), or fully resume a past entry (R), including server sync and UI updates.

Timer State and UI Consistency

  • Ensured timer_size is set to Large when starting/resuming a timer and reset to Normal when stopping/clearing, for consistent UI behavior.

UI Improvements

  • Changed timer, project/activity, and note borders from green to white when selected but not focused, improving visual clarity and reducing color overload.

Y: copies a selected history entry's project, activity, and note into
the currently running timer (syncs to server via update_active_timer).

R: resumes a previous entry by starting a new timer with the same
project, activity, and note. Reads arguments directly from the entry
before touching app state; local state is only mutated after confirmed
server success.

Also auto-switches timer size to Large on start and Normal on
stop/clear, shortens controls labels, and colors the 'resumed' status
message green.
@vercel
Copy link

vercel bot commented Mar 2, 2026

@alxhall is attempting to deploy a commit to the ponbac's projects Team on Vercel.

A member of the Team first needs to authorize it.

@alxhall alxhall merged commit e8d91f0 into ponbac:master Mar 6, 2026
4 of 5 checks passed
@alxhall alxhall deleted the feature/yank-and-resume branch March 6, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant