Skip to content

Commit 6e9fd38

Browse files
feat(docs): add ruby uf configuration (#9397)
1 parent 0929dbf commit 6e9fd38

File tree

1 file changed

+31
-0
lines changed
  • docs/platforms/ruby/common/user-feedback/configuration

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: Configuration
3+
sidebar_order: 6100
4+
description: "Learn about the general User Feedback configuration fields."
5+
---
6+
7+
## Crash-Report Modal
8+
9+
You can customize the Crash-Report modal to your organization's needs, for example, for localization purposes. All options can be passed through the `Sentry.showReportDialog` call.
10+
11+
| Param | Default |
12+
| ---------------- | ------------------------------------------------------------------------------------------------- |
13+
| `eventId` | Manually set the id of the event. |
14+
| `dsn` | Manually set dsn to report to. |
15+
| `user` | Manually set user data _[an object with keys listed below]_. |
16+
| `user.email` | User's email address. |
17+
| `user.name` | User's name. |
18+
| `lang` | _[automatic]_**override for Sentry’s language code** |
19+
| `title` | It looks like we’re having issues. |
20+
| `subtitle` | Our team has been notified. |
21+
| `subtitle2` | If you’d like to help, tell us what happened below. – **not visible on small screen resolutions** |
22+
| `labelName` | Name |
23+
| `labelEmail` | Email |
24+
| `labelComments` | What happened? |
25+
| `labelClose` | Close |
26+
| `labelSubmit` | Submit |
27+
| `errorGeneric` | An unknown error occurred while submitting your report. Please try again. |
28+
| `errorFormEntry` | Some fields were invalid. Please correct the errors and try again. |
29+
| `successMessage` | Your feedback has been sent. Thank you! |
30+
| `onLoad` | n/a - **an optional callback that will be invoked when the widget opens** |
31+
| `onClose` | n/a - **an optional callback that will be invoked when the widget closes** |

0 commit comments

Comments
 (0)