refactor(dashboard): remove dead hooks/utils and update API docs - #349
Merged
Lakes41 merged 1 commit intoAug 19, 2026
Merged
Conversation
- Delete lib/hooks/useApiList.ts — unused hook with no consumers - Delete lib/fetch-list.ts — unused fetch helper with no consumers - Rewrite app/api/README.md to cover all 20 routes (was missing 15+) and remove the stale "Adding Webhook Support" tutorial for the endpoint that already exists at /api/webhooks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Removes two dead library files from the dashboard that had no consumers anywhere in the codebase, and rewrites the stale API route documentation to accurately reflect the current state of the app.
Type of Change
🐛 Bug fix
✨ New feature / enhancement
📝 Documentation update
🔧 Chore / refactor
🧪 Tests only
Changes Made
Deleted useApiList.ts
— a client-side fetch hook that was never imported by any page, component, or utility. It was an earlier abstraction superseded by the inline fetch pattern used across pages today.
Deleted fetch-list.ts
— a lower-level fetch helper that useApiList was built on. Also never imported externally. Confirmed zero consumers via codebase-wide search before deletion.
Rewrote README.md
— the previous version documented only 5 of the 20 existing API routes and contained a "Adding Webhook Support" tutorial describing a route (/api/webhooks) that already exists and is fully implemented. The updated doc covers all routes in a structured reference table and accurately describes the real webhook endpoint behaviour, including its rate limiting, size guards, and response codes.
Test Evidence
No logic was changed — only dead files removed and docs corrected. Existing tests are unaffected.
pnpm typecheck # passes — no imports of deleted files existed
pnpm test # all existing tests pass
Checklist
Additional Notes
The deleted files were identified by tracing imports across the entire codebase. No active code paths were modified. This is a noise-reduction change only.
Closes #324