|
@@ -17,7 +17,6 @@ import NoProjectMessage from 'sentry/components/noProjectMessage';
|
|
|
import PageFilterBar from 'sentry/components/organizations/pageFilterBar';
|
|
|
import PageFiltersContainer from 'sentry/components/organizations/pageFilters/container';
|
|
|
import {getRelativeSummary} from 'sentry/components/organizations/timeRangeSelector/utils';
|
|
|
-import {PageHeadingQuestionTooltip} from 'sentry/components/pageHeadingQuestionTooltip';
|
|
|
import Pagination from 'sentry/components/pagination';
|
|
|
import Panel from 'sentry/components/panels/panel';
|
|
|
import ProjectPageFilter from 'sentry/components/projectPageFilter';
|
|
@@ -47,6 +46,7 @@ import withPageFilters from 'sentry/utils/withPageFilters';
|
|
|
import withProjects from 'sentry/utils/withProjects';
|
|
|
import DeprecatedAsyncView from 'sentry/views/deprecatedAsyncView';
|
|
|
|
|
|
+import Header from '../components/header';
|
|
|
import ReleaseArchivedNotice from '../detail/overview/releaseArchivedNotice';
|
|
|
import {isMobileRelease} from '../utils';
|
|
|
|
|
@@ -75,6 +75,7 @@ type State = {
|
|
|
class ReleasesList extends DeprecatedAsyncView<Props, State> {
|
|
|
shouldReload = true;
|
|
|
shouldRenderBadRequests = true;
|
|
|
+ hasV2ReleaseUIEnabled = this.props.organization.features.includes('release-ui-v2');
|
|
|
|
|
|
getTitle() {
|
|
|
return routeTitleGen(t('Releases'), this.props.organization.slug, false);
|
|
@@ -502,7 +503,7 @@ class ReleasesList extends DeprecatedAsyncView<Props, State> {
|
|
|
}
|
|
|
|
|
|
renderBody() {
|
|
|
- const {organization, selection} = this.props;
|
|
|
+ const {organization, selection, router} = this.props;
|
|
|
const {releases, reloading, error} = this.state;
|
|
|
|
|
|
const activeSort = this.getSort();
|
|
@@ -520,19 +521,7 @@ class ReleasesList extends DeprecatedAsyncView<Props, State> {
|
|
|
return (
|
|
|
<PageFiltersContainer showAbsolute={false}>
|
|
|
<NoProjectMessage organization={organization}>
|
|
|
- <Layout.Header>
|
|
|
- <Layout.HeaderContent>
|
|
|
- <Layout.Title>
|
|
|
- {t('Releases')}
|
|
|
- <PageHeadingQuestionTooltip
|
|
|
- docsUrl="https://docs.sentry.io/product/releases/"
|
|
|
- title={t(
|
|
|
- 'A visualization of your release adoption from the past 24 hours, providing a high-level view of the adoption stage, percentage of crash-free users and sessions, and more.'
|
|
|
- )}
|
|
|
- />
|
|
|
- </Layout.Title>
|
|
|
- </Layout.HeaderContent>
|
|
|
- </Layout.Header>
|
|
|
+ <Header router={router} hasV2ReleaseUIEnabled={this.hasV2ReleaseUIEnabled} />
|
|
|
|
|
|
<Layout.Body>
|
|
|
<Layout.Main fullWidth>
|