docs(activity): add godoc for refresh orchestration methods on View #311

Closed
opened 2026-07-07 10:33:09 +00:00 by the.auditor · 0 comments
Owner

Three exported methods on View in internal/activity/view.go lack doc comments:

  • RefreshOnOpen — initial load + current-day freshness check
  • StartAutoRefresh — background 5-minute ticker calling RenderPass2 when stale
  • StopAutoRefresh — stops ticker and background goroutine

Also: needsRefresh and graphStale are written by RenderPass2 (goroutine) and Render (main thread) without synchronization. Consider using sync/atomic for these fields.

Ref: PR #310

Three exported methods on `View` in `internal/activity/view.go` lack doc comments: - `RefreshOnOpen` — initial load + current-day freshness check - `StartAutoRefresh` — background 5-minute ticker calling RenderPass2 when stale - `StopAutoRefresh` — stops ticker and background goroutine Also: `needsRefresh` and `graphStale` are written by `RenderPass2` (goroutine) and `Render` (main thread) without synchronization. Consider using `sync/atomic` for these fields. Ref: PR #310
fuzzy added this to the Steeper project 2026-07-07 10:42:37 +00:00
fuzzy self-assigned this 2026-07-07 10:42:38 +00:00
fuzzy closed this issue 2026-07-08 08:14:52 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
thwap/steeper#311
No description provided.