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

refactor(graphCard): sw-746 card styling #1032

Merged
merged 1 commit into from
Feb 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ exports[`GraphCard Component should render a default component: default 1`] = `<
exports[`GraphCard Component should setup basic settings: settings, grouped 1`] = `
<Fragment>
<ContextProvider
key="graphCard_grouped-Core-seconds"
value={
{
"settings": {
Expand Down Expand Up @@ -44,19 +45,7 @@ exports[`GraphCard Component should setup basic settings: settings, grouped 1`]
exports[`GraphCard Component should setup basic settings: settings, standalone 1`] = `
<Fragment>
<ContextProvider
value={{}}
>
<GraphCardChart
t={[Function]}
useGetMetrics={[Function]}
useGraphCardActions={[Function]}
useGraphCardContext={[Function]}
useProduct={[Function]}
useProductGraphTallyQuery={[Function]}
/>
</ContextProvider>
<ContextProvider
key="graphCard_Sockets"
key="graphCard_standalone-Sockets"
value={
{
"settings": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,21 @@ exports[`GraphCardChart Component should handle API response states: error 1`] =
<Card
className="curiosity-usage-graph"
>
<MinHeight
key="headerMinHeight"
minHeight={0}
updateOnContent={false}
updateOnResize={true}
>
<CardHeader>
<CardTitle>
<Title
headingLevel="h2"
size="lg"
>
t(curiosity-graph.cardHeading, {})
<GraphCardChartTitleTooltip
t={[Function]}
useGraphCardContext={[Function]}
useProduct={[Function]}
/>
</Title>
</CardTitle>
</CardHeader>
</MinHeight>
<CardHeader>
<CardTitle>
<Title
headingLevel="h2"
size="lg"
>
t(curiosity-graph.cardHeading, {})
<GraphCardChartTitleTooltip
t={[Function]}
useGraphCardContext={[Function]}
useProduct={[Function]}
/>
</Title>
</CardTitle>
</CardHeader>
<MinHeight
key="bodyMinHeight"
minHeight={0}
Expand Down Expand Up @@ -68,28 +61,21 @@ exports[`GraphCardChart Component should handle API response states: fulfilled 1
<Card
className="curiosity-usage-graph"
>
<MinHeight
key="headerMinHeight"
minHeight={0}
updateOnContent={false}
updateOnResize={true}
>
<CardHeader>
<CardTitle>
<Title
headingLevel="h2"
size="lg"
>
t(curiosity-graph.cardHeading, {})
<GraphCardChartTitleTooltip
t={[Function]}
useGraphCardContext={[Function]}
useProduct={[Function]}
/>
</Title>
</CardTitle>
</CardHeader>
</MinHeight>
<CardHeader>
<CardTitle>
<Title
headingLevel="h2"
size="lg"
>
t(curiosity-graph.cardHeading, {})
<GraphCardChartTitleTooltip
t={[Function]}
useGraphCardContext={[Function]}
useProduct={[Function]}
/>
</Title>
</CardTitle>
</CardHeader>
<MinHeight
key="bodyMinHeight"
minHeight={0}
Expand Down Expand Up @@ -132,28 +118,21 @@ exports[`GraphCardChart Component should handle API response states: pending 1`]
<Card
className="curiosity-usage-graph"
>
<MinHeight
key="headerMinHeight"
minHeight={0}
updateOnContent={false}
updateOnResize={true}
>
<CardHeader>
<CardTitle>
<Title
headingLevel="h2"
size="lg"
>
t(curiosity-graph.cardHeading, {})
<GraphCardChartTitleTooltip
t={[Function]}
useGraphCardContext={[Function]}
useProduct={[Function]}
/>
</Title>
</CardTitle>
</CardHeader>
</MinHeight>
<CardHeader>
<CardTitle>
<Title
headingLevel="h2"
size="lg"
>
t(curiosity-graph.cardHeading, {})
<GraphCardChartTitleTooltip
t={[Function]}
useGraphCardContext={[Function]}
useProduct={[Function]}
/>
</Title>
</CardTitle>
</CardHeader>
<MinHeight
key="bodyMinHeight"
minHeight={0}
Expand Down Expand Up @@ -183,28 +162,21 @@ exports[`GraphCardChart Component should render a default component: default 1`]
<Card
className="curiosity-usage-graph"
>
<MinHeight
key="headerMinHeight"
minHeight={0}
updateOnContent={false}
updateOnResize={true}
>
<CardHeader>
<CardTitle>
<Title
headingLevel="h2"
size="lg"
>
t(curiosity-graph.cardHeading, {})
<GraphCardChartTitleTooltip
t={[Function]}
useGraphCardContext={[Function]}
useProduct={[Function]}
/>
</Title>
</CardTitle>
</CardHeader>
</MinHeight>
<CardHeader>
<CardTitle>
<Title
headingLevel="h2"
size="lg"
>
t(curiosity-graph.cardHeading, {})
<GraphCardChartTitleTooltip
t={[Function]}
useGraphCardContext={[Function]}
useProduct={[Function]}
/>
</Title>
</CardTitle>
</CardHeader>
<MinHeight
key="bodyMinHeight"
minHeight={0}
Expand Down
Loading