This commit is contained in:
18
openspec/changes/update-wallet-display-rules/tasks.md
Normal file
18
openspec/changes/update-wallet-display-rules/tasks.md
Normal file
@@ -0,0 +1,18 @@
|
||||
## 1. Homepage Wallet Balance Display
|
||||
|
||||
- [x] 1.1 Add a display rule for the homepage wallet entry that converts the backend cent amount to yuan before rendering
|
||||
- [x] 1.2 Ensure converted values do not expose the raw cent amount in the `钱包(...)` label
|
||||
- [x] 1.3 Preserve correct display for zero and non-integer yuan values
|
||||
|
||||
## 2. Recharge Order Auto Purchase Field Visibility
|
||||
|
||||
- [x] 2.1 Render the recharge order `自动购包` row only when the recharge order includes auto purchase status data
|
||||
- [x] 2.2 Preserve the existing status text mapping when auto purchase status data exists, including compatible `0` and `1` values
|
||||
- [x] 2.3 Hide the row entirely when auto purchase status data is absent
|
||||
|
||||
## 3. Regression Verification
|
||||
|
||||
- [x] 3.1 Verify a homepage wallet balance of `100` is displayed as `1` in the wallet entry
|
||||
- [x] 3.2 Verify a non-round cent amount is displayed as its yuan value rather than the raw cent integer
|
||||
- [x] 3.3 Verify recharge orders with `auto_purchase_status` render the `自动购包` row
|
||||
- [x] 3.4 Verify recharge orders without `auto_purchase_status` do not render the `自动购包` row
|
||||
Reference in New Issue
Block a user