🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore: drop "remove tag" capability from UI (#8454)
Steffen Schmitz6c97fe3c04c5
diff --git a/web/src/features/tag/components/TagInput.tsx b/web/src/features/tag/components/TagInput.tsxindex deef0fe90d..5a67b57daa 100644--- a/web/src/features/tag/components/TagInput.tsx+++ b/web/src/features/tag/components/TagInput.tsx@@ -1,22 +1,19 @@import React from "react";import { cn } from "@/src/utils/tailwind";-import { X } from "lucide-react";import { Button } from "@/src/components/ui/button";import { Command as CommandPrimitive } from "cmdk";-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";type TagInputProps = React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input> & {selectedTags: string[];- setSelectedTags: (tags: string[]) => void;+ setSelectedTags?: (tags: string[]) => void;};export const TagInput = React.forwardRef<React.ElementRef<typeof CommandPrimitive.Input>,TagInputProps->(({ className, selectedTags, setSelectedTags, ...props }, ref) => {- const capture = usePostHogClientCapture();+>(({ className, selectedTags, ...props }, ref) => {return (<divclassName="flex flex-wrap items-center overflow-auto rounded-lg border px-2"@@ -29,16 +26,10 @@ export const TagInput = React.forwardRef<key={tag}variant="tertiary"size="icon-sm"- onClick={() => {- const newTags = selectedTags.filter((t) => t !== tag);- setSelectedTags(newTags);- capture("tag:remove_tag", {- name: tag,- });- }}+ disabled+ className="cursor-default">{tag}- <X className="ml-1 h-3 w-3" /></Button>))}</div>