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

Show no information card if consultation and sample test history list is empty #7502

Merged

Conversation

Sulochan-khadka
Copy link
Contributor

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

@Sulochan-khadka Sulochan-khadka requested a review from a team as a code owner March 31, 2024 17:58
Copy link

vercel bot commented Mar 31, 2024

@Sulochan-khadka 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 Mar 31, 2024

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit ceb9ad0
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/6638bde15d63e3000885bdfe
😎 Deploy Preview https://deploy-preview-7502--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.

Copy link
Member

@rithviknishad rithviknishad left a comment

Choose a reason for hiding this comment

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

Comment on lines 202 to 231
<div className=" w-full px-12">
<AutoExpandingTextInputFormField
id="doctor_notes_textarea"
maxHeight={160}
rows={1}
name="note"
value={noteField}
onChange={(e) => setNoteField(e.value)}
className="grow"
errorClassName="hidden"
placeholder="Type your Note"
disabled={!patientActive}
onFocus={() => setFocused(true)}
onBlur={() => setFocused(false)}
/>
</div>
<div className="flex items-center">
<ButtonV2
id="add_doctor_note_button"
onClick={onAddNote}
border={false}
className="absolute right-2"
ghost
size="small"
disabled={!patientActive}
authorizeFor={NonReadOnlyUsers}
>
<CareIcon className="care-l-message text-lg" />
</ButtonV2>
</div>
Copy link
Member

Choose a reason for hiding this comment

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

Why was this changed? Totally unrelated to the issue being solved right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To Make the layout better... Since very soon, upload icon will also be added and so thought making a layout before would be better. Just rearrangement, thats it. Will remove if you say.

Copy link
Member

Choose a reason for hiding this comment

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

Unrelated to the issue being solved by this PR. Feel free to file a separate issue if so.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should I remove them and file separate issue for this as well?

Copy link
Member

Choose a reason for hiding this comment

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

Just saw this was addressed in another PR. Need not file an issue

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah... actually that was addressed before this, both by me, therefore, it happened so.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also changed the title as was instructed.

Copy link
Member

Choose a reason for hiding this comment

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

@Sulochan-khadka you've not pushed any changes plus the PR title still doesn't make sense. Refer the above link and see other PR's for example...

@github-actions github-actions bot added the merge conflict pull requests with merge conflict label Apr 1, 2024
Copy link

github-actions bot commented Apr 1, 2024

👋 Hi, @Sulochan-khadka,
Conflicts have been detected against the base branch. Please rebase your branch against the base branch.


This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there.

@rithviknishad rithviknishad added changes required and removed merge conflict pull requests with merge conflict labels Apr 3, 2024
@Sulochan-khadka Sulochan-khadka changed the title Issues/7501/empty list Issues/7501/adds-info-to-empty-records Apr 3, 2024
Copy link

github-actions bot commented Apr 3, 2024

👋 Hi, @Sulochan-khadka,
Conflicts have been detected against the base branch. Please rebase your branch against the base branch.


This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there.

@github-actions github-actions bot added the merge conflict pull requests with merge conflict label Apr 3, 2024
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 Apr 11, 2024
@Sulochan-khadka
Copy link
Contributor Author

Have removed the unrelated code... @rithviknishad Let me have a review of yours...

@Sulochan-khadka Sulochan-khadka changed the title Issues/7501/adds-info-to-empty-records Issues/7501/appropriate-message-for-empty-records Apr 11, 2024
@Sulochan-khadka
Copy link
Contributor Author

@rithviknishad , I have resolved the conflicts. Kindly do the needful. Thanks

@github-actions github-actions bot removed the stale label Apr 12, 2024
@nihal467
Copy link
Member

@Sulochan-khadka

image

  • add a white padding, inside that padding write "No consultation History" similar to the No medical history available padding on the top

@Sulochan-khadka
Copy link
Contributor Author

@Sulochan-khadka

image

  • add a white padding, inside that padding write "No consultation History" similar to the No medical history available padding on the top

I think I implemented what you suggested...
Screenshot 2024-04-21 at 12 21 13 PM

Let me know if I got it wrong...

@Sulochan-khadka
Copy link
Contributor Author

@nihal467 kindly have a review .

@Sulochan-khadka
Copy link
Contributor Author

@nihal467 @Ashesh3 @rithviknishad kindly get this merged soon. Let me know if some modifications are required from my side. Thankyou.

@rithviknishad rithviknishad changed the title Issues/7501/appropriate-message-for-empty-records Show no information card if consultation and sample test history list is empty May 6, 2024
@nihal467
Copy link
Member

nihal467 commented May 7, 2024

LGTM

@khavinshankar khavinshankar merged commit c49929c into coronasafe:develop May 7, 2024
30 of 32 checks passed
Copy link

github-actions bot commented May 7, 2024

@Sulochan-khadka Your efforts have helped advance digital healthcare and TeleICU systems. 🚀 Thank you for taking the time out to make CARE better. We hope you continue to innovate and contribute; your impact is immense! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No Information if list is empty.
5 participants