Skip to content

Commit b1d9d3e

Browse files
committed
Merge branch 'frontend-feat/new-testsets-integration' of github.com:Agenta-AI/agenta into frontend-feat/new-testsets-integration
2 parents 7a49469 + fa73ef5 commit b1d9d3e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

web/oss/src/components/TestcasesTableNew/components/TestcasesTableShell.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {useCallback, useMemo, useState} from "react"
33
import {MoreOutlined, PlusOutlined} from "@ant-design/icons"
44
import {CaretDown, CaretRight, Copy, PencilSimple, Trash} from "@phosphor-icons/react"
55
import {Button, Dropdown, Input, Skeleton, Tooltip} from "antd"
6+
import type {MenuProps} from "antd"
67
import type {ColumnType, ColumnsType} from "antd/es/table"
78
import clsx from "clsx"
89
import {useAtomValue} from "jotai"
@@ -40,6 +41,7 @@ export interface TestcasesTableShellProps {
4041
size: "small" | "medium" | "large"
4142
heightPx: number
4243
maxLines: number
44+
menuItems: MenuProps["items"]
4345
}
4446
selectedRowKeys: React.Key[]
4547
onSelectedRowKeysChange: (keys: React.Key[]) => void
@@ -632,6 +634,7 @@ export function TestcasesTableShell(props: TestcasesTableShellProps) {
632634
tableProps={tableProps}
633635
rowSelection={rowSelection}
634636
useSettingsDropdown={!hideControls}
637+
settingsDropdownMenuItems={hideControls ? undefined : rowHeight.menuItems}
635638
store={globalStore}
636639
/>
637640
)

web/oss/src/services/testsets/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export async function cloneTestset(sourceTestsetId: string, newName: string) {
171171
const baseSlug = newName.toLowerCase().replace(/\s+/g, "_")
172172

173173
const response = await axios.post(
174-
`${getAgentaApiUrl()}/preview/simple/testsets?project_id=${projectId}`,
174+
`${getAgentaApiUrl()}/preview/simple/testsets/?project_id=${projectId}`,
175175
{
176176
testset: {
177177
slug: baseSlug,

0 commit comments

Comments
 (0)