Skip to content

Issue/317: Add friendship ranking tab to assist credit history #379

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

tanapl
Copy link
Collaborator

@tanapl tanapl commented Jun 23, 2025

Summary

  • Add new friendship ranking tab to assist credit history page
  • Display user pairs ranked by total assist credits exchanged or
    transaction count
  • Implement medal-based color theming for top 3 positions

Features

  • Toggle sorting between total amount and transaction count
  • Gold/silver/bronze styling for top 3 friendship pairs
  • Responsive design with user icons and statistics

@yu23ki14 yu23ki14 requested a review from Copilot June 23, 2025 12:32
Copy link

@Copilot Copilot AI left a 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 “Friendship Ranking” tab on the assist credit history page, showing user pairs ranked by total assist credits or transaction count with medal-based theming.

  • Adds a new tab trigger and content pane for friendship rankings in the history route
  • Implements FriendshipRanking component to fetch, aggregate, sort, and display top pairs
  • Provides toggle buttons for sorting and medal-style theming for top 3 ranks

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pkgs/frontend/app/routes/$treeId_.assistcredit.history.tsx Imported FriendshipRanking, added “フレンドシップ” tab trigger and content pane
pkgs/frontend/app/components/assistcredit/FriendshipRanking.tsx New component aggregating GraphQL data into friendship pairs, sorting, and rendering styled items

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.

1 participant