-
Notifications
You must be signed in to change notification settings - Fork 489
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
Timeline style view for Daily Rounds #6808
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✅ Deploy Preview for care-egov-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@rithviknishad @khavinshankar @nihal467 @gigincg any recommendations on the designs? |
src/Components/Facility/Consultations/DailyRounds/DefaultLogUpdateCard.tsx
Show resolved
Hide resolved
src/Components/Facility/Consultations/DailyRounds/DefaultLogUpdateCard.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Rithvik Nishad <[email protected]>
Co-authored-by: Rithvik Nishad <[email protected]>
Co-authored-by: Rithvik Nishad <[email protected]>
…dateCard.tsx Co-authored-by: Rithvik Nishad <[email protected]>
…dateCard.tsx Co-authored-by: Rithvik Nishad <[email protected]>
Co-authored-by: Rithvik Nishad <[email protected]>
@rithviknishad should we add some padding? |
Yes, also the user icon itself would be good here ig. What do you think? |
How do I add the user icon? The Timeline component is automatically taking the firstname and lastname to display |
Have a gray border maybe for the details part like the green border is there for the details part of automated rounds |
👋 Hi, @Pranshu1902, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
@Pranshu1902 clear the merge conflict for testing |
@nihal467 done |
LGTM |
Also Fixes #6886 |
@Pranshu1902 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 🙌. |
* make template timeline design * Update src/Components/Facility/Consultations/DailyRoundsList.tsx Co-authored-by: Rithvik Nishad <[email protected]> * Update src/Components/Facility/Consultations/DailyRoundsList.tsx Co-authored-by: Rithvik Nishad <[email protected]> * Update src/Components/Facility/Consultations/DailyRoundsList.tsx Co-authored-by: Rithvik Nishad <[email protected]> * Update src/Components/Facility/Consultations/DailyRounds/DefaultLogUpdateCard.tsx Co-authored-by: Rithvik Nishad <[email protected]> * Update src/Components/Facility/Consultations/DailyRounds/DefaultLogUpdateCard.tsx Co-authored-by: Rithvik Nishad <[email protected]> * Update src/Components/Facility/Consultations/DailyRoundsList.tsx Co-authored-by: Rithvik Nishad <[email protected]> * add border and user icon * refactor * always display time on right * use measured at time instead of created at * enhance UI spacing * show user type and fix tooltip * enhance the loader * refactor * complete merge * remove empty card in loader --------- Co-authored-by: Rithvik Nishad <[email protected]> Co-authored-by: Aakash Singh <[email protected]>
<Timeline className="rounded-lg bg-white p-2 shadow" name="log update"> | ||
<ul className={props.className}> | ||
{loading && props.shimmer | ||
? Array.from({ length: props.shimmerCount ?? 8 }).map((_, i) => ( | ||
<li key={i} className="w-full"> | ||
{props.shimmer} | ||
</li> | ||
)) | ||
: items.map((item, index, items) => ( | ||
<li key={index} className="w-full"> | ||
{props.children(item, items)} | ||
</li> | ||
))} | ||
</ul> | ||
</Timeline> |
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.
PagiantedList is a generic reusable component. Wrapping timeline here is not appropriate. Because not all Paginated List Items are Timelines, although all Timelines may be Paginated List Items.
WHAT
🤖[deprecated] Generated by Copilot at f0ee615
Refactored the UI and code of the daily rounds feature for patients in a facility. Used the
Timeline
andTimelineNode
components to display the daily rounds as a chronological sequence of events. Simplified theDefaultLogUpdateCard
andVirtualNursingAssistantLogUpdateCard
components to show only the relevant information and actions for each round. Removed unused code and components.Proposed Changes
Use Timeline style component for displaying the Update Logs of Daily Rounds
Now:
@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
Merge Checklist
HOW
🤖[deprecated] Generated by Copilot at f0ee615
DefaultLogUpdateCard
andVirtualNursingAssistantLogUpdateCard
components (link, link, link, link, link, link)PaginatedList
withTimeline
andTimelineNode
components to render daily rounds list as a chronological sequence of events inDailyRoundsList
component (link, link)DailyRoundsList
toDefaultLogUpdateCard
component (link, link)