feat: Replace JSON upload with CSV in Team Leaderboard
📌 Description
Currently, the "Add All Teams" feature in the Team Leaderboard section allows uploading team data using a JSON file.
For better usability and easier data handling, this should be updated to support CSV file uploads instead of JSON.
❗ Current Behavior
- Button label: "Add All Teams Using JSON"
- Accepts
.jsonfile upload - Parses JSON structure to create teams
✅ Expected Behavior
- Button label should be changed to: "Add All Teams Using CSV"
- File uploader should accept
.csvfiles only - CSV file should be parsed and converted into team structure
📄 Proposed CSV Format
team_name,project_name,member_name,username
Team Alpha,Project A,John,john123
Team Alpha,Project A,Ravi,ravi123
Team Beta,Project B,Sita,sita123
🔧 Suggested Changes
- Replace JSON file uploader with CSV uploader
- Use
pandas.read_csv()to parse uploaded file - Group rows by
team_nameandproject_name - Convert rows into existing team structure format
- Update UI labels from JSON → CSV
- Show success/error messages appropriately
🎯 Benefits
- Easier for users to prepare data (Excel/CSV)
- More readable and maintainable input format
- Better usability for non-technical users
📎 Additional Notes
Ensure backward compatibility is not required, or remove JSON-related logic completely if deprecated.
🙋 Assigned Task
Implement CSV upload functionality in place of JSON for Team Leaderboard.