T1 Bounty: Add TimeAgo relative timestamps component (fixed)#614
T1 Bounty: Add TimeAgo relative timestamps component (fixed)#614davidweb3-ctrl wants to merge 3 commits intoSolFoundry:mainfrom
Conversation
- Create reusable TimeAgo component with auto-update - Add comprehensive test suite - Apply to bounty cards, list view, timeline, and activity feed - Supports multiple formats: just now, Xm ago, Xh ago, Xd ago, date - Includes tooltip with full datetime on hover
- Fix 7-day boundary logic (< 7 to <= 7) - Add invalid date handling with safe fallbacks - Fix test expectations for 60-minute boundary - Add tests for invalid date inputs Fixes critical issues from multi-LLM review (score: 6.4/10)
- Fix 'just now' test with deterministic timing - Add act() wrapper for auto-update test - Import act from testing-library/react
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR introduces a new reusable Estimated code review effort🎯 3 (Moderate) | ⏱️ ~28 minutes Possibly related issues
Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment Tip You can customize the high-level summary generated by CodeRabbit.Configure the |
|
Closing as duplicate - PR #593 was reopened by the team. Thanks! |
Summary
Add reusable TimeAgo component for displaying relative timestamps with auto-updates and hover tooltips.
Changes
Fixes Applied
Test Results
Wallet: EDFxPF6yAQNod3nFzwV7z1qwSjt42WDYzmdT6b6YHDh7
Bounty
Previous PR #593 was auto-closed due to package-lock.json - this is the fixed version