Frontend Track • Advanced • 4 mins review

Fix: Update UserList filtering logic

Refactored the filtering logic in UserList 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 UserList view, rather than just one at a time.

Changed Files (2)

  • src/components/UserList.tsx +15 -5
  • src/components/UserList.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