Skip to content

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

fix(web): remove Request Chart button from home screen (#13509)

marliessophiea5a197e1d15b
diff --git a/web/src/features/feedback/component/FeedbackButton.tsx b/web/src/features/feedback/component/FeedbackButton.tsx
deleted file mode 100644
index dfe49f1e5f..0000000000
--- a/web/src/features/feedback/component/FeedbackButton.tsx
+++ /dev/null
@@ -1,64 +0,0 @@
-import { Button } from "@/src/components/ui/button";
-import {
- Dialog,
- DialogContent,
- DialogHeader,
- DialogTitle,
- DialogTrigger,
- DialogDescription,
- DialogPortal,
- DialogBody,
-} from "@/src/components/ui/dialog";
-import { useState } from "react";
-import Link from "next/link";
-import { Bug, Sparkles } from "lucide-react";
-
-interface FeedbackDialogProps {
- className?: string;
- children: React.ReactNode;
- title?: string;
- description?: string;
-}
-
-export function FeedbackButtonWrapper({
- className,
- children,
- description = "What do you think about Langfuse? What can be improved? Please share it with the community on GitHub to shape the future of Langfuse.",
- title = "Provide Feedback",
-}: FeedbackDialogProps) {
- const [open, setOpen] = useState(false);
-
- return (
- <Dialog open={open} onOpenChange={setOpen}>
- <DialogTrigger
- className={className}
- asChild
- onClick={(e) => e.stopPropagation()}
- >
- {children}
- </DialogTrigger>
- <DialogPortal>
- <DialogContent>
- <DialogHeader>
- <DialogTitle>{title}</DialogTitle>
- <DialogDescription>{description}</DialogDescription>
- </DialogHeader>
- <DialogBody>
- <div className="flex flex-row flex-wrap items-center justify-center gap-3 sm:justify-start">
- <Link href="https://langfuse.com/ideas" target="_blank">
- <Button variant="secondary">
- <Sparkles className="mr-2 h-4 w-4" /> Submit Feature Request
- </Button>
- </Link>
- <Link href="https://langfuse.com/issues" target="_blank">
- <Button variant="secondary">
- <Bug className="mr-2 h-4 w-4" /> Report a Bug
- </Button>
- </Link>
- </div>
- </DialogBody>
- </DialogContent>
- </DialogPortal>
- </Dialog>
- );
-}
diff --git a/web/src/pages/project/[projectId]/index.tsx b/web/src/pages/project/[projectId]/index.tsx
index 926d91161f..9cb7d4c5ff 100644
--- a/web/src/pages/project/[projectId]/index.tsx
+++ b/web/src/pages/project/[projectId]/index.tsx
@@ -9,9 +9,6 @@ import { TracesAndObservationsTimeSeriesChart } from "@/src/features/dashboard/c
import { UserChart } from "@/src/features/dashboard/components/UserChart";
import { TimeRangePicker } from "@/src/components/date-picker";
import { useDashboardFilterOptions } from "@/src/hooks/useDashboardFilterOptions";
-import { FeedbackButtonWrapper } from "@/src/features/feedback/component/FeedbackButton";
-import { BarChart2 } from "lucide-react";
-import { Button } from "@/src/components/ui/button";
import { PopoverFilterBuilder } from "@/src/features/filters/components/filter-builder";
import { type ColumnDefinition, type FilterState } from "@langfuse/shared";
import { useQueryFilterState } from "@/src/features/filters/hooks/useFilterState";
@@ -27,7 +24,6 @@ import { useDashboardDateRange } from "@/src/hooks/useDashboardDateRange";
import { useDebounce } from "@/src/hooks/useDebounce";
import { ScoreAnalytics } from "@/src/features/dashboard/components/score-analytics/ScoreAnalytics";
import SetupTracingButton from "@/src/features/setup/components/SetupTracingButton";
-import { useUiCustomization } from "@/src/ee/features/ui-customization/useUiCustomization";
import { useEntitlementLimit } from "@/src/features/entitlements/hooks";
import Page from "@/src/components/layouts/page";
import { MultiSelect } from "@/src/features/filters/components/multi-select";
@@ -70,7 +66,6 @@ export default function Dashboard() {
[timeRange],
);
- const uiCustomization = useUiCustomization();
const lookbackLimit = useEntitlementLimit("data-access-days");
const [userFilterState, setUserFilterState] = useQueryFilterState(
@@ -242,27 +237,6 @@ export default function Dashboard() {
),
actionButtonsRight: (
<>
- {uiCustomization?.feedbackHref === undefined && (
- <FeedbackButtonWrapper
- title="Request Chart"
- description="Your feedback matters! Let the Langfuse team know what additional data or metrics you'd like to see in your dashboard."
- className="hidden lg:flex"
- >
- <Button
- id="date"
- variant={"outline"}
- className={
- "text-primary hover:bg-primary-foreground hover:text-primary-accent group justify-start gap-x-3 text-left font-semibold"
- }
- >
- <BarChart2
- className="text-primary group-hover:text-primary-accent hidden h-6 w-6 shrink-0 lg:block"
- aria-hidden="true"
- />
- Request Chart
- </Button>
- </FeedbackButtonWrapper>
- )}
<SetupTracingButton />
</>
),