Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ui): Very basic MVP for viewing a Scorer's logs #3556

Open
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

tssweeney
Copy link
Collaborator

@tssweeney tssweeney commented Jan 31, 2025

A note to reviewers. I will break this up into 3 PRs after I get approval for the purposes of rollout, but i figured it might be easier to review in bulk because everything fits together:

  1. Server
  2. UI
  3. Python & Docs

In order to help complete the user flow for scoring, we need a way to actually get the scored calls. The user as a few downstream options: build a dataset, python analytics, view in UI, etc... However, as of right now our data fetch side is limited to just: view the scores on a call... we don't have an easy way to view all cals scored by some metric. This PR puts in place:

a. the backend query layer to fetch calls scored by a particular version of the scorer
b. adds a super lightweight (emphasis on super) to navigate to the calls table for a given scorer
c. adds a very basic query param to the client that allows fetching these calls


This docs page summarizes the work:

Screenshot 2025-01-31 at 14 56 34

@tssweeney tssweeney changed the title feat(ui): Creates the most simple MVP for viewing a Scorer's logs feat(ui): Very basic MVP for viewing a Scorer's logs Jan 31, 2025
@circle-job-mirror
Copy link

circle-job-mirror bot commented Jan 31, 2025

@@ -283,6 +285,33 @@ const ObjectVersionPageInner: React.FC<{
<UserLink userId={objectVersion.userId} includeName />
</div>
)}
{isScorer && (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Baby changes:

  • How would you feel about calling it "Scores" and then maybe "View traces"?
  • Could we use the hover arrow interaction like we do on the column to the left (since we push to a new page)?
    CleanShot 2025-01-31 at 12 05 30

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

made the name changes. I suspect this will change very soon anyway maybe with it's own tab or something

entity={entityName}
project={projectName}
neverPeek
gridFilters={{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bit of a bigger ask - been looking at cleaning up the filters area.
Would it be possible if we're pushing to the traces view to display an object, to just display the object name with an identifier of what it is?

As an example:
CleanShot 2025-01-31 at 12 10 52@2x

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will need to be a followup. Incremental change. Don't want to mess with filters here as the intention of this PR is to setup the edge

@@ -236,7 +238,7 @@ const ObjectVersionPageInner: React.FC<{
}
headerContent={
<Tailwind>
<div className="grid w-full grid-flow-col grid-cols-[auto_auto_auto_1fr] gap-[16px] text-[14px]">
<div className="grid w-full grid-flow-col grid-cols-[auto_auto_auto_auto_1fr] gap-[16px] text-[14px]">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that we have more than a couple columns on all of the objects views we can set grid-cols-auto here.

  • Previously we were prescriptive about the column count so that it didn't feel weird having really large spaces between each column.
  • Now that we have a delete icon on the farthest right column it will anchor all of the views.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uggg i despise Tailwind. Yeah i will fix

@tssweeney tssweeney marked this pull request as ready for review January 31, 2025 22:58
@tssweeney tssweeney requested review from a team as code owners January 31, 2025 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants