Skip to content

Conversation

Copy link

Copilot AI commented Jul 5, 2025

Adding support for bowler over-wise stats to the advanced stats page and API endpoint.

Plan:

  • Analyze current batter-only implementation
  • Understand database schema and existing bowling stats patterns
  • Extend API endpoint to support bowler stats calculation
  • Add bowler selection UI to advanced stats page
  • Update stats display to show bowling metrics
  • Test the implementation with sample data
  • Verify UI changes work correctly

Changes made:

  1. ✅ Modified /src/app/api/stats/advanced/route.ts to accept type and bowler parameters
  2. ✅ Added bowling stats calculation logic (wickets, runs conceded, economy rate, etc.)
  3. ✅ Updated /src/app/stats/advanced/page.tsx to support both batter and bowler selection
  4. ✅ Added toggle between batter/bowler modes in the UI
  5. ✅ Updated fetch functions to handle both player types
  6. ✅ Created conditional stats display for batting vs bowling metrics

Next steps:

  • Need to test with actual database connection
  • Verify API endpoints work correctly with sample data

💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

@vercel
Copy link

vercel bot commented Jul 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
boundary-bytes ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 5, 2025 7:12pm

Copilot AI requested a review from shahparshva72 July 5, 2025 19:22
@shahparshva72 shahparshva72 deleted the copilot/fix-bd3cefb4-4977-4455-b403-d6546544b581 branch July 21, 2025 18:51
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.

2 participants