Skip to content

feat: Simplify tiered pricing to show user's plan tier price#606

Draft
jirispilka wants to merge 1 commit intomasterfrom
claude/issue-578-implementation-Goz9B
Draft

feat: Simplify tiered pricing to show user's plan tier price#606
jirispilka wants to merge 1 commit intomasterfrom
claude/issue-578-implementation-Goz9B

Conversation

@jirispilka
Copy link
Copy Markdown
Collaborator

@jirispilka jirispilka commented Mar 25, 2026

Summary

Closes #578
Closes #547

  • Resolves tiered pricing to a single price based on the user's actual plan tier instead of outputting verbose breakdowns for all tiers (BRONZE, SILVER, GOLD, PLATINUM, DIAMOND)
  • Adds tier hint in text output like (your BRONZE plan price) or (base price; see Actor pricing page for all tiers) when tier is unknown
  • Adds resolvedForTier field in structured output replacing the removed tieredPricing arrays

Changes

  • userid_cache.ts: Add getUserPlanTierCached() with separate TTL cache
  • pricing_info.ts: Add resolveTieredUnitPrice(), resolveEventPrice(), tierNote() helpers; update pricingInfoToString and pricingInfoToStructured to accept userTier param
  • actor_card.ts: Thread userTier through 4 format functions
  • actor_details.ts: Thread userTier through fetchActorDetails and processActorDetailsForResponse
  • structured_output_schemas.ts: Remove tieredPricing arrays, add resolvedForTier
  • All 5 tool handlers: Fetch user tier via getUserPlanTierCached and pass it through

Test plan

  • npm run type-check passes
  • npm run lint passes
  • npm run test:unit passes (410 tests, 17 new pricing tests)
  • Manual testing with different user plan tiers
  • Verify widget output shows simplified pricing

https://claude.ai/code/session_01RNnzsiNrtM3qJX9i1Kqfqy

@github-actions github-actions Bot added t-ai Issues owned by the AI team. tested Temporary label used only programatically for some analytics. labels Mar 25, 2026
@jirispilka jirispilka changed the title Resolve tiered pricing to user plan tier instead of showing all tiers feat: Resolve tiered pricing to user plan tier instead of showing all tiers Mar 25, 2026
Instead of outputting verbose pricing breakdowns for all tiers (BRONZE,
SILVER, GOLD, PLATINUM, DIAMOND), resolve to a single price based on
the user's actual plan tier. Adds a short hint like "(your BRONZE plan
price)" in text output and a `resolvedForTier` field in structured output.

Changes:
- Add getUserPlanTierCached() in userid_cache.ts (separate cache)
- Add tier resolution helpers in pricing_info.ts
- Thread userTier through actor_card.ts and actor_details.ts format functions
- Update all 5 tool handlers to fetch and pass user tier
- Remove tieredPricing arrays from structured output schemas
- Add unit tests for pricing tier resolution

https://claude.ai/code/session_01RNnzsiNrtM3qJX9i1Kqfqy
@jirispilka jirispilka force-pushed the claude/issue-578-implementation-Goz9B branch from 7df89d6 to fa6dc88 Compare March 25, 2026 13:34
@jirispilka jirispilka changed the title feat: Resolve tiered pricing to user plan tier instead of showing all tiers feat: simplify tiered pricing to show user's plan tier price Mar 25, 2026
@jirispilka jirispilka changed the title feat: simplify tiered pricing to show user's plan tier price feat: Simplify tiered pricing to show user's plan tier price Mar 25, 2026
@jirispilka jirispilka marked this pull request as draft March 26, 2026 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-ai Issues owned by the AI team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: simplify search-actors pricing to show resolved price with minimal tier hint Simplify the Actor details/search pricing info

3 participants