Fix/recruiter job delete#1409
Conversation
|
Hi @YAXH64, thanks for contributing to InternHack! 🎉 I have automatically:
Our workflows will now analyze your changes to classify:
Tip Ensure your PR description references the issue it resolves (e.g. Happy coding! 🚀 |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughConfirmDialog is extended with optional description, variant-based button styling, loading state, and custom children rendering. Escape-key and backdrop interactions are made loading-aware. ApplicationsList and RecruiterJobsList both integrate the enhanced dialog: ApplicationsList gates candidate advancement behind confirmation and refactors React Query data fetching; RecruiterJobsList replaces native confirm with styled dialog for job deletion. ChangesConfirmation Dialog Flows
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 4❌ Failed checks (1 warning, 3 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Code Review — PR #1409: Fix/recruiter job deleteHi @YAXH64, the ConfirmDialog-based confirmation flow and the pagination state move into the query result are solid improvements. One coordination note. 🟡 Merge conflict:
|
daf46eb
into
Sachinchaurasiya360:main
Pull Request
Description
Replaced the native browser
window.confirm()dialog used for job deletion with the application's reusableConfirmDialogcomponent.Changes Made
window.confirm()fromRecruiterJobsList.Benefits
Related Issue
Fixes #1138
Type of Change
Testing
Manual Testing
Open Recruiter Dashboard → My Job Listings.
Click the Delete button for a job.
Verify the confirmation modal appears.
Click Cancel and verify the job is not deleted.
Reopen the modal and click Delete.
Verify the job is removed successfully.
Verify the success toast appears.
Simulate a failed delete request and verify:
Verify multiple rapid clicks do not trigger duplicate delete requests.
Verify Escape key closes the dialog when not loading.
Verify dark mode and light mode styling.
Validation
Screenshots / Video
Before
window.confirm()).After
Checklist
.env, credentials, ornode_modulescommittedSummary by CodeRabbit
New Features
Improvements