Skip to content

feat(sentry): Show a card for user feedback links - #3842

Merged
BYK merged 2 commits into
mainfrom
feat/sentry-feedback-link-cards
Nov 20, 2026
Merged

BYK merged 2 commits into
mainfrom
feat/sentry-feedback-link-cards

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Sentry user feedback links, such as https://sentry.sentry.io/feedback/?feedbackSlug=cli%3A7857549981&project=…, got no card. A feedback is an issue (issueCategory: "feedback"), so the issue link type now claims feedback pages and reads the issue that feedbackSlug=<project>:<issue id> names.

  • URL forms: <org>.sentry.io/feedback/, <org>.sentry.io/issues/feedback/, and sentry.io/organizations/<org>/feedback/. A feedback page without a valid feedbackSlug gets no card.
  • The access model stays the same as for issues: the viewer's own Sentry token checks access, then Junior's org read token reads the card, cached per issue.
  • A feedback issue gets its own Ticket card, also when someone links it by /issues/<id>/:
    • title: metadata.summary, or the issue title without the User Feedback: prefix
    • summary: the feedback message
    • state: unresolved / resolved / spam (Sentry's feedback UI calls an ignored feedback spam)
    • assignee and project
  • The card never shows the sender's name or email (metadata.name, metadata.contact_email). It leaves out the issue-only noise too: culprit user, level info, the 1-event count, and the default priority.

Before this change, the same feedback linked as an issue showed "User Feedback: …" with the culprit user as its summary.

User feedback card

The screenshot comes from the dashboard mock with the card that the integration test asserts. A live card needs Sentry credentials.

via @BYK.

--

View Session [Sentry]

Sentry user feedback links, such as <org>.sentry.io/feedback/?feedbackSlug=<project>:<id>,
now resolve through the issue link type. A feedback issue gets its own card:
the feedback title and message, the state (an ignored feedback is spam),
the assignee, and the project. The card never shows the sender's name or email.

Co-Authored-By: BYK <[email protected]>
@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 19, 2026 11:46pm UTC

Request Review

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

401 screenshot changes — 0 changed · 401 added · 0 removed

Review screenshots in Frameshift

@sentry-junior
sentry-junior Bot marked this pull request as ready for review November 19, 2026 23:38
@sentry-junior
sentry-junior Bot requested a review from BYK November 19, 2026 23:38
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 19, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 6658c8d. Configure here.

@BYK
BYK merged commit c241b3d into main Nov 20, 2026
53 checks passed
@BYK
BYK deleted the feat/sentry-feedback-link-cards branch November 20, 2026 08:08
sentry-junior Bot added a commit that referenced this pull request Nov 20, 2026
A plugin can now say how each Event reads after its resource name, such
as "is merged". The GitHub plugin does so for pull request and issue
Events, and the custom snooze dialog lists each Event as a sentence,
such as "When #3842 is merged".
BYK added a commit that referenced this pull request Nov 21, 2026
A snoozed Inbox item that wakes now says why, in a short muted line on
its row and card: "Woke: #3842 is merged" or "Woke:
snooze time reached". Only the person whose snooze woke sees it.

**Record.** `junior_inbox_snoozes` gets a nullable `wake_reason` jsonb
(migration 0147): `{ kind: "time" }` or `{ kind: "event", namespace,
eventType, identifier }`. It is set when a snooze settles as `woken`:
- a timer fires, or a snooze is set to a time already past → time
- `publish` fires a subject-Event or named-resource trigger → the Event,
its resource and its type

A trigger with the `resolve` outcome closes the item, and a manual Wake
records nothing, so neither shows a reason.

**Show.** `GET /api/inbox-items` adds an optional `wake` to open items
for the viewer: `{ kind: "time" }` or `{ kind: "event", eventType,
resource, phrase? }`. The phrase comes from the Event catalog, the same
phrase the Snooze dialog uses. The dashboard moves `eventSentence` and
`sentenceCase` out of `SnoozeDialog` into `snoozeSentences.ts`, so the
condition ("When #3842 is merged") and the reason
("Woke: #3842 is merged") use the same code. An Event
with no phrase reads "Woke: <event label> on <resource>".
- Item row and closed Conversation row: the line under the title.
- Open Conversation row: the line moves to the card of the item that
woke.

**Clear.** The reason clears when the viewer:
- opens the item from the Inbox: expands its row, or follows its Open
link. This calls the new `DELETE /api/inbox/snoozes/wakes`. The open row
keeps the line until it closes.
- acts on it: answer, Dismiss, take, or Done, through `POST
/api/inbox-items/:id/actions`
- snoozes it again

**Notes for review**
- The text uses the Event's present-tense catalog phrase ("is merged"),
not "was merged". Past tense would need a new phrase field in the plugin
event API, so I left it out.
- The list read gains one statement. It runs in parallel with the other
payload reads, so the SQL budgets in `actions.test.ts` and
`evidence.test.ts` go up by one statement. A page whose other reads
issue no SQL also gains one serial round.
- The transcript question card and the classic sidebar do not show the
reason.
- `design/inbox.md` states the rule.

**Screenshots** (mock data)

Inbox rows, one woken by an Event and one by time:

| | Desktop | Mobile |
| --- | --- | --- |
| Dark |
![](https://junior-prod.sentry.dev/public/artifacts/8eba0cae-a2c2-4871-8023-d5a9576f9398.png)
|
![](https://junior-prod.sentry.dev/public/artifacts/3cea5b86-a5db-4798-9833-63a7ca3bdb5a.png)
|
| Light |
![](https://junior-prod.sentry.dev/public/artifacts/ea300bb8-f611-4fa3-9edb-984fb1cda0c6.png)
|
![](https://junior-prod.sentry.dev/public/artifacts/e3dac7a8-b786-4a90-9c82-2c3685d5e612.png)
|

Open Conversation row, with the reason on the card of the item that
woke:

| | Desktop | Mobile |
| --- | --- | --- |
| Dark |
![](https://junior-prod.sentry.dev/public/artifacts/48e554ac-0c50-4313-ba1b-55862b89f27f.png)
|
![](https://junior-prod.sentry.dev/public/artifacts/b16210ec-3d0f-4481-876d-ffd6f793b33e.png)
|
| Light |
![](https://junior-prod.sentry.dev/public/artifacts/5a246ebe-3027-4a2b-b6a6-30966b7c6777.png)
|
![](https://junior-prod.sentry.dev/public/artifacts/57b57d9c-0a12-4bf9-9c25-ef1b6265419f.png)
|

<!-- junior-request-attribution:start -->
via @BYK.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A1aa765a9dde01df13644f2fa3fca759f -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3A1aa765a9dde01df13644f2fa3fca759f)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A1aa765a9dde01df13644f2fa3fca759f/?project=4510944073809921)

<!-- junior-session-footer:end -->

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: BYK <[email protected]>

This branch was successfully deployed

1 active deployment
Preview – junior-docs — ccc9cd9b Deployed Nov 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant