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

Modified the UI of events log and switch tab #8825

Merged
merged 21 commits into from
Oct 27, 2024

Conversation

JOSHIK27
Copy link
Contributor

@JOSHIK27 JOSHIK27 commented Oct 18, 2024

Proposed Changes

  • Fixes Modify the UI of events log switch tab #8286
  • Erased the logic for both sort buttons which were initially present in child components i.e (eventlist and dailroundslist) and brought the logic to parent component which was rendering child components.
  • In the parent component, 2 query state variables for both sort buttons were created and passed them as props to child components. And DailyRoundsSortDropdown (which is popover) component is created in the parent component.
  • DailyRoundsSortDropdown styling was fixed as we just need to display filter icon (not text)
  • For eventlist sort button, a new popover was created to make it look exactly same as DailyRoundsSortDropdown popover.
Screen.Recording.2024-10-21.at.06.32.44.mov

@ohcnetwork/care-fe-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

@JOSHIK27 JOSHIK27 requested a review from a team as a code owner October 18, 2024 11:46
Copy link

netlify bot commented Oct 18, 2024

Deploy Preview for care-ohc ready!

Name Link
🔨 Latest commit 8292d27
🔍 Latest deploy log https://app.netlify.com/sites/care-ohc/deploys/671ddf369028310008898dfc
😎 Deploy Preview https://deploy-preview-8825--care-ohc.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.

@JOSHIK27 JOSHIK27 changed the title Fixes#8286 Modified the UI of events log and switch tab Oct 18, 2024
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.

Please follow the PR template and checklist.

@JOSHIK27
Copy link
Contributor Author

Please follow the PR template and checklist.

I have added proposed changed in the pr template. can you check if everything is ok or if anything needs to changed @rithviknishad ?

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.

lgtm, just a minor change

src/pluginMap.ts Outdated Show resolved Hide resolved
@bodhish
Copy link
Member

bodhish commented Oct 21, 2024

@JOSHIK27 the Merge Checklist is still not completed. Please complete it.

  • Ensure that UI text is kept in I18n files.
  • Prep screenshot or demo video for changelog entry, and attach it to issue.

@JOSHIK27
Copy link
Contributor Author

@JOSHIK27 the Merge Checklist is still not completed. Please complete it.

* [ ]   Ensure that UI text is kept in I18n files.

* [ ]   Prep screenshot or demo video for changelog entry, and attach it to issue.

Attached demo video above. And the pr above does not introduce any text to the ui (just layout fixes). Please let me if anything is needed. Thanks.

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.

a self review of the code changes would help identify missing translations

{
text: (
<div className="flex items-center justify-center gap-1 text-sm">
Events
Copy link
Member

Choose a reason for hiding this comment

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

missing i18n

<div className="flex items-center justify-center gap-1 text-sm">
Events
<span className="rounded-lg bg-warning-400 p-px px-1 text-xs text-white">
beta
Copy link
Member

Choose a reason for hiding this comment

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

missing i18n

/>
<TextFormField
{...field("taken_at_after")}
label="Measured after"
Copy link
Member

Choose a reason for hiding this comment

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

missing i18n

src/Locale/en.json Outdated Show resolved Hide resolved
@rithviknishad rithviknishad requested a review from bodhish October 22, 2024 16:14
Copy link
Member

@bodhish bodhish left a comment

Choose a reason for hiding this comment

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

LGTM

@nihal467
Copy link
Member

nihal467 commented Oct 23, 2024

image

  • add a spacing between the card and the switch tabs

image

  • When a user applies any sort-by option, the filter icon button should change to the primary color, the same as the behavior in the daily round filter where the button turns primary when a filter is active.

@JOSHIK27
Copy link
Contributor Author

image

* [ ]  add a spacing between the card and the switch tabs

image

* [ ]  When a user applies any sort-by option, the filter icon button should change to the primary color, the same as the behavior in the daily round filter where the button turns primary when a filter is active.

Please let me know if anything needs to be changed.

Screen.Recording.2024-10-23.at.08.29.11.mov

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

👋 Hi, @JOSHIK27,
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 removed the merge conflict pull requests with merge conflict label Oct 23, 2024
@nihal467
Copy link
Member

LGTM

@bodhish bodhish merged commit 5ef6740 into ohcnetwork:develop Oct 27, 2024
22 checks passed
Copy link

@JOSHIK27 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modify the UI of events log switch tab
4 participants