feat: pollen-first pricing + localized currency on the top-up slider - #11348
Closed
ElliotEtag wants to merge 14 commits into
Closed
feat: pollen-first pricing + localized currency on the top-up slider#11348ElliotEtag wants to merge 14 commits into
ElliotEtag wants to merge 14 commits into
Conversation
Co-authored-by: ElliotEtag <36901823+ElliotEtag@users.noreply.github.com> Fixes #11346
show the buyer's local-currency estimate on the pack slider using stripe mid-market rates plus a per-currency adaptive-pricing markup learned from real purchases (ema in kv, recorded off the credit path), with a 4% cold-start default. dev-only ?country= override for local preview.
- move the discount label outside the price pill - bold the local-currency price - drop the "p" suffix and enlarge the rail tick numbers - de-bold the auto top-up tooltip, keeping only the heading and threshold emphasized
ElliotEtag
marked this pull request as ready for review
May 28, 2026 21:43
…r ui - restore bonusPollen pricing (discount ladder deferred to a separate PR) - keep FX-quote localized prices + AP markup learning (derive from amountUsd) - slider keeps pollen-first layout; badge back to +N% bonus - pollen-frame stray $ copy in README and polli-cli skill
Member
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements #11346: show pack prices in Pollen and flip the displayed price to the buyer's local currency.
≈ €9.30) appears below it, derived from Stripe FX Quotes mid-market rates with the country fromCF-IPCountry. Unmapped countries fall back to the USD price. Checkout stays USD-native + Adaptive Pricing, so the slider price is a labelled≈estimate.waitUntil; 4% cold-start default until the first sale in a currency. Mid-market rate cached hourly.?country=override to preview localized pricing on localhost (ignored in production).$copy inREADME.mdand the polli-cli skill.Out of scope (separate PR): pack discount pricing and field/logic renames. The bonus pricing model is unchanged.
Checks:
npx biome check,npx vitest run test/fx-quotes.test.ts test/pollen-packs.test.ts test/integration/stripe.test.ts(110 pass).Fixes #11346