index.tsx 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680
  1. import {Fragment} from 'react';
  2. import {forceCheck} from 'react-lazyload';
  3. import type {RouteComponentProps} from 'react-router';
  4. import styled from '@emotion/styled';
  5. import pick from 'lodash/pick';
  6. import {fetchTagValues} from 'sentry/actionCreators/tags';
  7. import type {Client} from 'sentry/api';
  8. import {Alert} from 'sentry/components/alert';
  9. import GuideAnchor from 'sentry/components/assistant/guideAnchor';
  10. import EmptyMessage from 'sentry/components/emptyMessage';
  11. import FloatingFeedbackWidget from 'sentry/components/feedback/widget/floatingFeedbackWidget';
  12. import * as Layout from 'sentry/components/layouts/thirds';
  13. import ExternalLink from 'sentry/components/links/externalLink';
  14. import LoadingIndicator from 'sentry/components/loadingIndicator';
  15. import NoProjectMessage from 'sentry/components/noProjectMessage';
  16. import {DatePageFilter} from 'sentry/components/organizations/datePageFilter';
  17. import {EnvironmentPageFilter} from 'sentry/components/organizations/environmentPageFilter';
  18. import PageFilterBar from 'sentry/components/organizations/pageFilterBar';
  19. import PageFiltersContainer from 'sentry/components/organizations/pageFilters/container';
  20. import {normalizeDateTimeParams} from 'sentry/components/organizations/pageFilters/parse';
  21. import {ProjectPageFilter} from 'sentry/components/organizations/projectPageFilter';
  22. import Pagination from 'sentry/components/pagination';
  23. import Panel from 'sentry/components/panels/panel';
  24. import {SearchQueryBuilder} from 'sentry/components/searchQueryBuilder';
  25. import SmartSearchBar from 'sentry/components/smartSearchBar';
  26. import {ItemType} from 'sentry/components/smartSearchBar/types';
  27. import {getRelativeSummary} from 'sentry/components/timeRangeSelector/utils';
  28. import {DEFAULT_STATS_PERIOD} from 'sentry/constants';
  29. import {ALL_ACCESS_PROJECTS} from 'sentry/constants/pageFilters';
  30. import {releaseHealth} from 'sentry/data/platformCategories';
  31. import {IconSearch} from 'sentry/icons';
  32. import {t} from 'sentry/locale';
  33. import ProjectsStore from 'sentry/stores/projectsStore';
  34. import {space} from 'sentry/styles/space';
  35. import type {PageFilters} from 'sentry/types/core';
  36. import type {Tag} from 'sentry/types/group';
  37. import type {Organization} from 'sentry/types/organization';
  38. import type {AvatarProject, Project} from 'sentry/types/project';
  39. import type {Release} from 'sentry/types/release';
  40. import {ReleaseStatus} from 'sentry/types/release';
  41. import {trackAnalytics} from 'sentry/utils/analytics';
  42. import {SEMVER_TAGS} from 'sentry/utils/discover/fields';
  43. import Projects from 'sentry/utils/projects';
  44. import routeTitleGen from 'sentry/utils/routeTitle';
  45. import withApi from 'sentry/utils/withApi';
  46. import withOrganization from 'sentry/utils/withOrganization';
  47. import withPageFilters from 'sentry/utils/withPageFilters';
  48. import withProjects from 'sentry/utils/withProjects';
  49. import DeprecatedAsyncView from 'sentry/views/deprecatedAsyncView';
  50. import Header from '../components/header';
  51. import ReleaseArchivedNotice from '../detail/overview/releaseArchivedNotice';
  52. import {isMobileRelease} from '../utils';
  53. import ReleaseCard from './releaseCard';
  54. import ReleasesAdoptionChart from './releasesAdoptionChart';
  55. import ReleasesDisplayOptions, {ReleasesDisplayOption} from './releasesDisplayOptions';
  56. import ReleasesPromo from './releasesPromo';
  57. import ReleasesRequest from './releasesRequest';
  58. import ReleasesSortOptions, {ReleasesSortOption} from './releasesSortOptions';
  59. import ReleasesStatusOptions, {ReleasesStatusOption} from './releasesStatusOptions';
  60. type RouteParams = {
  61. orgId: string;
  62. };
  63. type Props = RouteComponentProps<RouteParams, {}> & {
  64. api: Client;
  65. organization: Organization;
  66. projects: Project[];
  67. selection: PageFilters;
  68. };
  69. type State = {
  70. releases: Release[];
  71. } & DeprecatedAsyncView['state'];
  72. class ReleasesList extends DeprecatedAsyncView<Props, State> {
  73. shouldReload = true;
  74. shouldRenderBadRequests = true;
  75. filterKeys = [
  76. ...Object.values(SEMVER_TAGS),
  77. {
  78. key: 'release',
  79. name: 'release',
  80. },
  81. ].reduce((acc, tag) => {
  82. acc[tag.key] = tag;
  83. return acc;
  84. }, {});
  85. getTitle() {
  86. return routeTitleGen(t('Releases'), this.props.organization.slug, false);
  87. }
  88. getEndpoints(): ReturnType<DeprecatedAsyncView['getEndpoints']> {
  89. const {organization, location} = this.props;
  90. const {statsPeriod} = location.query;
  91. const activeSort = this.getSort();
  92. const activeStatus = this.getStatus();
  93. const query = {
  94. ...pick(location.query, ['project', 'environment', 'cursor', 'query', 'sort']),
  95. summaryStatsPeriod: statsPeriod,
  96. per_page: 20,
  97. flatten: activeSort === ReleasesSortOption.DATE ? 0 : 1,
  98. adoptionStages: 1,
  99. status:
  100. activeStatus === ReleasesStatusOption.ARCHIVED
  101. ? ReleaseStatus.ARCHIVED
  102. : ReleaseStatus.ACTIVE,
  103. };
  104. const endpoints: ReturnType<DeprecatedAsyncView['getEndpoints']> = [
  105. [
  106. 'releases', // stateKey
  107. `/organizations/${organization.slug}/releases/`, // endpoint
  108. {query}, // params
  109. {disableEntireQuery: true}, // options - prevent cursor from being passed into query
  110. ],
  111. ];
  112. return endpoints;
  113. }
  114. componentDidUpdate(prevProps: Props, prevState: State) {
  115. super.componentDidUpdate(prevProps, prevState);
  116. if (prevState.releases !== this.state.releases) {
  117. /**
  118. * Manually trigger checking for elements in viewport.
  119. * Helpful when LazyLoad components enter the viewport without resize or scroll events,
  120. * https://github.com/twobin/react-lazyload#forcecheck
  121. *
  122. * HealthStatsCharts are being rendered only when they are scrolled into viewport.
  123. * This is how we re-check them without scrolling once releases change as this view
  124. * uses shouldReload=true and there is no reloading happening.
  125. */
  126. forceCheck();
  127. }
  128. }
  129. getQuery() {
  130. const {query} = this.props.location.query;
  131. return typeof query === 'string' ? query : undefined;
  132. }
  133. getSort(): ReleasesSortOption {
  134. const {environments} = this.props.selection;
  135. const {sort} = this.props.location.query;
  136. // Require 1 environment for date adopted
  137. if (sort === ReleasesSortOption.ADOPTION && environments.length !== 1) {
  138. return ReleasesSortOption.DATE;
  139. }
  140. const sortExists = Object.values(ReleasesSortOption).includes(sort);
  141. if (sortExists) {
  142. return sort;
  143. }
  144. return ReleasesSortOption.DATE;
  145. }
  146. getDisplay(): ReleasesDisplayOption {
  147. const {display} = this.props.location.query;
  148. switch (display) {
  149. case ReleasesDisplayOption.USERS:
  150. return ReleasesDisplayOption.USERS;
  151. default:
  152. return ReleasesDisplayOption.SESSIONS;
  153. }
  154. }
  155. getStatus(): ReleasesStatusOption {
  156. const {status} = this.props.location.query;
  157. switch (status) {
  158. case ReleasesStatusOption.ARCHIVED:
  159. return ReleasesStatusOption.ARCHIVED;
  160. default:
  161. return ReleasesStatusOption.ACTIVE;
  162. }
  163. }
  164. getSelectedProject(): Project | undefined {
  165. const {selection, projects} = this.props;
  166. const selectedProjectId =
  167. selection.projects && selection.projects.length === 1 && selection.projects[0];
  168. return projects?.find(p => p.id === `${selectedProjectId}`);
  169. }
  170. getSelectedProjectSlugs(): string[] {
  171. const {selection, projects} = this.props;
  172. const projIdSet = new Set(selection.projects);
  173. return projects.reduce((result: string[], proj) => {
  174. if (projIdSet.has(Number(proj.id))) {
  175. result.push(proj.slug);
  176. }
  177. return result;
  178. }, []);
  179. }
  180. get projectHasSessions() {
  181. return this.getSelectedProject()?.hasSessions ?? null;
  182. }
  183. handleSearch = (query: string) => {
  184. const {location, router} = this.props;
  185. router.push({
  186. ...location,
  187. query: {...location.query, cursor: undefined, query},
  188. });
  189. };
  190. handleSortBy = (sort: string) => {
  191. const {location, router} = this.props;
  192. router.push({
  193. ...location,
  194. query: {...location.query, cursor: undefined, sort},
  195. });
  196. };
  197. handleDisplay = (display: string) => {
  198. const {location, router} = this.props;
  199. let sort = location.query.sort;
  200. if (
  201. sort === ReleasesSortOption.USERS_24_HOURS &&
  202. display === ReleasesDisplayOption.SESSIONS
  203. ) {
  204. sort = ReleasesSortOption.SESSIONS_24_HOURS;
  205. } else if (
  206. sort === ReleasesSortOption.SESSIONS_24_HOURS &&
  207. display === ReleasesDisplayOption.USERS
  208. ) {
  209. sort = ReleasesSortOption.USERS_24_HOURS;
  210. } else if (
  211. sort === ReleasesSortOption.CRASH_FREE_USERS &&
  212. display === ReleasesDisplayOption.SESSIONS
  213. ) {
  214. sort = ReleasesSortOption.CRASH_FREE_SESSIONS;
  215. } else if (
  216. sort === ReleasesSortOption.CRASH_FREE_SESSIONS &&
  217. display === ReleasesDisplayOption.USERS
  218. ) {
  219. sort = ReleasesSortOption.CRASH_FREE_USERS;
  220. }
  221. router.push({
  222. ...location,
  223. query: {...location.query, cursor: undefined, display, sort},
  224. });
  225. };
  226. handleStatus = (status: string) => {
  227. const {location, router} = this.props;
  228. router.push({
  229. ...location,
  230. query: {...location.query, cursor: undefined, status},
  231. });
  232. };
  233. trackAddReleaseHealth = () => {
  234. const {organization, selection} = this.props;
  235. if (organization.id && selection.projects[0]) {
  236. trackAnalytics('releases_list.click_add_release_health', {
  237. organization,
  238. project_id: selection.projects[0],
  239. });
  240. }
  241. };
  242. tagValueLoader = (key: string, search: string) => {
  243. const {location, organization} = this.props;
  244. const {project: projectId} = location.query;
  245. return fetchTagValues({
  246. api: this.api,
  247. orgSlug: organization.slug,
  248. tagKey: key,
  249. search,
  250. projectIds: projectId ? [projectId] : undefined,
  251. endpointParams: normalizeDateTimeParams(location.query),
  252. });
  253. };
  254. getTagValues = async (tag: Tag, currentQuery: string): Promise<string[]> => {
  255. const values = await this.tagValueLoader(tag.key, currentQuery);
  256. return values.map(({value}) => value);
  257. };
  258. shouldShowLoadingIndicator() {
  259. const {loading, releases, reloading} = this.state;
  260. return (loading && !reloading) || (loading && !releases?.length);
  261. }
  262. renderLoading() {
  263. return this.renderBody();
  264. }
  265. renderError() {
  266. return this.renderBody();
  267. }
  268. get shouldShowQuickstart() {
  269. const {releases} = this.state;
  270. const selectedProject = this.getSelectedProject();
  271. const hasReleasesSetup = selectedProject?.features.includes('releases');
  272. return !releases?.length && !hasReleasesSetup && selectedProject;
  273. }
  274. renderEmptyMessage() {
  275. const {location} = this.props;
  276. const {statsPeriod, start, end} = location.query;
  277. const searchQuery = this.getQuery();
  278. const activeSort = this.getSort();
  279. const activeStatus = this.getStatus();
  280. const selectedPeriod =
  281. !!start && !!end
  282. ? t('time range')
  283. : getRelativeSummary(statsPeriod || DEFAULT_STATS_PERIOD).toLowerCase();
  284. if (searchQuery?.length) {
  285. return (
  286. <Panel>
  287. <EmptyMessage icon={<IconSearch size="xl" />} size="large">{`${t(
  288. 'There are no releases that match'
  289. )}: '${searchQuery}'.`}</EmptyMessage>
  290. </Panel>
  291. );
  292. }
  293. if (activeSort === ReleasesSortOption.USERS_24_HOURS) {
  294. return (
  295. <Panel>
  296. <EmptyMessage icon={<IconSearch size="xl" />} size="large">
  297. {t(
  298. 'There are no releases with active user data (users in the last 24 hours).'
  299. )}
  300. </EmptyMessage>
  301. </Panel>
  302. );
  303. }
  304. if (activeSort === ReleasesSortOption.SESSIONS_24_HOURS) {
  305. return (
  306. <Panel>
  307. <EmptyMessage icon={<IconSearch size="xl" />} size="large">
  308. {t(
  309. 'There are no releases with active session data (sessions in the last 24 hours).'
  310. )}
  311. </EmptyMessage>
  312. </Panel>
  313. );
  314. }
  315. if (
  316. activeSort === ReleasesSortOption.BUILD ||
  317. activeSort === ReleasesSortOption.SEMVER
  318. ) {
  319. return (
  320. <Panel>
  321. <EmptyMessage icon={<IconSearch size="xl" />} size="large">
  322. {t('There are no releases with semantic versioning.')}
  323. </EmptyMessage>
  324. </Panel>
  325. );
  326. }
  327. if (activeSort !== ReleasesSortOption.DATE) {
  328. return (
  329. <Panel>
  330. <EmptyMessage icon={<IconSearch size="xl" />} size="large">
  331. {`${t('There are no releases with data in the')} ${selectedPeriod}.`}
  332. </EmptyMessage>
  333. </Panel>
  334. );
  335. }
  336. if (activeStatus === ReleasesStatusOption.ARCHIVED) {
  337. return (
  338. <Panel>
  339. <EmptyMessage icon={<IconSearch size="xl" />} size="large">
  340. {t('There are no archived releases.')}
  341. </EmptyMessage>
  342. </Panel>
  343. );
  344. }
  345. return (
  346. <Panel>
  347. <EmptyMessage icon={<IconSearch size="xl" />} size="large">
  348. {`${t('There are no releases with data in the')} ${selectedPeriod}.`}
  349. </EmptyMessage>
  350. </Panel>
  351. );
  352. }
  353. renderHealthCta() {
  354. const {organization} = this.props;
  355. const {releases} = this.state;
  356. const selectedProject = this.getSelectedProject();
  357. if (!selectedProject || this.projectHasSessions !== false || !releases?.length) {
  358. return null;
  359. }
  360. return (
  361. <Projects orgId={organization.slug} slugs={[selectedProject.slug]}>
  362. {({projects, initiallyLoaded, fetchError}) => {
  363. const project: AvatarProject | undefined =
  364. projects?.length === 1 ? projects.at(0) : undefined;
  365. const projectCanHaveReleases =
  366. project?.platform && releaseHealth.includes(project.platform);
  367. if (!initiallyLoaded || fetchError || !projectCanHaveReleases) {
  368. return null;
  369. }
  370. return (
  371. <Alert type="info" showIcon>
  372. <AlertText>
  373. <div>
  374. {t(
  375. 'To track user adoption, crash rates, session data and more, add Release Health to your current setup.'
  376. )}
  377. </div>
  378. <ExternalLink
  379. href="https://docs.sentry.io/product/releases/setup/#release-health"
  380. onClick={this.trackAddReleaseHealth}
  381. >
  382. {t('Add Release Health')}
  383. </ExternalLink>
  384. </AlertText>
  385. </Alert>
  386. );
  387. }}
  388. </Projects>
  389. );
  390. }
  391. renderInnerBody(
  392. activeDisplay: ReleasesDisplayOption,
  393. showReleaseAdoptionStages: boolean
  394. ) {
  395. const {location, selection, organization, router} = this.props;
  396. const {releases, reloading, releasesPageLinks} = this.state;
  397. const selectedProject = this.getSelectedProject();
  398. const hasReleasesSetup = selectedProject?.features.includes('releases');
  399. if (this.shouldShowLoadingIndicator()) {
  400. return <LoadingIndicator />;
  401. }
  402. if (!releases?.length && hasReleasesSetup) {
  403. return this.renderEmptyMessage();
  404. }
  405. if (this.shouldShowQuickstart) {
  406. return <ReleasesPromo organization={organization} project={selectedProject!} />;
  407. }
  408. return (
  409. <ReleasesRequest
  410. releases={releases.map(({version}) => version)}
  411. organization={organization}
  412. selection={selection}
  413. location={location}
  414. display={[this.getDisplay()]}
  415. releasesReloading={reloading}
  416. healthStatsPeriod={location.query.healthStatsPeriod}
  417. >
  418. {({isHealthLoading, getHealthData}) => {
  419. const singleProjectSelected =
  420. selection.projects?.length === 1 &&
  421. selection.projects[0] !== ALL_ACCESS_PROJECTS;
  422. // TODO: project specific chart should live on the project details page.
  423. const isMobileProject =
  424. selectedProject?.platform && isMobileRelease(selectedProject.platform);
  425. return (
  426. <Fragment>
  427. {singleProjectSelected && this.projectHasSessions && isMobileProject && (
  428. <ReleasesAdoptionChart
  429. organization={organization}
  430. selection={selection}
  431. location={location}
  432. router={router}
  433. activeDisplay={activeDisplay}
  434. />
  435. )}
  436. {releases.map((release, index) => (
  437. <ReleaseCard
  438. key={`${release.projects[0].slug}-${release.version}`}
  439. activeDisplay={activeDisplay}
  440. release={release}
  441. organization={organization}
  442. location={location}
  443. selection={selection}
  444. reloading={reloading}
  445. showHealthPlaceholders={isHealthLoading}
  446. isTopRelease={index === 0}
  447. getHealthData={getHealthData}
  448. showReleaseAdoptionStages={showReleaseAdoptionStages}
  449. />
  450. ))}
  451. <Pagination pageLinks={releasesPageLinks} />
  452. </Fragment>
  453. );
  454. }}
  455. </ReleasesRequest>
  456. );
  457. }
  458. renderBody() {
  459. const {organization, selection} = this.props;
  460. const {releases, reloading, error} = this.state;
  461. const activeSort = this.getSort();
  462. const activeStatus = this.getStatus();
  463. const activeDisplay = this.getDisplay();
  464. const hasAnyMobileProject = selection.projects
  465. .map(id => `${id}`)
  466. .map(ProjectsStore.getById)
  467. .some(project => project?.platform && isMobileRelease(project.platform));
  468. const showReleaseAdoptionStages =
  469. hasAnyMobileProject && selection.environments.length === 1;
  470. return (
  471. <PageFiltersContainer showAbsolute={false}>
  472. <NoProjectMessage organization={organization}>
  473. <Header />
  474. <Layout.Body>
  475. <Layout.Main fullWidth>
  476. {this.renderHealthCta()}
  477. <ReleasesPageFilterBar condensed>
  478. <GuideAnchor target="release_projects">
  479. <ProjectPageFilter />
  480. </GuideAnchor>
  481. <EnvironmentPageFilter />
  482. <DatePageFilter
  483. disallowArbitraryRelativeRanges
  484. menuFooterMessage={t(
  485. 'Changing this date range will recalculate the release metrics.'
  486. )}
  487. />
  488. </ReleasesPageFilterBar>
  489. {this.shouldShowQuickstart ? null : (
  490. <SortAndFilterWrapper>
  491. {organization.features.includes('search-query-builder-releases') ? (
  492. <StyledSearchQueryBuilder
  493. onSearch={this.handleSearch}
  494. initialQuery={this.getQuery() || ''}
  495. filterKeys={this.filterKeys}
  496. getTagValues={this.getTagValues}
  497. placeholder={t('Search by version, build, package, or stage')}
  498. searchSource="releases"
  499. />
  500. ) : (
  501. <StyledSmartSearchBar
  502. searchSource="releases"
  503. query={this.getQuery()}
  504. placeholder={t('Search by version, build, package, or stage')}
  505. hasRecentSearches={false}
  506. maxMenuHeight={500}
  507. supportedTagType={ItemType.PROPERTY}
  508. onSearch={this.handleSearch}
  509. onGetTagValues={this.getTagValues}
  510. supportedTags={{
  511. ...SEMVER_TAGS,
  512. release: {
  513. key: 'release',
  514. name: 'release',
  515. },
  516. }}
  517. />
  518. )}
  519. <ReleasesStatusOptions
  520. selected={activeStatus}
  521. onSelect={this.handleStatus}
  522. />
  523. <ReleasesSortOptions
  524. selected={activeSort}
  525. selectedDisplay={activeDisplay}
  526. onSelect={this.handleSortBy}
  527. environments={selection.environments}
  528. />
  529. <ReleasesDisplayOptions
  530. selected={activeDisplay}
  531. onSelect={this.handleDisplay}
  532. />
  533. </SortAndFilterWrapper>
  534. )}
  535. {!reloading &&
  536. activeStatus === ReleasesStatusOption.ARCHIVED &&
  537. !!releases?.length && <ReleaseArchivedNotice multi />}
  538. {error
  539. ? super.renderError()
  540. : this.renderInnerBody(activeDisplay, showReleaseAdoptionStages)}
  541. <FloatingFeedbackWidget />
  542. </Layout.Main>
  543. </Layout.Body>
  544. </NoProjectMessage>
  545. </PageFiltersContainer>
  546. );
  547. }
  548. }
  549. const AlertText = styled('div')`
  550. display: flex;
  551. align-items: flex-start;
  552. justify-content: flex-start;
  553. gap: ${space(2)};
  554. > *:nth-child(1) {
  555. flex: 1;
  556. }
  557. flex-direction: column;
  558. @media (min-width: ${p => p.theme.breakpoints.medium}) {
  559. flex-direction: row;
  560. }
  561. `;
  562. const ReleasesPageFilterBar = styled(PageFilterBar)`
  563. margin-bottom: ${space(2)};
  564. `;
  565. const SortAndFilterWrapper = styled('div')`
  566. display: grid;
  567. grid-template-columns: 1fr repeat(3, max-content);
  568. gap: ${space(2)};
  569. margin-bottom: ${space(2)};
  570. @media (max-width: ${p => p.theme.breakpoints.medium}) {
  571. grid-template-columns: repeat(3, 1fr);
  572. & > div {
  573. width: auto;
  574. }
  575. }
  576. @media (max-width: ${p => p.theme.breakpoints.small}) {
  577. grid-template-columns: minmax(0, 1fr);
  578. }
  579. `;
  580. const StyledSmartSearchBar = styled(SmartSearchBar)`
  581. @media (max-width: ${p => p.theme.breakpoints.medium}) {
  582. grid-column: 1 / -1;
  583. }
  584. `;
  585. const StyledSearchQueryBuilder = styled(SearchQueryBuilder)`
  586. @media (max-width: ${p => p.theme.breakpoints.medium}) {
  587. grid-column: 1 / -1;
  588. }
  589. `;
  590. export default withApi(withProjects(withOrganization(withPageFilters(ReleasesList))));