Skip to content

feat(ui): platform fee — earn txs & cumulative earnings at 90% after 10% cut - #20

Merged
argszero merged 1 commit into
mainfrom
feat/platform-fee-ui
Aug 14, 2026
Merged

argszero merged 1 commit into
mainfrom
feat/platform-fee-ui

Conversation

@argszero

Copy link
Copy Markdown
Owner

Summary

UI prototype half of host rant 2026-08-14T21:57:52 (平台收益抽成 10% — 分享者收益扣除 10% 平台分成). Docs half already merged in PR #19 (docs v1.7).

Changes (ui/):

  • ui/js/data.js
    • Earn transactions now reflect the 10% platform cut: pts = consumption × 0.9 — 420→378, 980→882, 210→189, 390→351, 180→162; detail text "收益 · 我的 key 被消费(已扣 10% 平台分成)"
    • SHARINGS cumulative earned after the cut: 1790→1611, 1240→1116, 60→54, 480→432; header comment updated
  • ui/index.html
    • Sharing page: "我的共享列表" adds note "收益为已扣 10% 平台分成后的金额(平台抽取 10% 作为运营费用)"
    • Transactions page header + wallet hint: "收益(别人用我的 key,已扣 10% 平台分成)"
  • ui/js/app.js: dashboard 共享收益 stat subtitle "已扣 10% 平台分成 · N 个 key 上架中" (monthEarn auto-sums post-cut earn txs)
  • ui/README.md: points mechanism → v1.7, notes 10% platform cut (earn = consumption × 90%)

Related Issue

No issue — host rant 2026-08-14T21:57:52 (argszero/aitokenpool).

Changes

  • 功能/修复说明:UI prototype updated to 10% platform fee (v1.7)
  • 涉及配置/数据结构的改动已同步示例文件:ui/js/data.js mock data + ui/README.md

Tests

  • cargo test 全部通过 (1 passed)
  • cargo fmt --check 通过
  • node --check ui/js/data.js + node --check ui/js/app.js 通过;fee math verified (×0.9)
  • 新增/更新了单元测试(如适用):N/A — static mock UI

Checklist

  • 分支命名符合约定:feat/platform-fee-ui
  • Commit message 使用 Conventional Commits:feat(ui): platform fee — earn txs & cumulative earnings at 90% after 10% cut
  • 单一职责,改动最小化

@argszero
argszero merged commit 13121e8 into main Aug 14, 2026
1 check 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.

1 participant