Skip to content

集計対象アイテムのフィルターおよびソートを追加#15

Merged
max747 merged 1 commit intomainfrom
feature/item-filter
Feb 23, 2026
Merged

集計対象アイテムのフィルターおよびソートを追加#15
max747 merged 1 commit intomainfrom
feature/item-filter

Conversation

@max747
Copy link
Member

@max747 max747 commented Feb 23, 2026

No description provided.

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

This PR adds filtering and sorting functionality for items in the aggregation display based on a priority list. Items not present in item_list_priority.json are filtered out from the summary tables (unless they are event items, points, or QP), and known items are displayed in priority order.

Changes:

  • Added item_list_priority.json containing 138 items with priority metadata
  • Implemented filtering logic to exclude unknown items from summary tables
  • Implemented sorting by dropPriority (descending) then by id (descending)

Reviewed changes

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

Show a summary per file
File Description
viewer/tsconfig.json Enabled resolveJsonModule to support JSON imports in TypeScript
viewer/src/summaryUtils.ts Added filtering logic to exclude unknown items from normal category using isKnownItem()
viewer/src/summaryUtils.test.ts Added test case verifying unknown items are filtered out
viewer/src/itemPriority.ts New module implementing item filtering and priority-based sorting logic
viewer/src/itemPriority.test.ts Comprehensive test suite for filtering and sorting functions
viewer/src/data/item_list_priority.json JSON data file containing 138 items with id, rarity, shortname, and dropPriority fields
viewer/src/components/SummaryTable.tsx Applies priority sorting to normal items in the summary table
viewer/src/components/ReporterSummary.tsx Applies priority sorting to item columns in reporter detail tables
gen_item_list_priority.py Python script to generate item_list_priority.json from source data
SPEC.md Documentation of the filtering and sorting behavior
Makefile Added gen-priority-file target to generate the priority JSON file

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

import logging
import sys

logger = logging.getLogger(__name__)
Copy link

Copilot AI Feb 23, 2026

Choose a reason for hiding this comment

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

The logger is created but never configured with basicConfig or a handler. When warnings are logged at line 57, they won't be displayed to the user unless the logging level is configured. Consider adding logging.basicConfig() in the main function or in the if name == "main" block to ensure warning messages are visible.

Copilot uses AI. Check for mistakes.
@max747 max747 merged commit 009d5fa into main Feb 23, 2026
5 checks passed
@max747 max747 deleted the feature/item-filter branch February 23, 2026 09:16
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