Improved gift toast partial structure and copy#29014
Conversation
Rework the reader-side gift toast to render copy that reflects the gifted
entry's access level and type, matching the content-cta partial's approach.
- Execute the partial with the post as context so it (and any theme override)
gets the full post scope, like content-cta.
- Vary the toast copy by visibility and entry type using {{#has visibility}}
and {{#is "page"}}: members-only vs paid, and post vs page.
- Cover the new copy variants in the gift-links e2e tests.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
WalkthroughThis change updates how the gift-toast Handlebars template receives its rendering context in Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run @tryghost/admin:build |
✅ Succeeded | 6s | View ↗ |
nx run ghost:build:assets |
✅ Succeeded | 2s | View ↗ |
nx run ghost:build:tsc |
✅ Succeeded | 6s | View ↗ |
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗
☁️ Nx Cloud last updated this comment at 2026-07-01 15:30:28 UTC

No ref
Reworks the reader-side gift toast so its copy reflects the gifted entry's access level and type, following the same approach as the content-cta partial.
{{#has visibility}}and{{#is "page"}}: members-only vs paid, and post vs page.