-
Notifications
You must be signed in to change notification settings - Fork 1
feat: create profile tab #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: refactor/react-framework
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for atcoder ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new profile tab to the frontend, enabling users to view their AtCoder profile data through an interactive input and corresponding UI components, and adds backend endpoints to support profile retrieval and proxy AtCoder API calls.
- Added a “Profile” tab and associated components (CardHeader, Profile, Body) in the frontend.
- Updated frontend styles to support the new username input and adjusted animations.
- Updated backend endpoints and added createProfileJson in the AtCoder utility along with related proxy endpoints.
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| frontend/src/App.js | Added profile tab, new components for user input, profile display, and profile fetching with debounce logic. |
| frontend/src/App.css | Introduced new styles for the user input box and disabled a pulsing animation. |
| backend/package.json | Upgraded node-fetch version to support newer functionality. |
| backend/netlify/profile.js | Added a Netlify function to handle profile requests using createProfileJson. |
| backend/index.js | Introduced new proxy endpoints and a profile endpoint integrating the new profile functionality. |
| backend/atcoder.js | Added createProfileJson to fetch profile data from AtCoder and manage local caching. |
Files not reviewed (1)
- backend/package-lock.json: Language not supported
Comments suppressed due to low confidence (1)
backend/atcoder.js:40
- The fs module is used in createProfileJson but is not imported. Please add 'const fs = require("fs");' at the top of the file.
const profileDir = path.join(saveDir, "profiles");
No description provided.