Skip to content

Referrals: enable referral codes and credits on mobile (referrals flag) #119

Description

@teetangh

Context

referrals/ routes are gated (FeatureFlags.referrals = false); the consultant dashboard referral card is flag-hidden and the dashboard provider skips the gated endpoints.

Scope

  1. Resolve the algorithm gaps in ChatGPT 5.4: Referral algorithm review: missing qualification loop, unsafe application flow, and unusable credit balances #52 first (qualification loop, credit application safety)
  2. Re-audit against synced schema: Referral.organizationId (org attribution), ReferralCredit BigInt amounts, ReferralCreditUsage.restoredAmount
  3. Credit application at checkout = PaymentLeg.REFERRAL_CREDIT — depends on payments Payments: enable Razorpay checkout for 1:1 consultations behind FeatureFlags.payments #113
  4. Flip FeatureFlags.referrals

Related: #52, #113

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions