-
Notifications
You must be signed in to change notification settings - Fork 6
feat: stats and leaderboard renewal #34
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
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
d379add
chore: add CLAUDE.md config
hyochan 48349c7
chore: add recharts dependency
hyochan c8ed7b8
feat: add monthly contribution data support
hyochan 633c2b1
feat: add MonthPicker and stats chart components
hyochan c5cc11b
feat: integrate charts into stats details
hyochan 11259aa
feat: add loading indicator and date range to stats pages
hyochan f3e750c
fix: update footer dark mode colors
hyochan e46a28d
feat: add tier-based user APIs
hyochan ce80a79
feat: add top tier users showcase component
hyochan a5b351e
feat: add tier filtering to leaderboard
hyochan fc7fe05
feat: rename Recent List to Leaderboard and add tier filter translations
hyochan 9a9fcc5
style: update CSS styles
hyochan 9bb4349
chore: enhance mobile layout
hyochan 5edff7c
chore: migrate recent-list to leaderboard
hyochan 8baaef7
fix: code review
hyochan 1be27b3
chore: rename recent-list to leaderboards
hyochan 7fea141
fix: code review
hyochan 4c6db0e
fix: code review
hyochan 2881646
fix: code review
hyochan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,98 @@ | ||
| # Claude Code Guidelines | ||
|
|
||
| ## Development Commands | ||
|
|
||
| ```bash | ||
| # Development | ||
| bun run dev # Start development server | ||
|
|
||
| # Build & Lint | ||
| bun run build # Production build | ||
| bun run lint # Run ESLint | ||
| ``` | ||
|
|
||
| ## Project Structure | ||
|
|
||
| - `/app` - Next.js App Router pages and components | ||
| - `/server` - Server-side services and plugins | ||
| - `/src` - Shared utilities, hooks, and localization | ||
| - `/public` - Static assets | ||
|
|
||
| ## Styling Guidelines | ||
|
|
||
| ### Tailwind Color System | ||
|
|
||
| This project uses a custom color palette defined in `tailwind.config.js`. **Always use Tailwind classes instead of hardcoded colors**. | ||
|
|
||
| #### Text Colors | ||
| ```tsx | ||
| // Main text - use for primary content | ||
| className="text-black dark:text-white" | ||
|
|
||
| // Placeholder/secondary text | ||
| className="text-placeholder-light dark:text-placeholder-dark" | ||
|
|
||
| // Link text | ||
| className="text-link-light dark:text-link-dark" | ||
| ``` | ||
|
|
||
| #### Background Colors | ||
| ```tsx | ||
| // Paper/card backgrounds | ||
| className="bg-paper-light dark:bg-paper-dark" | ||
|
|
||
| // Modal backgrounds | ||
| className="bg-modal-light dark:bg-modal-dark" | ||
|
|
||
| // Gray backgrounds (1=lightest, 9=darkest) | ||
| className="bg-gray1 dark:bg-gray8" | ||
| className="hover:bg-gray2 dark:hover:bg-gray7" | ||
| ``` | ||
|
|
||
| #### Border Colors | ||
| ```tsx | ||
| className="border-border-light dark:border-border-dark" | ||
| ``` | ||
|
|
||
| #### Brand/Accent Colors | ||
| ```tsx | ||
| // Primary brand color (blue) - use for primary actions and highlights | ||
| className="bg-brand" // #4190EB | ||
|
|
||
| // Primary buttons | ||
| className="bg-btn-primary-light dark:bg-btn-primary-dark" | ||
| className="text-btn-primary-text-light dark:text-btn-primary-text-dark" | ||
|
|
||
| // Status colors | ||
| className="text-success-light dark:text-success-dark" | ||
| className="text-danger-light dark:text-danger-dark" | ||
| className="text-warning-light dark:text-warning-dark" | ||
| ``` | ||
|
|
||
| ### Typography | ||
| Use predefined font sizes: | ||
| - `text-h1` through `text-h4` for headings | ||
| - `text-body1` through `text-body4` for body text | ||
|
|
||
| ### Common Patterns | ||
|
|
||
| #### Dark Mode Support | ||
| Always provide both light and dark variants: | ||
| ```tsx | ||
| // Correct | ||
| className="bg-paper-light dark:bg-paper-dark text-black dark:text-white" | ||
|
|
||
| // Incorrect - hardcoded colors | ||
| style={{ backgroundColor: '#1a1a1a', color: '#ffffff' }} | ||
| ``` | ||
|
|
||
| #### Hover States | ||
| ```tsx | ||
| className="hover:bg-gray1 dark:hover:bg-gray8" | ||
| ``` | ||
|
|
||
| ## Component Guidelines | ||
|
|
||
| - Use `clsx` for conditional class names | ||
| - Prefer Tailwind classes over inline styles | ||
| - Support both light and dark modes for all UI components | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
It's great that you've added this coding guidelines file! To improve clarity, you could add a comment explaining the purpose of the
bg-brandcolor, similar to how you've done for other colors like "Primary buttons" or "Status colors". This helps developers understand when to use it.