Skip to content

feat(preprod): Add snapshot PR comments toggle to project settings#112362

Merged
runningcode merged 1 commit intomasterfrom
no/snapshot-pr-comments-toggle
Apr 10, 2026
Merged

feat(preprod): Add snapshot PR comments toggle to project settings#112362
runningcode merged 1 commit intomasterfrom
no/snapshot-pr-comments-toggle

Conversation

@runningcode
Copy link
Copy Markdown
Contributor

@runningcode runningcode commented Apr 7, 2026

Add a toggle on the Snapshots tab in Mobile Builds project settings to
enable/disable snapshot PR comments per project. Mirrors the existing
build distribution PR comments toggle on the Distribution tab.

The backend project option (sentry:preprod_snapshot_pr_comments_enabled)
and serializer field (preprodSnapshotPrCommentsEnabled) were already
registered — this PR adds the frontend toggle and the Project type
field. Gated behind organizations:preprod-snapshot-pr-comments.

Refs EME-999

Added this here in the UI:
Screenshot 2026-04-07 at 16 38 56

…ME-999)

Add a toggle on the Snapshots tab in project settings to enable/disable
snapshot PR comments, matching the existing build distribution toggle.
Gated behind the preprod-snapshot-pr-comments feature flag.
@linear-code
Copy link
Copy Markdown

linear-code bot commented Apr 7, 2026

EME-999 PR comments

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 7, 2026
@runningcode runningcode marked this pull request as ready for review April 7, 2026 14:39
@runningcode runningcode requested review from a team as code owners April 7, 2026 14:39
Copy link
Copy Markdown
Contributor

@cursor cursor bot left a comment

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 2b881ec. Configure here.

</PanelBody>
</Panel>
);
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

New toggle component duplicates existing PR comments toggle

Low Severity

SnapshotPrCommentsToggle is a near-exact copy of PrCommentsToggle — both are 64 lines with identical structure, logic, and component tree. The only differences are the READ_KEY/WRITE_KEY constants and five label strings. A single shared component accepting those as props would eliminate the duplication, reducing the risk of the two toggles drifting out of sync if the toggle logic ever needs a bug fix.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 2b881ec. Configure here.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm ok either way - extracting most of this to be a shared base or just leaving separate

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm going to merge as is. We're still not in beta and if we combine the logic then it sets it in stone. If we want to change / add more toggles it makes it trickier.

@runningcode runningcode requested review from mtopo27 and rbro112 April 7, 2026 15:02
@runningcode runningcode merged commit 1586980 into master Apr 10, 2026
70 of 71 checks passed
@runningcode runningcode deleted the no/snapshot-pr-comments-toggle branch April 10, 2026 06:57
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.

2 participants