chore: merge upstream/main into admin-frontend-domain preserving custom domain and branding features

This commit is contained in:
Bot
2026-08-31 02:56:31 +08:00
114 changed files with 8616 additions and 5337 deletions
+5 -5
View File
@@ -12,9 +12,10 @@ import {
TableHeader,
TableRow,
} from "@/components/ui/table"
import { selectableTableFeatures } from "@/lib/table"
import { ModelService as Service } from "@/types"
import { serviceTypes } from "@/types"
import { ColumnDef, flexRender, getCoreRowModel, useReactTable } from "@tanstack/react-table"
import { ColumnDef, flexRender, useTable } from "@tanstack/react-table"
import { useEffect, useMemo } from "react"
import { useTranslation } from "react-i18next"
import { toast } from "sonner"
@@ -34,7 +35,7 @@ export default function ServicePage() {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [error])
const columns: ColumnDef<Service>[] = [
const columns: ColumnDef<typeof selectableTableFeatures, Service>[] = [
{
id: "select",
header: ({ table }) => (
@@ -54,7 +55,6 @@ export default function ServicePage() {
aria-label="Select row"
/>
),
enableSorting: false,
enableHiding: false,
},
{
@@ -165,10 +165,10 @@ export default function ServicePage() {
return data ?? []
}, [data])
const table = useReactTable({
const table = useTable({
features: selectableTableFeatures,
data: dataCache,
columns,
getCoreRowModel: getCoreRowModel(),
})
const selectedRows = table.getSelectedRowModel().rows