feat(activity): implement view coordinator for activity dashboard #306
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/steeper!306
Loading…
Reference in a new issue
No description provided.
Delete branch "phase04-view-coordinator"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Add
internal/activity/view.gowith the main activity view coordinator, completing #219.View struct
The central coordinator that ties the data pipeline to rendering:
NewView(client, cache, ctxType, ctxID, username)Refresh(ctx)RefreshContextRender(width)Window()Loaded()/LastError()Render output format
States handled
Refresh()call[stale data]indicator)Roadmap progress
References: #219, #215, #216, #217, #218
Testing
golangci-lint run ./internal/activity/— 0 issuesgo test ./...— all passReview
Result: Approved — no blocking issues.
Summary: Adds
internal/activity/view.gowith theViewcoordinator tying the full data pipeline together.NewViewinitializes with context,RefreshcallsRefreshContext(cache-first, then fetch),Renderproduces formatted output with header, separators, and all 3 sparkline types. States handled: loading, empty, stale (with[stale data]indicator), and normal. ROADMAP2.md updated.Non-blocking:
Viewtype andNewViewconstructorChecklist: