Skip to content

docs: rewrite README with value-first positioning and Web UI section#179

Merged
pftg merged 1 commit intomasterfrom
docs/readme-web-ui-rewrite
Apr 12, 2026
Merged

docs: rewrite README with value-first positioning and Web UI section#179
pftg merged 1 commit intomasterfrom
docs/readme-web-ui-rewrite

Conversation

@pftg
Copy link
Copy Markdown
Collaborator

@pftg pftg commented Apr 12, 2026

Summary

  • Opening line sells outcome with competitive positioning vs Percy/Chromatic/BackstopJS
  • Renamed "HTML Reporter" to "Web UI for Reviewing Screenshot Changes" with GitHub Actions PR comment shown inline
  • Promoted Web UI to its own section (was buried in 1 line)
  • Replaced tuning table with single configure block
  • Reframed Troubleshooting as "Common Questions"
  • Added Diff.compare usage showing actual return API

Context

Based on 3-reviewer brutal honesty review (Rails dev persona, DevOps persona, OSS maintainer persona). Original README scored 6/10 on conviction — main gaps were value positioning, buried killer feature (Web UI), and cognitive overload from tuning table.

Test plan

  • README renders correctly on GitHub
  • All doc links resolve
  • Unit tests pass (no code changes)

🤖 Generated with Claude Code

Summary by Sourcery

Rewrite the README to emphasize value proposition, clarify setup, and highlight the Web UI for reviewing visual regressions.

Documentation:

  • Reposition README introduction around competitive, value-first messaging and local/offline workflow.
  • Document the Web UI for reviewing screenshot changes as a first-class feature, including GitHub Actions integration and artifact usage.
  • Simplify configuration guidance by replacing the tuning table with a concise configuration example and clarifying comparison options.
  • Add practical usage examples for Diff.compare and expand the Common Questions section for baseline updates, flakiness, and CI differences.
  • Rename the HTML report to Web UI for Reviewing Screenshot Changes across documentation for consistency.

Summary by CodeRabbit

  • Documentation
    • Improved Quick Start guidance with clearer offline workflow instructions
    • Added Web UI section for reviewing screenshot changes with reporter examples
    • Added section demonstrating how to compare any two images
    • Enhanced guidance on handling baseline updates and flaky tests
    • Reorganized troubleshooting content as "Common Questions" for better clarity

- Opening line sells outcome ("Stop shipping UI bugs") with competitive
  positioning vs Percy/Chromatic/BackstopJS
- Renamed "HTML Reporter" to "Web UI for Reviewing Screenshot Changes"
  with GitHub Actions PR comment integration shown inline
- Promoted Web UI to its own section (was buried in 1 line)
- Replaced tuning table with single configure block
- Reframed Troubleshooting as "Common Questions"
- Added Diff.compare usage showing actual return API
- Folded ruby-vips into Quick Start Gemfile

Based on 3-reviewer brutal honesty review (Rails dev, DevOps, OSS maintainer).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sourcery-ai
Copy link
Copy Markdown
Contributor

sourcery-ai Bot commented Apr 12, 2026

Reviewer's Guide

Repositions the README and reporters documentation around outcome-focused value, surfaces the Web UI as a first-class feature with GitHub Actions integration, simplifies configuration guidance, and clarifies common workflows and troubleshooting examples without changing any runtime code.

Flow diagram for the documented screenshot baseline and Web UI review process

flowchart LR
  A[Run tests first time] --> B[Save baseline screenshots to doc/screenshots]
  B --> C[Commit baselines to git]
  C --> D[Run tests again]
  D --> E[Compare new screenshots to committed baselines]
  E --> F{Screenshots different?}

  F -->|No| G[Test passes]
  G --> H[CI uses committed baselines to guard regressions]

  F -->|Yes| I[Generate diff, overlay, and heatmap images]
  I --> J[Generate snap_diff_report.html Web UI]
  J --> K{Change intentional?}

  K -->|No| L[Fix UI or code]
  L --> D

  K -->|Yes| M[Delete baseline file or entire doc/screenshots]
  M --> D

  C --> N[Push branch to GitHub]
  N --> O[GitHub Actions runs tests in CI]
  O --> P[Upload screenshot report artifact]
  P --> Q[Link report in pull request comment for inline review]
Loading

File-Level Changes

