Skip to content

AdminDisputeListPage component#221

Open
Favourof wants to merge 13 commits intoamina69:mainfrom
Favourof:feat/AdminDisputeListPage
Open

AdminDisputeListPage component#221
Favourof wants to merge 13 commits intoamina69:mainfrom
Favourof:feat/AdminDisputeListPage

Conversation

@Favourof
Copy link
Copy Markdown
Contributor

Closed: #199

Title: feat: Implement Admin Dispute List Page

Description

This PR introduces the AdminDisputeListPage, providing administrators with a dedicated interface to view, filter, and manage platform disputes. The implementation includes necessary data types, custom API hooks for data fetching, unit tests, and integration into the application's central routing system.

Key Changes

  • UI Components:

    • Created the main AdminDisputeListPage component with built-in filtering (by status, overdue) and pagination handling.
    • Implemented custom, reusable UI badge components for displaying dispute statuses clearly.
  • Routing:

    • Integrated the new page into App.tsx under the route /admin/disputes.
  • Data & State Management:

    • Added new Data Types in src/types/dispute.ts for representing disputes.
    • Developed the useDisputes custom hook leveraging @tanstack/react-query to handle infinite scrolling/pagination and querying logic.
  • Mocking & Testing:

    • Added MSW mock handlers to intercept and mock dispute data for seamless local development and testing.
    • Implemented unit tests for the page in src/pages/__tests__/AdminDisputeListPage.test.tsx to verify component behavior.
  • Code Cleanup:

    • Fixed TypeScript linter warnings by clearing up unused imports (e.g., ApiError).

    [Frontend · Dispute system UI] Create AdminDisputeListPage component #199

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 27, 2026

@Favourof Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

[Frontend · Dispute system UI] Create AdminDisputeListPage component

1 participant