Skip to content

Add user email and name to feedback #93512

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 16, 2025

Conversation

bruno-garcia
Copy link
Member

The captureFeedback call in static/app/views/settings/project/tempest/PlayStationSdkAccessModal.tsx was significantly refactored to align with Sentry's recommended API for user context and to customize the feedback message.

Changes include:

  • User Context: User details (id, email, username, name) are now passed via hint.captureContext.user in the captureFeedback options. This replaces the previous approach of setting the user email via the 'user.email' tag.
  • Message Body: The message property now constructs a multi-line string containing:
    • User: [Name]
    • Email: [Email]
    • Engines: [Engine1, Engine2] (formatted with human-readable labels)
    • Org Slug: [Org Slug]
  • Game Engines: Game engines are now included directly in the message body, formatted for readability, instead of being stored as a separate tag.
  • Tag Cleanup: Redundant tags such as 'user.email', 'org.slug', and gameEngines were removed, retaining only feature and githubProfile.

These modifications ensure user information is captured correctly according to Sentry's API and provide a structured, human-readable feedback message.

@bruno-garcia bruno-garcia requested a review from vgrozdanic June 13, 2025 15:37
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 13, 2025
Copy link
Member

@vgrozdanic vgrozdanic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 cursor ftw

@vgrozdanic vgrozdanic merged commit 72800c1 into master Jun 16, 2025
46 checks passed
@vgrozdanic vgrozdanic deleted the cursor/add-user-email-and-name-to-feedback-48dd branch June 16, 2025 07:43
billyvg pushed a commit that referenced this pull request Jun 18, 2025
The `captureFeedback` call in
`static/app/views/settings/project/tempest/PlayStationSdkAccessModal.tsx`
was significantly refactored to align with Sentry's recommended API for
user context and to customize the feedback message.

Changes include:
* **User Context**: User details (`id`, `email`, `username`, `name`) are
now passed via `hint.captureContext.user` in the `captureFeedback`
options. This replaces the previous approach of setting the user email
via the `'user.email'` tag.
* **Message Body**: The `message` property now constructs a multi-line
string containing:
    *   `User: [Name]`
    *   `Email: [Email]`
* `Engines: [Engine1, Engine2]` (formatted with human-readable labels)
    *   `Org Slug: [Org Slug]`
* **Game Engines**: Game engines are now included directly in the
message body, formatted for readability, instead of being stored as a
separate tag.
* **Tag Cleanup**: Redundant tags such as `'user.email'`, `'org.slug'`,
and `gameEngines` were removed, retaining only `feature` and
`githubProfile`.

These modifications ensure user information is captured correctly
according to Sentry's API and provide a structured, human-readable
feedback message.

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
andrewshie-sentry pushed a commit that referenced this pull request Jun 19, 2025
The `captureFeedback` call in
`static/app/views/settings/project/tempest/PlayStationSdkAccessModal.tsx`
was significantly refactored to align with Sentry's recommended API for
user context and to customize the feedback message.

Changes include:
* **User Context**: User details (`id`, `email`, `username`, `name`) are
now passed via `hint.captureContext.user` in the `captureFeedback`
options. This replaces the previous approach of setting the user email
via the `'user.email'` tag.
* **Message Body**: The `message` property now constructs a multi-line
string containing:
    *   `User: [Name]`
    *   `Email: [Email]`
* `Engines: [Engine1, Engine2]` (formatted with human-readable labels)
    *   `Org Slug: [Org Slug]`
* **Game Engines**: Game engines are now included directly in the
message body, formatted for readability, instead of being stored as a
separate tag.
* **Tag Cleanup**: Redundant tags such as `'user.email'`, `'org.slug'`,
and `gameEngines` were removed, retaining only `feature` and
`githubProfile`.

These modifications ensure user information is captured correctly
according to Sentry's API and provide a structured, human-readable
feedback message.

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants