Clock Widget with Timezone Support #2

Closed
opened 2026-05-18 08:27:18 -04:00 by n8k99 · 1 comment
n8k99 commented 2026-05-18 08:27:18 -04:00
Owner

Description

Implement a configurable Clock Widget showing local + up to 3 configurable timezone(s).

Development Tasks (☿ Nova)

  • Create widgets/clock.rs with Widget trait implementation
  • Support 12hr and 24hr display modes (configurable)
  • Add timezone configuration (IANA tz database)
  • Implement tick handling for second/minute updates
  • Add accent color support (configurable hex color)

Testing Criteria (☿ Nova)

  • Unit tests: all configured timezones render correctly
  • Config test: 12/24hr toggle changes display immediately
  • Tick accuracy: updates every 60s ±1s (no drift)
  • Color render test: accent color displays in terminal
  • DST test: handles daylight saving transitions

Completion Criteria (🜔 Claudian Review)

  • Follows Calendar widget structural patterns
  • No hardcoded values; all configurable via TOML
  • Documented in docs/widgets/clock.md with config reference
  • Integration test passes (Calendar + Clock side-by-side in pane)

Blockers

  • #1 (Calendar Widget Core) - establishes widget trait patterns

Assignees: @Nova
Labels: widget, clock, implementation

## Description Implement a configurable Clock Widget showing local + up to 3 configurable timezone(s). ## Development Tasks (☿ Nova) - [ ] Create `widgets/clock.rs` with Widget trait implementation - [ ] Support 12hr and 24hr display modes (configurable) - [ ] Add timezone configuration (IANA tz database) - [ ] Implement tick handling for second/minute updates - [ ] Add accent color support (configurable hex color) ## Testing Criteria (☿ Nova) - [ ] Unit tests: all configured timezones render correctly - [ ] Config test: 12/24hr toggle changes display immediately - [ ] Tick accuracy: updates every 60s ±1s (no drift) - [ ] Color render test: accent color displays in terminal - [ ] DST test: handles daylight saving transitions ## Completion Criteria (🜔 Claudian Review) - [ ] Follows Calendar widget structural patterns - [ ] No hardcoded values; all configurable via TOML - [ ] Documented in `docs/widgets/clock.md` with config reference - [ ] Integration test passes (Calendar + Clock side-by-side in pane) ## Blockers - [ ] #1 (Calendar Widget Core) - establishes widget trait patterns Assignees: @Nova Labels: widget, clock, implementation

Completed by Nova's local Forgejo project worker.

completed

Completed by Nova's local Forgejo project worker. completed
nova closed this issue 2026-05-19 15:19:39 -04:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
n8k99/bastion#2
No description provided.