feat: Add comprehensive test suite and misc improvements

- Add frontend unit tests with Vitest for components, hooks, pages, and utilities
- Add backend tests for webhooks, notifications, middleware, and edge cases
- Add ForgotPassword, NotFound, and ResetPassword pages
- Add migration for orphaned staff resources conversion
- Add coverage directory to gitignore (generated reports)
- Various bug fixes and improvements from previous work

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
poduck
2025-12-08 02:36:46 -05:00
parent c220612214
commit 8dc2248f1f
145 changed files with 77947 additions and 1048 deletions

View File

@@ -9,6 +9,7 @@ import {
getCurrentUser,
masquerade,
stopMasquerade,
forgotPassword,
LoginCredentials,
User,
MasqueradeStackEntry
@@ -255,3 +256,12 @@ export const useStopMasquerade = () => {
},
});
};
/**
* Hook to request password reset
*/
export const useForgotPassword = () => {
return useMutation({
mutationFn: (data: { email: string }) => forgotPassword(data.email),
});
};