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

Adding metrics widgets to metrics extension slot(WIP) #183

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

arodidev
Copy link
Contributor

@arodidev arodidev commented Feb 13, 2024

Requirements

Summary

Screenshots

None.

Related Issue

None.

Other

None.

@arodidev arodidev marked this pull request as ready for review February 13, 2024 14:51
@pirupius pirupius marked this pull request as draft February 15, 2024 07:42
Copy link
Contributor

@CynthiaKamau CynthiaKamau left a 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';
Copy link
Contributor

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

@arodidev arodidev changed the title (feat) O3-2798: Adding metrics extension slot to the refApp Adding metrics widgets to metrics extension slot(WIP) Mar 5, 2024
Comment on lines +9 to +11
const { data: appointmentsData } = useAppointmentsData();
const { data: activeVisitsData } = useActiveVisits();
const { data: visitSummaryData } = useVisitSummary();
Copy link
Member

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" />
Copy link
Member

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

@denniskigen
Copy link
Member

@arodidev ping?

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

Successfully merging this pull request may close these issues.

5 participants