-
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
Fix: Asset tab facility and location badges are malfunctioning #6474
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
rithviknishad
requested changes
Oct 19, 2023
rithviknishad
requested changes
Oct 19, 2023
Co-authored-by: Rithvik Nishad <[email protected]>
rithviknishad
requested changes
Oct 25, 2023
rithviknishad
approved these changes
Oct 26, 2023
LGTM |
khavinshankar
approved these changes
Oct 26, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WHAT
🤖 Generated by Copilot at 91b364d
This pull request improves the user interface and functionality of the assets list component. It adds state variables to show the facility name and location in the filter section, and uses the
useQuery
hook to refetch data based on filter changes.Proposed Changes
http://127.0.0.1:4000/assets?page=1&limit=18&facility=df1a22fb-1875-4949-af85-15d1917b8bfd&asset_type=&asset_class=&status=&location=&warranty_amc_end_of_validity_before=&warranty_amc_end_of_validity_after=
Remove the facility and location filter when the cross is clicked
@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
Merge Checklist
HOW
🤖 Generated by Copilot at 91b364d
facility_location
to store and display the location name of the selected facility in the assets list (link, link, link)facility_name
to store and display the facility name of the selected facility in the assets list (link)location
tolocationData
to avoid confusion withfacility_location
inAssetsList.tsx
(link)refetchOnUpdate
to theQueryOptions
interface inuseQuery.ts
to allow refetching the query data when the query parameters change (link)refetchOnUpdate
option in the query to get the facility asset location inAssetsList.tsx
to update the location name when the facility changes (link, link)