Skip to content

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

refactor(web): Enable `react/jsx-curly-brace-presence` (#14803)

Ben Bachem9f777a0ae11f
diff --git a/packages/config-eslint/next.js b/packages/config-eslint/next.js
index 6d79f80eaf..78528b1b6a 100644
--- a/packages/config-eslint/next.js
+++ b/packages/config-eslint/next.js
@@ -75,6 +75,14 @@ export default [
},
],
"@typescript-eslint/no-deprecated": "warn",
+ "react/jsx-curly-brace-presence": [
+ "warn",
+ {
+ props: "never",
+ children: "ignore",
+ propElementValues: "always",
+ },
+ ],
"react/jsx-key": ["error", { warnOnDuplicates: true }],
"react/no-unused-prop-types": "warn",
},
diff --git a/web/src/components/ModelParameters/index.tsx b/web/src/components/ModelParameters/index.tsx
index 477ec08672..24096d8a85 100644
--- a/web/src/components/ModelParameters/index.tsx
+++ b/web/src/components/ModelParameters/index.tsx
@@ -578,7 +578,7 @@ const ProviderOptionsInput = ({
<div className="flex flex-row space-x-3">
{setModelParamEnabled ? (
<Switch
- title={`Control sending the additional options parameter`}
+ title="Control sending the additional options parameter"
disabled={formDisabled}
checked={enabled}
onCheckedChange={(checked) => {
diff --git a/web/src/components/date-picker.tsx b/web/src/components/date-picker.tsx
index 39ff4e14dc..0d6762be78 100644
--- a/web/src/components/date-picker.tsx
+++ b/web/src/components/date-picker.tsx
@@ -47,7 +47,7 @@ export function DatePicker({
<Popover>
<PopoverTrigger asChild>
<Button
- variant={"outline"}
+ variant="outline"
disabled={disabled}
className={cn(
"justify-start text-left font-normal",
@@ -228,7 +228,7 @@ export function DatePickerWithRange({
<PopoverTrigger asChild>
<Button
id="date"
- variant={"outline"}
+ variant="outline"
className={cn(
"w-[330px] justify-start text-left font-normal",
!internalDateRange && "text-muted-foreground",
diff --git a/web/src/components/layouts/doc-popup.tsx b/web/src/components/layouts/doc-popup.tsx
index 965241b1c7..899139f681 100644
--- a/web/src/components/layouts/doc-popup.tsx
+++ b/web/src/components/layouts/doc-popup.tsx
@@ -50,7 +50,7 @@ export default function DocPopup({
});
}}
>
- <Info className={"h-3 w-3"} />
+ <Info className="h-3 w-3" />
</div>
</HoverCardTrigger>
<HoverCardPortal>
diff --git a/web/src/components/layouts/page.tsx b/web/src/components/layouts/page.tsx
index db4ee7ac7d..6617bbec19 100644
--- a/web/src/components/layouts/page.tsx
+++ b/web/src/components/layouts/page.tsx
@@ -25,7 +25,7 @@ const Page = ({
id="page"
>
<header className="sticky top-0 z-50 w-full">
- <PageHeader {...headerProps} container={false} className={"top-0"} />
+ <PageHeader {...headerProps} container={false} className="top-0" />
</header>
<main
className={cn(
diff --git a/web/src/components/table/use-cases/models.tsx b/web/src/components/table/use-cases/models.tsx
index b75b2cffe0..e9812b73d8 100644
--- a/web/src/components/table/use-cases/models.tsx
+++ b/web/src/components/table/use-cases/models.tsx
@@ -334,7 +334,7 @@ export default function ModelTable({ projectId }: { projectId: string }) {
/>
<SettingsTableCard className="max-h-[75dvh]">
<DataTable
- tableName={"models"}
+ tableName="models"
columns={columns}
data={
models.isPending
diff --git a/web/src/components/table/use-cases/observations.tsx b/web/src/components/table/use-cases/observations.tsx
index 809e0e296d..dbe33da797 100644
--- a/web/src/components/table/use-cases/observations.tsx
+++ b/web/src/components/table/use-cases/observations.tsx
@@ -1448,7 +1448,7 @@ export default function ObservationsTable({
<div className="flex flex-1 flex-col overflow-hidden">
<DataTable
- tableName={"observations"}
+ tableName="observations"
columns={columns}
peekView={peekConfig}
selectionStore={observationsTableStore}
diff --git a/web/src/components/table/use-cases/score-configs.tsx b/web/src/components/table/use-cases/score-configs.tsx
index 9bd4609e81..2a535408be 100644
--- a/web/src/components/table/use-cases/score-configs.tsx
+++ b/web/src/components/table/use-cases/score-configs.tsx
@@ -244,7 +244,7 @@ export function ScoreConfigsTable({ projectId }: { projectId: string }) {
/>
<SettingsTableCard>
<DataTable
- tableName={"scoreConfigs"}
+ tableName="scoreConfigs"
columns={columns}
data={
configs.isPending
diff --git a/web/src/components/table/use-cases/scores.tsx b/web/src/components/table/use-cases/scores.tsx
index 99efa1c21f..f15bb99a91 100644
--- a/web/src/components/table/use-cases/scores.tsx
+++ b/web/src/components/table/use-cases/scores.tsx
@@ -983,7 +983,7 @@ export default function ScoresTable({
<div className="flex flex-1 flex-col overflow-hidden">
<DataTable
- tableName={"scores"}
+ tableName="scores"
columns={columns}
noResultsMessage={
<div className="flex flex-col items-center">
diff --git a/web/src/components/table/use-cases/sessions.tsx b/web/src/components/table/use-cases/sessions.tsx
index 88773a2346..9517e00245 100644
--- a/web/src/components/table/use-cases/sessions.tsx
+++ b/web/src/components/table/use-cases/sessions.tsx
@@ -881,7 +881,7 @@ export default function SessionsTable({
<div className="flex flex-1 flex-col overflow-hidden">
<DataTable
- tableName={"sessions"}
+ tableName="sessions"
columns={columns}
data={
sessions.isPending || isViewLoading
diff --git a/web/src/components/table/use-cases/traces.tsx b/web/src/components/table/use-cases/traces.tsx
index fbef422807..dc6fc06ca4 100644
--- a/web/src/components/table/use-cases/traces.tsx
+++ b/web/src/components/table/use-cases/traces.tsx
@@ -1537,7 +1537,7 @@ export default function TracesTable({
onColumnOrderChange={setColumnOrder}
rowHeight={rowHeight}
peekView={peekConfig}
- tableName={"traces"}
+ tableName="traces"
/>
</div>
</ResizableFilterLayout>
diff --git a/web/src/components/trace/components/IOPreview/components/CorrectedOutputField.tsx b/web/src/components/trace/components/IOPreview/components/CorrectedOutputField.tsx
index 458738699a..9265cf4bdb 100644
--- a/web/src/components/trace/components/IOPreview/components/CorrectedOutputField.tsx
+++ b/web/src/components/trace/components/IOPreview/components/CorrectedOutputField.tsx
@@ -222,7 +222,7 @@ export function CorrectedOutputField({
variant="ghost"
onClick={() => setIsDiffDialogOpen(true)}
className="hover:bg-border"
- title={"View diff between original and corrected output"}
+ title="View diff between original and corrected output"
>
<FileDiff className="h-3 w-3" />
</Button>
diff --git a/web/src/components/ui/sonner.tsx b/web/src/components/ui/sonner.tsx
index 2471ecc039..b908f21106 100644
--- a/web/src/components/ui/sonner.tsx
+++ b/web/src/components/ui/sonner.tsx
@@ -7,7 +7,7 @@ type ToasterProps = React.ComponentProps<typeof Sonner>;
const Toaster = ({ ...props }: ToasterProps) => {
return (
<Sonner
- theme={"light"}
+ theme="light"
className="toaster group"
position="top-right"
toastOptions={{
diff --git a/web/src/components/ui/time-icon.tsx b/web/src/components/ui/time-icon.tsx
index 9fb2519707..b37ddac672 100644
--- a/web/src/components/ui/time-icon.tsx
+++ b/web/src/components/ui/time-icon.tsx
@@ -10,11 +10,11 @@ const isMidnight = (date: Date) =>
const getIconForPeriod = (period: Period) => {
const icons = {
- PM: <Sun className={"size-5"} />,
- AM: <Moon className={"size-5"} />,
+ PM: <Sun className="size-5" />,
+ AM: <Moon className="size-5" />,
};
- return icons[period] || <Clock className={"size-5"} />;
+ return icons[period] || <Clock className="size-5" />;
};
export const TimeIcon: React.FC<{ time: Date | Period }> = ({ time }) => {
diff --git a/web/src/components/ui/time-picker.tsx b/web/src/components/ui/time-picker.tsx
index 274b184f80..439e4b14f6 100644
--- a/web/src/components/ui/time-picker.tsx
+++ b/web/src/components/ui/time-picker.tsx
@@ -58,7 +58,7 @@ export function TimePicker({ date, setDate, className }: TimePickerProps) {
onRightFocus={() => minuteRef.current?.focus()}
/>
</div>
- {":"}
+ :
<div className="grid gap-1 text-center">
<TimePickerInput
picker="minutes"
@@ -70,7 +70,7 @@ export function TimePicker({ date, setDate, className }: TimePickerProps) {
onRightFocus={() => secondRef.current?.focus()}
/>
</div>
- {":"}
+ :
<div className="grid gap-1">
<TimePickerInput
picker="seconds"
diff --git a/web/src/ee/features/billing/components/BillingActionButtons.tsx b/web/src/ee/features/billing/components/BillingActionButtons.tsx
index 3281877a90..5f911ec0e7 100644
--- a/web/src/ee/features/billing/components/BillingActionButtons.tsx
+++ b/web/src/ee/features/billing/components/BillingActionButtons.tsx
@@ -33,7 +33,7 @@ export const BillingActionButtons = () => {
Change plan (via support)
</Button>
<Button variant="secondary" asChild>
- <Link href={"https://langfuse.com/pricing"} target="_blank">
+ <Link href="https://langfuse.com/pricing" target="_blank">
Compare plans
</Link>
</Button>
@@ -61,7 +61,7 @@ export const BillingActionButtons = () => {
</>
)}
<Button variant="secondary" asChild>
- <Link href={"https://langfuse.com/pricing"} target="_blank">
+ <Link href="https://langfuse.com/pricing" target="_blank">
Compare plans
</Link>
</Button>
diff --git a/web/src/ee/features/billing/components/BillingInvoiceTable.tsx b/web/src/ee/features/billing/components/BillingInvoiceTable.tsx
index d750769e6e..766b8c917c 100644
--- a/web/src/ee/features/billing/components/BillingInvoiceTable.tsx
+++ b/web/src/ee/features/billing/components/BillingInvoiceTable.tsx
@@ -286,7 +286,7 @@ export function BillingInvoiceTable() {
</div>
<DataTableToolbar columns={columns} />
<DataTable
- tableName={"invoices"}
+ tableName="invoices"
columns={columns}
data={data}
pagination={{
diff --git a/web/src/ee/features/billing/components/SpendAlerts/SpendAlertsTable.tsx b/web/src/ee/features/billing/components/SpendAlerts/SpendAlertsTable.tsx
index f768a1ebf0..80f717ed01 100644
--- a/web/src/ee/features/billing/components/SpendAlerts/SpendAlertsTable.tsx
+++ b/web/src/ee/features/billing/components/SpendAlerts/SpendAlertsTable.tsx
@@ -143,7 +143,7 @@ export function SpendAlertsTable({ orgId }: SpendAlertsTableProps) {
return (
<>
<DataTableToolbar columns={columns} />
- <DataTable tableName={"spend-alerts"} columns={columns} data={data} />
+ <DataTable tableName="spend-alerts" columns={columns} data={data} />
{editingAlert && editingAlertData && (
<SpendAlertDialog
diff --git a/web/src/features/annotation-queues/components/AnnotationQueueItemsTable.tsx b/web/src/features/annotation-queues/components/AnnotationQueueItemsTable.tsx
index 8056265f20..f7cfa12e62 100644
--- a/web/src/features/annotation-queues/components/AnnotationQueueItemsTable.tsx
+++ b/web/src/features/annotation-queues/components/AnnotationQueueItemsTable.tsx
@@ -446,7 +446,7 @@ export function AnnotationQueueItemsTable({
]}
/>
<DataTable
- tableName={"annotationQueueItems"}
+ tableName="annotationQueueItems"
columns={columns}
data={
items.isLoading
diff --git a/web/src/features/annotation-queues/components/AnnotationQueuesTable.tsx b/web/src/features/annotation-queues/components/AnnotationQueuesTable.tsx
index 52cfce9a6c..1212404b3b 100644
--- a/web/src/features/annotation-queues/components/AnnotationQueuesTable.tsx
+++ b/web/src/features/annotation-queues/components/AnnotationQueuesTable.tsx
@@ -227,7 +227,7 @@ export function AnnotationQueuesTable({ projectId }: { projectId: string }) {
setRowHeight={setRowHeight}
/>
<DataTable
- tableName={"annotationQueues"}
+ tableName="annotationQueues"
columns={columns}
data={
queues.isLoading
diff --git a/web/src/features/automations/components/AutomationButton.tsx b/web/src/features/automations/components/AutomationButton.tsx
index 65fc28e11f..087bf350d6 100644
--- a/web/src/features/automations/components/AutomationButton.tsx
+++ b/web/src/features/automations/components/AutomationButton.tsx
@@ -25,11 +25,7 @@ export const AutomationButton = ({
<Spinner size="xxs" />
</span>
) : (
- <span
- className={
- "bg-input ml-1.5 inline-flex w-6 items-center justify-center rounded-sm px-1 text-xs shadow-xs @6xl:inline"
- }
- >
+ <span className="bg-input ml-1.5 inline-flex w-6 items-center justify-center rounded-sm px-1 text-xs shadow-xs @6xl:inline">
{numberOfAutomations.data}
</span>
);
diff --git a/web/src/features/automations/components/AutomationExecutionsTable.tsx b/web/src/features/automations/components/AutomationExecutionsTable.tsx
index f7f2ddc785..b8de0c03b8 100644
--- a/web/src/features/automations/components/AutomationExecutionsTable.tsx
+++ b/web/src/features/automations/components/AutomationExecutionsTable.tsx
@@ -158,7 +158,7 @@ export const AutomationExecutionsTable: React.FC<
setRowHeight={setRowHeight}
/>
<DataTable
- tableName={"automationExecutions"}
+ tableName="automationExecutions"
columns={columns}
data={{
isLoading,
diff --git a/web/src/features/automations/components/AutomationSidebar.tsx b/web/src/features/automations/components/AutomationSidebar.tsx
index b885f4a854..717b8ade02 100644
--- a/web/src/features/automations/components/AutomationSidebar.tsx
+++ b/web/src/features/automations/components/AutomationSidebar.tsx
@@ -88,9 +88,9 @@ export const AutomationSidebar: React.FC<AutomationSidebarProps> = ({
{automation.name}
</h4>
{automation.trigger.status === JobConfigState.ACTIVE ? (
- <StatusBadge type={"active"} />
+ <StatusBadge type="active" />
) : (
- <StatusBadge type={"inactive"} />
+ <StatusBadge type="inactive" />
)}
</div>
diff --git a/web/src/features/background-migrations/components/background-migrations.tsx b/web/src/features/background-migrations/components/background-migrations.tsx
index de03d8bd0f..c0f684401e 100644
--- a/web/src/features/background-migrations/components/background-migrations.tsx
+++ b/web/src/features/background-migrations/components/background-migrations.tsx
@@ -38,18 +38,18 @@ export default function BackgroundMigrationsTable() {
cell: (row) => {
const failedAt = row.row.original.failedAt;
if (failedAt) {
- return <StatusBadge type={"failed"} className="capitalize" />;
+ return <StatusBadge type="failed" className="capitalize" />;
}
const finishedAt = row.row.original.finishedAt;
if (finishedAt) {
- return <StatusBadge type={"finished"} className="capitalize" />;
+ return <StatusBadge type="finished" className="capitalize" />;
}
const workerId = row.row.original.workerId;
if (workerId) {
- return <StatusBadge type={"active"} className="capitalize" />;
+ return <StatusBadge type="active" className="capitalize" />;
}
- return <StatusBadge type={"queued"} className="capitalize" />;
+ return <StatusBadge type="queued" className="capitalize" />;
},
},
{
@@ -90,7 +90,7 @@ export default function BackgroundMigrationsTable() {
>
<DataTableToolbar columns={columns} />
<DataTable
- tableName={"backgroundMigrations"}
+ tableName="backgroundMigrations"
columns={columns}
data={
backgroundMigrations.isPending
diff --git a/web/src/features/background-migrations/components/retry-background-migration.tsx b/web/src/features/background-migrations/components/retry-background-migration.tsx
index b8413d9e6c..583653fe46 100644
--- a/web/src/features/background-migrations/components/retry-background-migration.tsx
+++ b/web/src/features/background-migrations/components/retry-background-migration.tsx
@@ -96,7 +96,7 @@ export function RetryBackgroundMigration({
>
Docs
</a>
- {")."}
+ ).
</p>
</div>
diff --git a/web/src/features/batch-actions/components/BatchActionsTable.tsx b/web/src/features/batch-actions/components/BatchActionsTable.tsx
index 7276ff2619..a613e32147 100644
--- a/web/src/features/batch-actions/components/BatchActionsTable.tsx
+++ b/web/src/features/batch-actions/components/BatchActionsTable.tsx
@@ -186,7 +186,7 @@ export function BatchActionsTable(props: { projectId: string }) {
return (
<DataTable
- tableName={"batchActions"}
+ tableName="batchActions"
columns={columns}
data={
batchActions.isPending
diff --git a/web/src/features/batch-exports/components/BatchExportsTable.tsx b/web/src/features/batch-exports/components/BatchExportsTable.tsx
index 8032ec6d66..8189b2fd3a 100644
--- a/web/src/features/batch-exports/components/BatchExportsTable.tsx
+++ b/web/src/features/batch-exports/components/BatchExportsTable.tsx
@@ -225,7 +225,7 @@ export function BatchExportsTable(props: { projectId: string }) {
return (
<>
<DataTable
- tableName={"batchExports"}
+ tableName="batchExports"
columns={columns}
data={
batchExports.isPending
diff --git a/web/src/features/dashboard/components/DashboardTable.tsx b/web/src/features/dashboard/components/DashboardTable.tsx
index bb4d3b7f33..89e16f41e2 100644
--- a/web/src/features/dashboard/components/DashboardTable.tsx
+++ b/web/src/features/dashboard/components/DashboardTable.tsx
@@ -283,7 +283,7 @@ export function DashboardTable() {
return (
<DataTable
- tableName={"dashboards"}
+ tableName="dashboards"
columns={dashboardColumns}
data={
dashboards.isPending
diff --git a/web/src/features/dashboard/components/ScoresTable.tsx b/web/src/features/dashboard/components/ScoresTable.tsx
index f5986f85fe..d306c06540 100644
--- a/web/src/features/dashboard/components/ScoresTable.tsx
+++ b/web/src/features/dashboard/components/ScoresTable.tsx
@@ -146,7 +146,7 @@ export const ScoresTable = ({
if (!zeroValueScores || !oneValueScores) {
return (
- <DashboardCard title={"Scores"} isLoading={false}>
+ <DashboardCard title="Scores" isLoading={false}>
<NoDataOrLoading isLoading={false} />
</DashboardCard>
);
diff --git a/web/src/features/dashboard/components/TracesBarListChart.tsx b/web/src/features/dashboard/components/TracesBarListChart.tsx
index 267a35ee93..0250eaff40 100644
--- a/web/src/features/dashboard/components/TracesBarListChart.tsx
+++ b/web/src/features/dashboard/components/TracesBarListChart.tsx
@@ -120,7 +120,7 @@ export const TracesBarListChart = ({
return (
<DashboardCard
className={className}
- title={"Traces"}
+ title="Traces"
description={null}
isLoading={isLoading || traces.isPending || totalTraces.isPending}
>
@@ -131,7 +131,7 @@ export const TracesBarListChart = ({
? Number(totalTraces.data[0][countField])
: 0,
)}
- description={"Total traces tracked"}
+ description="Total traces tracked"
/>
{adjustedData.length > 0 ? (
<div
diff --git a/web/src/features/dashboard/components/score-analytics/ScoreAnalytics.tsx b/web/src/features/dashboard/components/score-analytics/ScoreAnalytics.tsx
index 788b246cf8..22ea63fd1b 100644
--- a/web/src/features/dashboard/components/score-analytics/ScoreAnalytics.tsx
+++ b/web/src/features/dashboard/components/score-analytics/ScoreAnalytics.tsx
@@ -69,7 +69,7 @@ export function ScoreAnalytics(props: {
title="Scores Analytics"
description="Aggregate scores and averages over time"
isLoading={props.isLoading || scoreKeysAndProps.isPending}
- headerClassName={"grid grid-cols-[1fr_auto_auto] items-center"}
+ headerClassName="grid grid-cols-[1fr_auto_auto] items-center"
headerChildren={
!scoreKeysAndProps.isPending &&
!props.isLoading &&
diff --git a/web/src/features/datasets/components/DatasetAggregateTableCell.tsx b/web/src/features/datasets/components/DatasetAggregateTableCell.tsx
index c404da7b39..d2cfd6cb6a 100644
--- a/web/src/features/datasets/components/DatasetAggregateTableCell.tsx
+++ b/web/src/features/datasets/components/DatasetAggregateTableCell.tsx
@@ -159,7 +159,7 @@ const DatasetAggregateCellContent = ({
<MemoizedIOTableCell
isLoading={isLoading || !data}
data={data?.output ?? "null"}
- className={"bg-accent-light-green min-h-8"}
+ className="bg-accent-light-green min-h-8"
singleLine={false}
enableExpandOnHover
/>
diff --git a/web/src/features/datasets/components/DatasetCompareRunsTable.tsx b/web/src/features/datasets/components/DatasetCompareRunsTable.tsx
index 1c04082f82..6595f2a6cd 100644
--- a/web/src/features/datasets/components/DatasetCompareRunsTable.tsx
+++ b/web/src/features/datasets/components/DatasetCompareRunsTable.tsx
@@ -268,7 +268,7 @@ function DatasetCompareRunsTableInternal(props: {
className="px-2 pb-2"
/>
<DataTable
- tableName={"datasetCompareRuns"}
+ tableName="datasetCompareRuns"
columns={columns}
columnVisibility={columnVisibility}
onColumnVisibilityChange={setColumnVisibility}
diff --git a/web/src/features/datasets/components/DatasetItemsTable.tsx b/web/src/features/datasets/components/DatasetItemsTable.tsx
index f749b50d28..d54902e2b9 100644
--- a/web/src/features/datasets/components/DatasetItemsTable.tsx
+++ b/web/src/features/datasets/components/DatasetItemsTable.tsx
@@ -417,7 +417,7 @@ export function DatasetItemsTable({
}}
/>
<DataTable
- tableName={"datasetItems"}
+ tableName="datasetItems"
columns={columns}
data={
items.isPending
diff --git a/web/src/features/datasets/components/DatasetRunItemsByItemTable.tsx b/web/src/features/datasets/components/DatasetRunItemsByItemTable.tsx
index f2a9a95431..e18864288c 100644
--- a/web/src/features/datasets/components/DatasetRunItemsByItemTable.tsx
+++ b/web/src/features/datasets/components/DatasetRunItemsByItemTable.tsx
@@ -243,7 +243,7 @@ export function DatasetRunItemsByItemTable(props: {
setRowHeight={setRowHeight}
/>
<DataTable
- tableName={"datasetRunItems"}
+ tableName="datasetRunItems"
columns={columns}
data={
runItems.isLoading
diff --git a/web/src/features/datasets/components/DatasetRunItemsByRunTable.tsx b/web/src/features/datasets/components/DatasetRunItemsByRunTable.tsx
index 63a9e2bb33..3f9ec16446 100644
--- a/web/src/features/datasets/components/DatasetRunItemsByRunTable.tsx
+++ b/web/src/features/datasets/components/DatasetRunItemsByRunTable.tsx
@@ -290,7 +290,7 @@ export function DatasetRunItemsByRunTable(props: {
setRowHeight={setRowHeight}
/>
<DataTable
- tableName={"datasetRunItems"}
+ tableName="datasetRunItems"
columns={columns}
data={
runItems.isLoading
diff --git a/web/src/features/datasets/components/DatasetRunsTable.tsx b/web/src/features/datasets/components/DatasetRunsTable.tsx
index 9b61fb222b..f92694d8f5 100644
--- a/web/src/features/datasets/components/DatasetRunsTable.tsx
+++ b/web/src/features/datasets/components/DatasetRunsTable.tsx
@@ -738,7 +738,7 @@ export function DatasetRunsTable(props: {
]}
/>
<DataTable
- tableName={"datasetRuns"}
+ tableName="datasetRuns"
columns={columns}
data={
runs.isPending
@@ -802,7 +802,7 @@ export function DatasetRunsTable(props: {
]}
/>
<DataTable
- tableName={"datasetRuns"}
+ tableName="datasetRuns"
columns={columns}
data={
runs.isPending
diff --git a/web/src/features/datasets/components/DatasetsTable.tsx b/web/src/features/datasets/components/DatasetsTable.tsx
index df7b14297a..a569ada585 100644
--- a/web/src/features/datasets/components/DatasetsTable.tsx
+++ b/web/src/features/datasets/components/DatasetsTable.tsx
@@ -597,7 +597,7 @@ export function DatasetsTable(props: { projectId: string }) {
viewControllers={viewControllers}
/>
<DataTable
- tableName={"datasets"}
+ tableName="datasets"
columns={columns}
selectionStore={datasetsTableStore}
highlightAllRows={selectAll}
diff --git a/web/src/features/evals/components/eval-log.tsx b/web/src/features/evals/components/eval-log.tsx
index 62df65d15c..8bf849b766 100644
--- a/web/src/features/evals/components/eval-log.tsx
+++ b/web/src/features/evals/components/eval-log.tsx
@@ -283,7 +283,7 @@ export default function EvalLogTable({
<div className="flex flex-1 flex-col overflow-hidden">
<DataTable
- tableName={"evalLogs"}
+ tableName="evalLogs"
columns={columns}
data={
logs.isLoading
diff --git a/web/src/features/evals/components/eval-templates-table.tsx b/web/src/features/evals/components/eval-templates-table.tsx
index 8cfd525654..1a4e4352bf 100644
--- a/web/src/features/evals/components/eval-templates-table.tsx
+++ b/web/src/features/evals/components/eval-templates-table.tsx
@@ -560,7 +560,7 @@ export default function EvalsTemplateTable({
/>
<div className="flex flex-1 flex-col overflow-hidden">
<DataTable
- tableName={"evalTemplates"}
+ tableName="evalTemplates"
columns={columns}
peekView={peekConfig}
// "s" vertically centers cell content; the custom heights keep the
diff --git a/web/src/features/evals/components/evaluator-table.tsx b/web/src/features/evals/components/evaluator-table.tsx
index 0f75f77e44..9c1b2e29a4 100644
--- a/web/src/features/evals/components/evaluator-table.tsx
+++ b/web/src/features/evals/components/evaluator-table.tsx
@@ -483,7 +483,7 @@ export default function EvaluatorTable({ projectId }: { projectId: string }) {
<div className="flex flex-1 flex-col overflow-hidden">
<DataTable
- tableName={"evalConfigs"}
+ tableName="evalConfigs"
columns={columns}
peekView={peekConfig}
data={
diff --git a/web/src/features/evals/components/variable-mapping-card.tsx b/web/src/features/evals/components/variable-mapping-card.tsx
index 627c293fd2..cc556c3266 100644
--- a/web/src/features/evals/components/variable-mapping-card.tsx
+++ b/web/src/features/evals/components/variable-mapping-card.tsx
@@ -291,7 +291,7 @@ export const VariableMappingCard = ({
)
) : (
<JSONView
- title={"Evaluation Prompt"}
+ title="Evaluation Prompt"
json={evalTemplate.prompt ?? null}
className={cn(
"bg-muted/50 min-h-48",
@@ -334,12 +334,8 @@ export const VariableMappingCard = ({
{mappingField.templateVariable}
{"}}"}
<DocPopup
- description={
- "Variable in the template to be replaced with the mapped data."
- }
- href={
- "https://langfuse.com/docs/evaluation/evaluation-methods/llm-as-a-judge"
- }
+ description="Variable in the template to be replaced with the mapped data."
+ href="https://langfuse.com/docs/evaluation/evaluation-methods/llm-as-a-judge"
/>
</div>
<FormField
@@ -350,12 +346,8 @@ export const VariableMappingCard = ({
<div className="flex items-center gap-2">
<VariableMappingDescription
title="Object"
- description={
- "Langfuse object to retrieve the data from."
- }
- href={
- "https://langfuse.com/docs/evaluation/evaluation-methods/llm-as-a-judge"
- }
+ description="Langfuse object to retrieve the data from."
+ href="https://langfuse.com/docs/evaluation/evaluation-methods/llm-as-a-judge"
/>
<FormItem className="w-2/3">
<FormControl>
@@ -414,13 +406,9 @@ export const VariableMappingCard = ({
return (
<div className="flex items-center gap-2">
<VariableMappingDescription
- title={"Object Name"}
- description={
- "Name of the Langfuse object to retrieve the data from."
- }
- href={
- "https://langfuse.com/docs/evaluation/evaluation-methods/llm-as-a-judge"
- }
+ title="Object Name"
+ description="Name of the Langfuse object to retrieve the data from."
+ href="https://langfuse.com/docs/evaluation/evaluation-methods/llm-as-a-judge"
/>
<FormItem className="w-2/3">
<FormControl>
@@ -514,13 +502,9 @@ export const VariableMappingCard = ({
render={({ field }) => (
<div className="flex items-center gap-2">
<VariableMappingDescription
- title={"Object Field"}
- description={
- "Field on the Langfuse object to insert into the template."
- }
- href={
- "https://langfuse.com/docs/evaluation/evaluation-methods/llm-as-a-judge"
- }
+ title="Object Field"
+ description="Field on the Langfuse object to insert into the template."
+ href="https://langfuse.com/docs/evaluation/evaluation-methods/llm-as-a-judge"
/>
<FormItem className="w-2/3">
<FormControl>
@@ -582,13 +566,9 @@ export const VariableMappingCard = ({
render={({ field }) => (
<div className="flex items-center gap-2">
<VariableMappingDescription
- title={"JsonPath"}
- description={
- "Optional selection: Use JsonPath syntax to select from a JSON object stored on a trace. If not selected, we will pass the entire object into the prompt."
- }
- href={
- "https://langfuse.com/docs/evaluation/evaluation-methods/llm-as-a-judge"
- }
+ title="JsonPath"
+ description="Optional selection: Use JsonPath syntax to select from a JSON object stored on a trace. If not selected, we will pass the entire object into the prompt."
+ href="https://langfuse.com/docs/evaluation/evaluation-methods/llm-as-a-judge"
/>
<FormItem className="w-2/3">
<FormControl>
@@ -620,12 +600,8 @@ export const VariableMappingCard = ({
{mappingField.templateVariable}
{"}}"}
<DocPopup
- description={
- "Variable in the template to be replaced with the mapped data."
- }
- href={
- "https://langfuse.com/docs/evaluation/evaluation-methods/llm-as-a-judge"
- }
+ description="Variable in the template to be replaced with the mapped data."
+ href="https://langfuse.com/docs/evaluation/evaluation-methods/llm-as-a-judge"
/>
</div>
{hideAdvancedSettings && (
@@ -662,13 +638,9 @@ export const VariableMappingCard = ({
return (
<div className="flex items-center gap-2">
<VariableMappingDescription
- title={"Object Field"}
- description={
- "Observation field to insert into the template."
- }
- href={
- "https://langfuse.com/docs/evaluation/evaluation-methods/llm-as-a-judge"
- }
+ title="Object Field"
+ description="Observation field to insert into the template."
+ href="https://langfuse.com/docs/evaluation/evaluation-methods/llm-as-a-judge"
/>
<FormItem className="w-2/3">
<FormControl>
@@ -708,13 +680,9 @@ export const VariableMappingCard = ({
render={({ field }) => (
<div className="flex items-center gap-2">
<VariableMappingDescription
- title={"JsonPath"}
- description={
- "Optional selection: Use JsonPath syntax to select from a JSON object. If not selected, we will pass the entire object into the prompt."
- }
- href={
- "https://langfuse.com/docs/evaluation/evaluation-methods/llm-as-a-judge"
- }
+ title="JsonPath"
+ description="Optional selection: Use JsonPath syntax to select from a JSON object. If not selected, we will pass the entire object into the prompt."
+ href="https://langfuse.com/docs/evaluation/evaluation-methods/llm-as-a-judge"
/>
<FormItem className="w-2/3">
<FormControl>
diff --git a/web/src/features/events/components/EventsTable.tsx b/web/src/features/events/components/EventsTable.tsx
index ffa81c3e92..f6ffd7aee6 100644
--- a/web/src/features/events/components/EventsTable.tsx
+++ b/web/src/features/events/components/EventsTable.tsx
@@ -1719,7 +1719,7 @@ export default function ObservationsEventsTable({
<div className="flex flex-1 flex-col overflow-hidden">
<DataTable
key={`observations-table-${dataUpdatedAt}-${rows.length > 0 && rows[0]?.input ? "with-io" : "without-io"}`}
- tableName={"observations"}
+ tableName="observations"
columns={columns}
peekView={peekConfig}
data={
diff --git a/web/src/features/experiments/components/table/ExperimentCompareTable.tsx b/web/src/features/experiments/components/table/ExperimentCompareTable.tsx
index ea2e027483..ad7bee7cff 100644
--- a/web/src/features/experiments/components/table/ExperimentCompareTable.tsx
+++ b/web/src/features/experiments/components/table/ExperimentCompareTable.tsx
@@ -72,7 +72,7 @@ export const ExperimentCompareTable = ({
return (
<DataTable
key={`experiment-items-table-${dataUpdatedAt}`}
- tableName={"experiment-items"}
+ tableName="experiment-items"
columns={columns}
peekView={peekView}
noResultsMessage={noResultsMessage}
diff --git a/web/src/features/experiments/components/table/ExperimentsTable.tsx b/web/src/features/experiments/components/table/ExperimentsTable.tsx
index b59777c175..45a81ab1f1 100644
--- a/web/src/features/experiments/components/table/ExperimentsTable.tsx
+++ b/web/src/features/experiments/components/table/ExperimentsTable.tsx
@@ -798,7 +798,7 @@ export default function ExperimentsTable({
<div className="flex flex-1 flex-col overflow-hidden">
<DataTable
key={`experiments-table-${dataUpdatedAt}`}
- tableName={"experiments"}
+ tableName="experiments"
columns={columns}
data={
experiments.status === "loading" || isViewLoading
diff --git a/web/src/features/folders/components/FolderBreadcrumbLink.tsx b/web/src/features/folders/components/FolderBreadcrumbLink.tsx
index ccf7374f27..74c0459dba 100644
--- a/web/src/features/folders/components/FolderBreadcrumbLink.tsx
+++ b/web/src/features/folders/components/FolderBreadcrumbLink.tsx
@@ -10,7 +10,7 @@ export const FolderBreadcrumbLink = ({
}) => {
return (
<TableLink
- path={""}
+ path=""
value={name} // To satisfy table-link, fallback
icon={
<div className="flex flex-row items-center gap-1">
diff --git a/web/src/features/notifications/ErrorNotification.tsx b/web/src/features/notifications/ErrorNotification.tsx
index bcce0a029d..12b48978c6 100644
--- a/web/src/features/notifications/ErrorNotification.tsx
+++ b/web/src/features/notifications/ErrorNotification.tsx
@@ -61,7 +61,7 @@ export const ErrorNotification: React.FC<ErrorNotificationProps> = ({
{isError && (
<Button
variant="errorNotification"
- size={"sm"}
+ size="sm"
onClick={() => {
capture("toast:report_issue", {
toast_type: type,
diff --git a/web/src/features/notifications/showVersionUpdateToast.tsx b/web/src/features/notifications/showVersionUpdateToast.tsx
index 5a35bdd3a0..5f76736561 100644
--- a/web/src/features/notifications/showVersionUpdateToast.tsx
+++ b/web/src/features/notifications/showVersionUpdateToast.tsx
@@ -14,7 +14,7 @@ export const showVersionUpdateToast = () => {
</div>
<Button
variant="outline"
- size={"sm"}
+ size="sm"
className="text-foreground/50"
onClick={() => {
window.location.reload();
diff --git a/web/src/features/prompts/components/prompts-table.tsx b/web/src/features/prompts/components/prompts-table.tsx
index 92901bc396..da72e9692b 100644
--- a/web/src/features/prompts/components/prompts-table.tsx
+++ b/web/src/features/prompts/components/prompts-table.tsx
@@ -445,7 +445,7 @@ export function PromptTable() {
<div className="flex flex-1 flex-col overflow-hidden">
<DataTable
- tableName={"prompts"}
+ tableName="prompts"
columns={promptColumns}
data={
prompts.isLoading
diff --git a/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx b/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
index ca636e4573..4e1c851de3 100644
--- a/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
+++ b/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
@@ -417,9 +417,9 @@ export function CreateLLMApiKeyForm({
</FormDescription>
{currentAdapter === LLMAdapter.Azure && (
<FormDescription className="text-dark-yellow">
- {
- "For Azure, the model name should be the same as the deployment name in Azure. For evals, choose a model with function calling capabilities."
- }
+ For Azure, the model name should be the same as the deployment
+ name in Azure. For evals, choose a model with function calling
+ capabilities.
</FormDescription>
)}
diff --git a/web/src/features/rbac/components/MembershipInvitesPage.tsx b/web/src/features/rbac/components/MembershipInvitesPage.tsx
index 6b775f9e1c..24c58ad06b 100644
--- a/web/src/features/rbac/components/MembershipInvitesPage.tsx
+++ b/web/src/features/rbac/components/MembershipInvitesPage.tsx
@@ -210,7 +210,7 @@ export function MembershipInvitesPage({
<Header title="Membership Invites" />
<DataTableToolbar columns={columns} />
<DataTable
- tableName={"membershipInvites"}
+ tableName="membershipInvites"
columns={columns}
data={
invites.isLoading
diff --git a/web/src/features/widgets/components/DashboardWidget.tsx b/web/src/features/widgets/components/DashboardWidget.tsx
index 394080c58b..596d836ea1 100644
--- a/web/src/features/widgets/components/DashboardWidget.tsx
+++ b/web/src/features/widgets/components/DashboardWidget.tsx
@@ -392,9 +392,7 @@ export function DashboardWidget({
if (widget.isPending) {
return (
- <div
- className={`bg-background flex items-center justify-center rounded-lg border p-4`}
- >
+ <div className="bg-background flex items-center justify-center rounded-lg border p-4">
<div className="text-muted-foreground">Loading...</div>
</div>
);
@@ -402,18 +400,14 @@ export function DashboardWidget({
if (!widget.data) {
return (
- <div
- className={`bg-background flex items-center justify-center rounded-lg border p-4`}
- >
+ <div className="bg-background flex items-center justify-center rounded-lg border p-4">
<div className="text-muted-foreground">Widget not found</div>
</div>
);
}
return (
- <div
- className={`bg-background group flex h-full w-full flex-col overflow-hidden rounded-lg border p-4`}
- >
+ <div className="bg-background group flex h-full w-full flex-col overflow-hidden rounded-lg border p-4">
<div className="flex items-center justify-between">
<span className="truncate font-medium" title={widget.data.name}>
{widget.data.name}{" "}
diff --git a/web/src/features/widgets/components/InlineWidget.tsx b/web/src/features/widgets/components/InlineWidget.tsx
index 6cdb38c052..fa15220ad7 100644
--- a/web/src/features/widgets/components/InlineWidget.tsx
+++ b/web/src/features/widgets/components/InlineWidget.tsx
@@ -384,9 +384,7 @@ export function WidgetContent({
if (isExternalLoading) {
return (
- <div
- className={`bg-background flex items-center justify-center rounded-lg border p-4`}
- >
+ <div className="bg-background flex items-center justify-center rounded-lg border p-4">
<div className="text-muted-foreground">Loading...</div>
</div>
);
diff --git a/web/src/features/widgets/components/WidgetTable.tsx b/web/src/features/widgets/components/WidgetTable.tsx
index 9e147a0164..ee01b869b1 100644
--- a/web/src/features/widgets/components/WidgetTable.tsx
+++ b/web/src/features/widgets/components/WidgetTable.tsx
@@ -290,7 +290,7 @@ export function DashboardWidgetTable() {
return (
<DataTable
- tableName={"widgets"}
+ tableName="widgets"
columns={widgetColumns}
data={
widgets.isLoading
diff --git a/web/src/pages/project/[projectId]/prompts/metrics.tsx b/web/src/pages/project/[projectId]/prompts/metrics.tsx
index 94e5a295d7..c6a6946c67 100644
--- a/web/src/pages/project/[projectId]/prompts/metrics.tsx
+++ b/web/src/pages/project/[projectId]/prompts/metrics.tsx
@@ -452,7 +452,7 @@ export default function PromptVersionTable({
/>
</div>
<DataTable
- tableName={"promptVersions"}
+ tableName="promptVersions"
columns={columns}
data={
promptVersions.isLoading
diff --git a/web/src/pages/project/[projectId]/users/index.tsx b/web/src/pages/project/[projectId]/users/index.tsx
index f551c78f52..4966ebcc24 100644
--- a/web/src/pages/project/[projectId]/users/index.tsx
+++ b/web/src/pages/project/[projectId]/users/index.tsx
@@ -441,7 +441,7 @@ const UsersTable = ({ isBetaEnabled }: { isBetaEnabled: boolean }) => {
}}
/>
<DataTable
- tableName={"users"}
+ tableName="users"
columns={columns}
data={
users.isLoading