8000 feat(annotations): Annotation Config UI by cephalization · Pull Request #6856 · Arize-ai/phoenix · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(annotations): Annotation Config UI #6856

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

Merged

Conversation

cephalization
Copy link
Contributor
Annotation.Config.mov

@github-project-automation github-project-automation bot moved this to 📘 Todo in phoenix Mar 20, 2025
@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Mar 20, 2025
@mikeldking
Copy link
Contributor

Since we have room, can we align these checkboxes horizontally?

Screenshot 2025-03-24 at 9 12 29 AM

@mikeldking
Copy link
Contributor

This area of labels needs a label and possibly some explaining text.
Screenshot 2025-03-24 at 9 13 36 AM

bodyStyle={{ padding: 0 }}
extra={
<DialogTrigger>
<Button size="S">New Annotation Config</Button>
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe a + icon with the word "New Configuration" - just to keep things more proper.

@@ -8,7 +8,7 @@ import { formatFloat } from "@phoenix/utils/numberFormatUtils";
import { AnnotationColorSwatch } from "./AnnotationColorSwatch";
import { Annotation } from "./types";

type AnnotationDisplayPreference = "label" | "score";
type AnnotationDisplayPreference = "label" | "score" | "none";
Copy link
Contributor

Choose a reason for hiding this comment

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

probably needs a docstring

AnnotationConfigFreeform,
AnnotationConfigOptimizationDirection,
AnnotationConfigType,
} from "@phoenix/pages/settings/types";
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
} from "@phoenix/pages/settings/types";
} from "./types";

just to promote some level of directory encapsulation

data-testid="optimization-direction-picker"
direction="column"
>
<Label>Optimization Direction</Label>
Copy link
Contributor

Choose a reason for hiding this comment

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

we are gonna need descriptions of these - they are not self evident

render={({ field, fieldState: { error } }) => (
<TextField {...field} isInvalid={!!error}>
<Label>Annotation Name</Label>
<Input placeholder="correctness" />
Copy link
Contributor

Choose a reason for hiding this comment

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

With placeholders, it's best practice to not put a valid value there since it looks valid. Always use some sort of text like "e.x. correctness"

Comment on lines 262 to 284
<>
<Controller
control={control}
name="lowerBound"
rules={{
required: "Min is required",
}}
render={({
field: { value, ...field },
fieldState: { error },
}) => (
<NumberField
{...field}
value={typeof value === "number" ? value : undefined}
isInvalid={!!error}
>
<Label>Min</Label>
<Input placeholder="0" />
<FieldError>{error?.message}</FieldError>
</NumberField>
)}
/>
<Controller
Copy link
Contributor

Choose a reason for hiding this comment

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

can you put the min and max on a single line and somehow describe that it's a range?
Screenshot 2025-03-24 at 9 29 24 AM

aria-label={`Value ${index + 1}`}
isInvalid={!!error}
>
<Input placeholder="Category label" />
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<Input placeholder="Category label" />
<Input placeholder="the annotation label" />

return tokens;
}
case "CONTINUOUS":
return `Range: ${row.lowerBound} - ${row.upperBound}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return `Range: ${row.lowerBound} - ${row.upperBound}`;
return `${row.lowerBound} - ${row.upperBound}`;

@@ -55,6 +55,8 @@ const getAnnotationDisplayValue = (
annotation.label ||
"n/a"
);
case "none":
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
case "none":
case "none":

Can you make it so that you don't get an inconsistent padding?
Screenshot 2025-03-24 at 9 34 41 AM

@cephalization
Copy link
Contributor Author
annotation.config.post.cleanup.mov

@github-project-automation github-project-automation bot moved this from 📘 Todo to 👍 Approved in phoenix Mar 24, 2025
@cephalization cephalization merged commit 72b99e4 into feat/annotations Mar 24, 2025
8 checks passed
@cephalization cephalization deleted the cephalization/annotations/annotation-config-ui branch March 24, 2025 20:35
@github-project-automation github-project-automation bot moved this from 👍 Approved to ✅ Done in phoenix Mar 24, 2025
mikeldking pushed a commit that referenced this pull request Mar 25, 2025
* feat(annotations): Annotation Config UI

* Fix style merging in AnnotationLabel

* Handle large values

* Rename card

* Persist annotation config via gql

* Convert annotation config popover to dialog

* Implement annotation selection toolbar + deletion

* Remove bad lint rule

* Replace dialog extra buttons with cancel button

* styling changes

* clean up annotation label

* Remove hover state from annotation label unless clickable
mikeldking pushed a commit that referenced this pull request Mar 28, 2025
* feat(annotations): Annotation Config UI

* Fix style merging in AnnotationLabel

* Handle large values

* Rename card

* Persist annotation config via gql

* Convert annotation config popover to dialog

* Implement annotation selection toolbar + deletion

* Remove bad lint rule

* Replace dialog extra buttons with cancel button

* styling changes

* clean up annotation label

* Remove hover state from annotation label unless clickable
axiomofjoy pushed a commit that referenced this pull request Mar 29, 2025
* feat(annotations): Annotation Config UI

* Fix style merging in AnnotationLabel

* Handle large values

* Rename card

* Persist annotation config via gql

* Convert annotation config popover to dialog

* Implement annotation selection toolbar + deletion

* Remove bad lint rule

* Replace dialog extra buttons with cancel button

* styling changes

* clean up annotation label

* Remove hover state from annotation label unless clickable
mikeldking pushed a commit that referenced this pull request Apr 2, 2025
* feat(annotations): Annotation Config UI

* Fix style merging in AnnotationLabel

* Handle large values

* Rename card

* Persist annotation config via gql

* Convert annotation config popover to dialog

* Implement annotation selection toolbar + deletion

* Remove bad lint rule

* Replace dialog extra buttons with cancel button

* styling changes

* clean up annotation label

* Remove hover state from annotation label unless clickable
mikeldking pushed a commit that referenced this pull request Apr 9, 2025
* feat(annotations): Annotation Config UI

* Fix style merging in AnnotationLabel

* Handle large values

* Rename card

* Persist annotation config via gql

* Convert annotation config popover to dialog

* Implement annotation selection toolbar + deletion

* Remove bad lint rule

* Replace dialog extra buttons with cancel button

* styling changes

* clean up annotation label

* Remove hover state from annotation label unless clickable
mikeldking pushed a commit that referenced this pull request Apr 21, 2025
* feat(annotations): Annotation Config UI

* Fix style merging in AnnotationLabel

* Handle large values

* Rename card

* Persist annotation config via gql

* Convert annotation config popover to dialog

* Implement annotation selection toolbar + deletion

* Remove bad lint rule

* Replace dialog extra buttons with cancel button

* styling changes

* clean up annotation label

* Remove hover state from annotation label unless clickable
mikeldking pushed a commit that referenced this pull request Apr 30, 2025
* feat(annotations): Annotation Config UI

* Fix style merging in AnnotationLabel

* Handle large values

* Rename card

* Persist annotation config via gql

* Convert annotation config popover to dialog

* Implement annotation selection toolbar + deletion

* Remove bad lint rule

* Replace dialog extra buttons with cancel button

* styling changes

* clean up annotation label

* Remove hover state from annotation label unless clickable
mikeldking pushed a commit that referenced this pull request May 2, 2025
* feat(annotations): Annotation Config UI

* Fix style merging in AnnotationLabel

* Handle large values

* Rename card

* Persist annotation config via gql

* Convert annotation config popover to dialog

* Implement annotation selection toolbar + deletion

* Remove bad lint rule

* Replace dialog extra buttons with cancel button

* styling changes

* clean up annotation label

* Remove hover state from annotation label unless clickable
mikeldking pushed a commit that referenced this pull request May 9, 2025
* feat(annotations): Annotation Config UI

* Fix style merging in AnnotationLabel

* Handle large values

* Rename card

* Persist annotation config via gql

* Convert annotation config popover to dialog

* Implement annotation selection toolbar + deletion

* Remove bad lint rule

* Replace dialog extra buttons with cancel button

* styling changes

* clean up annotation label

* Remove hover state from annotation label unless clickable
GeLi2001 pushed a commit that referenced this pull request May 21, 2025
* feat(annotations): Annotation Config UI

* Fix style merging in AnnotationLabel

* Handle large values

* Rename card

* Persist annotation config via gql

* Convert annotation config popover to dialog

* Implement annotation selection toolbar + deletion

* Remove bad lint rule

* Replace dialog extra buttons with cancel button

* styling changes

* clean up annotation label

* Remove hover state from annotation label unless clickable
RogerHYang pushed a commit that referenced this pull request May 27, 2025
* feat(annotations): Annotation Config UI

* Fix style merging in AnnotationLabel

* Handle large values

* Rename card

* Persist annotation config via gql

* Convert annotation config popover to dialog

* Implement annotation selection toolbar + deletion

* Remove bad lint rule

* Replace dialog extra buttons with cancel button

* styling changes

* clean up annotation label

* Remove hover state from annotation label unless clickable
efontan-dialpad pushed a commit to gluru/phoenix that referenced this pull request May 28, 2025
* feat(annotations): Annotation Config UI

* Fix style merging in AnnotationLabel

* Handle large values

* Rename card

* Persist annotation config via gql

* Convert annotation config popover to dialog

* Implement annotation selection toolbar + deletion

* Remove bad lint rule

* Replace dialog extra buttons with cancel button

* styling changes

* clean up annotation label

* Remove hover state from annotation label unless clickable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants
0