Skip to content

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

feat(tables-ui): pin columns in annotation and prompt metrics tables (#9021)

marliessophie61f4c3ac95e7
diff --git a/web/src/features/annotation-queues/components/AnnotationQueueItemsTable.tsx b/web/src/features/annotation-queues/components/AnnotationQueueItemsTable.tsx
index 26d79dbf23..30dfbbda08 100644
--- a/web/src/features/annotation-queues/components/AnnotationQueueItemsTable.tsx
+++ b/web/src/features/annotation-queues/components/AnnotationQueueItemsTable.tsx
@@ -183,6 +183,7 @@ export function AnnotationQueueItemsTable({
id: "select",
accessorKey: "select",
size: 30,
+ isPinnedLeft: true,
isFixedPosition: true,
header: ({ table }) => {
return (
diff --git a/web/src/features/annotation-queues/components/AnnotationQueuesTable.tsx b/web/src/features/annotation-queues/components/AnnotationQueuesTable.tsx
index b23187c7db..ae31435ea9 100644
--- a/web/src/features/annotation-queues/components/AnnotationQueuesTable.tsx
+++ b/web/src/features/annotation-queues/components/AnnotationQueuesTable.tsx
@@ -66,6 +66,7 @@ export function AnnotationQueuesTable({ projectId }: { projectId: string }) {
header: "Name",
id: "key",
size: 150,
+ isPinnedLeft: true,
isFixedPosition: true,
cell: ({ row }) => {
const key: RowData["key"] = row.getValue("key");
diff --git a/web/src/pages/project/[projectId]/prompts/metrics.tsx b/web/src/pages/project/[projectId]/prompts/metrics.tsx
index efd8001c3e..2da9451e25 100644
--- a/web/src/pages/project/[projectId]/prompts/metrics.tsx
+++ b/web/src/pages/project/[projectId]/prompts/metrics.tsx
@@ -155,6 +155,7 @@ export default function PromptVersionTable({
accessorKey: "version",
id: "version",
header: "Version",
+ isPinnedLeft: true,
size: 80,
cell: ({ row }) => {
const version = row.getValue("version");
@@ -170,6 +171,7 @@ export default function PromptVersionTable({
accessorKey: "labels",
id: "labels",
header: "Labels",
+ isPinnedLeft: true,
size: 160,
cell: ({ row }) => {
const values: string[] = row.getValue("labels");