|
@@ -13,7 +13,6 @@ import {t} from 'app/locale';
|
|
|
import space from 'app/styles/space';
|
|
|
import {Organization} from 'app/types';
|
|
|
import EventView from 'app/utils/discover/eventView';
|
|
|
-import {getFieldRenderer} from 'app/utils/discover/fieldRenderers';
|
|
|
import {getAggregateAlias, WebVital} from 'app/utils/discover/fields';
|
|
|
import {WEB_VITAL_DETAILS} from 'app/utils/performance/vitals/constants';
|
|
|
import {decodeScalar} from 'app/utils/queryString';
|
|
@@ -48,8 +47,6 @@ function UserStats({
|
|
|
}: Props) {
|
|
|
let userMisery = error !== null ? <div>{'\u2014'}</div> : <Placeholder height="34px" />;
|
|
|
const threshold = organization.apdexThreshold;
|
|
|
- let apdex: React.ReactNode =
|
|
|
- error !== null ? <div>{'\u2014'}</div> : <Placeholder height="24px" />;
|
|
|
let vitalsPassRate: React.ReactNode = null;
|
|
|
|
|
|
if (!isLoading && error === null && totals) {
|
|
@@ -67,10 +64,6 @@ function UserStats({
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- const apdexKey = `apdex_${threshold}`;
|
|
|
- const formatter = getFieldRenderer(apdexKey, {[apdexKey]: 'number'});
|
|
|
- apdex = formatter(totals, {organization, location});
|
|
|
-
|
|
|
const [vitalsPassed, vitalsTotal] = VITAL_GROUPS.map(({vitals: vs}) => vs).reduce(
|
|
|
([passed, total], vs) => {
|
|
|
vs.forEach(vital => {
|
|
@@ -100,25 +93,6 @@ function UserStats({
|
|
|
|
|
|
return (
|
|
|
<React.Fragment>
|
|
|
- <SectionHeading>
|
|
|
- {t('Apdex Score')}
|
|
|
- <QuestionTooltip
|
|
|
- position="top"
|
|
|
- title={t(
|
|
|
- 'Apdex is the ratio of both satisfactory and tolerable response time to all response times.'
|
|
|
- )}
|
|
|
- size="sm"
|
|
|
- />
|
|
|
- </SectionHeading>
|
|
|
- <StatNumber>{apdex}</StatNumber>
|
|
|
- <Link to={`/settings/${organization.slug}/performance/`}>
|
|
|
- <SectionValue>
|
|
|
- {threshold}ms {t('threshold')}
|
|
|
- </SectionValue>
|
|
|
- </Link>
|
|
|
-
|
|
|
- <SidebarSpacer />
|
|
|
-
|
|
|
<Feature features={['organizations:performance-vitals-overview']}>
|
|
|
{({hasFeature}) => {
|
|
|
if (vitalsPassRate !== null && hasFeature) {
|
|
@@ -177,7 +151,6 @@ function UserStats({
|
|
|
}
|
|
|
}}
|
|
|
</Feature>
|
|
|
-
|
|
|
<SectionHeading>
|
|
|
{t('User Misery')}
|
|
|
<QuestionTooltip
|
|
@@ -187,6 +160,7 @@ function UserStats({
|
|
|
/>
|
|
|
</SectionHeading>
|
|
|
{userMisery}
|
|
|
+ <SidebarSpacer />
|
|
|
</React.Fragment>
|
|
|
);
|
|
|
}
|