improvement(kb): add loading logic for document selector for kb block#722
improvement(kb): add loading logic for document selector for kb block#722waleedlatif1 merged 1 commit intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
There was a problem hiding this comment.
Greptile Summary
This PR adds loading state management to the document selector component in the knowledge base block. The change addresses an inconsistency where other dropdowns had loading indicators but this one did not. The implementation adds:
- Loading state management using
setLoadingstate - Error handling cleanup
- Visual feedback during document loading with a spinning RefreshCw icon
- Proper state cleanup in the finally block
This change brings the document selector in line with other dropdown components in the application, improving UI consistency and user experience.
Confidence score: 5/5
- This PR is extremely safe to merge as it follows established patterns
- The changes are minimal, focused, and mirror existing implemented loading logic across other dropdowns
- No files need special attention - the changes are straightforward and well-implemented
1 file reviewed, no comments
Edit PR Review Bot Settings | Greptile
|
✅ No security or compliance issues detected. Reviewed everything up to cbf6160. Security Overview
Detected Code Changes
Reply to this PR with |
Description
add loading logic for document selector for kb block, all other dropdowns had the same loading logic except this one
Type of change
How Has This Been Tested?
Tested manually
Checklist:
bun run test)Security Considerations: