opik icon indicating copy to clipboard operation
opik copied to clipboard

[OPIK-3065] [FE] Update UX for boolean feedback score type

Open JetoPistola opened this issue 1 month ago • 2 comments

Details

image

https://github.com/user-attachments/assets/6001bd3f-fb9f-49cd-b755-923734b5ae9a

This PR improves the user experience for boolean feedback scores across the Opik frontend:

UI Improvements

  • Boolean type prioritization: Made Boolean the first option in the feedback definition type dropdown and set as the default selection
  • Simplified label inputs: Removed example text from "True label" and "False label" input fields for cleaner UI
  • Improved value display: Changed separator from "/" to "," in the feedback definitions table (e.g., "Pass, Fail" instead of "Pass / Fail")
  • Enhanced table clarity: Updated feedback score cells to display "Label (value)" format for categorical and boolean scores (e.g., "Pass (1)", "Fail (0)"), while numerical scores continue to display just the value

Technical Changes

  • Reordered TYPE_OPTIONS array to place Boolean first
  • Updated default feedback definition type from categorical to boolean
  • Modified label rendering in BooleanFeedbackDefinitionDetails component
  • Enhanced FeedbackScoreCellValue to conditionally display category names with values

Change checklist

  • [x] User facing
  • [x] Documentation update

Issues

  • Resolves #
  • OPIK-3065

Testing

  • ✅ Manually verified Boolean type appears first in dropdown
  • ✅ Confirmed Boolean is pre-selected when creating new feedback definitions
  • ✅ Tested label display in feedback definitions table shows comma separator
  • ✅ Verified trace/thread tables display "Label (value)" format for boolean/categorical scores
  • ✅ All ESLint checks passed
  • ✅ TypeScript compilation successful
  • ✅ Pre-commit hooks passed

Documentation

No documentation updates required - these are UI-only improvements to existing functionality.

JetoPistola avatar Nov 30 '25 13:11 JetoPistola

🔄 Test environment deployment started

Building images for PR #4273...

You can monitor the build progress here.

github-actions[bot] avatar Nov 30 '25 13:11 github-actions[bot]

Test environment is now available!

Access Information

  • URL: https://pr-4273.dev.comet.com
  • Cluster: comet-ml-development
  • Namespace: pr-4273
  • Version: 1.9.34-4273-merge-578
  • Application logs: View in Grafana

The deployment has completed successfully and the version has been verified.

CometActions avatar Nov 30 '25 13:11 CometActions

🔄 Test environment deployment started

Building images for PR #4273...

You can monitor the build progress here.

github-actions[bot] avatar Dec 01 '25 09:12 github-actions[bot]

Test environment is now available!

Access Information

  • URL: https://pr-4273.dev.comet.com
  • Cluster: comet-ml-development
  • Namespace: pr-4273
  • Version: 1.9.34-4273-merge-599
  • Application logs: View in Grafana

The deployment has completed successfully and the version has been verified.

CometActions avatar Dec 01 '25 09:12 CometActions