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(playground): example run slideover #5361

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

axiomofjoy
Copy link
Contributor

@axiomofjoy axiomofjoy commented Nov 14, 2024

Adds simple slideover for experiment run details in playground

experiment_run_details.mp4

resolves #5286

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Nov 14, 2024
<DialogContainer type="slideOver" isDismissable onDismiss={() => {}}>
<Dialog size="XL" title={`Experiment Run for Example: ${exampleId}`}>
<Flex direction="row" justifyContent="center">
<View
Copy link
Contributor

Choose a reason for hiding this comment

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

We need overflow so that the view can scroll when there is large amounts of content inside.

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah would copy from the SelectedExampleDiaog in the experiment compare table here since you are building the same thing, doesn't look like it probably makes sense to reuse that component but copying the structure and styles makes sense
https://github.com/Arize-ai/phoenix/blob/main/app/src/pages/experiment/ExperimentCompareTable.tsx#L712

}, [data]);
const { exampleId, input, referenceOutput, runOutput } = run;
return (
<DialogContainer type="slideOver" isDismissable onDismiss={() => {}}>
Copy link
Contributor

Choose a reason for hiding this comment

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

Clicking anywhere within the dialog closes it, including when trying to collapse cards or select text

wonky.sidebar.mov

Copy link
Contributor

Choose a reason for hiding this comment

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

(this also shows that you cannot scroll with large outputs)

Copy link
Contributor

Choose a reason for hiding this comment

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

might be happening because the onDismiss function is just that emptyfunction? although that doesn't seem quite right. In either case would recommend passing in an onClose to this that gets passed as the onDismiss prop that allows the parent to control it's closing

<Tooltip>View Trace</Tooltip>
</TooltipTrigger>
)}
{hasSpan && (
Copy link
Contributor

Choose a reason for hiding this comment

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

you can put these both in the same conditional just wrap in a fragment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
Status: 🔍. Needs Review
3 participants