You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add 'Price per Success' column to Merbench leaderboard (#34)
* feat: Add 'Price per Success' column to Merbench leaderboard
This commit adds a new 'Price per Success' column to the leaderboard table on the Merbench page.
The 'Price per Success' is calculated as `Avg. Cost / Success Rate` and provides a more realistic measure of the cost to achieve a successful outcome, factoring in the cost of failed attempts.
The changes include:
- Updating the `LeaderboardTable.astro` component to add the new column.
- Updating the `merbench-types.ts` to include the new field in the `LeaderboardEntry` interface.
- Modifying `merbench.ts` to calculate the new metric when data is filtered.
- Modifying `merbench.astro` to calculate the new metric for the initial data load.
* feat: Add 'Price per Success' column to Merbench leaderboard
This commit adds a new 'Price per Success' column to the leaderboard table on the Merbench page.
The 'Price per Success' is calculated as `Avg. Cost / Success Rate` and provides a more realistic measure of the cost to achieve a successful outcome, factoring in the cost of failed attempts.
This also includes a fix for a build failure caused by a TypeScript type mismatch where `null` was used instead of `undefined`.
* fix: Correct client-side rendering for sorting
This commit fixes an issue where sorting the 'Price per Success' column would break the table layout.
The client-side rendering logic in `src/scripts/merbench-sorting.ts` was not updated to include the new column, which caused the table to be re-rendered incorrectly when sorted.
This has been corrected by updating the `renderLeaderboard` function to include the 'Price/Success' column, ensuring consistency with the server-side rendering.
* chore: Skip processing of Medium post titles
* feat: Metrics explanation
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
0 commit comments