feat(ui): redo tx trend chart in dashboard sparkline style (rants 2026-08-24T10:51:57) - #136
Merged
Merged
Conversation
…6-08-24T10:51:57) Redo the transactions page points-trend chart to match the dashboard '本月点数变化' sparkline (host rants 10:51:57.821209 + 10:51:57.821928): - Gradient area fill: 0.35 opacity at top fading to 0 (was 0.22, looked like a solid block) - Continuous smooth curve only — removed the hollow data-point circles that created visible gaps/jagged edges at inflection points - Removed the dashed grid lines and heavy axis ticks; minimal coordinates (top/bottom value labels only) - Theme colors: expense now uses the teal accent (was danger red), income ok green, net accent-text, tokens warn - Compact height: viewBox 190 -> 85 (half) with tighter padding, smaller axis font (9px) and compact legend - Kept metric switcher (expense/income/net/tokens, default expense) and the hover tooltip + guide line - cache-bust 20260824-4
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 freeto 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
Redo the transactions-page "点数趋势" (points trend) chart in the style of the dashboard "本月点数变化" sparkline (host rants
2026-08-24T10:51:57.821209+2026-08-24T10:51:57.821928).Fixes per rant 10:51:57.821209:
Fixes per rant 10:51:57.821928:
Kept (per both rants):
All changes are frontend-only (
renderTxTrend+.tx-trend*CSS + cache-bust).Related Issue
Host rants
2026-08-24T10:51:57.821209(sparkline-style redo) and2026-08-24T10:51:57.821928(height halving). No GitHub issue.Tests
cargo testall pass (146/146)cargo fmt --checkpasscargo clippy --all-targets -- -D warningspassnode --checkon modified JSChecklist
feat/tx-trend-sparkline)