Просмотр исходного кода

feat(replay): add toggle button for hydration issue setting (#71799)

Follow-up to https://github.com/getsentry/sentry/pull/71411
Builds on settings page Josh added in
https://github.com/getsentry/sentry/pull/64241

![Screenshot 2024-05-30 at 3 15
52 PM](https://github.com/getsentry/sentry/assets/159852527/d64ca6de-9881-4892-b1ce-d7a34e110ed3)
Button in dev-ui + correct payload sent to settings endpoint
Andrew Liu 9 месяцев назад
Родитель
Сommit
0c91189943
1 измененных файлов с 9 добавлено и 0 удалено
  1. 9 0
      static/app/data/forms/replay.tsx

+ 9 - 0
static/app/data/forms/replay.tsx

@@ -16,6 +16,15 @@ const formGroups: JsonFormObject[] = [
         help: t('Toggles whether or not to create Session Replay Rage Click Issues'),
         help: t('Toggles whether or not to create Session Replay Rage Click Issues'),
         getData: data => ({options: data}),
         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: t('Toggles whether or not to create Session Replay Hydration Error Issues'),
+        getData: data => ({options: data}),
+      },
     ],
     ],
   },
   },
 ];
 ];