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

modify loader flag for patients count #8034

Conversation

FrankenDeba
Copy link

@FrankenDeba FrankenDeba commented Jun 17, 2024

Proposed Changes

@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

@FrankenDeba FrankenDeba requested a review from a team as a code owner June 17, 2024 10:09
Copy link

vercel bot commented Jun 17, 2024

@FrankenDeba is attempting to deploy a commit to the Open Healthcare Network Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

netlify bot commented Jun 17, 2024

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit 7799781
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/6671c2bc0eedf80008d39c77
😎 Deploy Preview https://deploy-preview-8034--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 configuration.

@FrankenDeba
Copy link
Author

Screenshot 2024-06-17 at 3 40 51 PM

@@ -902,7 +902,7 @@ export const PatientManager = () => {
<CountBlock
text="Total Patients"
count={data?.count || 0}
loading={isLoading}
loading={(!data?.count && data?.count !== 0) || isLoading}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FrankenDeba make this change at CountBlock so that it is applied throughout the application

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@khavinshankar Done, please check it!

@@ -22,7 +22,7 @@ export default function CountBlock(props: Props) {
<dt className="my-2 truncate text-sm font-semibold text-gray-700">
{props.text}
</dt>
{props.loading ? (
{props.loading || (!props.count && props.count !== 0) ? (
Copy link
Member

@sainak sainak Jun 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't this be stuck in the loading state if the count is actually 0?

we should not collace count to 0 if it's undefined while passing it to the component, and hide loading state when the count becomes defined

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't understand,I am already checking if the count is not 0,do I still need to change the approach?
@sainak

Copy link
Author

@FrankenDeba FrankenDeba Jun 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You there?
Can you please be more specific about the changes?
@sainak

Copy link

Hi, This pr has been automatically marked as stale because it has not had any recent activity. It will be automatically closed if no further activity occurs for 7 more days. Thank you for your contributions.

@github-actions github-actions bot added the stale label Jun 28, 2024
Copy link

github-actions bot commented Jul 6, 2024

Hi, @coronasafe/care-frontend-maintainers, This PR has been automatically closed due to inactivity. Thank you for your contributions. Feel free to re-open the PR.

@github-actions github-actions bot closed this Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a skeleton loader during advance filters are loaded
4 participants