-
Notifications
You must be signed in to change notification settings - Fork 71
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
Conversation
Preview this PR with FeatureBee: https://beta.wandb.ai/?betaVersion=634c3dc5b1e2134a74d936cfc39e3089b76b90f1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Cool. TY!
There was a problem hiding this 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" |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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!
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
Testing
How was this PR tested?