import Access from 'sentry/components/acl/access'; import {LinkButton} from 'sentry/components/button'; import Form from 'sentry/components/forms/form'; import JsonForm from 'sentry/components/forms/jsonForm'; import type {JsonFormObject} from 'sentry/components/forms/types'; import Link from 'sentry/components/links/link'; import ReplaySettingsAlert from 'sentry/components/replays/alerts/replaySettingsAlert'; import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle'; import {t, tct} from 'sentry/locale'; import ProjectsStore from 'sentry/stores/projectsStore'; import type {RouteComponentProps} from 'sentry/types/legacyReactRouter'; import type {Organization} from 'sentry/types/organization'; import type {Project} from 'sentry/types/project'; import SettingsPageHeader from 'sentry/views/settings/components/settingsPageHeader'; import PermissionAlert from 'sentry/views/settings/project/permissionAlert'; type RouteParams = { projectId: string; }; type Props = RouteComponentProps & { organization: Organization; project: Project; }; function ProjectReplaySettings({organization, project, params: {projectId}}: Props) { const formGroups: JsonFormObject[] = [ { title: 'Settings', fields: [ { name: 'sentry:replay_rage_click_issues', type: 'boolean', // additional data/props that is related to rendering of form field rather than data label: t('Create Rage Click Issues'), help: t('Toggles whether or not to create Session Replay Rage Click Issues'), getData: data => ({options: data}), }, { name: 'sentry:replay_hydration_error_issues', type: 'boolean', // additional data/props that is related to rendering of form field rather than data label: t('Create Hydration Error Issues'), help() { return tct( 'Toggles whether or not to create Session Replay Hydration Error Issues during replay ingest. Using [inboundFilters: inbound filters] to filter out hydration errors does not affect this setting.', { inboundFilters: ( ), } ); }, getData: data => ({options: data}), }, ], }, ]; return ( {t('Read the Docs')} } />
ProjectsStore.onUpdateSuccess(response)} > {({hasAccess}) => ( )}
); } export default ProjectReplaySettings;