-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
spa refactor #12
Conversation
- no longer writes the `index.html` file to the results dir
6a851f1
to
e091123
Compare
Notes:
|
- 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
e091123
to
5840211
Compare
There was a problem hiding this 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.
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.