userFeedback.tsx 793 B

12345678910111213141516171819202122232425
  1. import type {JsonFormObject} from 'sentry/components/forms/types';
  2. // Export route to make these forms searchable by label/help
  3. export const route = '/settings/:orgId/projects/:projectId/user-feedback/';
  4. const formGroups: JsonFormObject[] = [
  5. {
  6. // Form "section"/"panel"
  7. title: 'Settings',
  8. fields: [
  9. {
  10. name: 'feedback:branding',
  11. type: 'boolean',
  12. // additional data/props that is related to rendering of form field rather than data
  13. label: 'Show Sentry Branding',
  14. placeholder: 'e.g. secondary@example.com',
  15. help: 'Show "powered by Sentry within the feedback dialog. We appreciate you helping get the word out about Sentry! <3',
  16. getData: data => ({options: data}),
  17. },
  18. ],
  19. },
  20. ];
  21. export default formGroups;