From fc00ed23bfe2f8289a43c35a5d3ea41b0f33968d Mon Sep 17 00:00:00 2001 From: Felarof Date: Thu, 16 Apr 2026 15:34:33 -0700 Subject: [PATCH] feat(referral): show tweet share rules and lower default daily limit fallback (#731) * feat(referral): show share rules and lower default daily limit fallback Surface the three referral validation rules (must mention @browserOS_ai, posted within last 30 minutes, single-use) directly in the ShareForCredits UI so users understand submission requirements before pasting a tweet link. Also align the UsagePage daily-limit fallback (used while credits load) with the gateway default of 50. Co-Authored-By: Claude Opus 4.7 (1M context) * fix(usage): handle credit balance exceeding daily limit The "Credits used today" stat was computed as `dailyLimit - credits`, which goes negative once a referral bonus pushes the balance above the daily cap (e.g. balance 294 with cap 100 showed "-194 of 100"). Clamp the math to zero and surface a separate "Bonus credits" stat when the balance exceeds the daily allowance. Co-Authored-By: Claude Opus 4.7 (1M context) --------- Co-authored-by: Claude Opus 4.7 (1M context) --- .../components/referral/ShareForCredits.tsx | 8 +++++++ .../agent/entrypoints/app/usage/UsagePage.tsx | 23 +++++++++++++++---- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/packages/browseros-agent/apps/agent/components/referral/ShareForCredits.tsx b/packages/browseros-agent/apps/agent/components/referral/ShareForCredits.tsx index fcd1ac4ff..c5841c381 100644 --- a/packages/browseros-agent/apps/agent/components/referral/ShareForCredits.tsx +++ b/packages/browseros-agent/apps/agent/components/referral/ShareForCredits.tsx @@ -61,6 +61,14 @@ export const ShareForCredits: FC = ({ compact }) => { Share BrowserOS on Twitter to earn 200 bonus credits!

+
    +
  • + Tweet must mention @browserOS_ai +
  • +
  • Tweet must be posted within the last 30 minutes
  • +
  • Each tweet can only be submitted once
  • +
+