Skip to content

Conversation

@JSv4
Copy link
Collaborator

@JSv4 JSv4 commented Oct 19, 2025

Summary

Changes

  • Added DELETE_EXPORT GraphQL mutation to frontend mutations.ts
  • Updated ExportItemRow to pass item.id to onDelete handler
  • Implemented handleDelete in ExportModal using useMutation
  • Added confirmation dialog before deletion
  • Added toast notifications for success/error states
  • Refetch exports list after successful deletion
  • Show loading state during deletion

Pagination

  • Verified ExportList already has FetchMoreOnVisible component
  • Verified fetchMore handler properly configured with cursor/limit
  • GET_EXPORTS query supports pagination parameters
  • Pagination should work correctly with existing implementation

Test Plan

  • TypeScript compilation passes
  • Delete button triggers confirmation dialog
  • Successful deletion shows success toast and refetches
  • Error handling shows error toast
  • Loading state displayed during deletion

Resolves #93

The Export Modal was missing pagination fetchMore functionality and delete button mutations.
This commit adds full delete functionality and verifies pagination is working.

Changes:
- Added DELETE_EXPORT GraphQL mutation to frontend mutations.ts
- Updated ExportItemRow to pass item.id to onDelete handler
- Implemented handleDelete in ExportModal using useMutation
- Added confirmation dialog before deletion
- Added toast notifications for success/error states
- Refetch exports list after successful deletion
- Show loading state during deletion

Pagination:
- ExportList already had FetchMoreOnVisible component implemented
- fetchMore handler already properly configured with cursor/limit
- GET_EXPORTS query already supports pagination parameters
- Pagination should work as expected with existing implementation

All TypeScript compilation passes successfully.
@codecov
Copy link

codecov bot commented Oct 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Signed-off-by: JSIV <5049984+JSv4@users.noreply.github.com>
@JSv4 JSv4 merged commit cda11a1 into main Oct 20, 2025
11 checks passed
@JSv4 JSv4 deleted the feature/issue-93-export-modal-pagination branch October 20, 2025 02:47
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.

[FEATURE] - Export Modal Needs Pagination and Deletion Button Mutations

2 participants