Skip to content

feat(ui): remove Recent transactions card from dashboard - #28

Merged
argszero merged 1 commit into
mainfrom
feat/ui-dashboard-no-recent
Aug 17, 2026
Merged

argszero merged 1 commit into
mainfrom
feat/ui-dashboard-no-recent

Conversation

@argszero

Copy link
Copy Markdown
Owner

Summary

Remove the "最近交易 Recent transactions" card from the dashboard. Transaction details are already covered by the Transactions page — the dashboard should stay focused on the overview and not duplicate a transaction list.

Rant reference

Host instruction (rant 2026-08-17T10:40:27, 仪表盘移除"最近交易"模块):

宿主指出:仪表盘不需要"最近交易"。交易明细已由"交易记录"页承载,仪表盘应聚焦概览,不重复展示交易列表。

Changes

  • ui/index.html: delete the dashboard "最近交易 Recent transactions" card (<div class="card"> with id="dash-recent" and its <h3>)
  • ui/js/app.js renderDashboard(): remove the recent-transactions render block (const recent = txs.slice(0, 5) and the $("#dash-recent").innerHTML = ... mapping)
  • Kept: dashboard stats (balance / usage / earnings / trades), "我的共享 My sharings" and "点数来源 Point sources" cards — the remaining card-grid cards lay out normally

Verification

  • grep -rn "最近交易|Recent transactions|dash-recent" ui/ → zero matches
  • node --check ui/js/app.js passes
  • cargo test passes (1 passed)
  • cargo fmt --check passes

Dashboard should focus on overview; transaction details already live on
the Transactions page. Remove the dash-recent card from index.html and its
render block from renderDashboard() in app.js. Stats, My sharings and
Point sources cards are kept.

Refs: rant 2026-08-17T10:40:27 (仪表盘移除"最近交易"模块)
@argszero
argszero merged commit 962bef1 into main Aug 17, 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