Skip to content
This repository was archived by the owner on Jul 24, 2026. It is now read-only.

Hide all wallet entry points from non-B2B users - #41

Merged
leoxk merged 1 commit into
mainfrom
agent/b2b-wallet-entry-gates
Jul 20, 2026
Merged

Hide all wallet entry points from non-B2B users#41
leoxk merged 1 commit into
mainfrom
agent/b2b-wallet-entry-gates

Conversation

@leoxk

@leoxk leoxk commented Jul 20, 2026

Copy link
Copy Markdown
Owner

What changed

  • hide the Wallet link in the mobile account drawer unless the current user is in the approved b2b group
  • hide the Wallet call-to-action in dashboard balance summary cards for non-B2B users
  • remove the Add credits onboarding step from the dashboard for non-B2B users
  • reuse the same wallet visibility policy already used by the sidebar and profile dropdown

Why

The previous B2B wallet change protected the API and main navigation, but static acceptance review found remaining mobile and dashboard links. Those links ultimately reached a protected 403 page, so payment security was intact, but the approval-only customer experience was incomplete.

Safety

  • backend wallet and payment authorization remains unchanged
  • approved b2b users retain every Wallet entry point
  • non-B2B users keep their balance and usage dashboard; only payment navigation is removed
  • existing users, groups, quotas, channels, models, and payment credentials are unchanged

Validation

  • git diff --check
  • frontend typecheck, production build, and Glimo policy audit will run in CI because Bun is not installed on this Mac

@leoxk
leoxk marked this pull request as ready for review July 20, 2026 08:19
@leoxk
leoxk merged commit 2ace06d into main Jul 20, 2026
5 checks passed
@leoxk
leoxk deleted the agent/b2b-wallet-entry-gates branch July 20, 2026 08:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant