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
98 changes: 74 additions & 24 deletions client/package-lock.json

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

3 changes: 1 addition & 2 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"@tailwindcss/container-queries": "^0.1.1",
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.13",
"@tanstack/react-table": "^9.1.2",
Comment thread
taobojlen marked this conversation as resolved.
"@tiptap/react": "^2.0.4",
"@tiptap/starter-kit": "^2.0.4",
"antd": "^4.10.2",
Expand All @@ -65,7 +66,6 @@
"react-query": "^3.39.1",
"react-router-dom": "^6.30.4",
"react-syntax-highlighter": "^16.1.0",
"react-table": "^7.7.0",
"recharts": "^2.1.10",
"safe-stable-stringify": "^2.4.2",
"sonner": "^1.5.0",
Expand All @@ -92,7 +92,6 @@
"@types/react-csv": "^1.1.10",
"@types/react-dom": "^18.0.0",
"@types/react-syntax-highlighter": "^13.5.2",
"@types/react-table": "^7.7.20",
"@typescript-eslint/eslint-plugin": "^8.64.0",
"@typescript-eslint/parser": "^8.57.2",
"@vitejs/plugin-react": "^5.2.0",
Expand Down
86 changes: 47 additions & 39 deletions client/src/webpages/dashboard/actions/ActionsDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,53 +153,61 @@ export default function ActionsDashboard() {
const columns = useMemo(
() => [
{
Header: 'Name',
accessor: 'name',
Filter: (props: ColumnProps) =>
DefaultColumnFilter({
columnProps: props,
accessor: 'name',
}),
filter: 'text',
sortType: stringSort,
header: 'Name',
accessorKey: 'name',
meta: {
filter: (props: ColumnProps) =>
DefaultColumnFilter({
columnProps: props,
accessor: 'name',
}),
},
filterFn: 'text' as const,
sortFn: stringSort,
},
{
Header: 'Description',
accessor: 'description',
Filter: (props: ColumnProps) =>
DefaultColumnFilter({
columnProps: props,
accessor: 'description',
}),
filter: 'text',
sortType: stringSort,
header: 'Description',
accessorKey: 'description',
meta: {
filter: (props: ColumnProps) =>
DefaultColumnFilter({
columnProps: props,
accessor: 'description',
}),
},
filterFn: 'text' as const,
sortFn: stringSort,
},
{
Header: 'Penalty',
accessor: 'penalty',
Filter: (props: ColumnProps) =>
DefaultColumnFilter({
columnProps: props,
accessor: 'penalty',
}),
filter: 'includes',
sortType: userPenaltySeveritySort,
header: 'Penalty',
accessorKey: 'penalty',
meta: {
filter: (props: ColumnProps) =>
DefaultColumnFilter({
columnProps: props,
accessor: 'penalty',
}),
},
filterFn: 'includes' as const,
sortFn: userPenaltySeveritySort,
},
{
Header: 'ID',
accessor: 'id',
Filter: (props: ColumnProps) =>
DefaultColumnFilter({
columnProps: props,
accessor: 'id',
}),
filter: 'text',
canSort: false,
header: 'ID',
accessorKey: 'id',
meta: {
filter: (props: ColumnProps) =>
DefaultColumnFilter({
columnProps: props,
accessor: 'id',
}),
},
filterFn: 'text' as const,
enableSorting: false,
},
{
Header: '',
accessor: 'mutations', // accessor is the "key" in the data
canSort: false,
header: '',
accessorKey: 'mutations', // accessor is the "key" in the data
enableSorting: false,
},
],
[],
Expand Down
52 changes: 28 additions & 24 deletions client/src/webpages/dashboard/banks/hash/HashBanksDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,36 +92,40 @@ export default function HashBanksDashboard() {
const columns = useMemo(
() => [
{
Header: 'Name',
accessor: 'name',
Filter: (props: ColumnProps) =>
DefaultColumnFilter({
columnProps: props,
accessor: 'name',
}),
filter: 'text',
sortType: stringSort,
header: 'Name',
accessorKey: 'name',
meta: {
filter: (props: ColumnProps) =>
DefaultColumnFilter({
columnProps: props,
accessor: 'name',
}),
},
filterFn: 'text' as const,
sortFn: stringSort,
},
{
Header: 'Description',
accessor: 'description',
Filter: (props: ColumnProps) =>
DefaultColumnFilter({
columnProps: props,
accessor: 'description',
}),
filter: 'text',
sortType: stringSort,
header: 'Description',
accessorKey: 'description',
meta: {
filter: (props: ColumnProps) =>
DefaultColumnFilter({
columnProps: props,
accessor: 'description',
}),
},
filterFn: 'text' as const,
sortFn: stringSort,
},
{
Header: 'Status',
accessor: 'enabled_ratio',
canSort: false,
header: 'Status',
accessorKey: 'enabled_ratio',
enableSorting: false,
},
{
Header: '',
accessor: 'mutations', // accessor is the "key" in the data
canSort: false,
header: '',
accessorKey: 'mutations', // accessor is the "key" in the data
enableSorting: false,
},
],
[],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,31 +107,35 @@ export default function LocationBanksDashboard() {
const columns = useMemo(
() => [
{
Header: 'Name',
accessor: 'name',
Filter: (props: ColumnProps) =>
DefaultColumnFilter({
columnProps: props,
accessor: 'name',
}),
filter: 'text',
sortType: stringSort,
header: 'Name',
accessorKey: 'name',
meta: {
filter: (props: ColumnProps) =>
DefaultColumnFilter({
columnProps: props,
accessor: 'name',
}),
},
filterFn: 'text' as const,
sortFn: stringSort,
},
{
Header: 'Description',
accessor: 'description',
Filter: (props: ColumnProps) =>
DefaultColumnFilter({
columnProps: props,
accessor: 'description',
}),
filter: 'text',
sortType: stringSort,
header: 'Description',
accessorKey: 'description',
meta: {
filter: (props: ColumnProps) =>
DefaultColumnFilter({
columnProps: props,
accessor: 'description',
}),
},
filterFn: 'text' as const,
sortFn: stringSort,
},
{
Header: '',
accessor: 'mutations', // accessor is the "key" in the data
canSort: false,
header: '',
accessorKey: 'mutations', // accessor is the "key" in the data
enableSorting: false,
},
],
[],
Expand Down
Loading
Loading