junction/tests/Junction.Tests/Unit
dtrentin 54f8b3be25 feat: history & trends (v0.6)
Time-series history persisted + per-item trend sparklines in detail view.

Data (Domain+Persistence): HistoryPoint model; IMachineRepository +Append/
Get/Prune history; snapshot_history table (append-only) + index; DeleteAsync
cascades history. Port purity kept (Result/Cancelled, no throw).

Core: MachineMonitor.PersistAsync appends history on Connected snapshots +
throttled retention prune (7-day window, <=1/hour via Interlocked-CAS), never
blocks/undoes latest-snapshot save.

App: custom Sparkline Control (StreamGeometry polyline, min/max-scaled,
net48-safe, no charting dep); DataItemRowViewModel observable +Trend/HasTrend +
pure TryParseNumeric; MachineDetailViewModel loads per-item history (1h window,
60 pts) on load + each snapshot, parses numeric, sets Trend on UI thread;
detail view Trend column.

Projects: Domain, Persistence, Core, App, Tests (+31: 196 pass + 2 skip).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-22 08:57:52 +02:00
..
DataItemRowViewModelTests.cs feat: history & trends (v0.6) 2026-07-22 08:57:52 +02:00
DataItemTests.cs init: scaffold Junction multi-protocol machine monitor (M1 walking skeleton) 2026-07-21 23:32:56 +02:00
MachineDetailViewModelTests.cs feat: history & trends (v0.6) 2026-07-22 08:57:52 +02:00
MachineMonitorTests.cs feat: history & trends (v0.6) 2026-07-22 08:57:52 +02:00
MachineRepositoryContractTests.cs init: scaffold Junction multi-protocol machine monitor (M1 walking skeleton) 2026-07-21 23:32:56 +02:00
MachineSnapshotTests.cs init: scaffold Junction multi-protocol machine monitor (M1 walking skeleton) 2026-07-21 23:32:56 +02:00
MachineTests.cs init: scaffold Junction multi-protocol machine monitor (M1 walking skeleton) 2026-07-21 23:32:56 +02:00
MtconnectDriverTests.cs feat: per-machine data-item selection (v0.3) 2026-07-22 00:28:47 +02:00
MtconnectParserTests.cs init: scaffold Junction multi-protocol machine monitor (M1 walking skeleton) 2026-07-21 23:32:56 +02:00
OpcuaDriverFactoryTests.cs feat: OPC UA protocol plugin (v0.4) 2026-07-22 07:44:23 +02:00
OpcuaDriverTests.cs feat: OPC UA protocol plugin (v0.4) 2026-07-22 07:44:23 +02:00
OperationErrorTests.cs init: scaffold Junction multi-protocol machine monitor (M1 walking skeleton) 2026-07-21 23:32:56 +02:00
PluginLoaderTests.cs feat: per-machine data-item selection (v0.3) 2026-07-22 00:28:47 +02:00
PluginManifestTests.cs init: scaffold Junction multi-protocol machine monitor (M1 walking skeleton) 2026-07-21 23:32:56 +02:00
PollingEngineTests.cs feat: per-machine data-item selection (v0.3) 2026-07-22 00:28:47 +02:00
ProtocolContractTests.cs init: scaffold Junction multi-protocol machine monitor (M1 walking skeleton) 2026-07-21 23:32:56 +02:00
ProtocolIdToIconConverterTests.cs feat: themed + iconed UI polish (v0.3.1) 2026-07-22 07:23:47 +02:00
ResultTests.cs init: scaffold Junction multi-protocol machine monitor (M1 walking skeleton) 2026-07-21 23:32:56 +02:00
SqliteMachineRepositoryTests.cs feat: history & trends (v0.6) 2026-07-22 08:57:52 +02:00
SqliteSchemaTests.cs feat: history & trends (v0.6) 2026-07-22 08:57:52 +02:00