Change Details Files
Rewrite README to emphasize value proposition, clarify quick start, and explain runtime behavior when screenshots change.
  • Rephrased introductory copy to highlight CI-based visual regression catching and local/git-based storage versus hosted competitors.
  • Updated quick start to mention optional ruby-vips dependency and clarified where baseline screenshots are saved and how CI fail_if_new behaves.
  • Renamed the 'What You Get' section to 'What Happens When a Screenshot Changes' and expanded explanation of diff artifacts and how to update baselines.
README.md
Promote and rename HTML reporter as a Web UI for reviewing screenshot changes, including GitHub Actions usage.
  • Introduced a dedicated 'Web UI for Reviewing Screenshot Changes' section with a one-line require example and description of Web UI capabilities.
  • Documented GitHub Actions integration snippet using the upload-screenshots composite action and pointed to CI integration docs for full setup.
  • Updated docs/reporters.md heading and description to use Web UI naming and align terminology with the README.
README.md
docs/reporters.md
Clarify API and configuration examples, and simplify flaky test handling guidance.
  • Added a concrete example of Diff.compare returning a result object with different? and quick_equal? methods for arbitrary image comparison.
  • Replaced the tuning table with a single Capybara::Screenshot::Diff.configure block showing window_size, perceptual_threshold, and tolerance usage, and linked to configuration docs for deeper comparison-method guidance.
  • Retitled Troubleshooting to 'Common Questions' and rewrote items to focus on baseline lifecycle, animations, and CI-vs-local differences, plus moved Installation requirements to a dedicated section and tweaked 'Next Steps' bullets.
README.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 12, 2026

📝 Walkthrough

Walkthrough

The PR updates README.md to reorganize documentation with emphasis on offline git-baseline + CI-for-PR visual regression workflow, including new sections on "Why this gem?", screenshot change handling, Web UI review process, image comparison API, and reworked guidance on flaky tests. Additionally, docs/reporters.md renames an existing section header.

Changes

Cohort / File(s) Summary
Documentation Reorganization
README.md
Major restructuring and expansion of documentation, including new "Why this gem?" section, rewritten "What Happens When a Screenshot Changes" section, added "Web UI for Reviewing Screenshot Changes" and "Compare Any Two Images" sections, GitHub Actions example for artifact upload, reworked "Handling Flaky Tests" guidance, and converted "Troubleshooting" to "Common Questions" with updated content.
Reporter Section Rename
docs/reporters.md
Renamed section header from "HTML Report" to "Web UI for Reviewing Screenshot Changes" with corresponding descriptive text updates.

Possibly related PRs

Poem

🐰 Words rearranged with care and grace,
New sections now have rightful place,
From baseline screenshots, diffs take flight,
The docs shine clearer, oh what a sight!
A gem unburdened from the cloud,
Of which this rabbit is quite proud! ✨

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main changes: a README rewrite focusing on value-first positioning and a new Web UI section, matching the core objectives described in the PR.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/readme-web-ui-rewrite

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
README.md (1)

87-87: Use a pinned ref for the GitHub Action in docs examples.

At Line 87, @master is mutable. Prefer a version tag or commit SHA so copied CI configs stay reproducible and safer over time.

Suggested docs tweak
-  uses: snap-diff/snap_diff-capybara/.github/actions/upload-screenshots@master
+  uses: snap-diff/snap_diff-capybara/.github/actions/upload-screenshots@<tag-or-commit-sha>
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.md` at line 87, The docs example uses a mutable ref for the GitHub
Action: replace the `uses:
snap-diff/snap_diff-capybara/.github/actions/upload-screenshots@master`
reference with a pinned ref (a specific release tag like `@v1.2.3` or a commit
SHA) so the example remains reproducible; update the single `uses:` line string
in the README to the chosen tag/SHA.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@README.md`:
- Line 87: The docs example uses a mutable ref for the GitHub Action: replace
the `uses:
snap-diff/snap_diff-capybara/.github/actions/upload-screenshots@master`
reference with a pinned ref (a specific release tag like `@v1.2.3` or a commit
SHA) so the example remains reproducible; update the single `uses:` line string
in the README to the chosen tag/SHA.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 75e12b18-c824-45dd-8f21-b1e9e2ff4899

📥 Commits

Reviewing files that changed from the base of the PR and between f5aa3ef and 0c839fc.

📒 Files selected for processing (2)
  • README.md
  • docs/reporters.md

@pftg pftg merged commit f9ae0cf into master Apr 12, 2026
2 checks passed
@pftg pftg deleted the docs/readme-web-ui-rewrite branch April 12, 2026 21:25
@coderabbitai coderabbitai Bot mentioned this pull request Apr 12, 2026
2 tasks
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.

1 participant