-
Notifications
You must be signed in to change notification settings - Fork 72
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
Adding metrics widgets to metrics extension slot(WIP) #183
base: main
Are you sure you want to change the base?
Conversation
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.
Thanks @arodidev for this, perhaps instead of test
you could use something like common
or template
so that people get that it is to be used as a starter. Otherwise LGTM
@@ -0,0 +1,23 @@ | |||
import React from 'react'; | |||
import { Tile, Layer } from '@carbon/react'; | |||
import styles from './home-metrics-widget.scss'; |
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.
You can seperate the styles or have a single file that will insinuate that its used by many files
packages/esm-home-app/src/homepage-metrics/TestDataTile.component.tsx
Outdated
Show resolved
Hide resolved
const { data: appointmentsData } = useAppointmentsData(); | ||
const { data: activeVisitsData } = useActiveVisits(); | ||
const { data: visitSummaryData } = useVisitSummary(); |
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.
These don't belong here. esm-home
should just set up the slot and the logic should live in the respective esms similar to the way the appointments widget is lives in the appointments esm but is attached to the home dashboard slot
@@ -19,6 +19,7 @@ export default function HomeDashboard() { | |||
return ( | |||
<section className={isDesktop(layout) && styles.dashboardContainer}> | |||
{isDesktop(layout) && <ExtensionSlot name="home-sidebar-slot" key={layout} />} | |||
<ExtensionSlot className={styles.homeMetricsWidgets} name="home-metrics-widgets-slot" /> |
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.
This should also be moved to the DashboardView
@arodidev ping? |
Requirements
Summary
Screenshots
None.
Related Issue
None.
Other
None.