From 36e624287ccc4c035aef0022128a6871c60abcc3 Mon Sep 17 00:00:00 2001
From: "google-labs-jules[bot]"
<161369871+google-labs-jules[bot]@users.noreply.github.com>
Date: Fri, 17 Oct 2025 14:53:00 +0000
Subject: [PATCH] feat: Add per-model filtering to Merbench page
This change introduces a new filter to the Merbench page, allowing users to select individual models in addition to the existing provider-level filter.
The implementation includes:
- A new "Model" checkbox group in the `CombinedFilters.astro` component.
- Updates to `merbench.astro` to pass the model list to the filter component.
- Modifications to `merbench-filters.ts` to handle the new filter's state and events.
- An update to the `getFilteredData` function in `merbench.ts` to apply the model selection to the dataset.
---
npm_output.log | 3 ---
src/components/merbench/CombinedFilters.astro | 18 ++++++++++++++-
src/lib/merbench.ts | 7 ++++--
src/pages/merbench.astro | 6 ++++-
src/scripts/merbench-filters.ts | 22 ++++++++++++++-----
5 files changed, 44 insertions(+), 12 deletions(-)
delete mode 100644 npm_output.log
diff --git a/npm_output.log b/npm_output.log
deleted file mode 100644
index 4e52ebb..0000000
--- a/npm_output.log
+++ /dev/null
@@ -1,3 +0,0 @@
-
-> andrewginns.github.io@1.0.0 dev
-> astro dev
diff --git a/src/components/merbench/CombinedFilters.astro b/src/components/merbench/CombinedFilters.astro
index ccb8a6f..8727e35 100644
--- a/src/components/merbench/CombinedFilters.astro
+++ b/src/components/merbench/CombinedFilters.astro
@@ -2,9 +2,10 @@
export interface Props {
difficulties: string[];
providers: string[];
+ models: string[];
}
-const { difficulties, providers } = Astro.props;
+const { difficulties, providers, models } = Astro.props;
---