-
-
Notifications
You must be signed in to change notification settings - Fork 398
fix(board): render error state instead of infinite loader when data is null #3107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings. WalkthroughRefactors candidates page to use Apollo's native Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code graph analysis (1)frontend/src/app/board/[year]/candidates/page.tsx (1)
🔇 Additional comments (2)
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 |
|
There are no duplicate PR please do not close this one. |
|
@arkid15r Merge it as i was unaware about the rules so some problem happened at first . You can see everything is working fine below. Futher i will be more sincere with raising PRs |
|
|
@kasya I fixed the code but any of the maintainers are not taking the PRs seriously. Sometimes the bot added changes required then I closed the pr and reraised it. This is not a correct way. But all you can merge that pr |



Proposed change
Resolves #3052
Contributor: Soumya (GitHub: @nios-x)
Role: Student contributor (GSoC aspirant)
This PR fixes an issue on the Board page where the UI enters an infinite loading state when the GraphQL response for a selected year returns
null.Previously, the loading state was rendered before validating whether
boardOfDirectorsdata existed. As a result, when the query completed successfully but returnednull, the page remained stuck on the loading spinner.This change updates the conditional rendering logic to:
nullboard data before rendering the loading stateChecklist
make check-testlocally and all tests passedPrevious ScreenShots:

Current ScreenShots
