-
Notifications
You must be signed in to change notification settings - Fork 437
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
Redesigned Facility Home Page #3819
Redesigned Facility Home Page #3819
Conversation
✅ Deploy Preview for care-egov-staging ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
👋 Hi, @GokulramGHV, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
src/style/index.css
Outdated
.btn-secondary { | ||
@apply px-4 py-3 border bg-white border-primary-500 rounded font-medium text-sm text-primary-500 flex justify-center items-center gap-2 hover:bg-primary-500 hover:text-white transition duration-300 ease-in-out | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GokulramGHV revert this, and use the new ButtonV2 with type/style="secondary" instead of adjusting classes.
<Transition | ||
as={Fragment} | ||
enter="transition ease-out duration-100" | ||
enterFrom="transform opacity-0 scale-95" | ||
enterTo="transform opacity-100 scale-100" | ||
leave="transition ease-in duration-75" | ||
leaveFrom="transform opacity-100 scale-100" | ||
leaveTo="transform opacity-0 scale-95" | ||
> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace this with already implemented DropdownTransition
since we need consistent dropdown animation for all types of dropdowns, which is already a wrapper around headlessui's transition.
<svg | ||
className="w-5 h-5" | ||
viewBox="0 0 14 16" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
d="M7 8C9.20938 8 11 6.20937 11 4C11 1.79063 9.20938 0 7 0C4.79063 0 3 1.79063 3 4C3 6.20937 4.79063 8 7 8ZM4 9.725C1.6875 10.4031 0 12.5406 0 15.0719C0 15.5844 0.415625 16 0.928125 16H13.0719C13.5844 16 14 15.5844 14 15.0719C14 12.5406 12.3125 10.4031 10 9.725V11.3125C10.8625 11.5344 11.5 12.3188 11.5 13.25V14.5C11.5 14.775 11.275 15 11 15H10.5C10.225 15 10 14.775 10 14.5C10 14.225 10.225 14 10.5 14V13.25C10.5 12.6969 10.0531 12.25 9.5 12.25C8.94687 12.25 8.5 12.6969 8.5 13.25V14C8.775 14 9 14.225 9 14.5C9 14.775 8.775 15 8.5 15H8C7.725 15 7.5 14.775 7.5 14.5V13.25C7.5 12.3188 8.1375 11.5344 9 11.3125V9.52812C8.8125 9.50937 8.62188 9.5 8.42813 9.5H5.57188C5.37813 9.5 5.1875 9.50937 5 9.52812V11.5719C5.72188 11.7875 6.25 12.4563 6.25 13.25C6.25 14.2156 5.46562 15 4.5 15C3.53437 15 2.75 14.2156 2.75 13.25C2.75 12.4563 3.27813 11.7875 4 11.5719V9.725ZM4.5 14C4.91563 14 5.25 13.6656 5.25 13.25C5.25 12.8344 4.91563 12.5 4.5 12.5C4.08437 12.5 3.75 12.8344 3.75 13.25C3.75 13.6656 4.08437 14 4.5 14Z" | ||
fill="white" | ||
/> | ||
</svg> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use unicons or move svg's to constants and make it tailwind compatible instead of hardcoding the colors.
@GokulramGHV PR looks good to me. Marking it as "Team discussion required" for final approval |
👋 Hi, @GokulramGHV, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
PR final design approved, @khavinshankar it is good to merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GokulramGHV some minor changes
useEffect(() => { | ||
setTimeout(() => { | ||
if (props.current_capacity && props.total_capacity) | ||
setPercentage((props.current_capacity * 100) / props.total_capacity); | ||
}, 1000); | ||
}, [isVisible, percentage, props.current_capacity, props.total_capacity]); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't we calculate the percentage directly without the useEffect, and why timeout?
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
* added table and dropdown menu * added doctorCountCard and Triage Table * changed few icons * changed facility feature type icons * used ButtonV2 for add patient button * fixed table component and refactored code * made the menu button customizable * Revert "made the menu button customizable" This reverts commit 402cffe. * ButtonV2: border for ghost variants * authorized for ButtonV2 access control * deprecate `RoleButton` * fix contextual colors * improve tailwind component: DropDownItem * improve how component authorization is defined * remove console.log * hide dropdown item if not authorized * added ContactLink component * Update src/Components/Common/components/ContactLink.tsx Co-authored-by: Rithvik Nishad <rithvikn2001@gmail.com> * Fixed bedTypeCard animation & refactored some code Co-authored-by: Rithvik Nishad <rithvikn2001@gmail.com>
fixes #3757
fixes #3804
fixes #4007
fixes #3713
Proposed Changes
@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
Merge Checklist