Skip to content

fix: type activity timeline items instead of any (#566) - #825

Open
nijuse wants to merge 1 commit into
harystyleseze:mainfrom
nijuse:main
Open

fix: type activity timeline items instead of any (#566)#825
nijuse wants to merge 1 commit into
harystyleseze:mainfrom
nijuse:main

Conversation

@nijuse

@nijuse nijuse commented Jul 3, 2026

Copy link
Copy Markdown

Closes #566

What changed

Replaced TimelineItem in activity-tab.tsx's mergedTimeline from a single type with data: any to a kind-based discriminated union ("tx" → Transaction, "audit" → AuditLogEvent)
Removed as AuditLogEvent / as Transaction type assertions because TypeScript narrows data via the item.kind branch
No behavior change — type-safety improvements and formatting cleanup only

How to test

Checklist

  • CI passes (typecheck, lint, tests)
  • No sensitive data files (data/spending.json, data/orders.json) committed
  • PR linked to an issue

Co-authored-by: Cursor <cursoragent@cursor.com>
@nijuse
nijuse requested a review from harystyleseze as a code owner July 3, 2026 01:32
@vercel

vercel Bot commented Jul 3, 2026

Copy link
Copy Markdown

@nijuse is attempting to deploy a commit to the Harrison Eze's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Type TimelineItem.data instead of any

1 participant