Skip to content

feat(ui): show the range change beside the reference change - #73

Merged
coldhighsun merged 1 commit into
mainfrom
feat/range-change-beside-headline
Nov 11, 2026
Merged

coldhighsun merged 1 commit into
mainfrom
feat/range-change-beside-headline

Conversation

@coldhighsun

Copy link
Copy Markdown
Owner

Summary

  • The headline change on the card is now always measured against the source's reference price, with a short label naming the basis (previous close or 24h ago). The change over the chart range is shown as a separate figure next to the range start.
  • Rows derive the chart range from the snapshot timeline (SparklineTimeline.Range) instead of keeping their own copy, so the texts always name the range the prices are really of. The timeline constructor rejects a range whose window does not match.
  • While the history of a newly chosen range loads, MarketDataService keeps the chart as it was instead of falling back to the last hour. The hold ends when the history arrives, the loads give up, the source loses the range, or the deadline passes.

Test plan

  • dotnet build FluxTick.slnx
  • dotnet test --project tests/FluxTick.Core.Tests
  • dotnet test --project tests/FluxTick.App.Tests

The headline change on the card is always measured against the reference
price of the source, named by its basis (previous close or 24h ago). The
change over the chart range is a figure of its own next to the range start.

The rows now take the range from the snapshot timeline instead of their own
copy of the chart range, and the service keeps the chart as it was while the
history of a newly chosen range loads, so it does not fall back to the last
hour in between.
@codecov

codecov Bot commented Nov 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.45283% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/FluxTick.Core/Application/MarketDataService.cs 91.48% 2 Missing and 2 partials ⚠️

📢 Thoughts on this report? Let us know!

@coldhighsun
coldhighsun merged commit da6f1a4 into main Nov 11, 2026
7 of 8 checks passed
@coldhighsun
coldhighsun deleted the feat/range-change-beside-headline branch November 11, 2026 07:32
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