Skip to content

feat: add admin reset data page#448

Merged
paulvanbrenk merged 2 commits intomainfrom
feat/admin-reset-page
Feb 26, 2026
Merged

feat: add admin reset data page#448
paulvanbrenk merged 2 commits intomainfrom
feat/admin-reset-page

Conversation

@paulvanbrenk
Copy link
Collaborator

Summary

  • Adds /admin/reset page with paginated table of all packages
  • Three actions per package: Reset Summaries, Reset Releases, Delete Package
  • Confirmation modal before each destructive action
  • Pagination controls for navigating large package lists
  • Nav link from main Admin page

Details

Depends on: #447

Test plan

  • npx vitest run - all 159 tests pass (13 test files)
  • npx tsc --noEmit - clean TypeScript build
  • Manual: navigate to /admin/reset, verify table loads with pagination
  • Manual: test each action button opens correct confirmation modal
  • Manual: confirm actions call the correct API endpoints

🤖 Generated with Claude Code

@paulvanbrenk paulvanbrenk force-pushed the feat/admin-reset-page branch 2 times, most recently from a85b6d9 to 9ef5e39 Compare February 26, 2026 16:50
Base automatically changed from feat/admin-reset-endpoints to main February 26, 2026 16:56
…leases

Add /admin/reset page with:
- Paginated table of all packages sorted by name
- Reset Summaries button: marks releases stale, deletes summaries
- Reset Releases button: deletes all releases/summaries, resets sync state
- Delete button: permanently removes the package
- Confirmation modal for all destructive actions
- Pagination controls

Includes:
- Regenerated OpenAPI spec and Orval client with new endpoints
- Mutation hooks (useResetSummaries, useResetReleases) in hooks.ts
- MSW handlers for new admin endpoints
- Hook tests (4 tests) and page tests (10 tests)
- Nav link from Admin page to Reset Data page

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@paulvanbrenk paulvanbrenk merged commit 41227c5 into main Feb 26, 2026
4 checks passed
@paulvanbrenk paulvanbrenk deleted the feat/admin-reset-page branch February 26, 2026 17:31
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.

1 participant