Repository navigation
fix(citations): group raw model slugs under display names in the Platforms filter - #48
Conversation
There was a problem hiding this comment.
Welcome to Ansvisor, and thank you for your first PR! A maintainer will be by soon to review.
In the meantime, two things that make review faster:
- A short description of why the change matters, not just what it does — most of our PRs link a
Fixes #...to the issue that explains the why. - A quick local test note if there's anything worth eyeballing in the browser.
If you'd like to keep an eye on where Ansvisor goes next, a ⭐ on the repo helps others discover it (and Watch sends you a ping when related issues land). Either way — looking forward to your next one.
|
Thanks for the work on this — the feature code itself ( But there's a packaging issue blocking the merge: the diff includes ~16k lines of lock-file noise that need to be reverted before we can review / land this safely:
Easiest fix: on a fresh clone with Yarn Classic ( git checkout main -- web/yarn.lock server/package-lock.json
rm web/.yarnrc.yml
git add -u
git commit -m "chore: revert unrelated lockfile churn"
git pushOnce the diff is just the citations changes (~120 lines across two files), we're good to go. The feature itself is exactly what the issue asked for. |
|
Side note while you're cleaning up the lockfile churn — your accidental regeneration actually surfaced a real metadata bug we hadn't noticed: I split it out as #50 so it doesn't get tangled with this PR. If you'd like to send a one-commit follow-up PR fixing that (literally |
This updates the /dashboard/citations Platforms filter to match the behavior already used on the Answer Engine Insights page.
Before this change, Citations showed raw model slugs like gpt-5-3-mini and gpt-5-5 as separate dropdown options. That was confusing for users, who expect a single ChatGPT option representing the whole model family.
This PR fixes that in two places:
Frontend: the Citations page now groups observed model slugs by their resolved display label and builds dropdown options as { value, label }, where value is a sorted comma-joined slug list and label is the user-facing family name like ChatGPT.
Backend: the Citations query now supports comma-joined model values and applies them against model_used, so selecting one grouped option matches all underlying model slugs in that family.
This brings Citations in line with Insights and ensures platform filters are consistent across the dashboard.