list.tsx 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import styled from '@emotion/styled';
  2. import * as Layout from 'sentry/components/layouts/thirds';
  3. import PageFiltersContainer from 'sentry/components/organizations/pageFilters/container';
  4. import {PageHeadingQuestionTooltip} from 'sentry/components/pageHeadingQuestionTooltip';
  5. import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
  6. import {t} from 'sentry/locale';
  7. import {space} from 'sentry/styles/space';
  8. import useReplayPageview from 'sentry/utils/replays/hooks/useReplayPageview';
  9. import useOrganization from 'sentry/utils/useOrganization';
  10. import ReplaysFilters from 'sentry/views/replays/list/filters';
  11. import ReplaysErroneousDeadRageCards from 'sentry/views/replays/list/replaysErroneousDeadRageCards';
  12. import ReplaysList from 'sentry/views/replays/list/replaysList';
  13. function ReplaysListContainer() {
  14. useReplayPageview('replay.list-time-spent');
  15. const {slug: orgSlug} = useOrganization();
  16. return (
  17. <SentryDocumentTitle title={`Session Replay — ${orgSlug}`}>
  18. <Layout.Header>
  19. <Layout.HeaderContent>
  20. <Layout.Title>
  21. {t('Session Replay')}
  22. <PageHeadingQuestionTooltip
  23. title={t(
  24. 'A view of available video-like reproductions of user sessions so you can visualize repro steps to debug issues faster.'
  25. )}
  26. docsUrl="https://docs.sentry.io/product/session-replay/"
  27. />
  28. </Layout.Title>
  29. </Layout.HeaderContent>
  30. </Layout.Header>
  31. <PageFiltersContainer>
  32. <Layout.Body>
  33. <Layout.Main fullWidth>
  34. <ReplaysFilters />
  35. <LayoutGap>
  36. <ReplaysErroneousDeadRageCards />
  37. <ReplaysList />
  38. </LayoutGap>
  39. </Layout.Main>
  40. </Layout.Body>
  41. </PageFiltersContainer>
  42. </SentryDocumentTitle>
  43. );
  44. }
  45. const LayoutGap = styled('div')`
  46. display: grid;
  47. gap: ${space(2)};
  48. `;
  49. export default ReplaysListContainer;