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

style(weave): add icons to trace tree #3227

Merged
merged 3 commits into from
Dec 14, 2024
Merged

Conversation

jwlee64
Copy link
Contributor

@jwlee64 jwlee64 commented Dec 12, 2024

Description

I think this is what we want, mostly copied from @m-rgba pr here
https://github.com/wandb/weave/pull/3218/files#diff-fd135f6c043e8503d22da884b0464e16851a3364b605c6e95894c93aec355fcb

Screenshot 2024-12-12 at 3 13 08 PM

Testing

How was this PR tested?

@jwlee64 jwlee64 requested review from a team as code owners December 12, 2024 23:12
@circle-job-mirror
Copy link

circle-job-mirror bot commented Dec 12, 2024

@jwlee64 jwlee64 requested a review from m-rgba December 12, 2024 23:14
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 Cool. TY!

Copy link
Contributor

@m-rgba m-rgba left a comment

Choose a reason for hiding this comment

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

LGTM. TY

<span>•</span>
</>
<Tooltip
content="Finish Reason"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Prefer sentence case

<Tooltip
content="Finish Reason"
trigger={
<span>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think a Pill renders a div, so this should probably be a block level element like div too.

icon="checkmark-circle"
label={(call.output as any).choices[0].finish_reason}
color="moon"
className="-ml-[8px] bg-transparent text-moon-500 dark:bg-transparent dark:text-moon-500"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I didn't know you could write the negative margin that way in Tailwind, I think I've always done it ml-[-8px]. Interesting!

@jwlee64 jwlee64 enabled auto-merge (squash) December 14, 2024 00:44
@jwlee64 jwlee64 merged commit cb612d4 into master Dec 14, 2024
119 of 121 checks passed
@jwlee64 jwlee64 deleted the josiah/icons-tracestats branch December 14, 2024 00:53
@github-actions github-actions bot locked and limited conversation to collaborators Dec 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants