- Users now enter a GitHub username instead of a repository URL
- Validates username format
- Includes quick-access buttons for popular developers
- Displays all public repositories for the selected user
- Shows repository metadata:
- Repository name
- Description
- Star count
- Programming language
- Click any repository to analyze its commits
- Back button to return to username input
- New section below analysis results
- Users can paste their own commit message
- Real-time analysis with instant feedback
- Shows:
- Score (0-100%)
- Specific feedback
- Issues found
- Success message if perfect
- Helps developers write better commits before pushing
- Added state management for multi-step flow
- Views: user input → repos list → analysis + review
- Navigation between views with back buttons
- New function:
fetchUserRepos(username)- fetches all public repos - Returns Repository objects with metadata
- Filters out forked repositories
- Exported
analyzeCommit()function for single message analysis - Used by CommitReview component
- UserInput.tsx - Username input form with examples
- RepositoryList.tsx - Grid of repositories to choose from
- CommitReview.tsx - Commit message preview and analysis tool
src/
├── components/
│ ├── UserInput.tsx (NEW)
│ ├── UserInput.css (NEW)
│ ├── RepositoryList.tsx (NEW)
│ ├── RepositoryList.css (NEW)
│ ├── CommitReview.tsx (NEW)
│ ├── CommitReview.css (NEW)
│ ├── ResultsDisplay.tsx (UPDATED)
│ ├── ResultsDisplay.css (UPDATED)
│ └── ... (other components)
├── utils/
│ ├── githubApi.ts (UPDATED)
│ └── analyzer.ts (UPDATED)
├── types/
│ └── index.ts (UPDATED - added Repository type)
└── App.tsx (UPDATED)
- Enter Username: Start by entering a GitHub username
- Select Repository: Browse and click on a repository to analyze
- View Analysis: See commit message analysis for the repository
- Review Your Message: Use the commit review tool to test your own messages
User enters "torvalds"
↓
Shows all Linux kernel repositories
↓
User clicks on "linux" repository
↓
Analyzes 30 recent commits
↓
Shows analysis results + commit review tool
↓
User can test their own commit messages
GET /users/{username}/repos- Fetch user's repositoriesGET /repos/{owner}/{repo}/commits- Fetch repository commits
- Run
npm run buildto create production build - Upload
dist/folder to hosting service - Share the URL with others
- Try popular developers: torvalds, gvanrossum, dhh
- Use the commit review tool before every commit
- Follow the feedback to improve commit message quality
- Export results to track improvements over time