Skip to content
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

Remove '_' from asset status in asset page filters #5444

Merged
merged 1 commit into from
May 5, 2023

Conversation

nihal467
Copy link
Member

@nihal467 nihal467 commented May 4, 2023

WHAT

🤖 Generated by Copilot at c87931c

This pull request adds a feature to filter assets by status on the assets list page. It also improves the status label formatting in the AssetFilter component and the AssetsList.tsx file.

Proposed Changes

  • Fixes #issue?
  • Change 1
  • Change 2
  • More?

@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers

Merge Checklist

  • Add specs that demonstrate bug / test a new feature.
  • Update product documentation.
  • Ensure that UI text is kept in I18n files.
  • Prep screenshot or demo video for changelog entry, and attach it to issue.
  • Request for Peer Reviews
  • Completion of QA

HOW

🤖 Generated by Copilot at c87931c

  • Modify the status labels in the asset filter component to replace underscores with spaces for readability and consistency (link)
  • Add a new state variable status to the AssetsList component to store the selected status filter value from the query parameters (link)
  • Update the status state variable whenever the qParams.status changes using a useEffect hook to keep them in sync (link)
  • Display the status value as a regular text instead of a badge in the AssetCard component and replace underscores with spaces for consistency with the other values (link)

@nihal467 nihal467 requested a review from a team May 4, 2023 18:37
@nihal467 nihal467 requested a review from a team as a code owner May 4, 2023 18:37
@nihal467 nihal467 requested a review from vigneshhari May 4, 2023 18:37
@vercel
Copy link

vercel bot commented May 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
care-storybook ✅ Ready (Inspect) Visit Preview May 4, 2023 6:37pm

@netlify
Copy link

netlify bot commented May 4, 2023

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit c87931c
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/6453fb5ba3d84200089771b1
😎 Deploy Preview https://deploy-preview-5444--care-egov-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@sonarcloud
Copy link

sonarcloud bot commented May 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@nihal467
Copy link
Member Author

nihal467 commented May 4, 2023

LGTM , @khavinshankar can you review it,

@github-actions github-actions bot added the cypress failed pull request with cypress test failure label May 4, 2023
@khavinshankar khavinshankar merged commit 947d800 into develop May 5, 2023
30 of 31 checks passed
@github-actions
Copy link

github-actions bot commented May 5, 2023

@nihal467 We truly appreciate your efforts. Thank you for taking the time to contribute; this is a very valuable contribution to us 🥇. We always welcome your contribution 🙂, so feel free to contribute to anything anytime, and never lose that spirit of innovation 🙌.

@sainak sainak deleted the fix-asset-filter-status branch January 19, 2024 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cypress failed pull request with cypress test failure needs review tested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants