Skip to content

カテゴリの論文を一括保存する機能を追加#18

Merged
MurakawaTakuya merged 4 commits intomainfrom
add-add-all-papers-in-category
Feb 15, 2026
Merged

カテゴリの論文を一括保存する機能を追加#18
MurakawaTakuya merged 4 commits intomainfrom
add-add-all-papers-in-category

Conversation

@MurakawaTakuya
Copy link
Owner

No description provided.

@MurakawaTakuya MurakawaTakuya self-assigned this Feb 15, 2026
@gemini-code-assist
Copy link

Summary of Changes

Hello @MurakawaTakuya, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

このプルリクエストは、ユーザーが分類された論文のグループを簡単に新しいお気に入りフォルダに保存できるようにすることで、論文管理の利便性を向上させます。バックエンドに一括処理用のAPIを導入し、フロントエンドでは直感的なUIを通じてこの機能を提供します。

Highlights

  • 論文の一括お気に入り追加機能: カテゴリ分けされた論文グループを新しいフォルダに一括でお気に入りとして保存する機能が追加されました。
  • 新しいAPIエンドポイント: 複数論文を一括でお気に入りに追加するための新しいAPIエンドポイント /api/favorites/batch が追加されました。
  • UIの改善: 分類結果画面に、各カテゴリの論文グループをお気に入りとして保存するためのボタンと、フォルダ名を指定するモーダルが追加されました。
  • お気に入り管理フックの更新: フロントエンドのお気に入り管理フック useFavorites に、論文グループをフォルダに一括追加するロジックが実装されました。

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • src/app/api/favorites/batch/route.ts
    • 複数論文を一括でお気に入りに追加する新しいPOST APIルートを追加しました。ユーザー認証、入力検証、フォルダの存在確認、Drizzle ORMを使用した重複無視の一括挿入ロジックを含みます。
  • src/app/page.tsx
    • CategorizationResultsコンポーネントに検索キーワードを渡すように更新しました。
  • src/components/app-sidebar.tsx
    • SidebarMenuSubItemのkeyプロパティを、folderIdが存在する場合はそれを使用し、ない場合はtitleを使用するように変更しました。
  • src/components/categorization-results.tsx
    • 各論文カテゴリに「お気に入りに追加」ボタンを追加し、クリックするとフォルダ名入力モーダルが表示されるようにしました。
    • フォルダ名入力モーダルを実装し、ユーザーが新しいフォルダ名を入力して論文グループを保存できるようにしました。
    • searchKeywordプロパティを受け取るようにインターフェースを更新し、フォルダ名の初期値に利用するようにしました。
    • AddToFavoritesButtonコンポーネントを導入し、お気に入り追加機能をカプセル化しました。
  • src/hooks/use-favorites.ts
    • addGroupToFolder関数を追加しました。これは、指定された論文IDの配列とフォルダ名を受け取り、新しいフォルダを作成し、そのフォルダに論文を一括で追加します。
    • addGroupToFolder関数をuseFavoritesフックの戻り値に追加しました。
Activity
  • 現時点では、このプルリクエストに対する人間による活動はありません。
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

このプルリクエストは、カテゴリ分けされた論文をまとめてお気に入りフォルダに保存する機能を追加するものです。新しいAPIエンドポイント /api/favorites/batch が追加され、フロントエンドでは分類結果画面に各カテゴリを保存するためのUIが実装されています。全体的に機能はうまく実装されていますが、いくつかの点で改善の余-地があります。特に、バックエンドでの入力値の検証強化と、フロントエンドコンポーネントのコードの重複削減についてコメントしました。

Copy link

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

カテゴリ分類結果の各グループ(カテゴリ)に対して、論文をまとめて「新規フォルダ」としてお気に入り保存できるようにするPRです。クライアント側からフォルダ作成→一括追加APIを呼び出すことで、グループ単位の保存を実現しています。

Changes:

  • POST /api/favorites/batch を追加し、複数論文のお気に入り一括登録を可能に
  • 分類結果UIに「グループをお気に入り保存」ボタンとフォルダ名編集ダイアログを追加
  • useFavorites にフォルダ作成+一括追加をまとめた addGroupToFolder を追加

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/hooks/use-favorites.ts フォルダ作成→一括保存を行う addGroupToFolder を追加
src/components/categorization-results.tsx カテゴリごとの一括保存ボタンとフォルダ名ダイアログを実装
src/components/app-sidebar.tsx サイドバーのサブ項目keyを folderId 優先にして安定化
src/app/page.tsx 分類結果コンポーネントへ検索キーワードを渡してフォルダ名初期値に利用
src/app/api/favorites/batch/route.ts お気に入り一括追加API(フォルダ所有検証・重複無視)を新規追加

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MurakawaTakuya MurakawaTakuya merged commit 928363b into main Feb 15, 2026
7 checks passed
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