Skip to content

chore: add home free credit badge business slot#15615

Merged
arvinxx merged 1 commit into
canaryfrom
feat/home-free-credit-badge
Jun 9, 2026
Merged

chore: add home free credit badge business slot#15615
arvinxx merged 1 commit into
canaryfrom
feat/home-free-credit-badge

Conversation

@arvinxx

@arvinxx arvinxx commented Jun 9, 2026

Copy link
Copy Markdown
Member

💻 Change Type

  • ✨ feat

🔗 Related Issue

N/A

🔀 Description of Change

Add a HomeFreeCreditBadge business slot on the home page, following the existing VideoFreeQuotaInfo pattern:

  • New stub src/business/client/features/HomeFreeCreditBadge.tsx that renders null in the open-source build.
  • Mount it at the top of the home content (src/routes/(main)/home/features/index.tsx), above the agent select block. Since the stub renders null, OSS layout is unchanged (no extra flex gap).
  • Add the freeCreditBadge.label locale key (packages/locales/src/default/home.ts) with interpolated {{model}} / {{amount}} placeholders, plus hand-written en-US and zh-CN mirrors.

🧪 How to Test

  • OSS build: home page renders exactly as before (stub returns null).
  • Business build: the slot implementation renders a centered pill badge above the home hero.

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lobehub Building Building Preview, Comment Jun 9, 2026 9:25pm

Request Review

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @arvinxx, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 9, 2026
@codecov

codecov Bot commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 67.64%. Comparing base (fdb4f37) to head (4c07ee6).
⚠️ Report is 3 commits behind head on canary.

Additional details and impacted files
@@             Coverage Diff             @@
##           canary   #15615       +/-   ##
===========================================
- Coverage   83.06%   67.64%   -15.43%     
===========================================
  Files         518     3355     +2837     
  Lines       42084   338597   +296513     
  Branches     7350    30717    +23367     
===========================================
+ Hits        34958   229051   +194093     
- Misses       6950   109355   +102405     
- Partials      176      191       +15     
Flag Coverage Δ
app 60.14% <ø> (?)
database 98.12% <ø> (?)
packages/agent-manager-runtime 49.69% <ø> (?)
packages/agent-runtime 81.06% <ø> (ø)
packages/app-config 44.58% <ø> (?)
packages/builtin-tool-lobe-agent 20.07% <ø> (?)
packages/context-engine 84.12% <ø> (ø)
packages/conversation-flow 91.29% <ø> (ø)
packages/device-gateway-client 90.18% <ø> (?)
packages/env 11.42% <ø> (?)
packages/eval-dataset-parser 95.15% <ø> (?)
packages/eval-rubric 76.11% <ø> (?)
packages/fetch-sse 85.57% <ø> (?)
packages/file-loaders 87.89% <ø> (ø)
packages/locales 0.87% <0.00%> (?)
packages/memory-user-memory 74.99% <ø> (ø)
packages/model-bank 99.99% <ø> (?)
packages/model-runtime 84.27% <ø> (ø)
packages/prompts 72.51% <ø> (ø)
packages/python-interpreter 92.90% <ø> (ø)
packages/ssrf-safe-fetch 0.00% <ø> (ø)
packages/trpc 40.43% <ø> (?)
packages/types 35.18% <ø> (?)
packages/utils 85.03% <ø> (ø)
packages/web-crawler 88.08% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Store 68.34% <ø> (∅)
Services 54.25% <ø> (∅)
Server 97.03% <ø> (∅)
Libs 54.03% <ø> (∅)
Utils 82.08% <ø> (-17.92%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@arvinxx arvinxx changed the title ✨ feat: add home free credit badge business slot chore: add home free credit badge business slot Jun 9, 2026
@arvinxx arvinxx merged commit 0434953 into canary Jun 9, 2026
38 of 39 checks passed
@arvinxx arvinxx deleted the feat/home-free-credit-badge branch June 9, 2026 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant