replay.tsx 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. import type {JsonFormObject} from 'sentry/components/forms/types';
  2. import {t} from 'sentry/locale';
  3. export const route = '/settings/:orgId/projects/:projectId/replays/';
  4. const formGroups: JsonFormObject[] = [
  5. {
  6. title: 'Settings',
  7. fields: [
  8. {
  9. name: 'sentry:replay_rage_click_issues',
  10. type: 'boolean',
  11. // additional data/props that is related to rendering of form field rather than data
  12. label: t('Create Rage Click Issues'),
  13. help: t('Toggles whether or not to create Session Replay Rage Click Issues'),
  14. getData: data => ({options: data}),
  15. },
  16. {
  17. name: 'sentry:replay_hydration_error_issues',
  18. type: 'boolean',
  19. // additional data/props that is related to rendering of form field rather than data
  20. label: t('Create Hydration Error Issues'),
  21. help: t('Toggles whether or not to create Session Replay Hydration Error Issues'),
  22. getData: data => ({options: data}),
  23. visible({features}) {
  24. return features.has('session-replay-hydration-error-issue-creation');
  25. },
  26. },
  27. ],
  28. },
  29. ];
  30. export default formGroups;