mirror of
https://github.com/AmanTahiliani/box-box.git
synced 2026-12-05 14:44:41 -05:00
fix(compare): gap delta graph when reference lap is null
Reference-null laps now emit null deltas for all drivers and exclude that lap window from aligned cumulative totals so later comparisons stay sane. Challenger-null behavior is unchanged. Compare tab meta documents the policy. Closes #46 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
cc4337be88
commit
ad379e0f07
3 files changed
+87
-12
No files matched your search
@@ -229,7 +229,9 @@ export function CompareView({ sessionKey, results, drivers }: Props) {
|
||||
<div>
|
||||
<div className="compare-section-title">Race pace</div>
|
||||
<div className="compare-section-meta">
|
||||
Cumulative lap-time delta vs {referenceLabel ?? 'reference'}
|
||||
Cumulative lap-time delta vs {referenceLabel ?? 'reference'}. Deltas are plotted
|
||||
only where the reference lap is valid; gaps appear when the reference has no lap
|
||||
time.
|
||||
</div>
|
||||
</div>
|
||||
<SectionState
|
||||
|
||||
Reference in new issue
Block a user