Skip to content

compression rebound speed histogram#155

Merged
wfelliss merged 5 commits into
mainfrom
129-feature-add-compression-vs-rebound-speed-chart
May 16, 2026
Merged

compression rebound speed histogram#155
wfelliss merged 5 commits into
mainfrom
129-feature-add-compression-vs-rebound-speed-chart

Conversation

@eoinohal

Copy link
Copy Markdown
Collaborator

Made lineHistogram base component (Very similar to histogram but it draws a line through the midpoints of the bin counts)
Made velocityHistogram (Uses buildVelocitySamples util to populate lineHistogram component)
Cleaned up chart sections for consistency (Language: Displacement $\rightarrow$ Travel, Fork/Shock $\rightarrow$ Suspension)

Made lineHistogram base component.
Made velocityHistogram (using speed util and lineHistogram component)
Cleaned up chart sections for consistency (Language: Displacement->travel, Fork/Shock->Suspension)
@eoinohal
eoinohal requested a review from wfelliss May 13, 2026 17:19
@eoinohal eoinohal linked an issue May 13, 2026 that may be closed by this pull request
4 tasks

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new LineHistogram base component and a VelocityHistogram domain component to visualize suspension velocity data. It also refactors existing chart sections for better naming consistency and integrates the new velocity plots. Key feedback includes fixing an undefined type in VelocityHistogram, removing a misleading comment and an unused import, and addressing a performance bottleneck in LineHistogram where the entire D3 chart re-renders on hover. Additionally, a hardcoded frequency value in VelocityHistogram was flagged as a potential source of calculation errors.

Comment thread apps/frontend/app/components/graphs/domain/VelocityHistogram.tsx Outdated
Comment thread apps/frontend/app/components/graphs/base/LineHistogram.tsx Outdated
Comment thread apps/frontend/app/components/graphs/base/LineHistogram.tsx Outdated
Comment thread apps/frontend/app/components/graphs/domain/VelocityHistogram.tsx Outdated
Comment thread apps/frontend/app/components/graphs/domain/VelocityHistogram.tsx Outdated
eoinohal and others added 4 commits May 13, 2026 18:22
forgot to switch back to LineHistogram (testing using histogram as base)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Fixes from code review
@wfelliss
wfelliss merged commit cf885e8 into main May 16, 2026
2 checks passed
@wfelliss
wfelliss deleted the 129-feature-add-compression-vs-rebound-speed-chart branch May 16, 2026 08:25
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.

[FEATURE] Add compression vs rebound speed chart

2 participants