Repository navigation
feat(ui): CNY point anchor — 1pt ≈ 1 RMB, fractional amounts (v1.6) - #18
Merged
Merged
Conversation
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.
Summary
UI prototype half of host rant
2026-08-14T21:52:00(点数锚定改为 1 点 ≈ 1 元人民币,消费点数可为小数). Docs half already merged in PR #17 (docs v1.6).Changes (
ui/):ui/js/data.jsUSD = (usd) => Math.round(usd * 7.2)(≈ CNY anchor),CNY = (cny) => Math.round(cny)— 1 点 ≈ 1 元人民币 (was 1 USD = 1,000 pts)fmt: integers unchanged (thousand separators), non-integers 2 decimal places (e.g. -0.37)id:1consume → pts: -0.37 (fractional consumption demo)SHARINGSunit prices updated to CNY anchor: glm-5.2 28, deepseek-v4-flash 2, kimi-k3 100, minimax-m3 9 (pts/1M, was 3889/280/13889/1200)ui/index.html: wallet hero "1 USD = 1000 点" → "1 点 ≈ 1 元 · 消费点数可为小数"ui/js/app.js: dashboard points stat subtitle → "1 点 ≈ 1 元"ui/README.md: points rule → CNY anchor + fractional (2 decimals)Model price spot-checks (CNY anchor): glm-5.2 out 28 pts/1M ✓, OpenAI out 1296 pts/1M ✓, claude out 180 pts/1M ✓, deepseek-flash 2 pts/1M ✓, kimi 100 pts/1M ✓.
Related Issue
No issue — host rant
2026-08-14T21:52:00(argszero/aitokenpool).Changes
ui/js/data.jsmock data +ui/README.mdTests
cargo test全部通过 (1 passed)cargo fmt --check通过node --check ui/js/data.js+node --check ui/js/app.js通过Checklist
feat/points-anchor-cny-uifeat(ui): CNY point anchor — 1pt ≈ 1 RMB, fractional amounts (v1.6)