Skip to content

spa refactor #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

spa refactor #12

wants to merge 9 commits into from

Conversation

ejkorol
Copy link
Member

@ejkorol ejkorol commented Jul 31, 2025

Overview

This PR updates how the benchmark html files are serves and replaces the old method of serving the built html files with a react spa.

@darcyclarke darcyclarke force-pushed the ejkorol/benchmark-spa-refactor branch 2 times, most recently from 6a851f1 to e091123 Compare July 31, 2025 17:29
@darcyclarke darcyclarke self-assigned this Jul 31, 2025
@darcyclarke
Copy link
Member

Notes:

  • looks like removing the nested results dir is a bit problematic
  • needs some TLC to get this properly working again... likely just a pathing issue in the benchmark runs themselves after we've removed the $BENCH_RESULTS dir reference

- remove unnecessarry nested results dir in charts
- add static files to charts dir
- change date header
- pull in dynamic date from constants
- update vit config to output to charts dir
- update package count script to output to charts dir
- update process results script to output to charts dir
- update benchmark script to output to charts dir
@darcyclarke darcyclarke force-pushed the ejkorol/benchmark-spa-refactor branch from e091123 to 5840211 Compare July 31, 2025 19:54
@darcyclarke darcyclarke assigned ruyadorno and unassigned darcyclarke Aug 11, 2025
@darcyclarke darcyclarke requested a review from Copilot August 15, 2025 16:20
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR replaces the existing static HTML chart generation with a modern React SPA (Single Page Application) for displaying benchmark results, improving the user experience for viewing and interacting with benchmark data.

Key Changes

  • Replaces Chart.js-based static HTML generation with a React/TypeScript SPA
  • Implements interactive charts using Recharts library with filtering and sorting capabilities
  • Updates build pipeline to use Vite and generates results to charts/ directory instead of static HTML files

Reviewed Changes

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

Show a summary per file
File Description
package.json Adds React, Vite, and charting dependencies for the new SPA
src/ (multiple files) Creates complete React application with components, hooks, and utilities
scripts/generate-chart.js Converts from HTML generation to JSON data output for SPA consumption
scripts/process-results.sh Updates file paths and removes HTML copying logic
vite.config.ts Configures Vite build system for the React application
Comments suppressed due to low confidence (1)

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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.

3 participants