Skip to content

feat: allow toggling frameworks in Mockolate benchmark chart#34

Merged
vbreuss merged 1 commit into
mainfrom
feat/toggle-benchmark-frameworks
May 4, 2026
Merged

feat: allow toggling frameworks in Mockolate benchmark chart#34
vbreuss merged 1 commit into
mainfrom
feat/toggle-benchmark-frameworks

Conversation

@vbreuss

@vbreuss vbreuss commented May 4, 2026

Copy link
Copy Markdown
Member

Click a row to mark it inactive — the bar widths recompute their max from the remaining active rows, so toggling Moq off makes the smaller frameworks' differences visible. Inactive state is shared across the Time and Memory blocks and persists across N=1/N=10 param tabs.

Click a row to mark it inactive — the bar widths recompute their max
from the remaining active rows, so toggling Moq off makes the smaller
frameworks' differences visible. Inactive state is shared across the
Time and Memory blocks and persists across N=1/N=10 param tabs.
@vbreuss vbreuss self-assigned this May 4, 2026
Copilot AI review requested due to automatic review settings May 4, 2026 14:42
@vbreuss vbreuss added the documentation Improvements or additions to documentation label May 4, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds interactivity to the Mockolate benchmark chart so readers can toggle individual frameworks on/off, with bar scaling recomputed from the remaining active rows. This improves comparability when one framework dominates the scale, and keeps the inactive selection consistent across Time/Memory blocks and across N parameter tabs.

Changes:

  • Make benchmark rows clickable (as <button> when data exists) and track inactive libraries in shared component state.
  • Recompute the bar-scale maximum from active (non-missing, non-inactive) rows to improve visual resolution.
  • Add CSS module styles to reset button defaults, provide hover/focus-visible affordances, and visually mark inactive rows.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
Docs/pages/src/components/MockolateBenchmarkResult/styles.module.css Adds button reset/interaction styling and inactive-row presentation (opacity + strike-through).
Docs/pages/src/components/MockolateBenchmarkResult/index.tsx Introduces inactive-library state + toggle handler, converts rows to buttons, and rescales bars based on active rows.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vbreuss
vbreuss merged commit eeed0c4 into main May 4, 2026
6 checks passed
@vbreuss
vbreuss deleted the feat/toggle-benchmark-frameworks branch May 4, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants