feat(activity): add shared data types for activity cache #284
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/steeper!284
Loading…
Reference in a new issue
No description provided.
Delete branch "phase01-types"
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/types.gowith shared data types for the daily activity cache, the foundation for Phase 1 of the activity view feature.Types defined
user,repo,org) for scoping activity data5 * time.Minute) for the current (volatile) dayWhy
First step toward the activity view feature. These types are the data contract between the SQLite cache layer, the Forgejo API fetcher, and the sparkline renderer.
References: #181, #177, #178, #179, #180
Testing
go build ./internal/activity/passes135ae51d4d75ff7d2b37Review
Result: Approved — no blocking issues.
Summary: Adds
internal/activity/types.gowith shared data types (ContextType,DailyActivity,ActivityWindow,CurrentDateTTL) for the activity cache feature. 7 table-driven subtests covering enum values, zero-value invariants, field assignment, and cache policy constant.Non-blocking suggestions (filed as issues):
internal/activityCurrentDateTTLrationaleChecklist: