promptfoo icon indicating copy to clipboard operation
promptfoo copied to clipboard

Add perma/direct link to test result in eval view

Open sklein12 opened this issue 1 year ago • 1 comments

Add the ability to permalink directly to a result row in the eval view

sklein12 avatar Aug 21 '24 22:08 sklein12

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!

mldangelo avatar Aug 22 '24 21:08 mldangelo

Hi! Good news - this feature actually already exists! To use it:

  1. In the eval results table, hover over any result cell
  2. Hold the Shift key to reveal the action buttons
  3. 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:

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!

mldangelo avatar Dec 08 '25 00:12 mldangelo