Conversation
Introduces state and logic to fetch and display quick stats such as repository count, top languages, current contribution streak, and yearly commits in the Activity component. Adds utility functions for language breakdown and streak calculation, and fetches relevant data from the GitHub API.
The Build Log section in the Activity component has been replaced with a new Quick Dev Stats panel, displaying live GitHub statistics such as public repos, yearly commits, top languages, and current streak. Related data structures and exports for the Build Log have been removed from lib/data.ts to reflect this change.
Adjusted padding, spacing, and container widths across About, Activity, Projects, Contact, and Automation Playground sections for improved visual consistency. Updated the Projects section order in the homepage. Enhanced the 2FA code logic in ASFBotDemo to generate and update codes on interval, ensuring more realistic behavior.
Pull Request Review: Replace Build Log with GitHub StatsOverviewThis PR successfully replaces the static Build Log with dynamic GitHub statistics and improves layout consistency. The changes enhance interactivity and visual polish. ✅ StrengthsCode Quality:
User Experience:
|
Issues & Recommendations (2/3)2. TypeScript Type Safety (MEDIUM PRIORITY)Location: Throughout activity.tsx Problem: Excessive use of any types reduces type safety. Define proper interfaces for Commit and CalendarDay types instead of any[]. 3. Streak Calculation Bug (MEDIUM PRIORITY)Location: activity.tsx:57-83 Problem: Logic breaks if user hasn't committed today. Current code only checks daysDiff === streak which expects consecutive days from today. The streak should allow for today to be empty and still continue from yesterday. 4. Language Calculation Accuracy (LOW-MEDIUM)Location: activity.tsx:35-54 Issue: Counts repos, not code bytes. A 2-line TypeScript repo counts the same as a 10,000-line repo. Consider using languages_url API for byte counts (but adds N more API calls). |
Issues & Recommendations (3/3)5. Accessibility Issues (MEDIUM PRIORITY)Missing attributes in activity.tsx:298 and throughout:
6. Performance Considerations (LOW PRIORITY)Three simultaneous API calls on mount could benefit from:
7. 2FA Code Generation (LOW PRIORITY)Location: automation-playground.tsx:172-176 While this is just a demo, consider making it more realistic with 6-digit codes and visual transitions when the code changes. |
Security & TestingSecurity ConsiderationsGood practices:
Minor concern:
Test CoverageNo tests found for new functionality. Recommendations:
SummaryFiles changed: 8 | +222 -76 lines Priority fixes:
Verdict: Approve with suggested improvements This is a solid enhancement that significantly improves the portfolio. Code is clean and follows good practices. Main concerns are error handling and API rate limiting. Recommend addressing high-priority items before merging. Great work on the visual improvements and 2FA demo enhancement! |
Dev: Replace Build Log with live GitHub stats and layout refinements
Live GitHub stats replace the old Build Log in your Activity section, the 2FA demo now behaves more like a real rotating code, and spacing/typography across major sections is tightened so the portfolio feels cleaner and more cohesive.