diff --git a/pkg/ui/workspaces/cluster-ui/src/transactionDetails/transactionDetails.fixture.ts b/pkg/ui/workspaces/cluster-ui/src/transactionDetails/transactionDetails.fixture.ts index 5228e98662f0..040dd30fd9d0 100644 --- a/pkg/ui/workspaces/cluster-ui/src/transactionDetails/transactionDetails.fixture.ts +++ b/pkg/ui/workspaces/cluster-ui/src/transactionDetails/transactionDetails.fixture.ts @@ -541,3 +541,5 @@ export const timeScale: TimeScale = { fixedWindowEnd: moment.utc("2021.12.31"), key: "Custom", }; + +export const requestTime = moment.utc("2023.01.5"); diff --git a/pkg/ui/workspaces/cluster-ui/src/transactionDetails/transactionDetails.stories.tsx b/pkg/ui/workspaces/cluster-ui/src/transactionDetails/transactionDetails.stories.tsx index f1c279357119..192cebc591fd 100644 --- a/pkg/ui/workspaces/cluster-ui/src/transactionDetails/transactionDetails.stories.tsx +++ b/pkg/ui/workspaces/cluster-ui/src/transactionDetails/transactionDetails.stories.tsx @@ -14,6 +14,7 @@ import { MemoryRouter } from "react-router-dom"; import { noop } from "lodash"; import { nodeRegions, + requestTime, routeProps, timeScale, transactionDetailsData, @@ -46,6 +47,8 @@ storiesOf("Transactions Details", module) refreshTransactionInsights={noop} limit={100} reqSortSetting={StatsSortOptions.SERVICE_LAT} + requestTime={requestTime} + onRequestTimeChange={noop} txnStatsResp={{ lastUpdated: moment(), error: null, @@ -71,6 +74,8 @@ storiesOf("Transactions Details", module) refreshTransactionInsights={noop} limit={100} reqSortSetting={StatsSortOptions.SERVICE_LAT} + requestTime={requestTime} + onRequestTimeChange={noop} txnStatsResp={{ lastUpdated: moment(), error: null, @@ -96,6 +101,8 @@ storiesOf("Transactions Details", module) refreshTransactionInsights={noop} limit={100} reqSortSetting={StatsSortOptions.SERVICE_LAT} + requestTime={moment()} + onRequestTimeChange={noop} txnStatsResp={{ lastUpdated: moment(), error: null, @@ -122,6 +129,8 @@ storiesOf("Transactions Details", module) refreshTransactionInsights={noop} limit={100} reqSortSetting={StatsSortOptions.SERVICE_LAT} + requestTime={requestTime} + onRequestTimeChange={noop} txnStatsResp={{ lastUpdated: moment(), error: null, diff --git a/pkg/ui/workspaces/cluster-ui/src/transactionsPage/transactions.fixture.ts b/pkg/ui/workspaces/cluster-ui/src/transactionsPage/transactions.fixture.ts index 492e81ab6a41..5b426085fdad 100644 --- a/pkg/ui/workspaces/cluster-ui/src/transactionsPage/transactions.fixture.ts +++ b/pkg/ui/workspaces/cluster-ui/src/transactionsPage/transactions.fixture.ts @@ -53,6 +53,7 @@ export const timeScale: TimeScale = { export const timestamp = new protos.google.protobuf.Timestamp({ seconds: new Long(Date.parse("Sep 15 2021 01:00:00 GMT") * 1e-3), }); +export const requestTime = moment.utc("2023.01.5"); export const sortSetting: SortSetting = { ascending: false, diff --git a/pkg/ui/workspaces/cluster-ui/src/transactionsPage/transactionsPage.stories.tsx b/pkg/ui/workspaces/cluster-ui/src/transactionsPage/transactionsPage.stories.tsx index 4eddfc992b58..0faea9f8242d 100644 --- a/pkg/ui/workspaces/cluster-ui/src/transactionsPage/transactionsPage.stories.tsx +++ b/pkg/ui/workspaces/cluster-ui/src/transactionsPage/transactionsPage.stories.tsx @@ -18,6 +18,7 @@ import { filters, lastUpdated, nodeRegions, + requestTime, routeProps, sortSetting, timeScale, @@ -69,6 +70,8 @@ storiesOf("Transactions Page", module) resetSQLStats={noop} search={""} sortSetting={sortSetting} + requestTime={requestTime} + onRequestTimeChange={noop} {...defaultLimitAndSortProps} /> ); @@ -99,6 +102,8 @@ storiesOf("Transactions Page", module) resetSQLStats={noop} search={""} sortSetting={sortSetting} + requestTime={requestTime} + onRequestTimeChange={noop} {...defaultLimitAndSortProps} /> ); @@ -136,6 +141,8 @@ storiesOf("Transactions Page", module) resetSQLStats={noop} search={""} sortSetting={sortSetting} + requestTime={requestTime} + onRequestTimeChange={noop} {...defaultLimitAndSortProps} /> ); @@ -166,6 +173,8 @@ storiesOf("Transactions Page", module) resetSQLStats={noop} search={""} sortSetting={sortSetting} + requestTime={requestTime} + onRequestTimeChange={noop} {...defaultLimitAndSortProps} /> ); @@ -200,6 +209,8 @@ storiesOf("Transactions Page", module) resetSQLStats={noop} search={""} sortSetting={sortSetting} + requestTime={requestTime} + onRequestTimeChange={noop} {...defaultLimitAndSortProps} /> );