feat(ui): export transactions to CSV — current filtered rows, UTF-8 BOM, date-stamped filename (v1.20 E) - #68
Merged
Conversation
…OM, date-stamped filename (v1.20 E)
12 tasks
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
Item E of rant
2026-08-17T20:46:57(UI/UE 第五轮多角度深化, v1.20): 交易记录导出 CSV — export transactions to CSV.#tx-export-btn, right-aligned ghost button under the transaction tabs) in the Transactions viewfilterRows(list, TX_COLUMNS, txTable.filters)— same data source as the table and summary bar (consistent with v1.19 B)\uFEFF, no mojibake in Excel) +\r\nline endings; header时间,类型,模型 / Key,Token 用量,点数,状态; type mapped to Chinese viaTX_TYPE; points kept signed; RFC4180 double-quote escaping for fields containing,/"/newlinesBlob(text/csv;charset=utf-8)→URL.createObjectURL→ temp<a download>click → remove → revoke after 1saitokenpool-transactions-YYYYMMDD.csv(local date)Rant reference (verbatim)
Verification
node --check ui/js/app.js✓, CSS braces balanced ✓cargo test✓ (1 passed),cargo fmt --check✓docs/user-stories.mdv1.20 entry (E added),ui/README.md「交易记录导出 CSV 约定」sectionProgress on rant 20:46:57: A (#63) + B (#65) + C (#66) + D (#67) + E (#68) merged; remaining F–G.