Show regions in previews - #174
Conversation
📝 WalkthroughWalkthroughThe disc view now passes ChangesDisc preview title
Estimated code review effort: 1 (Trivial) | ~3 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
Couple things:
|
dafd4ba to
5ac60d2
Compare
|
I was following the suggestion in issue #171, adding regions to I just worked backwards from where For more complex changes deploying locally would be required, but I didn't have a good way to populate the database at hand. |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
templates/disc_view.html (1)
3-3: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winAdd a regression test for the preview-title contract.
The test fixture initializes
base_rom_name, but no test asserts that the rendered title uses it. Add a region-bearing case and verify that the visible<h2>still usestitle. Also confirm that the shared title block feedsog:title, because that is the stated PR objective.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@templates/disc_view.html` at line 3, Add a regression test for the template’s preview-title contract using a region-bearing fixture with `base_rom_name` initialized; assert the rendered visible `<h2>` uses `title`, and verify the shared `{% block title %}` value is also propagated to `og:title`.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@templates/disc_view.html`:
- Line 3: Add a regression test for the template’s preview-title contract using
a region-bearing fixture with `base_rom_name` initialized; assert the rendered
visible `<h2>` uses `title`, and verify the shared `{% block title %}` value is
also propagated to `og:title`.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 1cba7dfb-b4a7-4f0a-b4d3-a2b95cf1a778
📒 Files selected for processing (2)
src/routes/disc_view.rstemplates/disc_view.html
region_nameswas already defined on Rust side.Fixes #171.
Summary by CodeRabbit