Comprehensive Audit Fixes and Stability Improvements#58
Merged
HasithaErandika merged 2 commits intomainfrom Apr 13, 2026
Merged
Comprehensive Audit Fixes and Stability Improvements#58HasithaErandika merged 2 commits intomainfrom
HasithaErandika merged 2 commits intomainfrom
Conversation
…UX across interview and dashboard components
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
This PR implements a series of critical bug fixes, performance optimizations, and UX improvements identified during a full codebase audit of the EquiHire-Core platform. The primary focus was on hardening the candidate interview experience, eliminating redundant network traffic, and resolving logic errors in the recruitment pipeline.
Type of change
Checklist
What changed
🔴 Critical & Functional Fixes (P0)
react-frontend/src/pages/candidate/Interview.tsxwhere the countdown timer reset on every keystroke. Implemented auseRefstable-reference pattern for thesubmitPayloadcallback to prevent theuseEffectfrom re-triggering during active typing.disabled={isSubmitted}logic to the "Finish & Submit" button to prevent rapid-click race conditions that created duplicate evaluation records in the backend.🟠 Logic & Pipeline Adjustments (P1)
useCandidates.tsfor accept/reject actions. The UI now derives state from the initial fetch result rather than refetching the same dataset immediately.handleApplyDecisionwhich hardcoded 'accepted' status.CandidatePipelinecomponent to align with backend status values and user actions.🟡 Performance Improvements (P2)
useQuestions.tswithPromise.all, significantly reducing dashboard load times when multiple jobs are present.fetchTemplatesandrefreshJobscalls inuseJobs.ts, saving ~200ms-400ms on initial load.🔵 UX & Security (P3)
isRevealingCv) to the CV reveal button and replaced blockingwindow.alertcalls with inline error messaging.invite_tokenstorage insessionStoragewithinInviteHandler.tsx, reducing the potential XSS attack surface.How to verify / QA steps
Security considerations
sessionStoragepost-validation, adhering to the principle of least privilege/data persistence.