Skip to content

Commit

Permalink
Merge pull request cockroachdb#62797 from elkmaster/upgrade-to-cluste…
Browse files Browse the repository at this point in the history
…r-ui

release-20.2: ui: fix aggregation on txn details
  • Loading branch information
vladlos authored Apr 1, 2021
2 parents f85bc60 + 6478947 commit fcda846
Show file tree
Hide file tree
Showing 15 changed files with 130 additions and 65 deletions.
2 changes: 1 addition & 1 deletion pkg/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"cypress:update-snapshots": "yarn cypress run --env updateSnapshots=true --spec 'cypress/integration/**/*.visual.spec.ts'"
},
"dependencies": {
"@cockroachlabs/admin-ui-components": "^0.1.28",
"@cockroachlabs/cluster-ui": "^0.1.63",
"analytics-node": "^3.4.0-beta.1",
"antd": "^3.25.2",
"babel-polyfill": "^6.26.0",
Expand Down
2 changes: 1 addition & 1 deletion pkg/ui/src/app.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {
} from "src/views/databases/containers/databases";
import { TableMain } from "src/views/databases/containers/tableDetails";
import { DataDistributionPage } from "src/views/cluster/containers/dataDistribution";
import { StatementsPage } from "@cockroachlabs/admin-ui-components";
import { StatementsPage } from "@cockroachlabs/cluster-ui";
import { StatementDetails } from "src/views/statements/statementDetails";
import Debug from "src/views/reports/containers/debug";
import { ReduxDebug } from "src/views/reports/containers/redux";
Expand Down
2 changes: 1 addition & 1 deletion pkg/ui/src/views/cluster/containers/nodeOverview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { Bytes, DATE_FORMAT, Percentage } from "src/util/format";
import { INodeStatus, MetricConstants, StatusMetrics } from "src/util/proto";
import { getMatchParamByName } from "src/util/query";
import { SummaryBar, SummaryLabel, SummaryValue } from "src/views/shared/components/summaryBar";
import { Button } from "@cockroachlabs/admin-ui-components";
import { Button } from "@cockroachlabs/cluster-ui";
import { ArrowLeft } from "@cockroachlabs/icons";
import "./nodeOverview.styl";
import { LiveBytesTooltip, KeyBytesTooltip, ValueBytesTooltip, IntentBytesTooltip, SystemBytesTooltip, NodeUsedCapacityTooltip, NodeAvailableCapacityTooltip, NodeMaximumCapacityTooltip } from "./tooltips";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { SortedTable } from "src/views/shared/components/sortedtable";
const { TabPane } = Tabs;
import { getMatchParamByName } from "src/util/query";
import { databaseDetails } from "../databaseSummary";
import { Button } from "@cockroachlabs/admin-ui-components";
import { Button } from "@cockroachlabs/cluster-ui";
import { ArrowLeft } from "@cockroachlabs/icons";
import SqlBox from "src/views/shared/components/sql/box";

Expand Down
2 changes: 1 addition & 1 deletion pkg/ui/src/views/jobs/jobDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { SummaryCard } from "../shared/components/summaryCard";
import Job = cockroach.server.serverpb.JobsResponse.IJob;
import JobsRequest = cockroach.server.serverpb.JobsRequest;
import JobsResponse = cockroach.server.serverpb.JobsResponse;
import { Button } from "@cockroachlabs/admin-ui-components";
import { Button } from "@cockroachlabs/cluster-ui";
import { ArrowLeft } from "@cockroachlabs/icons";
import { DATE_FORMAT } from "src/util/format";
import { JobStatusCell } from "./jobStatusCell";
Expand Down
2 changes: 1 addition & 1 deletion pkg/ui/src/views/jobs/jobTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { isEmpty, isEqual, map } from "lodash";
import {JobDescriptionCell} from "src/views/jobs/jobDescriptionCell";
import Job = cockroach.server.serverpb.JobsResponse.IJob;
import JobsResponse = cockroach.server.serverpb.JobsResponse;
import { Pagination, ResultsPerPageLabel } from "@cockroachlabs/admin-ui-components";
import { Pagination, ResultsPerPageLabel } from "@cockroachlabs/cluster-ui";
import { jobTable } from "src/util/docs";
import { trackDocsLink } from "src/util/analytics";

Expand Down
2 changes: 1 addition & 1 deletion pkg/ui/src/views/sessions/sessionDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import {nodeDisplayNameByIDSelector} from "src/redux/nodes";
import {NodeLink, StatementLinkTarget} from "src/views/statements/statementsTableContent";
import TerminateSessionModal, {TerminateSessionModalRef} from "src/views/sessions/terminateSessionModal";
import TerminateQueryModal, {TerminateQueryModalRef} from "src/views/sessions/terminateQueryModal";
import { Button } from "@cockroachlabs/admin-ui-components";
import { Button } from "@cockroachlabs/cluster-ui";
import { ArrowLeft } from "@cockroachlabs/icons";
import { Text, TextTypes } from "src/components";

Expand Down
2 changes: 1 addition & 1 deletion pkg/ui/src/views/sessions/sessionsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {SessionsResponseMessage} from "src/util/api";
import TerminateSessionModal, {TerminateSessionModalRef} from "src/views/sessions/terminateSessionModal";
import TerminateQueryModal, {TerminateQueryModalRef} from "src/views/sessions/terminateQueryModal";
import {showSessions} from "src/util/docs";
import { Pagination, ResultsPerPageLabel } from "@cockroachlabs/admin-ui-components";
import { Pagination, ResultsPerPageLabel } from "@cockroachlabs/cluster-ui";

const sortableTableCx = classNames.bind(sortableTableStyles);
const cx = classNames.bind(styles);
Expand Down
2 changes: 1 addition & 1 deletion pkg/ui/src/views/shared/components/sortabletable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export class SortableTable extends React.Component<TableProps> {
classes.push(cx("sort-table__cell--sortable"));
onClick = () => {
// TODO (koorosh): `title` field has ReactNode type isn't correct field to
// track column name. `SortableColumn` has to be imported from `@cockroachlabs/admin-ui-components`
// track column name. `SortableColumn` has to be imported from `@cockroachlabs/cluster-ui`
// package which has extended field to track column name.
trackTableSort(className, c.title.toString(), sortSetting.ascending);
this.clickSort(c.sortKey);
Expand Down
2 changes: 1 addition & 1 deletion pkg/ui/src/views/statements/statementDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import classNames from "classnames/bind";
import {
selectDiagnosticsReportsCountByStatementFingerprint,
} from "src/redux/statements/statementsSelectors";
import { Button } from "@cockroachlabs/admin-ui-components";
import { Button } from "@cockroachlabs/cluster-ui";
import { ArrowLeft } from "@cockroachlabs/icons";
import { trackSubnavSelection } from "src/util/analytics";
import styles from "./statementDetails.module.styl";
Expand Down
2 changes: 1 addition & 1 deletion pkg/ui/src/views/statements/statementsPage.fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.

import { StatementsPageProps } from "@cockroachlabs/admin-ui-components";
import { StatementsPageProps } from "@cockroachlabs/cluster-ui";
import { createMemoryHistory } from "history";
import Long from "long";
import * as protos from "src/js/protos";
Expand Down
2 changes: 1 addition & 1 deletion pkg/ui/src/views/statements/statementsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import {
import { createStatementDiagnosticsAlertLocalSetting } from "src/redux/alerts";
import { getMatchParamByName } from "src/util/query";

import { StatementsPage, AggregateStatistics } from "@cockroachlabs/admin-ui-components";
import { StatementsPage, AggregateStatistics } from "@cockroachlabs/cluster-ui";
import { createOpenDiagnosticsModalAction, createStatementDiagnosticsReportAction } from "src/redux/statements";
import {
trackStatementsPaginationAction,
Expand Down
2 changes: 1 addition & 1 deletion pkg/ui/src/views/transactions/transactionsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { StatementsResponseMessage } from "src/util/api";
import { TimestampToMoment } from "src/util/convert";
import { PrintTime } from "src/views/reports/containers/range/print";

import { TransactionsPage } from "@cockroachlabs/admin-ui-components";
import { TransactionsPage } from "@cockroachlabs/cluster-ui";

// selectStatements returns the array of AggregateStatistics to show on the
// TransactionsPage, based on if the appAttr route parameter is set.
Expand Down
Loading

0 comments on commit fcda846

Please sign in to comment.