Repository navigation
feat(ui): topup entry (US-4) and member raise-request (US-20) - #24
Merged
Merged
Conversation
- wallet: topup button now opens a demo payment modal (preset 100/500/1000 or custom amount) -> balance increases + topup transaction (permanent points); note says real payment channel to be added later; withdraw stays disabled - wallet: "申请加额 (Request more)" button for enterprise members -> submit amount + reason -> waits for admin approval (linked to org setting toggle; when toggle off, request applies directly) - admin members pane: raise-request list with approve/reject; approve adds points to member balance (+ transaction), reject just updates status - ui/README.md documents US-4 / US-20 support
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
Implements US-4 (top-up entry) and US-20 (member raise-request) in the UI prototype, completing full user-story coverage (24 US) as the host instructed.
Host rant:
2026-08-15T08:58:47— "UI 原型补齐 US-4(充值入口)与 US-20(成员申请加额)— 用户故事全量支持核对"Changes
US-4 (G7) — 普通用户充值点数
topuptransaction is recorded (permanent points), point-source "充值点数" updatesUS-20 (G8) — 企业成员申请加额
#org-approval-toggle): when ON → request is queued for approval; when OFF → applies directlydata.jsaddsRAISE_REQUESTSmock data (one pending sample request)Related Issue
No issue (rant-driven; issue #6 remains unclaimed)
Tests
cargo testpasses (1 passed)cargo fmt --checkpassesnode --check ui/js/app.js/node --check ui/js/data.jspassChecklist
feat/ui-full-us-coverage)