-
Notifications
You must be signed in to change notification settings - Fork 477
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
Replaced useDispatch w. useQuery/request: Resource (src/Components/Resource/**) #6461
Replaced useDispatch w. useQuery/request: Resource (src/Components/Resource/**) #6461
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✅ Deploy Preview for care-egov-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
comment section in paginaltedList pagination is not working, will paginated list itself handle the query offset and limit or explicitly change it |
👋 Hi, @konavivekramakrishna, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
@rithviknishad |
Rest LGTM |
@nihal467 |
Hello @rithviknishad |
LGTM |
WHAT
🤖 Generated by Copilot at 47daa24
Refactored the resource management components to use the
useQuery
andrequest
utilities for data fetching and posting, instead of custom hooks and actions. Removed unused and updated existing routes and functions in theapi
andactions
modules. Added type interfaces for the comment and resource data models in themodels.ts
file.Proposed Changes
useDispatch
w.useQuery
/request
: Resource (src/Components/Resource/**
) #6443@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
Merge Checklist
HOW
🤖 Generated by Copilot at 47daa24
useQuery
andrequest
utilities for fetching and updating data (F0-F8)useQuery
calls to fetch the facility, user, resource, and comment data using theroutes
andFacilityModel
,UserModel
,IResource
, andIComment
interfaces (link,link,link,link,link,link,link,link,link,link,link,link,link,link,link,link,link,link,link,link,link,link,link,link,link,link,link,link)request
calls to update and delete the resource and comment data using theroutes
andIResource
andIComment
interfaces (link,link,link,link,link)createResource
,updateResource
,deleteResourceRecord
,listResourceRequests
,getResourceDetails
,getResourceComments
, andaddResourceComments
functions from theactions
module (link)createResource
,updateResource
,deleteResourceRecord
,listResourceRequests
,getResourceDetails
,getResourceComments
, andaddResourceComments
routes from theapi
module (link)FacilityModel
,IComment
, andIResource
imports and specify the response and body types for the remaining routes using theTRes
andTBody
properties (link,link,link,link)