Frontend Track • Advanced • 5 mins review
Fix: Update InventoryTable filtering logic
Refactored the filtering logic in InventoryTable to support multiple tags and added an effect to sync with the backend.
Scenario Goal & Context
Goal: Update the tag selection state to handle arrays, and automatically fetch new data when the selection changes.
Background: Users need to select multiple tags to filter the InventoryTable view, rather than just one at a time.
Changed Files (2)
- src/components/InventoryTable.tsx +15 -5
- src/components/InventoryTable.test.tsx +14 -0
Ready to practice reviewing this PR?
Open this scenario inside the interactive DiffSense simulator to leave inline comments and receive an automated score.
Start Review Session