-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
refactor: change endpoint monitor/builds to use useQuery #2622
Conversation
Pull Request Validation ReportThis comment is automatically generated by Conventional PR Whitelist Report
Result Pull request does not satisfy any enabled whitelist criteria. Pull request will be validated. Validation Report
Result Pull request satisfies all enabled pull request rules. Last Modified at 10 Jul 24 13:33 UTC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
c01af47
to
c37534b
Compare
✨ (index.ts): create index file for builds-related queries ✨ (use-delete-builds.ts): implement useDeleteFLowPool hook for deleting builds
♻️ (chatView): refactor clearChat function to use mutateFlowPool for deletion
…s for clarity ♻️ (index.tsx): update import and usage of useDeleteFLowPool to useDeleteBuilds
✨ (PageComponent): integrate use-get-builds query for fetching builds ✨ (flowStore): add setters for inputs, outputs, and hasIO in flowStore
… outputs 🔥 (flowStore.ts): remove unused resetFlow function to clean up the codebase
…arams ✨ (PageComponent): add logic to handle flow state, inputs, outputs, and viewport ♻️ (flowStore): refactor and add resetFlow method to handle flow state reset
✅ (generalBugs-shard-3.spec.ts): add end-to-end test for playground button state
c37534b
to
6b0d345
Compare
…#2622) * ✨ (constants.ts): add BUILDS endpoint to URLs constants ✨ (index.ts): create index file for builds-related queries ✨ (use-delete-builds.ts): implement useDeleteFLowPool hook for deleting builds * ✨ (chatView): integrate useDeleteFlowPool hook for deleting flow pool ♻️ (chatView): refactor clearChat function to use mutateFlowPool for deletion * ♻️ (use-delete-builds.ts): rename useDeleteFLowPool to useDeleteBuilds for clarity ♻️ (index.tsx): update import and usage of useDeleteFLowPool to useDeleteBuilds * ✨ (API): add use-get-builds query to fetch build data ✨ (PageComponent): integrate use-get-builds query for fetching builds ✨ (flowStore): add setters for inputs, outputs, and hasIO in flowStore * ♻️ (flowStore.ts): refactor hasIO to derive its value from inputs and outputs 🔥 (flowStore.ts): remove unused resetFlow function to clean up the codebase * ♻️ (use-get-builds.ts): refactor useGetBuildsQuery to remove unused params ✨ (PageComponent): add logic to handle flow state, inputs, outputs, and viewport ♻️ (flowStore): refactor and add resetFlow method to handle flow state reset * ✅ (chatComponent): add data-testid attributes for better testability ✅ (generalBugs-shard-3.spec.ts): add end-to-end test for playground button state --------- Co-authored-by: anovazzi1 <[email protected]> (cherry picked from commit a811834)
This pull request refactors the existing implementation of the monitor/builds endpoint to utilize React Query's useQuery hook.