Skip to content

feat(ui): points model — wallet shows gift/earned/topup sources & validity, gift tx type - #12

Merged
argszero merged 1 commit into
mainfrom
feat/points-model-ui
Aug 14, 2026
Merged

argszero merged 1 commit into
mainfrom
feat/points-model-ui

Conversation

@argszero

Copy link
Copy Markdown
Owner

Summary

Implements the UI prototype part of the points model (v1.2) in the static prototype, per host rant 2026-08-14T20:20:46 「点数机制定案 — 纯分享经济 + 新人赠送 10 点(有 1 周有效期),分享收益与充值点数永久有效」 (PR 2/2; PR 1/2 = docs v1.2, #11).

  • mock 数据: ui/js/data.js adds POINT_SOURCES — gift 10 pts (剩 5 天), earned 12470 pts (永久), topup 0 pts (永久); balance stays consistent (10 + 12470 = 12480). New transaction type gift(赠送) with a "赠送 · 新人体验券(注册赠送)" record.
  • 钱包页: shows point sources & validity — "赠送点数 10 · 新人体验券 · 剩 5 天", "收益点数 · 永久有效", "充值点数 · 永久有效(充值暂未开放)"; 充值/提现 buttons remain disabled ("暂不支持") as before.
  • 交易记录: type filter + badge extended with 赠送(gift); page header and dashboard text updated.
  • ui/README.md synced (wallet / transactions / 点数机制 v1.2).

Related Issue

No issue — host rant 2026-08-14T20:20:46.981288 (project argszero/aitokenpool).

Changes

  • 功能/修复说明: UI prototype reflects gift/earned/topup point sources + validity; gift tx type
  • 涉及配置/数据结构的改动已同步示例文件: ui/README.md updated

Tests

  • cargo test 全部通过 (1 passed)
  • cargo fmt --check 通过
  • node --check on ui/js/data.js / ui/js/app.js (syntax OK)
  • 新增/更新了单元测试(如适用): n/a (static prototype)

Checklist

  • 分支命名符合约定: feat/points-model-ui
  • Commit message 使用 Conventional Commits 格式: feat(ui): points model …
  • 单一职责,改动最小化 (ui/ only)

@argszero
argszero merged commit 8330826 into main Aug 14, 2026
1 check passed
@argszero
argszero deleted the feat/points-model-ui branch August 14, 2026 12:29
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