Files
Artstr-Studio/src
thePR0M3TH3ANandClaude Opus 4.7 a0e84d50bc book(H1): per-page paywall toggle (gating intent)
Per-page editor gains a ⚡ Free / ⚡ N sats button that records
the user's paywall intent on the manifest entry. Pages overview
tiles surface a matching amber chip at the bottom-left so authors
can scan paywall coverage at a glance.

- openBookPageGatingDialog(entryId) prompts for a price in sats
  (empty / "0" clears the gating). Records as
  entry.gating = { mode: 'premium', priceSats, previewWatermark }.
- syncBookPageEditBar swaps the button's label, colour, and title
  based on entry.gating; visible only when editing a page.
- renderBookPagesGrid paints a .bookPageTileGateChip on tiles with
  premium gating.

Limitation (deferred): publishBookPageToNostr does not yet route
premium pages through _publishPremiumDesign — for v1 we persist the
intent on the manifest, and the page event still publishes via the
free path. Wiring the encrypted-publish + Reader-Mode unlock CTA
lands in a follow-up (H1.2 / H3).

Co-Authored-By: Claude Opus 4.7 <[email protected]>
2026-06-03 18:06:43 -04:00
..
2026-05-26 16:13:06 -04:00
2026-05-20 22:06:50 -04:00
2026-05-26 16:13:06 -04:00