Skip to content

fix(den): harden billing display and UI#1563

Open
shizhigu wants to merge 7 commits intodifferent-ai:devfrom
shizhigu:codex/checkout-billing-ux
Open

fix(den): harden billing display and UI#1563
shizhigu wants to merge 7 commits intodifferent-ai:devfrom
shizhigu:codex/checkout-billing-ux

Conversation

@shizhigu
Copy link
Copy Markdown
Contributor

@shizhigu shizhigu commented Apr 26, 2026

Why

Checkout and billing are money-related surfaces. The displayed price, cadence, and entitlement copy should come from the billing display path, and local screenshot mocks should not render on app.openworklabs.com.

What changed

  • Reused shared billing helpers for checkout and billing dashboard price/status copy.
  • Adjusted Den checkout and billing layout to match the OpenWork shell without changing backend behavior.
  • Added a host-aware mock guard so NEXT_PUBLIC_DEN_MOCK_BILLING is ignored on app.openworklabs.com.
  • Wired billing helper tests into CI.

Test plan

  • pnpm --filter @openwork-ee/den-web test:billing
  • pnpm --filter @openwork-ee/den-web exec tsc --noEmit
  • pnpm --filter @openwork-ee/den-web build
  • git diff --check
  • rg "\\$50|50/month|50/mo" ee/apps/den-web/app ee/apps/den-web/components found no matches

Evidence

Surface Before After
Checkout desktop
Checkout mobile
Billing dashboard

Notes

  • Den API / Polar backend behavior is unchanged.
  • Pricing model is unchanged.
  • Vercel fork previews require team authorization, so evidence is from local runs.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 26, 2026

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

Project Deployment Actions Updated (UTC)
openwork-landing Ready Ready Preview, Comment, Open in v0 May 1, 2026 5:19pm

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 26, 2026

@shizhigu is attempting to deploy a commit to the Different AI Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

@src-opn
Copy link
Copy Markdown
Collaborator

src-opn commented Apr 27, 2026

we will be replacing all billing items with a dedicated billing module soon.
WIll leave this pr open for now and see if we can rebase changes to new module once released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-info More info needed to proceed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants