Skip to content

Commit

Permalink
Ensure dashboard components that can display as Table ensure it is a …
Browse files Browse the repository at this point in the history
…registered component first. Fixes #259.
  • Loading branch information
MichaelBurgess committed Mar 11, 2024
1 parent 39726fb commit 107b6a8
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/dashboard/src/components/dashboards/Card/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Ensure Table is loaded & registered first
import "@powerpipe/components/dashboards/Table";
import DashboardIcon from "../common/DashboardIcon";
import has from "lodash/has";
import IntegerDisplay from "@powerpipe/components/IntegerDisplay";
Expand Down
2 changes: 2 additions & 0 deletions ui/dashboard/src/components/dashboards/Image/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Ensure Table is loaded & registered first
import "@powerpipe/components/dashboards/Table";
import get from "lodash/get";
import Img from "react-cool-img";
import {
Expand Down
2 changes: 2 additions & 0 deletions ui/dashboard/src/components/dashboards/charts/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Ensure Table is loaded & registered first
import "@powerpipe/components/dashboards/Table";
import { getComponent } from "../index";
import { IChart } from "./types";
const Table = getComponent("table");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Ensure Table is loaded & registered first
import "@powerpipe/components/dashboards/Table";
import Card, { CardProps } from "@powerpipe/components/dashboards/Card";
import CheckGrouping from "../CheckGrouping";
import CustomizeViewSummary from "../CustomizeViewSummary";
Expand Down
2 changes: 2 additions & 0 deletions ui/dashboard/src/components/dashboards/flows/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Ensure Table is loaded & registered first
import "@powerpipe/components/dashboards/Table";
import { getComponent } from "../index";
import { IFlow } from "./types";
const Table = getComponent("table");
Expand Down
2 changes: 2 additions & 0 deletions ui/dashboard/src/components/dashboards/graphs/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Ensure Table is loaded & registered first
import "@powerpipe/components/dashboards/Table";
import { getComponent } from "../index";
import { IGraph } from "./types";
const Table = getComponent("table");
Expand Down
2 changes: 2 additions & 0 deletions ui/dashboard/src/components/dashboards/hierarchies/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Ensure Table is loaded & registered first
import "@powerpipe/components/dashboards/Table";
import { getComponent } from "../index";
import { IHierarchy } from "./types";
const Table = getComponent("table");
Expand Down
2 changes: 2 additions & 0 deletions ui/dashboard/src/components/dashboards/inputs/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Ensure Table is loaded & registered first
import "@powerpipe/components/dashboards/Table";
import { getComponent } from "../index";
import { IInput } from "./types";
const Table = getComponent("table");
Expand Down
2 changes: 2 additions & 0 deletions ui/dashboard/src/components/dashboards/layout/Child/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Ensure Table is loaded & registered first
import "@powerpipe/components/dashboards/Table";
import {
DashboardLayoutNode,
DashboardPanelType,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Ensure Table is loaded & registered first
import "@powerpipe/components/dashboards/Table";
import Panel from "../Panel";
import { getComponent } from "../../index";
import { PanelDetailProps } from "./index";
Expand Down

0 comments on commit 107b6a8

Please sign in to comment.