Repository navigation
Gift links: admin UI (editor + settings) - #28630
jonatansberg wants to merge 1 commit into
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ 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 |
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run @tryghost/admin-x-settings:test:acceptance |
✅ Succeeded | 9m 24s | View ↗ |
nx build @tryghost/sodo-search |
✅ Succeeded | <1s | View ↗ |
nx build @tryghost/admin-toolbar |
✅ Succeeded | <1s | View ↗ |
nx build @tryghost/comments-ui |
✅ Succeeded | <1s | View ↗ |
nx build @tryghost/signup-form |
✅ Succeeded | <1s | View ↗ |
nx build @tryghost/announcement-bar |
✅ Succeeded | <1s | View ↗ |
nx build @tryghost/activitypub |
✅ Succeeded | 1s | View ↗ |
nx build @tryghost/portal |
✅ Succeeded | <1s | View ↗ |
Additional runs (8) |
✅ Succeeded | ... | View ↗ |
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗
☁️ Nx Cloud last updated this comment at 2026-06-22 07:06:07 UTC
175b158 to
b8929b0
Compare
c98f96d to
37f92fd
Compare
b8929b0 to
8cd81c6
Compare
37f92fd to
bfa3dfa
Compare
8cd81c6 to
8689fcd
Compare
bfa3dfa to
d807a0a
Compare
8689fcd to
53fd483
Compare
d807a0a to
b48d1d3
Compare
53fd483 to
124210d
Compare
b48d1d3 to
b01bf1b
Compare
124210d to
bd3c6c4
Compare
b01bf1b to
e22db1b
Compare
bd3c6c4 to
b6a6081
Compare
e22db1b to
81a8dea
Compare
b6a6081 to
82f5eb2
Compare
4a72ff7 to
91918fa
Compare
82f5eb2 to
e6b653b
Compare
e6b653b to
a9646c3
Compare
91918fa to
2d2ffd6
Compare
a9646c3 to
f36455f
Compare
2d2ffd6 to
ebb6032
Compare
ref https://linear.app/ghost/issue/BER-3729 - editor: post-settings-menu inline gift-link control (copy / usage / reset-confirm) and a posts-list context-menu copy action - settings: "revoke all gift links" in the danger zone - shared app/utils/gift-link.js for the URL builder + eligibility (no more duplicated/drifting copies); clipboard reports real success/failure; context-menu surfaces API errors instead of freezing - eligibility covers Owner/Admin/Editor/Super Editor/Author (Authors limited to their own posts server-side), matching the API permission grant - consumes the #28693 admin API: copy/reissue via PUT/POST /{posts,pages}/:id/gift_link; danger zone via PUT /gift_links/revoke_all (renamed from reset_all, response {meta:{count}}) - slice 4 of 4 carving up spike #28625; stacked on the reader slice (BER-3728) on top of the gift-links redesign (#28693)
f36455f to
59e6a67
Compare
ebb6032 to
c90d7ec
Compare

Slice 4 of 4 carving up the gift-links spike (#28625). Stacked on #28629.
ref https://linear.app/ghost/issue/BER-3729
What this adds (all behind the off
giftLinksflag)Review fixes folded in
canCopyGiftLinkeligibility predicate (previously copy-pasted and already drifting between the two editor components) into a sharedghost/admin/app/utils/gift-link.js. Both components use it; published-check is nowpost.isPublishedconsistently.copyGiftLinkTaskis wrapped in try/catch (mirroringcopyPostsTask) and surfacesshowAPIErrorinstead of leaving the menu stuck in the loading state on a failed ensure POST.Dead code dropped
apps/posts/src/utils/{gift-link,copy-to-clipboard,analytics}.ts+ tests, thegiftLinkSlotprop) are confirmed absent and not referenced.gift-links.tskeeps onlyuseResetAllGiftLinks(the sole consumer is the danger zone); the three unused hooks were deleted.Checks
tsc --noEmitpasses for admin-x-framework and admin-x-settings.