Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@

/localData
# Logs
logs
*.log
Expand Down
12 changes: 9 additions & 3 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"fs": "^0.0.1-security",
"fs-extra": "^11.2.0",
"json2csv": "^6.0.0-alpha.2",
"lodash": "^4.17.21",
"next": "^14.2.12",
"react": "^18",
"react-dom": "^18",
Expand All @@ -36,6 +37,7 @@
"@types/fs-extra": "^11.0.4",
"@types/jest": "^29.5.13",
"@types/json2csv": "^5.0.7",
"@types/lodash": "^4.17.13",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
Expand Down
3 changes: 2 additions & 1 deletion src/app/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
HEADER_DIALOGS_TITLES,
} from "@/app/general/constants";
import { getTableInfo } from "@/app/general/utils";
import _ from "lodash";

export default function Header({ bot }: HeaderProps) {
const [openAttribute, setOpenAttribute] = useState<boolean>(false);
Expand All @@ -29,7 +30,7 @@ export default function Header({ bot }: HeaderProps) {
const helpDescription = bot?._details.helpDescription;
const mailInfo = bot?._details.mailInfo;
const { botHeaders, botColumns, rows } = getTableInfo(bot);
const sampleRows = rows.slice(0, SAMPLE_SIZE);
const sampleRows = _.sampleSize(rows, SAMPLE_SIZE);

const attributesRows = botColumns?.map((column) => ({
name: column.displayName,
Expand Down
Loading