Pluton / Visual Lab
Subtle - Hardcore

[Build] feat: Add polling logic after approval for KPI breakdown status

Published on October 26, 2025

## GitHub Update **Repository:** [MKWcorp/hrisnextgen](https://github.com/MKWcorp/hrisnextgen) **Author:** multimediadrw **Date:** 10/26/2025, 2:47:31 PM **Commit:** [`71260bf`](https://github.com/MKWcorp/hrisnextgen/commit/71260bf42246a243a2ba3d15f7c7c33f45773110) ### Commit Message feat: Add polling logic after approval for KPI breakdown status - Add isProcessing and pollingIntervalId state - Implement startPolling, stopPolling, and checkStatus functions - Poll /api/check-status/{batch_id} every 5 seconds - Redirect to /dashboard/assign/{batch_id} when status is KPI_Assignment_Pending - Update UI to show loading state during processing - Disable buttons and show 'Sedang membuat rincian KPI' message while polling - Add cleanup useEffect to stop polling on component unmount --- _This story was imported from historical commits._