123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827 |
- import * as React from 'react';
- import {css, Theme} from '@emotion/react';
- import styled from '@emotion/styled';
- import classNames from 'classnames';
- import AssigneeSelector from 'app/components/assigneeSelector';
- import GuideAnchor from 'app/components/assistant/guideAnchor';
- import Count from 'app/components/count';
- import DropdownMenu from 'app/components/dropdownMenu';
- import EventOrGroupExtraDetails from 'app/components/eventOrGroupExtraDetails';
- import EventOrGroupHeader from 'app/components/eventOrGroupHeader';
- import Link from 'app/components/links/link';
- import MenuItem from 'app/components/menuItem';
- import {getRelativeSummary} from 'app/components/organizations/timeRangeSelector/utils';
- import {PanelItem} from 'app/components/panels';
- import Placeholder from 'app/components/placeholder';
- import ProgressBar from 'app/components/progressBar';
- import GroupChart from 'app/components/stream/groupChart';
- import GroupCheckBox from 'app/components/stream/groupCheckBox';
- import TimeSince from 'app/components/timeSince';
- import {DEFAULT_STATS_PERIOD} from 'app/constants';
- import {t} from 'app/locale';
- import GroupStore from 'app/stores/groupStore';
- import SelectedGroupStore from 'app/stores/selectedGroupStore';
- import overflowEllipsis from 'app/styles/overflowEllipsis';
- import space from 'app/styles/space';
- import {
- GlobalSelection,
- Group,
- GroupReprocessing,
- InboxDetails,
- NewQuery,
- Organization,
- User,
- } from 'app/types';
- import {defined, percent, valueIsEqual} from 'app/utils';
- import {trackAnalyticsEvent} from 'app/utils/analytics';
- import {callIfFunction} from 'app/utils/callIfFunction';
- import EventView from 'app/utils/discover/eventView';
- import {formatPercentage} from 'app/utils/formatters';
- import {queryToObj} from 'app/utils/stream';
- import withGlobalSelection from 'app/utils/withGlobalSelection';
- import withOrganization from 'app/utils/withOrganization';
- import {TimePeriodType} from 'app/views/alerts/rules/details/constants';
- import {
- getTabs,
- isForReviewQuery,
- IssueDisplayOptions,
- Query,
- } from 'app/views/issueList/utils';
- const DiscoveryExclusionFields: string[] = [
- 'query',
- 'status',
- 'bookmarked_by',
- 'assigned',
- 'assigned_to',
- 'unassigned',
- 'subscribed_by',
- 'active_at',
- 'first_release',
- 'first_seen',
- 'is',
- '__text',
- ];
- export const DEFAULT_STREAM_GROUP_STATS_PERIOD = '24h';
- const DEFAULT_DISPLAY = IssueDisplayOptions.EVENTS;
- const defaultProps = {
- statsPeriod: DEFAULT_STREAM_GROUP_STATS_PERIOD,
- canSelect: true,
- withChart: true,
- useFilteredStats: false,
- useTintRow: true,
- display: DEFAULT_DISPLAY,
- narrowGroups: false,
- };
- type Props = {
- id: string;
- selection: GlobalSelection;
- organization: Organization;
- displayReprocessingLayout?: boolean;
- query?: string;
- hasGuideAnchor?: boolean;
- memberList?: User[];
- showInboxTime?: boolean;
- index?: number;
- customStatsPeriod?: TimePeriodType;
- display?: IssueDisplayOptions;
- // TODO(ts): higher order functions break defaultprops export types
- queryFilterDescription?: string;
- } & Partial<typeof defaultProps>;
- type State = {
- data: Group;
- reviewed: boolean;
- actionTaken: boolean;
- };
- class StreamGroup extends React.Component<Props, State> {
- static defaultProps = defaultProps;
- state: State = this.getInitialState();
- getInitialState(): State {
- const {id, useFilteredStats} = this.props;
- const data = GroupStore.get(id) as Group;
- return {
- data: {
- ...data,
- filtered: useFilteredStats ? data.filtered : null,
- },
- reviewed: false,
- actionTaken: false,
- };
- }
- componentWillReceiveProps(nextProps: Props) {
- if (
- nextProps.id !== this.props.id ||
- nextProps.useFilteredStats !== this.props.useFilteredStats
- ) {
- const data = GroupStore.get(this.props.id) as Group;
- this.setState({
- data: {
- ...data,
- filtered: nextProps.useFilteredStats ? data.filtered : null,
- },
- });
- }
- }
- shouldComponentUpdate(nextProps: Props, nextState: State) {
- if (nextProps.statsPeriod !== this.props.statsPeriod) {
- return true;
- }
- if (!valueIsEqual(this.state.data, nextState.data)) {
- return true;
- }
- return false;
- }
- componentWillUnmount() {
- callIfFunction(this.listener);
- }
- listener = GroupStore.listen(itemIds => this.onGroupChange(itemIds), undefined);
- onGroupChange(itemIds: Set<string>) {
- const {id, query} = this.props;
- if (!itemIds.has(id)) {
- return;
- }
- const actionTaken = this.state.data.status !== 'unresolved';
- const data = GroupStore.get(id) as Group;
- this.setState(state => {
- // When searching is:for_review and the inbox reason is removed
- const reviewed =
- state.reviewed ||
- (isForReviewQuery(query) &&
- (state.data.inbox as InboxDetails)?.reason !== undefined &&
- data.inbox === false);
- return {data, reviewed, actionTaken};
- });
- }
- /** Shared between two events */
- sharedAnalytics() {
- const {query, organization} = this.props;
- const {data} = this.state;
- const tab = getTabs(organization).find(([tabQuery]) => tabQuery === query)?.[1];
- const owners = data?.owners || [];
- return {
- organization_id: organization.id,
- group_id: data.id,
- tab: tab?.analyticsName || 'other',
- was_shown_suggestion: owners.length > 0,
- };
- }
- trackClick = () => {
- const {query, organization} = this.props;
- const {data} = this.state;
- if (query === Query.FOR_REVIEW) {
- trackAnalyticsEvent({
- eventKey: 'inbox_tab.issue_clicked',
- eventName: 'Clicked Issue from Inbox Tab',
- organization_id: organization.id,
- group_id: data.id,
- });
- }
- if (query !== undefined) {
- trackAnalyticsEvent({
- eventKey: 'issues_stream.issue_clicked',
- eventName: 'Clicked Issue from Issues Stream',
- ...this.sharedAnalytics(),
- });
- }
- };
- trackAssign: React.ComponentProps<typeof AssigneeSelector>['onAssign'] = (
- type,
- _assignee,
- suggestedAssignee
- ) => {
- const {query} = this.props;
- if (query !== undefined) {
- trackAnalyticsEvent({
- eventKey: 'issues_stream.issue_assigned',
- eventName: 'Assigned Issue from Issues Stream',
- ...this.sharedAnalytics(),
- did_assign_suggestion: !!suggestedAssignee,
- assigned_suggestion_reason: suggestedAssignee?.suggestedReason,
- assigned_type: type,
- });
- }
- };
- toggleSelect = (evt: React.MouseEvent<HTMLDivElement>) => {
- const targetElement = evt.target as Partial<HTMLElement>;
- if (targetElement?.tagName?.toLowerCase() === 'a') {
- return;
- }
- if (targetElement?.tagName?.toLowerCase() === 'input') {
- return;
- }
- let e = targetElement;
- while (e.parentElement) {
- if (e?.tagName?.toLowerCase() === 'a') {
- return;
- }
- e = e.parentElement!;
- }
- SelectedGroupStore.toggleSelect(this.state.data.id);
- };
- getDiscoverUrl(isFiltered?: boolean) {
- const {organization, query, selection, customStatsPeriod} = this.props;
- const {data} = this.state;
- // when there is no discover feature open events page
- const hasDiscoverQuery = organization.features.includes('discover-basic');
- const queryTerms: string[] = [];
- if (isFiltered && typeof query === 'string') {
- const queryObj = queryToObj(query);
- for (const queryTag in queryObj)
- if (!DiscoveryExclusionFields.includes(queryTag)) {
- const queryVal = queryObj[queryTag].includes(' ')
- ? `"${queryObj[queryTag]}"`
- : queryObj[queryTag];
- queryTerms.push(`${queryTag}:${queryVal}`);
- }
- if (queryObj.__text) {
- queryTerms.push(queryObj.__text);
- }
- }
- const commonQuery = {projects: [Number(data.project.id)]};
- const searchQuery = (queryTerms.length ? ' ' : '') + queryTerms.join(' ');
- if (hasDiscoverQuery) {
- const {period, start, end} = customStatsPeriod ?? (selection.datetime || {});
- const discoverQuery: NewQuery = {
- ...commonQuery,
- id: undefined,
- name: data.title || data.type,
- fields: ['title', 'release', 'environment', 'user', 'timestamp'],
- orderby: '-timestamp',
- query: `issue.id:${data.id}${searchQuery}`,
- version: 2,
- };
- if (!!start && !!end) {
- discoverQuery.start = String(start);
- discoverQuery.end = String(end);
- } else {
- discoverQuery.range = period || DEFAULT_STATS_PERIOD;
- }
- const discoverView = EventView.fromSavedQuery(discoverQuery);
- return discoverView.getResultsViewUrlTarget(organization.slug);
- }
- return {
- pathname: `/organizations/${organization.slug}/issues/${data.id}/events/`,
- query: {
- ...commonQuery,
- query: searchQuery,
- },
- };
- }
- renderReprocessingColumns() {
- const {data} = this.state;
- const {statusDetails, count} = data as GroupReprocessing;
- const {info, pendingEvents} = statusDetails;
- const {totalEvents, dateCreated} = info;
- const remainingEventsToReprocess = totalEvents - pendingEvents;
- const remainingEventsToReprocessPercent = percent(
- remainingEventsToReprocess,
- totalEvents
- );
- const value = remainingEventsToReprocessPercent || 100;
- return (
- <React.Fragment>
- <StartedColumn>
- <TimeSince date={dateCreated} />
- </StartedColumn>
- <EventsReprocessedColumn>
- {!defined(count) ? (
- <Placeholder height="17px" />
- ) : (
- <React.Fragment>
- <Count value={totalEvents} />
- {'/'}
- <Count value={Number(count)} />
- </React.Fragment>
- )}
- </EventsReprocessedColumn>
- <ProgressColumn>
- <ProgressBar value={value} />
- </ProgressColumn>
- </React.Fragment>
- );
- }
- render() {
- const {data, reviewed, actionTaken} = this.state;
- const {
- index,
- query,
- hasGuideAnchor,
- canSelect,
- memberList,
- withChart,
- statsPeriod,
- selection,
- organization,
- displayReprocessingLayout,
- showInboxTime,
- useFilteredStats,
- useTintRow,
- customStatsPeriod,
- display,
- queryFilterDescription,
- narrowGroups,
- } = this.props;
- const {period, start, end} = selection.datetime || {};
- const summary =
- customStatsPeriod?.label.toLowerCase() ??
- (!!start && !!end
- ? 'time range'
- : getRelativeSummary(period || DEFAULT_STATS_PERIOD).toLowerCase());
- // Use data.filtered to decide on which value to use
- // In case of the query has filters but we avoid showing both sets of filtered/unfiltered stats
- // we use useFilteredStats param passed to Group for deciding
- const primaryCount = data.filtered ? data.filtered.count : data.count;
- const secondaryCount = data.filtered ? data.count : undefined;
- const primaryUserCount = data.filtered ? data.filtered.userCount : data.userCount;
- const secondaryUserCount = data.filtered ? data.userCount : undefined;
- const showSecondaryPoints = Boolean(
- withChart && data && data.filtered && statsPeriod && useFilteredStats
- );
- const showSessions = display === IssueDisplayOptions.SESSIONS;
- // calculate a percentage count based on session data if the user has selected sessions display
- const primaryPercent =
- showSessions &&
- data.sessionCount &&
- formatPercentage(Number(primaryCount) / Number(data.sessionCount));
- const secondaryPercent =
- showSessions &&
- data.sessionCount &&
- secondaryCount &&
- formatPercentage(Number(secondaryCount) / Number(data.sessionCount));
- return (
- <Wrapper
- data-test-id="group"
- onClick={displayReprocessingLayout ? undefined : this.toggleSelect}
- reviewed={reviewed}
- unresolved={data.status === 'unresolved'}
- actionTaken={actionTaken}
- useTintRow={useTintRow ?? true}
- >
- {canSelect && (
- <GroupCheckBoxWrapper>
- <GroupCheckBox id={data.id} disabled={!!displayReprocessingLayout} />
- </GroupCheckBoxWrapper>
- )}
- <GroupSummary canSelect={!!canSelect}>
- <EventOrGroupHeader
- index={index}
- organization={organization}
- includeLink
- data={data}
- query={query}
- size="normal"
- onClick={this.trackClick}
- />
- <EventOrGroupExtraDetails
- hasGuideAnchor={hasGuideAnchor}
- data={data}
- showInboxTime={showInboxTime}
- />
- </GroupSummary>
- {hasGuideAnchor && <GuideAnchor target="issue_stream" />}
- {withChart && !displayReprocessingLayout && (
- <ChartWrapper
- className={`hidden-xs hidden-sm ${narrowGroups ? 'hidden-md' : ''}`}
- >
- {!data.filtered?.stats && !data.stats ? (
- <Placeholder height="24px" />
- ) : (
- <GroupChart
- statsPeriod={statsPeriod!}
- data={data}
- showSecondaryPoints={showSecondaryPoints}
- />
- )}
- </ChartWrapper>
- )}
- {displayReprocessingLayout ? (
- this.renderReprocessingColumns()
- ) : (
- <React.Fragment>
- <EventUserWrapper>
- {!defined(primaryCount) ? (
- <Placeholder height="18px" />
- ) : (
- <DropdownMenu isNestedDropdown>
- {({isOpen, getRootProps, getActorProps, getMenuProps}) => {
- const topLevelCx = classNames('dropdown', {
- 'anchor-middle': true,
- open: isOpen,
- });
- return (
- <GuideAnchor target="dynamic_counts" disabled={!hasGuideAnchor}>
- <span
- {...getRootProps({
- className: topLevelCx,
- })}
- >
- <span {...getActorProps({})}>
- <div className="dropdown-actor-title">
- {primaryPercent ? (
- <PrimaryPercent>{primaryPercent}</PrimaryPercent>
- ) : (
- <PrimaryCount value={primaryCount} />
- )}
- {secondaryCount !== undefined &&
- useFilteredStats &&
- (secondaryPercent ? (
- <SecondaryPercent>{secondaryPercent}</SecondaryPercent>
- ) : (
- <SecondaryCount value={secondaryCount} />
- ))}
- </div>
- </span>
- {useFilteredStats && (
- <StyledDropdownList
- {...getMenuProps({className: 'dropdown-menu inverted'})}
- >
- {data.filtered && (
- <React.Fragment>
- <StyledMenuItem to={this.getDiscoverUrl(true)}>
- <MenuItemText>
- {queryFilterDescription ??
- t('Matching search filters')}
- </MenuItemText>
- {primaryPercent ? (
- <MenuItemPercent>{primaryPercent}</MenuItemPercent>
- ) : (
- <MenuItemCount value={data.filtered.count} />
- )}
- </StyledMenuItem>
- <MenuItem divider />
- </React.Fragment>
- )}
- <StyledMenuItem to={this.getDiscoverUrl()}>
- <MenuItemText>{t(`Total in ${summary}`)}</MenuItemText>
- {secondaryPercent ? (
- <MenuItemPercent>{secondaryPercent}</MenuItemPercent>
- ) : (
- <MenuItemCount value={secondaryPercent || data.count} />
- )}
- </StyledMenuItem>
- {data.lifetime && (
- <React.Fragment>
- <MenuItem divider />
- <StyledMenuItem>
- <MenuItemText>{t('Since issue began')}</MenuItemText>
- <MenuItemCount value={data.lifetime.count} />
- </StyledMenuItem>
- </React.Fragment>
- )}
- </StyledDropdownList>
- )}
- </span>
- </GuideAnchor>
- );
- }}
- </DropdownMenu>
- )}
- </EventUserWrapper>
- <EventUserWrapper>
- {!defined(primaryUserCount) ? (
- <Placeholder height="18px" />
- ) : (
- <DropdownMenu isNestedDropdown>
- {({isOpen, getRootProps, getActorProps, getMenuProps}) => {
- const topLevelCx = classNames('dropdown', {
- 'anchor-middle': true,
- open: isOpen,
- });
- return (
- <span
- {...getRootProps({
- className: topLevelCx,
- })}
- >
- <span {...getActorProps({})}>
- <div className="dropdown-actor-title">
- <PrimaryCount value={primaryUserCount} />
- {secondaryUserCount !== undefined && useFilteredStats && (
- <SecondaryCount dark value={secondaryUserCount} />
- )}
- </div>
- </span>
- {useFilteredStats && (
- <StyledDropdownList
- {...getMenuProps({className: 'dropdown-menu inverted'})}
- >
- {data.filtered && (
- <React.Fragment>
- <StyledMenuItem to={this.getDiscoverUrl(true)}>
- <MenuItemText>
- {queryFilterDescription ??
- t('Matching search filters')}
- </MenuItemText>
- <MenuItemCount value={data.filtered.userCount} />
- </StyledMenuItem>
- <MenuItem divider />
- </React.Fragment>
- )}
- <StyledMenuItem to={this.getDiscoverUrl()}>
- <MenuItemText>{t(`Total in ${summary}`)}</MenuItemText>
- <MenuItemCount value={data.userCount} />
- </StyledMenuItem>
- {data.lifetime && (
- <React.Fragment>
- <MenuItem divider />
- <StyledMenuItem>
- <MenuItemText>{t('Since issue began')}</MenuItemText>
- <MenuItemCount value={data.lifetime.userCount} />
- </StyledMenuItem>
- </React.Fragment>
- )}
- </StyledDropdownList>
- )}
- </span>
- );
- }}
- </DropdownMenu>
- )}
- </EventUserWrapper>
- <AssigneeWrapper className="hidden-xs hidden-sm">
- <AssigneeSelector
- id={data.id}
- memberList={memberList}
- onAssign={this.trackAssign}
- />
- </AssigneeWrapper>
- </React.Fragment>
- )}
- </Wrapper>
- );
- }
- }
- export default withGlobalSelection(withOrganization(StreamGroup));
- // Position for wrapper is relative for overlay actions
- const Wrapper = styled(PanelItem)<{
- reviewed: boolean;
- unresolved: boolean;
- actionTaken: boolean;
- useTintRow: boolean;
- }>`
- position: relative;
- padding: ${space(1.5)} 0;
- line-height: 1.1;
- ${p =>
- p.useTintRow &&
- (p.reviewed || !p.unresolved) &&
- !p.actionTaken &&
- css`
- animation: tintRow 0.2s linear forwards;
- position: relative;
- /*
- * A mask that fills the entire row and makes the text opaque. Doing this because
- * opacity adds a stacking context in CSS so we need to apply it to another element.
- */
- &:after {
- content: '';
- pointer-events: none;
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- width: 100%;
- height: 100%;
- background-color: ${p.theme.bodyBackground};
- opacity: 0.4;
- z-index: 1;
- }
- @keyframes tintRow {
- 0% {
- background-color: ${p.theme.bodyBackground};
- }
- 100% {
- background-color: ${p.theme.backgroundSecondary};
- }
- }
- `};
- `;
- const GroupSummary = styled('div')<{canSelect: boolean}>`
- overflow: hidden;
- margin-left: ${p => space(p.canSelect ? 1 : 2)};
- margin-right: ${space(1)};
- flex: 1;
- width: 66.66%;
- @media (min-width: ${p => p.theme.breakpoints[1]}) {
- width: 50%;
- }
- `;
- const GroupCheckBoxWrapper = styled('div')`
- margin-left: ${space(2)};
- align-self: flex-start;
- & input[type='checkbox'] {
- margin: 0;
- display: block;
- }
- `;
- const primaryStatStyle = (theme: Theme) => css`
- font-size: ${theme.fontSizeLarge};
- `;
- const PrimaryCount = styled(Count)`
- ${p => primaryStatStyle(p.theme)};
- `;
- const PrimaryPercent = styled('div')`
- ${p => primaryStatStyle(p.theme)};
- `;
- const secondaryStatStyle = (theme: Theme) => css`
- font-size: ${theme.fontSizeLarge};
- :before {
- content: '/';
- padding-left: ${space(0.25)};
- padding-right: 2px;
- color: ${theme.gray300};
- }
- `;
- const SecondaryCount = styled(({value, ...p}) => <Count {...p} value={value} />)`
- ${p => secondaryStatStyle(p.theme)}
- `;
- const SecondaryPercent = styled('div')`
- ${p => secondaryStatStyle(p.theme)}
- `;
- const StyledDropdownList = styled('ul')`
- z-index: ${p => p.theme.zIndex.hovercard};
- `;
- type MenuItemProps = React.HTMLProps<HTMLDivElement> & {
- to?: React.ComponentProps<typeof Link>['to'];
- };
- const StyledMenuItem = styled(({to, children, ...p}: MenuItemProps) => (
- <MenuItem noAnchor>
- {to ? (
- // @ts-expect-error allow target _blank for this link to open in new window
- <Link to={to} target="_blank">
- <div {...p}>{children}</div>
- </Link>
- ) : (
- <div className="dropdown-toggle">
- <div {...p}>{children}</div>
- </div>
- )}
- </MenuItem>
- ))`
- margin: 0;
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- `;
- const menuItemStatStyles = css`
- text-align: right;
- font-weight: bold;
- padding-left: ${space(1)};
- `;
- const MenuItemCount = styled(({value, ...p}) => (
- <div {...p}>
- <Count value={value} />
- </div>
- ))`
- ${menuItemStatStyles};
- color: ${p => p.theme.subText};
- `;
- const MenuItemPercent = styled('div')`
- ${menuItemStatStyles};
- `;
- const MenuItemText = styled('div')`
- white-space: nowrap;
- font-weight: normal;
- text-align: left;
- padding-right: ${space(1)};
- color: ${p => p.theme.textColor};
- `;
- const ChartWrapper = styled('div')`
- width: 160px;
- margin: 0 ${space(2)};
- align-self: center;
- `;
- const EventUserWrapper = styled('div')`
- display: flex;
- justify-content: flex-end;
- align-self: center;
- width: 60px;
- margin: 0 ${space(2)};
- @media (min-width: ${p => p.theme.breakpoints[3]}) {
- width: 80px;
- }
- `;
- const AssigneeWrapper = styled('div')`
- width: 80px;
- margin: 0 ${space(2)};
- align-self: center;
- `;
- // Reprocessing
- const StartedColumn = styled('div')`
- align-self: center;
- margin: 0 ${space(2)};
- color: ${p => p.theme.gray500};
- ${overflowEllipsis};
- width: 85px;
- @media (min-width: ${p => p.theme.breakpoints[0]}) {
- display: block;
- width: 140px;
- }
- `;
- const EventsReprocessedColumn = styled('div')`
- align-self: center;
- margin: 0 ${space(2)};
- color: ${p => p.theme.gray500};
- ${overflowEllipsis};
- width: 75px;
- @media (min-width: ${p => p.theme.breakpoints[0]}) {
- width: 140px;
- }
- `;
- const ProgressColumn = styled('div')`
- margin: 0 ${space(2)};
- align-self: center;
- display: none;
- @media (min-width: ${p => p.theme.breakpoints[0]}) {
- display: block;
- width: 160px;
- }
- `;
|