Skip to content

fix(tinyplace): correct identity pricing tiers shown to users#4215

Merged
senamakel merged 5 commits into
tinyhumansai:mainfrom
M3gA-Mind:fix/tinyplace-pricing-tier-mismatch-3825
Jun 29, 2026
Merged

fix(tinyplace): correct identity pricing tiers shown to users#4215
senamakel merged 5 commits into
tinyhumansai:mainfrom
M3gA-Mind:fix/tinyplace-pricing-tier-mismatch-3825

Conversation

@M3gA-Mind

@M3gA-Mind M3gA-Mind commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

The "Pricing tiers" reference table on the Tiny Place Register tab was hardcoded to $250 / $50 / $10 per year for only the 3 / 4 / 5+ char tiers — wrong units (USD, not USDC), wrong amounts, and missing the 1- and 2-char tiers — so users saw a price unrelated to the on-chain x402 amount they were actually charged (billing-integrity issue).

Replace it with the authoritative tiny.place per-character tiers (2,000 / 1,000 / 500 / 100 / 1 USDC for 1 / 2 / 3 / 4 / 5+ chars, from domain-pricing.ts), hoisted into a single exported IDENTITY_PRICING_TIERS, plus an "indicative only — exact price confirmed at checkout from the on-chain x402 quote" caption (the binding amount is the server-quoted challenge already shown in the confirm dialog). Adds tests pinning the corrected tiers and asserting the old USD format is gone.

Closes #3825

Summary by CodeRabbit

  • Bug Fixes
    • Corrected the Register tab’s handle registration “Pricing tiers” to use the proper USDC-based per-character tier values, including 1- and 2-character tiers.
    • Updated the displayed tier labels to remove legacy USD per-year pricing text.
    • Added an “indicative only” note under the tiers clarifying the final price is confirmed at checkout.

The "Pricing tiers" reference table on the Tiny Place Register tab was
hardcoded to "$250 / $50 / $10 per year" for only the 3 / 4 / 5+ char tiers —
wrong units (USD, not USDC), wrong amounts, and missing the 1- and 2-char
tiers entirely. Users were shown a price bearing no relation to the on-chain
x402 amount they were actually charged (tinyhumansai#3825, a billing-integrity issue).

Replace it with the authoritative tiny.place per-character tiers
(2,000 / 1,000 / 500 / 100 / 1 USDC for 1 / 2 / 3 / 4 / 5+ chars, from
`domain-pricing.ts`), hoisted into a single exported `IDENTITY_PRICING_TIERS`
source of truth, and add an "indicative only — exact price confirmed at
checkout from the on-chain x402 quote" caption (the binding amount is the
server-quoted challenge already shown in the confirm dialog). Adds tests
pinning the corrected tiers and asserting the old USD format is gone.

Closes tinyhumansai#3825
@M3gA-Mind M3gA-Mind requested a review from a team June 26, 2026 16:05
@coderabbitai

coderabbitai Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d35892ca-7815-4567-9dea-41109e06dd2a

📥 Commits

Reviewing files that changed from the base of the PR and between 65e1a76 and a44a69f.

📒 Files selected for processing (2)
  • app/src/agentworld/pages/IdentitiesSection.test.tsx
  • app/src/agentworld/pages/IdentitiesSection.tsx
🚧 Files skipped from review as they are similar to previous changes (2)
  • app/src/agentworld/pages/IdentitiesSection.tsx
  • app/src/agentworld/pages/IdentitiesSection.test.tsx

📝 Walkthrough

Walkthrough

The Register tab now renders pricing tiers from an exported IDENTITY_PRICING_TIERS constant with corrected USDC fees and adds an “Indicative only” note. Tests now cover the pricing-tier data and the updated Register tab copy.

Changes

Handle pricing tiers

Layer / File(s) Summary
Pricing tiers constant
app/src/agentworld/pages/IdentitiesSection.tsx
IDENTITY_PRICING_TIERS is exported with the corrected tier labels, examples, and fee values.
Register tab display and tests
app/src/agentworld/pages/IdentitiesSection.tsx, app/src/agentworld/pages/IdentitiesSection.test.tsx
The Register tab renders its pricing rows from IDENTITY_PRICING_TIERS, adds an “Indicative only” note, and tests assert the exported mapping and the updated rendered text.

Sequence Diagram(s)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related issues

  • #3825: The pricing tier breakdown is corrected to align the displayed tiers with the actual charges.

Poem

🐰 I hopped through tiers with a careful nose,
USDC sparkles where old pricing prose once froze.
The register sings in clearer light,
With checkout truth and figures tight.
A nibble of note, a hop of cheer,
The bunny approves: the prices are clear!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly states the main change: fixing the identity pricing tiers shown to users.
Linked Issues check ✅ Passed The PR aligns the displayed pricing tiers with the actual USDC charges and adds the missing 1- and 2-character tiers.
Out of Scope Changes check ✅ Passed The added note and exported tier constant are directly related to correcting the pricing table.

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 65e1a76f33

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

{ label: '4 chars', example: '@abcd', fee: '$50/yr' },
{ label: '5+ chars', example: '@abcde', fee: '$10/yr' },
].map(tier => (
{IDENTITY_PRICING_TIERS.map(tier => (

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Update the stale pricing-tier test

With the Register tab now rendering IDENTITY_PRICING_TIERS, the existing test in app/src/agentworld/pages/IdentitiesSection.test.tsx:217-223 still asserts the old $250/yr, $50/yr, and $10/yr strings. That test will fail on every run because these values are no longer present in the DOM; update or remove the stale assertion alongside this pricing change so the suite can pass.

Useful? React with 👍 / 👎.

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@app/src/agentworld/pages/IdentitiesSection.test.tsx`:
- Around line 1179-1209: The pricing-tier tests in IdentitiesSection.test.tsx
are inconsistent: the older Register-tab assertion still expects the legacy USD
yearly prices, while the new IDENTITY_PRICING_TIERS checks and rendered values
use authoritative USDC amounts. Update the older test to assert the corrected
USDC tiers or remove the obsolete expectations so it matches the new tier data
and the IdentitesSection render behavior.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7c17baa4-7f8a-4ef9-b1d7-55cd256ac284

📥 Commits

Reviewing files that changed from the base of the PR and between 56af7ec and 65e1a76.

📒 Files selected for processing (2)
  • app/src/agentworld/pages/IdentitiesSection.test.tsx
  • app/src/agentworld/pages/IdentitiesSection.tsx

Comment thread app/src/agentworld/pages/IdentitiesSection.test.tsx
The pre-existing `renders the pricing tiers` test still asserted the old
`$250/yr` / `$50/yr` / `$10/yr` labels that this PR replaced with the
authoritative tiny.place USDC tiers, failing Frontend Checks. Assert the new
values instead.
…tch-3825' into fix/tinyplace-pricing-tier-mismatch-3825
@senamakel senamakel merged commit 090360e into tinyhumansai:main Jun 29, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: pricing tiers displayed do not match actual charges

2 participants