Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(ui): do not wrap tags within tables (#2189)

Marc Klingen27623de650bf
diff --git a/web/src/components/trace/index.tsx b/web/src/components/trace/index.tsx
index dbb9349fe0..7bebec0b74 100644
--- a/web/src/components/trace/index.tsx
+++ b/web/src/components/trace/index.tsx
@@ -277,6 +277,7 @@ export function TracePage({ traceId }: { traceId: string }) {
availableTags={allTags}
traceId={trace.data.id}
projectId={trace.data.projectId}
+ className="flex-wrap"
/>
</div>
</div>
diff --git a/web/src/features/prompts/components/prompt-detail.tsx b/web/src/features/prompts/components/prompt-detail.tsx
index 9871e4f7b7..3fc472ec79 100644
--- a/web/src/features/prompts/components/prompt-detail.tsx
+++ b/web/src/features/prompts/components/prompt-detail.tsx
@@ -169,6 +169,7 @@ export const PromptDetail = () => {
promptName={prompt.name}
tags={prompt.tags}
availableTags={allTags}
+ className="flex-wrap"
/>
</div>
</div>
diff --git a/web/src/features/tag/components/TagMananger.tsx b/web/src/features/tag/components/TagMananger.tsx
index ea1287b12f..cddc6c9d1f 100644
--- a/web/src/features/tag/components/TagMananger.tsx
+++ b/web/src/features/tag/components/TagMananger.tsx
@@ -18,6 +18,7 @@ type TagManagerProps = {
hasAccess: boolean;
isLoading: boolean;
mutateTags: (value: string[]) => void;
+ className?: string;
};
const TagManager = ({
@@ -26,6 +27,7 @@ const TagManager = ({
hasAccess,
isLoading,
mutateTags,
+ className,
}: TagManagerProps) => {
const {
selectedTags,
@@ -59,7 +61,7 @@ const TagManager = ({
return (
<Popover onOpenChange={(open) => handlePopoverChange(open)}>
<PopoverTrigger className="select-none" asChild>
- <div className="flex flex-wrap gap-x-2 gap-y-1">
+ <div className={cn("flex gap-x-2 gap-y-1", className)}>
<TagList selectedTags={selectedTags} isLoading={isLoading} />
</div>
</PopoverTrigger>
diff --git a/web/src/features/tag/components/TagPromptDetailsPopover.tsx b/web/src/features/tag/components/TagPromptDetailsPopover.tsx
index 4b13f55b0a..371194cbb5 100644
--- a/web/src/features/tag/components/TagPromptDetailsPopover.tsx
+++ b/web/src/features/tag/components/TagPromptDetailsPopover.tsx
@@ -10,6 +10,7 @@ type TagPromptDetailsPopoverProps = {
availableTags: string[];
projectId: string;
promptName: string;
+ className?: string;
};
export function TagPromptDetailsPopover({
@@ -17,6 +18,7 @@ export function TagPromptDetailsPopover({
availableTags,
projectId,
promptName,
+ className,
}: TagPromptDetailsPopoverProps) {
const [isLoading, setIsLoading] = useState(false);
const hasAccess = useHasAccess({ projectId, scope: "objects:tag" });
@@ -80,6 +82,7 @@ export function TagPromptDetailsPopover({
hasAccess={hasAccess}
isLoading={isLoading}
mutateTags={mutateTags}
+ className={className}
/>
);
}
diff --git a/web/src/features/tag/components/TagPromptPopover.tsx b/web/src/features/tag/components/TagPromptPopover.tsx
index ff060fcf06..172cb39f48 100644
--- a/web/src/features/tag/components/TagPromptPopover.tsx
+++ b/web/src/features/tag/components/TagPromptPopover.tsx
@@ -11,6 +11,7 @@ type TagPromptPopverProps = {
projectId: string;
promptName: string;
promptsFilter: RouterInput["prompts"]["all"];
+ className?: string;
};
export function TagPromptPopover({
@@ -19,6 +20,7 @@ export function TagPromptPopover({
projectId,
promptName,
promptsFilter,
+ className,
}: TagPromptPopverProps) {
const [isLoading, setIsLoading] = useState(false);
const hasAccess = useHasAccess({ projectId, scope: "objects:tag" });
@@ -67,6 +69,7 @@ export function TagPromptPopover({
hasAccess={hasAccess}
isLoading={isLoading}
mutateTags={mutateTags}
+ className={className}
/>
);
}
diff --git a/web/src/features/tag/components/TagTraceDetailsPopover.tsx b/web/src/features/tag/components/TagTraceDetailsPopover.tsx
index ec583aed7c..987119b965 100644
--- a/web/src/features/tag/components/TagTraceDetailsPopover.tsx
+++ b/web/src/features/tag/components/TagTraceDetailsPopover.tsx
@@ -10,6 +10,7 @@ type TagTraceDetailsPopoverProps = {
availableTags: string[];
projectId: string;
traceId: string;
+ className?: string;
};
export function TagTraceDetailsPopover({
@@ -17,6 +18,7 @@ export function TagTraceDetailsPopover({
availableTags,
projectId,
traceId,
+ className,
}: TagTraceDetailsPopoverProps) {
const [isLoading, setIsLoading] = useState(false);
const hasAccess = useHasAccess({ projectId, scope: "objects:tag" });
@@ -71,6 +73,7 @@ export function TagTraceDetailsPopover({
hasAccess={hasAccess}
isLoading={isLoading}
mutateTags={mutateTags}
+ className={className}
/>
);
}
diff --git a/web/src/features/tag/components/TagTracePopver.tsx b/web/src/features/tag/components/TagTracePopver.tsx
index 54c1dc8be7..ddca7de580 100644
--- a/web/src/features/tag/components/TagTracePopver.tsx
+++ b/web/src/features/tag/components/TagTracePopver.tsx
@@ -11,6 +11,7 @@ type TagTracePopoverProps = {
projectId: string;
traceId: string;
tracesFilter: RouterInput["traces"]["all"];
+ className?: string;
};
export function TagTracePopover({
@@ -19,6 +20,7 @@ export function TagTracePopover({
projectId,
traceId,
tracesFilter,
+ className,
}: TagTracePopoverProps) {
const [isLoading, setIsLoading] = useState(false);
const hasAccess = useHasAccess({ projectId, scope: "objects:tag" });
@@ -69,6 +71,7 @@ export function TagTracePopover({
hasAccess={hasAccess}
isLoading={isLoading}
mutateTags={mutateTags}
+ className={className}
/>
);
}