refactor: Improve code quality and organization - #3
Conversation
- Move shared components (ScrollProgress, ThreeBackground, ScrollAnimations) to layout - Add TypeScript types for data structures (Skill, Project, Experience, etc.) - Extract hardcoded data to src/lib/data/ folder: - skills.ts: Home and about page skills - projects.ts: Featured and all projects - experiences.ts: Work experiences - technologies.ts: Tech stack lists - contact.ts: Contact methods and FAQs - Create barrel exports for easy imports This reduces code duplication and improves maintainability. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. WalkthroughThis PR centralizes application data and types into modular structures. New TypeScript interfaces define data shapes for skills, projects, experiences, contact methods, and FAQs. Data modules containing static arrays are created. A barrel export file aggregates data imports. Global components are moved to the root layout. Pages are refactored to import centralized data instead of maintaining inline definitions. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~15 minutes
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (12)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
src/lib/types/:Skill,Project,Experience,ContactMethod,FAQsrc/lib/data/folder:skills.ts: Home and about page skillsprojects.ts: Featured and all projects listsexperiences.ts: Work experience historytechnologies.ts: Tech stack listscontact.ts: Contact methods and FAQs$lib/dataand$lib/typesBenefits
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.