Skip to content

Commit

Permalink
Merge #97419
Browse files Browse the repository at this point in the history
97419: ui: add missing props to storybook files r=ericharmeling a=ericharmeling

This commit adds missing props to storybook files in cluster-ui. These missing props are causing the publish_cluster_ui GH action to fail. See https://github.com/cockroachdb/cockroach/actions/runs/4236959074/jobs/7362369310.

Interestingly, these missing props weren't caught by any essential CI tests...

Epic: none

Release note: None

Co-authored-by: Eric Harmeling <[email protected]>
  • Loading branch information
craig[bot] and ericharmeling committed Feb 28, 2023
2 parents fb6eb66 + 73f8f27 commit e828ba0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const withData: IndexDetailsPageProps = {
indexName: randomName(),
isTenant: false,
nodeRegions: {},
timeScale: null,
details: {
loading: false,
loaded: true,
Expand Down Expand Up @@ -60,6 +61,7 @@ const withData: IndexDetailsPageProps = {
resetIndexUsageStats: () => {},
refreshNodes: () => {},
refreshUserSQLRoles: () => {},
onTimeScaleChange: () => {},
};

storiesOf("Index Details Page", module)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ storiesOf("Transactions Details", module)
nodeRegions={nodeRegions}
isTenant={false}
hasViewActivityRedactedRole={false}
transactionInsights={undefined}
refreshData={noop}
refreshUserSQLRoles={noop}
onTimeScaleChange={noop}
refreshNodes={noop}
lastUpdated={moment("0001-01-01T00:00:00Z")}
refreshTransactionInsights={noop}
/>
))
.add("with loading indicator", () => (
Expand All @@ -59,11 +61,13 @@ storiesOf("Transactions Details", module)
nodeRegions={nodeRegions}
isTenant={false}
hasViewActivityRedactedRole={false}
transactionInsights={undefined}
refreshData={noop}
refreshUserSQLRoles={noop}
onTimeScaleChange={noop}
refreshNodes={noop}
lastUpdated={moment("0001-01-01T00:00:00Z")}
refreshTransactionInsights={noop}
/>
))
.add("with error alert", () => (
Expand All @@ -78,11 +82,13 @@ storiesOf("Transactions Details", module)
error={error}
isTenant={false}
hasViewActivityRedactedRole={false}
transactionInsights={undefined}
refreshData={noop}
refreshUserSQLRoles={noop}
onTimeScaleChange={noop}
refreshNodes={noop}
lastUpdated={moment("0001-01-01T00:00:00Z")}
refreshTransactionInsights={noop}
/>
))
.add("No data for this time frame; no cached transaction text", () => {
Expand All @@ -97,11 +103,13 @@ storiesOf("Transactions Details", module)
nodeRegions={nodeRegions}
isTenant={false}
hasViewActivityRedactedRole={false}
transactionInsights={undefined}
refreshData={noop}
refreshUserSQLRoles={noop}
onTimeScaleChange={noop}
refreshNodes={noop}
lastUpdated={moment("0001-01-01T00:00:00Z")}
refreshTransactionInsights={noop}
/>
);
});

0 comments on commit e828ba0

Please sign in to comment.