Add perma/direct link to test result in eval view
Add the ability to permalink directly to a result row in the eval view
Hi @sklein12,
This is a great idea! A direct link to a specific result row in the eval view would definitely be a useful feature. If you're interested, we'd love to welcome a contribution from you to add this functionality. If you decide to take a stab at it, feel free to reach out if you need any guidance or have any questions.
Thanks for the suggestion!
Hi! Good news - this feature actually already exists! To use it:
- In the eval results table, hover over any result cell
- Hold the Shift key to reveal the action buttons
- Click the Link icon (🔗) - this copies a permalink to your clipboard
The URL format looks like:
https://your-promptfoo-instance/eval/abc123?rowId=5
When someone opens this link, the page will automatically:
- Navigate to the correct page (handling pagination)
- Scroll smoothly to the specific result row
Code references
For anyone curious about the implementation:
-
Link generation:
EvalOutputCell.tsx:359-373 -
URL navigation:
ResultsTable.tsx:1158-1234
I'll note that the feature is somewhat hidden since it requires holding Shift to see the action buttons. If there's interest in making this more discoverable (e.g., always showing a "Copy Link" button), we could open a separate issue for that UX improvement.
Closing this as the core functionality is implemented. Feel free to reopen if the current implementation doesn't meet your needs!