Skip to content

Commit

Permalink
Merge pull request #2430 from Agenta-AI/Issue-2418/-Evaluation-result…
Browse files Browse the repository at this point in the history
…s-cannot-be-downloaded-as-csv

(frontend)[Issue 2418]: Evaluation results cannot be downloaded as CSV
  • Loading branch information
mmabrouk authored Jan 26, 2025
2 parents 732f8d5 + 8470a9e commit 35bfc36
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
11 changes: 11 additions & 0 deletions agenta-web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions agenta-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
"prepare": "cd .. && husky && if [ \"$FEATURE_FLAG\" = \"cloud-dev\" ]; then cd .. && husky; fi || true"
},
"dependencies": {
"@ant-design/cssinjs": "^1.21.1",
"@ag-grid-community/client-side-row-model": "^31.3.4",
"@ag-grid-community/core": "^31.3.4",
"@ag-grid-community/csv-export": "^31.3.4",
"@ag-grid-community/react": "^31.3.4",
"@ag-grid-community/client-side-row-model": "^31.3.4",
"@ag-grid-community/styles": "^31.3.4",
"@ant-design/colors": "^7.0.0",
"@ant-design/cssinjs": "^1.21.1",
"@ant-design/icons": "^5.3.7",
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/sortable": "^8.0.0",
Expand Down
6 changes: 5 additions & 1 deletion agenta-web/src/lib/helpers/agGrid.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {SetStateAction, ComponentProps, LegacyRef} from "react"
import type {LegacyRef} from "react"
import dynamic from "next/dynamic"
import {type AgGridReact as AgGridReactType, AgGridReactProps} from "@ag-grid-community/react"

Expand All @@ -13,10 +13,14 @@ const AgGridReact = dynamic(
const ClientSideRowModelModule = await import(
"@ag-grid-community/client-side-row-model"
).then((module) => module.ClientSideRowModelModule)
const CsvExportModule = await import("@ag-grid-community/csv-export").then(
(module) => module.CsvExportModule,
)
const ModuleRegistry = await import("@ag-grid-community/core").then(
(module) => module.ModuleRegistry,
)
ModuleRegistry.registerModules([ClientSideRowModelModule])
ModuleRegistry.registerModules([CsvExportModule])

const AgGridReact = await import("@ag-grid-community/react").then((mod) => mod.AgGridReact)

Expand Down

0 comments on commit 35bfc36

Please sign in to comment.