table.tsx 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679
  1. import {Component, type ReactNode, useEffect} from 'react';
  2. import styled from '@emotion/styled';
  3. import type {Location, LocationDescriptorObject} from 'history';
  4. import {addSuccessMessage} from 'sentry/actionCreators/indicator';
  5. import {openModal} from 'sentry/actionCreators/modal';
  6. import GuideAnchor from 'sentry/components/assistant/guideAnchor';
  7. import type {GridColumn} from 'sentry/components/gridEditable';
  8. import GridEditable, {COL_WIDTH_UNDEFINED} from 'sentry/components/gridEditable';
  9. import SortLink from 'sentry/components/gridEditable/sortLink';
  10. import Link from 'sentry/components/links/link';
  11. import LoadingIndicator from 'sentry/components/loadingIndicator';
  12. import Pagination from 'sentry/components/pagination';
  13. import {Tooltip} from 'sentry/components/tooltip';
  14. import {IconStar} from 'sentry/icons';
  15. import {t, tct} from 'sentry/locale';
  16. import type {Organization} from 'sentry/types/organization';
  17. import type {Project} from 'sentry/types/project';
  18. import {trackAnalytics} from 'sentry/utils/analytics';
  19. import {browserHistory} from 'sentry/utils/browserHistory';
  20. import type {TableData, TableDataRow} from 'sentry/utils/discover/discoverQuery';
  21. import DiscoverQuery from 'sentry/utils/discover/discoverQuery';
  22. import type {MetaType} from 'sentry/utils/discover/eventView';
  23. import type EventView from 'sentry/utils/discover/eventView';
  24. import {isFieldSortable} from 'sentry/utils/discover/eventView';
  25. import {getFieldRenderer} from 'sentry/utils/discover/fieldRenderers';
  26. import {fieldAlignment, getAggregateAlias} from 'sentry/utils/discover/fields';
  27. import {MEPConsumer} from 'sentry/utils/performance/contexts/metricsEnhancedSetting';
  28. import {VisuallyCompleteWithData} from 'sentry/utils/performanceForSentry';
  29. import {MutableSearch} from 'sentry/utils/tokenizeSearch';
  30. import {useLocation} from 'sentry/utils/useLocation';
  31. import useOrganization from 'sentry/utils/useOrganization';
  32. import CellAction, {Actions, updateQuery} from 'sentry/views/discover/table/cellAction';
  33. import type {TableColumn} from 'sentry/views/discover/table/types';
  34. import {
  35. type DomainViewFilters,
  36. useDomainViewFilters,
  37. } from 'sentry/views/insights/pages/useFilters';
  38. import {getLandingDisplayFromParam} from 'sentry/views/performance/landing/utils';
  39. import {getMEPQueryParams} from './landing/widgets/utils';
  40. import type {TransactionThresholdMetric} from './transactionSummary/transactionThresholdModal';
  41. import TransactionThresholdModal, {
  42. modalCss,
  43. } from './transactionSummary/transactionThresholdModal';
  44. import {
  45. normalizeSearchConditionsWithTransactionName,
  46. transactionSummaryRouteWithQuery,
  47. } from './transactionSummary/utils';
  48. import {COLUMN_TITLES} from './data';
  49. import {
  50. createUnnamedTransactionsDiscoverTarget,
  51. getProject,
  52. getProjectID,
  53. getSelectedProjectPlatforms,
  54. UNPARAMETERIZED_TRANSACTION,
  55. } from './utils';
  56. type ColumnTitle = {
  57. title: string | ReactNode;
  58. tooltip?: string | ReactNode;
  59. };
  60. const COLUMN_TITLES_OPTIONAL_TOOLTIP = COLUMN_TITLES.map(title => {
  61. return {title};
  62. });
  63. type Props = {
  64. eventView: EventView;
  65. location: Location;
  66. organization: Organization;
  67. projects: Project[];
  68. setError: (msg: string | undefined) => void;
  69. withStaticFilters: boolean;
  70. columnTitles?: ColumnTitle[];
  71. domainViewFilters?: DomainViewFilters;
  72. summaryConditions?: string;
  73. };
  74. type State = {
  75. transaction: string | undefined;
  76. transactionThreshold: number | undefined;
  77. transactionThresholdMetric: TransactionThresholdMetric | undefined;
  78. widths: number[];
  79. };
  80. function getProjectFirstEventGroup(project: Project): '14d' | '30d' | '>30d' {
  81. const fourteen_days_ago = new Date(+new Date() - 12096e5);
  82. const thirty_days_ago = new Date(+new Date() - 25920e5);
  83. const firstEventDate = new Date(project?.firstEvent ?? '');
  84. if (firstEventDate > fourteen_days_ago) {
  85. return '14d';
  86. }
  87. if (firstEventDate > thirty_days_ago) {
  88. return '30d';
  89. }
  90. return '>30d';
  91. }
  92. function TrackHasDataAnalytics({
  93. children,
  94. isLoading,
  95. tableData,
  96. }: {
  97. children: React.ReactNode;
  98. isLoading: boolean;
  99. tableData: TableData | null;
  100. }): React.ReactNode {
  101. const organization = useOrganization();
  102. const location = useLocation();
  103. useEffect(() => {
  104. if (!isLoading) {
  105. trackAnalytics('performance_views.overview.has_data', {
  106. table_data_state:
  107. !!tableData?.data && tableData.data.length > 0 ? 'has_data' : 'no_data',
  108. tab: getLandingDisplayFromParam(location)?.field,
  109. organization,
  110. });
  111. }
  112. }, [isLoading, organization, tableData?.data, location]);
  113. return children;
  114. }
  115. class _Table extends Component<Props, State> {
  116. state: State = {
  117. widths: [],
  118. transaction: undefined,
  119. transactionThreshold: undefined,
  120. transactionThresholdMetric: undefined,
  121. };
  122. componentDidMount(): void {
  123. const {organization} = this.props;
  124. if (!this.tableMetricSet) {
  125. this.tableMetricSet = true;
  126. trackAnalytics('performance_views.landing.table.seen', {
  127. organization,
  128. });
  129. }
  130. }
  131. unparameterizedMetricSet = false;
  132. tableMetricSet = false;
  133. sendUnparameterizedAnalytic(project: Project | undefined) {
  134. const {organization, eventView} = this.props;
  135. const statsPeriod = eventView.statsPeriod ?? 'other';
  136. const projectMetadata = this.getProjectWithinMetadata(project);
  137. trackAnalytics('performance_views.landing.table.unparameterized', {
  138. organization,
  139. first_event: projectMetadata.firstEventWithin,
  140. sent_transaction: projectMetadata.sentTransaction,
  141. single_project: projectMetadata.isSingleProject,
  142. stats_period: statsPeriod,
  143. hit_multi_project_cap: projectMetadata.isAtMultiCap,
  144. });
  145. }
  146. /**
  147. * Used for cluster warning and analytics.
  148. */
  149. getProjectWithinMetadata(project: Project | undefined) {
  150. let firstEventWithin: 'none' | '14d' | '30d' | '>30d' = 'none';
  151. if (!project) {
  152. return {
  153. isSingleProject: false,
  154. firstEventWithin,
  155. sentTransaction: false,
  156. isAtMultiCap: false,
  157. };
  158. }
  159. firstEventWithin = getProjectFirstEventGroup(project);
  160. return {
  161. isSingleProject: true,
  162. firstEventWithin,
  163. sentTransaction: project?.firstTransactionEvent ?? false,
  164. isAtMultiCap: false,
  165. };
  166. }
  167. handleCellAction = (column: TableColumn<keyof TableDataRow>, dataRow: TableDataRow) => {
  168. return (action: Actions, value: React.ReactText) => {
  169. const {eventView, location, organization, projects} = this.props;
  170. trackAnalytics('performance_views.overview.cellaction', {
  171. organization,
  172. action,
  173. });
  174. if (action === Actions.EDIT_THRESHOLD) {
  175. const project_threshold = dataRow.project_threshold_config!;
  176. const transactionName = dataRow.transaction as string;
  177. const projectID = getProjectID(dataRow, projects);
  178. openModal(
  179. modalProps => (
  180. <TransactionThresholdModal
  181. {...modalProps}
  182. organization={organization}
  183. transactionName={transactionName}
  184. eventView={eventView}
  185. project={projectID}
  186. // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message
  187. transactionThreshold={project_threshold[1]}
  188. // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message
  189. transactionThresholdMetric={project_threshold[0]}
  190. onApply={(threshold, metric) => {
  191. if (
  192. // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message
  193. threshold !== project_threshold[1] ||
  194. // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message
  195. metric !== project_threshold[0]
  196. ) {
  197. this.setState({
  198. transaction: transactionName,
  199. transactionThreshold: threshold,
  200. transactionThresholdMetric: metric,
  201. });
  202. }
  203. addSuccessMessage(
  204. tct('[transactionName] updated successfully', {
  205. transactionName,
  206. })
  207. );
  208. }}
  209. />
  210. ),
  211. {modalCss, closeEvents: 'escape-key'}
  212. );
  213. return;
  214. }
  215. const searchConditions = normalizeSearchConditionsWithTransactionName(
  216. eventView.query
  217. );
  218. updateQuery(searchConditions, action, column, value);
  219. browserHistory.push({
  220. pathname: location.pathname,
  221. query: {
  222. ...location.query,
  223. cursor: undefined,
  224. query: searchConditions.formatString(),
  225. },
  226. });
  227. };
  228. };
  229. renderBodyCell(
  230. tableData: TableData | null,
  231. column: TableColumn<keyof TableDataRow>,
  232. dataRow: TableDataRow
  233. ): React.ReactNode {
  234. const {eventView, organization, projects, location, withStaticFilters} = this.props;
  235. if (!tableData || !tableData.meta) {
  236. return dataRow[column.key];
  237. }
  238. const tableMeta = tableData.meta;
  239. const field = String(column.key);
  240. const fieldRenderer = getFieldRenderer(field, tableMeta, false);
  241. const rendered = fieldRenderer(dataRow, {
  242. organization,
  243. location,
  244. unit: tableMeta.units?.[column.key],
  245. });
  246. const allowActions = [
  247. Actions.ADD,
  248. Actions.EXCLUDE,
  249. Actions.SHOW_GREATER_THAN,
  250. Actions.SHOW_LESS_THAN,
  251. Actions.EDIT_THRESHOLD,
  252. ];
  253. const cellActions = withStaticFilters ? [] : allowActions;
  254. const isUnparameterizedRow = dataRow.transaction === UNPARAMETERIZED_TRANSACTION;
  255. if (field === 'transaction') {
  256. const project = getProject(dataRow, projects);
  257. const projectID = project?.id;
  258. const summaryView = eventView.clone();
  259. const existingQuery = new MutableSearch(summaryView.query);
  260. if (dataRow['http.method']) {
  261. summaryView.additionalConditions.setFilterValues('http.method', [
  262. dataRow['http.method'] as string,
  263. ]);
  264. }
  265. if (dataRow.hasOwnProperty('transaction.op')) {
  266. existingQuery.removeFilter('!transaction.op');
  267. existingQuery.removeFilter('transaction.op');
  268. if (dataRow['transaction.op']) {
  269. summaryView.additionalConditions.setFilterValues('transaction.op', [
  270. dataRow['transaction.op'] as string,
  271. ]);
  272. }
  273. }
  274. // This is carried forward from the insight overview pages
  275. existingQuery.removeFilter('project.id');
  276. existingQuery.removeFilter('!project.id');
  277. summaryView.query = existingQuery.formatString();
  278. summaryView.query = summaryView.getQueryWithAdditionalConditions();
  279. if (isUnparameterizedRow && !this.unparameterizedMetricSet) {
  280. this.sendUnparameterizedAnalytic(project);
  281. this.unparameterizedMetricSet = true;
  282. }
  283. const {isInDomainView, view} = this.props.domainViewFilters ?? {};
  284. const target = isUnparameterizedRow
  285. ? createUnnamedTransactionsDiscoverTarget({
  286. organization,
  287. location,
  288. })
  289. : transactionSummaryRouteWithQuery({
  290. organization,
  291. transaction: String(dataRow.transaction) || '',
  292. query: summaryView.generateQueryStringObject(),
  293. projectID,
  294. view: (isInDomainView && view) || undefined,
  295. });
  296. return (
  297. <CellAction
  298. column={column}
  299. dataRow={dataRow}
  300. handleCellAction={this.handleCellAction(column, dataRow)}
  301. allowActions={cellActions}
  302. >
  303. <Link
  304. to={target}
  305. onClick={this.handleSummaryClick}
  306. style={{display: `block`, width: `100%`}}
  307. >
  308. {rendered}
  309. </Link>
  310. </CellAction>
  311. );
  312. }
  313. if (field.startsWith('team_key_transaction')) {
  314. // don't display per cell actions for team_key_transaction
  315. const project = getProject(dataRow, projects);
  316. const projectMetadata = this.getProjectWithinMetadata(project);
  317. if (isUnparameterizedRow) {
  318. if (projectMetadata.firstEventWithin === '14d') {
  319. return (
  320. <Tooltip
  321. title={t(
  322. 'Transactions are grouped together until we receive enough data to identify parameter patterns.'
  323. )}
  324. >
  325. <UnparameterizedTooltipWrapper data-test-id="unparameterized-indicator">
  326. <LoadingIndicator
  327. mini
  328. size={16}
  329. style={{margin: 0, width: 16, height: 16}}
  330. />
  331. </UnparameterizedTooltipWrapper>
  332. </Tooltip>
  333. );
  334. }
  335. return <span />;
  336. }
  337. return rendered;
  338. }
  339. const fieldName = getAggregateAlias(field);
  340. const value = dataRow[fieldName];
  341. if (tableMeta[fieldName] === 'integer' && typeof value === 'number' && value > 999) {
  342. return (
  343. <Tooltip
  344. title={value.toLocaleString()}
  345. containerDisplayMode="block"
  346. position="right"
  347. >
  348. <CellAction
  349. column={column}
  350. dataRow={dataRow}
  351. handleCellAction={this.handleCellAction(column, dataRow)}
  352. allowActions={cellActions}
  353. >
  354. {rendered}
  355. </CellAction>
  356. </Tooltip>
  357. );
  358. }
  359. return (
  360. <CellAction
  361. column={column}
  362. dataRow={dataRow}
  363. handleCellAction={this.handleCellAction(column, dataRow)}
  364. allowActions={cellActions}
  365. >
  366. {rendered}
  367. </CellAction>
  368. );
  369. }
  370. renderBodyCellWithData = (tableData: TableData | null) => {
  371. return (
  372. column: TableColumn<keyof TableDataRow>,
  373. dataRow: TableDataRow
  374. ): React.ReactNode => this.renderBodyCell(tableData, column, dataRow);
  375. };
  376. onSortClick(currentSortKind?: string, currentSortField?: string) {
  377. const {organization} = this.props;
  378. trackAnalytics('performance_views.landingv2.transactions.sort', {
  379. organization,
  380. field: currentSortField,
  381. direction: currentSortKind,
  382. });
  383. }
  384. paginationAnalyticsEvent = (direction: string) => {
  385. const {organization} = this.props;
  386. trackAnalytics('performance_views.landingv3.table_pagination', {
  387. organization,
  388. direction,
  389. });
  390. };
  391. renderHeadCell(
  392. tableMeta: TableData['meta'],
  393. column: TableColumn<keyof TableDataRow>,
  394. title: ColumnTitle
  395. ): React.ReactNode {
  396. const {eventView, location} = this.props;
  397. const align = fieldAlignment(column.name, column.type, tableMeta);
  398. const field = {field: column.name, width: column.width};
  399. const aggregateAliasTableMeta: MetaType = {};
  400. if (tableMeta) {
  401. Object.keys(tableMeta).forEach(key => {
  402. aggregateAliasTableMeta[getAggregateAlias(key)] = tableMeta[key];
  403. });
  404. }
  405. function generateSortLink(): LocationDescriptorObject | undefined {
  406. if (!tableMeta) {
  407. return undefined;
  408. }
  409. const nextEventView = eventView.sortOnField(field, aggregateAliasTableMeta);
  410. const queryStringObject = nextEventView.generateQueryStringObject();
  411. return {
  412. ...location,
  413. query: {...location.query, sort: queryStringObject.sort},
  414. };
  415. }
  416. const currentSort = eventView.sortForField(field, aggregateAliasTableMeta);
  417. const canSort = isFieldSortable(field, aggregateAliasTableMeta);
  418. const currentSortKind = currentSort ? currentSort.kind : undefined;
  419. const currentSortField = currentSort ? currentSort.field : undefined;
  420. const sortLink = (
  421. <SortLink
  422. align={align}
  423. title={title.title || field.field}
  424. direction={currentSortKind}
  425. canSort={canSort}
  426. generateSortLink={generateSortLink}
  427. onClick={() => this.onSortClick(currentSortKind, currentSortField)}
  428. />
  429. );
  430. if (field.field.startsWith('user_misery')) {
  431. if (title.tooltip) {
  432. return (
  433. <GuideAnchor target="project_transaction_threshold" position="top">
  434. <Tooltip isHoverable title={title.tooltip} showUnderline>
  435. {sortLink}
  436. </Tooltip>
  437. </GuideAnchor>
  438. );
  439. }
  440. return (
  441. <GuideAnchor target="project_transaction_threshold" position="top">
  442. {sortLink}
  443. </GuideAnchor>
  444. );
  445. }
  446. if (!title.tooltip) {
  447. return sortLink;
  448. }
  449. return (
  450. <Tooltip isHoverable title={title.tooltip} showUnderline>
  451. {sortLink}
  452. </Tooltip>
  453. );
  454. }
  455. renderHeadCellWithMeta = (tableMeta: TableData['meta']) => {
  456. const columnTitles = this.props.columnTitles ?? COLUMN_TITLES_OPTIONAL_TOOLTIP;
  457. return (column: TableColumn<keyof TableDataRow>, index: number): React.ReactNode =>
  458. this.renderHeadCell(tableMeta, column, columnTitles[index]!);
  459. };
  460. renderPrependCellWithData = (tableData: TableData | null) => {
  461. const {eventView} = this.props;
  462. const teamKeyTransactionColumn = eventView
  463. .getColumns()
  464. .find((col: TableColumn<React.ReactText>) => col.name === 'team_key_transaction');
  465. return (isHeader: boolean, dataRow?: any) => {
  466. if (teamKeyTransactionColumn) {
  467. if (isHeader) {
  468. const star = (
  469. <TeamKeyTransactionWrapper>
  470. <IconStar
  471. key="keyTransaction"
  472. color="yellow300"
  473. isSolid
  474. data-test-id="team-key-transaction-header"
  475. />
  476. </TeamKeyTransactionWrapper>
  477. );
  478. return [
  479. this.renderHeadCell(tableData?.meta, teamKeyTransactionColumn, {title: star}),
  480. ];
  481. }
  482. return [this.renderBodyCell(tableData, teamKeyTransactionColumn, dataRow)];
  483. }
  484. return [];
  485. };
  486. };
  487. handleSummaryClick = () => {
  488. const {organization, location, projects} = this.props;
  489. trackAnalytics('performance_views.overview.navigate.summary', {
  490. organization,
  491. project_platforms: getSelectedProjectPlatforms(location, projects),
  492. });
  493. };
  494. handleResizeColumn = (columnIndex: number, nextColumn: GridColumn) => {
  495. const widths: number[] = [...this.state.widths];
  496. widths[columnIndex] = nextColumn.width
  497. ? Number(nextColumn.width)
  498. : COL_WIDTH_UNDEFINED;
  499. this.setState({widths});
  500. };
  501. getSortedEventView() {
  502. const {eventView} = this.props;
  503. return eventView.withSorts([
  504. {
  505. field: 'team_key_transaction',
  506. kind: 'desc',
  507. },
  508. ...eventView.sorts,
  509. ]);
  510. }
  511. render() {
  512. const {eventView, organization, location, setError} = this.props;
  513. const {widths, transaction, transactionThreshold} = this.state;
  514. const columnOrder = eventView
  515. .getColumns()
  516. // remove team_key_transactions from the column order as we'll be rendering it
  517. // via a prepended column
  518. .filter(
  519. (col: TableColumn<React.ReactText>) =>
  520. col.name !== 'team_key_transaction' &&
  521. !col.name.startsWith('count_miserable') &&
  522. col.name !== 'project_threshold_config'
  523. )
  524. .map((col: TableColumn<React.ReactText>, i: number) => {
  525. if (typeof widths[i] === 'number') {
  526. return {...col, width: widths[i]};
  527. }
  528. return col;
  529. });
  530. const sortedEventView = this.getSortedEventView();
  531. const columnSortBy = sortedEventView.getSorts();
  532. const prependColumnWidths = ['max-content'];
  533. return (
  534. <GuideAnchor target="performance_table" position="top-start">
  535. <div data-test-id="performance-table">
  536. <MEPConsumer>
  537. {value => {
  538. return (
  539. <DiscoverQuery
  540. eventView={sortedEventView}
  541. orgSlug={organization.slug}
  542. location={location}
  543. setError={error => setError(error?.message)}
  544. referrer="api.performance.landing-table"
  545. transactionName={transaction}
  546. transactionThreshold={transactionThreshold}
  547. queryExtras={getMEPQueryParams(value)}
  548. >
  549. {({pageLinks, isLoading, tableData}) => (
  550. <TrackHasDataAnalytics isLoading={isLoading} tableData={tableData}>
  551. <VisuallyCompleteWithData
  552. id="PerformanceTable"
  553. hasData={
  554. !isLoading && !!tableData?.data && tableData.data.length > 0
  555. }
  556. isLoading={isLoading}
  557. >
  558. <GridEditable
  559. isLoading={isLoading}
  560. data={tableData ? tableData.data : []}
  561. columnOrder={columnOrder}
  562. columnSortBy={columnSortBy}
  563. bodyStyle={{overflow: 'visible'}}
  564. grid={{
  565. onResizeColumn: this.handleResizeColumn,
  566. renderHeadCell: this.renderHeadCellWithMeta(
  567. tableData?.meta
  568. ) as any,
  569. renderBodyCell: this.renderBodyCellWithData(tableData) as any,
  570. renderPrependColumns: this.renderPrependCellWithData(
  571. tableData
  572. ) as any,
  573. prependColumnWidths,
  574. }}
  575. />
  576. </VisuallyCompleteWithData>
  577. <Pagination
  578. pageLinks={pageLinks}
  579. paginationAnalyticsEvent={this.paginationAnalyticsEvent}
  580. />
  581. </TrackHasDataAnalytics>
  582. )}
  583. </DiscoverQuery>
  584. );
  585. }}
  586. </MEPConsumer>
  587. </div>
  588. </GuideAnchor>
  589. );
  590. }
  591. }
  592. function Table(props: Omit<Props, 'summaryConditions'> & {summaryConditions?: string}) {
  593. const summaryConditions =
  594. props.summaryConditions ?? props.eventView.getQueryWithAdditionalConditions();
  595. const domainViewFilters = useDomainViewFilters();
  596. return (
  597. <_Table
  598. {...props}
  599. summaryConditions={summaryConditions}
  600. domainViewFilters={domainViewFilters}
  601. />
  602. );
  603. }
  604. // Align the contained IconStar with the IconStar buttons in individual table
  605. // rows, which have 2px padding + 1px border.
  606. const TeamKeyTransactionWrapper = styled('div')`
  607. padding: 3px;
  608. `;
  609. const UnparameterizedTooltipWrapper = styled('div')`
  610. display: flex;
  611. align-items: center;
  612. justify-content: center;
  613. `;
  614. export default Table;