Skip to content

docs(flutter): add Snapshots setup guide#18822

Open
lucas-zimerman wants to merge 3 commits into
masterfrom
lz/flutter/snapshot
Open

docs(flutter): add Snapshots setup guide#18822
lucas-zimerman wants to merge 3 commits into
masterfrom
lz/flutter/snapshot

Conversation

@lucas-zimerman

Copy link
Copy Markdown
Collaborator

DESCRIBE YOUR PR

Adds Flutter documentation for Sentry Snapshots, closing getsentry/sentry-dart#3794. Flutter has no dedicated Sentry tooling for snapshots (unlike Paparazzi for Android or SnapshotPreviews for iOS), so this documents the workflow built on Flutter's own golden file testing (matchesGoldenFile + flutter test --update-goldens) plus sentry-cli for upload.

  • New page: docs/platforms/dart/guides/flutter/snapshots/index.mdx — generate images, test locally, integrate into CI, plus notes on the test-font gotcha and cross-host-OS rendering differences (Flutter golden tests are host-OS-dependent for font rendering, so baseline and CI snapshots should be generated on the same OS).
  • Updated docs/product/snapshots/index.mdx — added Flutter to the "Recommended Platform Workflows" list.

Validated end-to-end against a real Flutter golden test and a live upload to the sentry-flutter Sentry project.

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

🤖 Generated with Claude Code

https://claude.ai/code/session_019bTzteNzMhFhA49MvQWp8e

Adds a Flutter Snapshots page using flutter_test golden files with
sentry-cli, and lists Flutter under the product-level Snapshots
recommended platform workflows.

Closes getsentry/sentry-dart#3794

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019bTzteNzMhFhA49MvQWp8e
@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview Jul 24, 2026 11:36pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview Jul 24, 2026 11:36pm

Request Review

@codeowner-assignment
codeowner-assignment Bot requested a review from a team July 24, 2026 02:00
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Redirect Chain Issues Detected

This PR introduces or contains redirect chains that degrade SEO and add latency.

Content Links Pointing to Redirects (1 found)

These links point to URLs that redirect. Update them to point directly to the final destination:

File Line Current Link Should Be
docs/platforms/javascript/guides/cloudflare/features/workers-ai.mdx 117 /ai/monitoring/conversations/ /ai/observability/conversations/

Each redirect hop loses ~15% of SEO link equity and adds latency for users.

@lucas-zimerman
lucas-zimerman requested a review from buenaflor July 24, 2026 02:01
@lucas-zimerman

Copy link
Copy Markdown
Collaborator Author

Sample snapshot using the doc: https://sentry-sdks.sentry.io/preprod/snapshots/474212/

Comment thread docs/product/snapshots/index.mdx
@lucas-zimerman

Copy link
Copy Markdown
Collaborator Author

⚠️ Redirect Chain Issues Detected

This PR introduces or contains redirect chains that degrade SEO and add latency.

Content Links Pointing to Redirects (1 found)

These links point to URLs that redirect. Update them to point directly to the final destination:
File Line Current Link Should Be
docs/platforms/javascript/guides/cloudflare/features/workers-ai.mdx 117 /ai/monitoring/conversations/ /ai/observability/conversations/

Each redirect hop loses ~15% of SEO link equity and adds latency for users.

Unrelated to this PR, issue already exists on master related to another SDK

@buenaflor buenaflor left a comment

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.

nice! overall LGTM, only had one comment

Comment on lines +14 to +16
## Step 1: Generate Images

Flutter's `flutter_test` package can render your widgets and save the result as an image using `matchesGoldenFile`. Write a test for each screen or component you want to snapshot:

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.

maybe we should say that the user just needs to generate a PNG out of their Flutter screen

users might assume using this method is the only one

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Sounds good to me, added this mention on 6c6c490

Addresses review feedback that readers might assume flutter_test/matchesGoldenFile is the only way to produce snapshot images, when Sentry just needs a PNG or JPEG.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sq5YUderV4Uj8JiJzhHnCT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants