refactor(subscription): retire pro tier in favor of basic subscription and delegate exports to slides for worship

Overview & Strategic Context

With the development and upcoming release of Slides for Worship (../slides-for-worship), our product ecosystem is gaining a dedicated, purpose-built desktop presentation engine, projection console, and worship production workstation. Slides for Worship natively supports multi-pane slide creation, dual-window live projection, presentation branching, presenter notes, custom styling, and comprehensive file exports (PPTX, PDF, slide bundles).

As a result, the role of the Hymns for Worship App (hfw-app) is sharply focused on its core viewing capabilities:

  1. Catalog & Viewer Hub: Fast, responsive viewing of sheet music, slides, and complete hymn lyrics across all hymnals.
  2. Personal Worship Companion: Managing bookmarks, playlists, and favorites.
  3. Offline Access: Fast local caching and offline database sync.

[!IMPORTANT]
Core Pricing Philosophy & Scope Boundaries:

  • Lyrics Will Always Be 100% Free: All hymn lyrics across all hymnals remain completely free and open to everyone without subscription, paywalls, or mandatory sign-in.
  • Unified Basic Subscription: The single unified subscription (Basic / HFW Subscription) unlocks full sheet music notation and slide views for all hymnals, along with offline caching and bookmark syncing.
  • Lifetime Purchases Continue to be Offered: We will still continue offering lifetime purchases for hymnals (e.g. Revised Hymnal and Supplement Hymnal) for users who prefer one-time purchases over recurring subscriptions for viewing sheet music and slides.
  • Export Purchases Kept for Legacy Reasons Only: The separate “Lifetime Export” purchases for hymnals (lifetime_export_hfwr, lifetime_export_hfws) will only remain for legacy reasons to honor grandfathered users who previously purchased them. They will be delisted from active sales to new users.
  • No File/Presentation Exporter in HFW: Hymns for Worship will not act as a full presentation or file exporter (delegated entirely to Slides for Worship).
  • No Audio Playback: Hymns for Worship does not include audio playback features; it is strictly an elegant, fast viewer for sheet music, slides, lyrics, and bookmarks.

Because heavy presentation export (PPTX generation, multi-format slide packaging) is now owned by Slides for Worship, maintaining a complex dual-tier subscription (Basic vs. Pro) with export gating in the mobile/web viewing app introduces unnecessary user confusion, store maintenance overhead, and complex entitlement code.

We will retire the Pro subscription tier entirely, maintain lifetime view purchases, and offer a single, unified subscription (Basic) that provides complete access to view all sheet music and slides.


Key Findings: Codebase Audit & Pro Tier Footprint

Our deep research into hfw-app identified the following components currently coupled to the Pro tier and PPTX export functionality:

1. In-App Purchases & RevenueCat Services

  • [packages/hfw_core/lib/src/services/revenue_cat/keys.dart](file:///Users/rodydavis/dev/hfw-app/packages/hfw_core/lib/src/services/revenue_cat/keys.dart):
    • Defines proSubscriptionId = 'plan_pro', basicSubscriptionId = 'plan_basic', and entitlementPro = 'pro'.
    • Defines lifetime hymnal view entitlements (entitlementLifetimeRevisedViewOnly, entitlementLifetimeSupplementViewOnly).
    • Defines lifetime hymnal export entitlements (entitlementLifetimeRevisedExport, entitlementLifetimeSupplementExport).
  • [packages/hfw_core/lib/src/services/revenue_cat/revenue_cat_service.dart](file:///Users/rodydavis/dev/hfw-app/packages/hfw_core/lib/src/services/revenue_cat/revenue_cat_service.dart) & [packages/hfw_flutter/lib/services/revenue_cat/revenue_cat_service.dart](file:///Users/rodydavis/dev/hfw-app/packages/hfw_flutter/lib/services/revenue_cat/revenue_cat_service.dart):
    • Exposes isPro (checks entitlementPro), isBasic, and isSubscribed.
    • Exposes purchaseHymnal() (lifetime view) and purchaseHymnalExport() (lifetime export).
    • Exposes isHymnalViewOnlyPurchased() and isHymnalExportPurchased().

2. Access Evaluation & Entitlements

  • [packages/hfw_core/lib/src/models/content_access.dart](file:///Users/rodydavis/dev/hfw-app/packages/hfw_core/lib/src/models/content_access.dart):
    • ContentAccess defines isProSubscription, hasGlobalFullAccess, and canExport(hymnals, hymnNumber).
    • evaluateEntitlements() maps entitlementPro to hasFull = true and isPro = true.
    • AccessSource distinguishes between Pro and Basic subscription labels and SKUs.
  • [packages/hfw_flutter/lib/ui/hooks/use_content_access.dart](file:///Users/rodydavis/dev/hfw-app/packages/hfw_flutter/lib/ui/hooks/use_content_access.dart):
    • Calculates hasGlobalFull = adminEdu.hasFull || isPro.
    • Injects proxy SKU 'plan_pro' when isPro is true.
  • [packages/hfw_core/lib/src/services/server/server_content_access_service.dart](file:///Users/rodydavis/dev/hfw-app/packages/hfw_core/lib/src/services/server/server_content_access_service.dart):
    • Evaluates user entitlements on server-side and checks canExportRevised, canExportSupp, and individual hymn canExport.

3. Export Pipelines & Presentation Generation

  • [packages/hfw_flutter/lib/ui/hooks/use_handle_export.dart](file:///Users/rodydavis/dev/hfw-app/packages/hfw_flutter/lib/ui/hooks/use_handle_export.dart):
    • Enforces export locks: checks contentAccess.hasGlobalFullAccess (requires Pro or individual lifetime export purchase).
    • Displays paywall modal when export is locked: “A Pro subscription is required to use the export feature”.
    • Calls ExportPptxService.exportPptx and ExportImagesService.exportImagesStream.
  • [packages/hfw_flutter/lib/ui/widgets/user_lists/user_list_actions_menu.dart](file:///Users/rodydavis/dev/hfw-app/packages/hfw_flutter/lib/ui/widgets/user_lists/user_list_actions_menu.dart):
    • Contains the dropdown menu items under “Export” (PPTX and Images).
  • [packages/hfw_flutter/lib/ui/widgets/user_lists/pptx_options_dialog.dart](file:///Users/rodydavis/dev/hfw-app/packages/hfw_flutter/lib/ui/widgets/user_lists/pptx_options_dialog.dart):
    • Aspect ratio (16:9 / 4:3) and transition speed dialog for PowerPoint export.
  • [packages/hfw_core/lib/src/services/pptx/export_service.dart](file:///Users/rodydavis/dev/hfw-app/packages/hfw_core/lib/src/services/pptx/export_service.dart) & packages/app/assets/templates/*.pptx:
    • OpenXML PPTX file generation logic and bundled slide template assets.

4. UI & Profile Screens

  • [packages/hfw_flutter/lib/ui/screens/profile_screen.dart](file:///Users/rodydavis/dev/hfw-app/packages/hfw_flutter/lib/ui/screens/profile_screen.dart) & [hymnal_group.dart](file:///Users/rodydavis/dev/hfw-app/packages/hfw_flutter/lib/ui/widgets/hymnal_group.dart):
    • Renders 3 separate SubscriptionTier cards (Pro, Basic, Free) and lifetime hymnal purchase rows with both View only and Export buttons.
  • [packages/hfw_flutter/lib/ui/widgets/custom_paywall_dialog.dart](file:///Users/rodydavis/dev/hfw-app/packages/hfw_flutter/lib/ui/widgets/custom_paywall_dialog.dart) & use_paywall.dart:
    • Header copy: “Unlock all hymns for view only or export.”
  • [packages/hfw_flutter/lib/ui/widgets/explorer/groups/account_group.dart](file:///Users/rodydavis/dev/hfw-app/packages/hfw_flutter/lib/ui/widgets/explorer/groups/account_group.dart):
    • Populates a dedicated Profile/Hymns/Export Ready virtual folder for hymns with Pro or full-access entitlement.

5. Documentation & Public Web Copy

  • [packages/hfw_jaspr/lib/pages/home.dart](file:///Users/rodydavis/dev/hfw-app/packages/hfw_jaspr/lib/pages/home.dart) & [content/faq.md](file:///Users/rodydavis/dev/hfw-app/packages/hfw_jaspr/content/faq.md):
    • Claims Pro subscription unlocks PowerPoint (PPTX) export and features PPTX troubleshooting.
  • [packages/hfw_flutter/docs/monetization.md](file:///Users/rodydavis/dev/hfw-app/packages/hfw_flutter/docs/monetization.md):
    • Detailed matrices explaining Basic ($4.99) vs Pro ($9.99), lifetime hymnals, and credit costs.

User Communication Plan & Billing Cycle Sunset Strategy

A smooth, customer-centric transition requires that no active user is cut off mid-cycle or unexpectedly billed at an obsolete tier. We will sunset the Pro tier strictly based on each user’s individual billing expiration date while communicating transparently across email, in-app notices, and documentation.

1. Per-User Billing Cycle Sunset Timeline

StoreKit (Apple) and Google Play Billing (via RevenueCat) handle discontinued subscription products through scheduled expiration:

  • Immediate Delisting: The plan_pro offering is removed from active RevenueCat paywalls. No new users can purchase Pro.
  • No Premature Termination: Existing Pro subscribers keep full app access for the exact remainder of their current paid term (up to 30 days for monthly subscribers; up to 365 days for annual subscribers).
  • Auto-Renewal Termination: Pro subscriptions are set to not renew in App Store Connect and Google Play Console (or deprecated in RevenueCat).
  • Individual Sunset Date: Each user’s sunset occurs precisely when CustomerInfo.entitlements['pro'].expirationDate arrives.
  • Graceful Downshift: When their cycle concludes, their status seamlessly shifts to the standard free tier (with lyrics always free), and an option to subscribe to the simplified Basic tier ($4.99/mo) or purchase individual hymnals for lifetime viewing.
[Now: Announcement & Delist Pro]
       │
       ├──────────────────────────────────────────► New users: Basic plan ($4.99/mo) or Lifetime View | Lyrics always free
       │
       ├─► Monthly Pro Subscribers (Days 1–30)
       │     └─► Keep full access until individual renewal date ──► Non-renews ──► Free (Lyrics Free) / Basic prompt
       │
       └─► Annual Pro Subscribers (Months 1–12)
             └─► Full access honored until exact anniversary date ─► Non-renews ──► Free (Lyrics Free) / Basic prompt

2. Multi-Channel Communication Matrix

Channel Target Audience Timing Content & Call-to-Action
In-App Banner Active Pro Subscribers (revenueCat.isPro) Immediate on app update until expiration Subtle header banner in Profile & New Tab: “Pro subscriptions are retiring as we streamline Hymns for Worship. Your Pro access remains active through [Expiration Date]. Switch to our Basic plan ($4.99/mo) or a Lifetime hymnal purchase for sheet music and slide viewing, or check out Slides for Worship for presentations. Hymn lyrics will always remain completely free.” Includes 1-tap store management link.
Email 1: Strategic Announcement All active Pro users T-30 Days before store SKU deprecation “The Future of Hymns for Worship: Simplifying Our Plans & Introducing Slides for Worship”. Clear rationale, reassurance that current billing cycles will be 100% honored, reiteration that lyrics are always free, reminder of lifetime options, and preview of Slides for Worship.
Email 2: Pre-Expiration Notice Individual Pro subscriber T-7 Days before individual expiration date “Your Pro subscription ends in 7 days — Keep your sheet music and slide access with our Basic plan”. Direct links to resubscribe to Basic at $4.99/mo, buy lifetime hymnals, or continue using free lyrics, plus download link for Slides for Worship.
Email 3: Transition Complete Individual Pro subscriber Day of expiration (T+0) “Your Pro plan has concluded”. Confirms billing has ceased, thanks them for supporting HFW, reminds them lyrics remain free forever, and provides 1-click upgrade to the Basic subscription or Lifetime view purchases.
In-App Release Dialog All users On first launch of updated version “What’s New: A Simpler Hymns for Worship”. Explains the cleaner focus on sheet music and slide viewing, reinforces that lyrics are always 100% free and lifetime view purchases remain available, and introduces Slides for Worship for presentation projection.
FAQ & Website Updates Public / All users Release Day Dedicated FAQ entries addressing migration, pricing, that lyrics are free, lifetime purchase availability, and how to export presentations using Slides for Worship.

Migration & Implementation Plan

Phase 1: RevenueCat & App Store Offerings Simplification

  • Remove plan_pro from default active RevenueCat offerings.
  • Configure RevenueCat entitlement mapping so any grandfathered or active pro entitlement grants the standard viewing subscription (alias pro → isSubscribed).
  • Maintain a single active subscription product family: HFW Subscription (Monthly & Annual options, previously plan_basic).
  • Continue Active Lifetime Purchases: Keep offeringLifetimeRevisedViewOnly and offeringLifetimeSupplementViewOnly active in store offerings and LifetimePurchasesScreen.
  • Retire Export Lifetime Purchases for Legacy Only: Delist offeringLifetimeRevisedExport and offeringLifetimeSupplementExport from public offerings. Maintain entitlementLifetimeRevisedExport and entitlementLifetimeSupplementExport exclusively to honor past purchasers.

Phase 2: Core Data Models & Entitlement Consolidation

  • In RevenueCatService:
    • Deprecate isPro.
    • Update isSubscribed to be isBasic || isPro || activeSubscriptions.isNotEmpty.
    • Expose helper proExpirationDate to format the user’s billing cycle end date for UI banners.
    • Preserve isHymnalViewOnlyPurchased() and purchaseHymnal() as first-class APIs.
    • Retain isHymnalExportPurchased() strictly for legacy entitlement verification.
  • In ContentAccess:
    • Deprecate isProSubscription (set to false or alias to isSubscribed).
    • Collapse hasGlobalFullAccess and hasGlobalViewAccess into a unified hasGlobalAccess / hasGlobalViewAccess.
    • Ensure lyrics access evaluation remains unconditionally open (hasLyricsAccess returns true universally).
    • Make canExport() return false or designate export capability as delegated.
  • In ServerContentAccessService:
    • Remove separate canExport database checks; consolidate into viewing access.

Phase 3: Client UI/UX Streamlining & Communication Banners

  • Subscription Profile Screen (profile_screen.dart):
    • For active Pro subscribers: Show a dedicated sunset banner with their exact billing expiration date and a “Manage in App Store / Play Store” button.
    • For all other users: Replace the 3-tier card list (Pro, Basic, Free) with a single clean status card:
      • If subscribed: “Active Subscription” badge with renewal/manage button.
      • If free: “Free Plan (Lyrics Included)” with an “Upgrade for Sheet Music & Slides” button opening the simplified paywall.
  • Lifetime Purchases Screen & HymnalGroup (hymnal_group.dart):
    • Streamline HymnalGroup for active sales: Present a single primary “Purchase Lifetime” button (for view access).
    • If a legacy user already owns the export entitlement, display the “Export (Legacy Purchased)” badge so their previous purchase remains recognized and honored.
    • Do not offer new users the option to purchase export lifetime packages.
  • Paywall Dialog (custom_paywall_dialog.dart):
    • Update header copy to: “Unlock all sheet music and slides for offline viewing. Lyrics are always free.”
    • Display unified Monthly and Annual pricing cards, with a link to lifetime hymnal purchases for users who prefer one-time buys.
  • Explorer Tree (account_group.dart):
    • Remove the Profile/Hymns/Export Ready folder.
    • Consolidate hymn libraries into Purchased, All Hymnals, and Bookmarks/Lists.

Phase 4: Export Delegation to Slides for Worship

  • Export Actions in User Lists (user_list_actions_menu.dart):
    • Remove the standalone PPTX and ZIP export actions from the in-app list menu.
    • Add “Open in Slides for Worship” (or “Export to Slides for Worship”):
      • Export list metadata / hymn IDs as a shared JSON package or invoke custom URL scheme (slides-for-worship://import?list=...).
      • Provide a prompt / link directing users to install or open Slides for Worship (https://git.rodydavis.dev/rodydavis/slides-for-worship) for projection and PowerPoint generation.
  • Deprecate Unused Exporters in hfw-app:
    • Deprecate ExportPptxService and pptx_options_dialog.dart.
    • Remove unused template files (assets/templates/none_wide.pptx, none_square.pptx) to reduce app bundle size.
    • Note: Keep ExportImagesService.processImage intact as it is used for on-the-fly copyright footer rendering in LightBox and hymn_detail_screen.dart.

Phase 5: Documentation & Website Copy Updates

  • Update packages/hfw_jaspr/lib/pages/home.dart and content/faq.md to remove references to Pro PPTX exports and clearly highlight that lyrics are always free while lifetime view purchases remain available.
  • Add copy introducing Slides for Worship as the companion presentation software.
  • Update packages/hfw_flutter/docs/monetization.md to reflect the simplified model: Basic subscription + Lifetime view options.
  • Update release notes / changelog (packages/hfw_jaspr/content/changelog.md).

User Impact & Backward Compatibility

  • Lyrics Always Free: Unrestricted, zero-cost access to all hymn lyrics remains guaranteed for all users worldwide.
  • Lifetime Purchases Preserved: Users who prefer one-time purchases can continue buying lifetime view access to specific hymnals.
  • Legacy Export Purchases Honored: Prior lifetime export purchases remain recognized on user accounts without loss of status.
  • Existing Pro Subscribers: Grandfathered with zero mid-cycle interruption. Their pre-paid time is fully honored down to the second.
  • Simpler Value Proposition: Eliminates customer decision friction between Basic and Pro. HFW provides viewing; Slides for Worship provides projection and authoring.
  • Clear App Identity: Strengthens HFW’s positioning as an elegant, lightning-fast digital hymnal viewer without feature bloat.

Migrated from hymns-for-worship-app#37

Automated Issue Triage

Metadata Status:

  • Label verified: enhancement (58)
  • Title verified: refactor(subscription): retire pro tier in favor of basic subscription and delegate exports to slides for worship

Codebase Analysis & Verification:

  1. RevenueCat Keys & Entitlements (hfw_core):
    • packages/hfw_core/lib/src/services/revenue_cat/keys.dart (lines 13–28) defines proSubscriptionId = "plan_pro", entitlementPro = "pro", offeringLifetimeRevisedExport, and offeringLifetimeSupplementExport.
    • packages/hfw_core/lib/src/models/content_access.dart (lines 21–102) defines hasGlobalFullAccess, isProSubscription, and canExport(), distinguishing Pro Subscription (plan_pro) from Basic Subscription (plan_basic).
  2. Server Entitlement Checks (hfw_core / hfw_api):
    • packages/hfw_core/lib/src/services/server/server_content_access_service.dart (ServerUserAccess and fetchUserContentAccess, lines 7–120) tracks isPro and hasGlobalFullAccess separately from hasGlobalViewAccess.
  3. Client UI, Paywall & Export Actions (hfw_flutter / hfw_jaspr):
    • packages/hfw_flutter/lib/ui/hooks/use_handle_export.dart, packages/hfw_flutter/lib/ui/widgets/user_lists/user_list_actions_menu.dart, and packages/hfw_flutter/lib/ui/screens/profile_screen.dart contain the Pro export gating and 3-tier UI cards ready to be consolidated into the unified Basic subscription and Slides for Worship handoff.

Architecture Review & Scope Drift Notice (Nov 2026)

Current Status: Not started, and the codebase audit in the issue description is now significantly out of date due to architectural changes in hfw_flutter and the launch of hfw_dl.

Key Codebase Findings:

  1. All 7 Flutter UI files cited in this issue no longer exist:
    • profile_screen.dart, use_handle_export.dart, user_list_actions_menu.dart, hymnal_group.dart, custom_paywall_dialog.dart, account_group.dart, and pptx_options_dialog.dart were removed when hfw_flutter transitioned to native iOS (SwiftUI) and Android (Jetpack Compose) backed by hfw_headless_coordinator.dart.
    • Active Pro tier (plan_pro, entitlementPro, isProSubscription) logic now lives in:
      • packages/hfw_core: keys.dart, content_access.dart, server_content_access_service.dart
      • packages/hfw_flutter (iOS/Android + headless): ios/Runner/HfwStore.swift, android/.../HfwStore.kt, HfwSettingsAndAuthComposeViews.kt, lib/src/native_bridge/hfw_headless_coordinator.dart, lib/services/revenue_cat/revenue_cat_service.dart
      • packages/hfw_jaspr: auth_workspace_island.dart, content/faq.md, lib/pages/home.dart
  2. Active Pro Gating in Download Center (packages/hfw_dl):
    • The newly overhauled Download Center (dcfb81b, e450f98, 566829b) actively checks hasProSubscription / is_pro / hasGlobalFullAccess (src/utils/hfwAccess.ts, src/pages/api/hfw/access.ts, src/pages/purchases.astro) to grant hymn download/export access.
  3. Product Strategy Conflict with #224:
    • Comments on #224 state that upcoming AI features (semantic search / worship planning) will be part of the Pro plan, which conflicts with retiring Pro here.

Action Needed — Product Confirmation:
Please confirm whether retiring the Pro tier is still the desired product direction given hfw_dl and #224:

  • If Yes: Rewrite Phases 2–4 to target hfw_core, native iOS (HfwStore.swift), native Android (HfwStore.kt / Compose), hfw_headless_coordinator.dart, hfw_jaspr, and hfw_dl, and clarify how hfw_dl downloads and future AI features (#224) will be gated.
  • If No: Close this issue as wontfix.