@@ -273,21 +271,21 @@ export default function ConnectionLogsPage() {
accessorKey: "protocol",
header: () => {
return (
-
- {t("protocol")}
-
+ ({
label: protocol.toUpperCase(),
value: protocol
})
)}
+ label={t("protocol")}
selectedValue={filters.protocol}
onValueChange={(value) =>
handleFilterChange("protocol", value)
}
- searchPlaceholder="Search..."
- emptyMessage="None found"
+ searchPlaceholder={t("searchPlaceholder")}
+ emptyMessage={t("emptySearchOptions")}
/>
);
@@ -304,19 +302,19 @@ export default function ConnectionLogsPage() {
accessorKey: "resourceName",
header: () => {
return (
-
- {t("resource")}
-
+ ({
value: res.id.toString(),
label: res.name || "Unnamed Resource"
}))}
+ label={t("resource")}
selectedValue={filters.siteResourceId}
onValueChange={(value) =>
handleFilterChange("siteResourceId", value)
}
- searchPlaceholder="Search..."
- emptyMessage="None found"
+ searchPlaceholder={t("searchPlaceholder")}
+ emptyMessage={t("emptySearchOptions")}
/>
);
@@ -345,19 +343,19 @@ export default function ConnectionLogsPage() {
accessorKey: "clientName",
header: () => {
return (
-
- {t("client")}
-
+ ({
value: c.id.toString(),
label: c.name
}))}
+ label={t("client")}
selectedValue={filters.clientId}
onValueChange={(value) =>
handleFilterChange("clientId", value)
}
- searchPlaceholder="Search..."
- emptyMessage="None found"
+ searchPlaceholder={t("searchPlaceholder")}
+ emptyMessage={t("emptySearchOptions")}
/>
);
@@ -388,19 +386,19 @@ export default function ConnectionLogsPage() {
accessorKey: "userEmail",
header: () => {
return (
-
- {t("user")}
-
+ ({
value: u.id,
label: u.email || u.id
}))}
+ label={t("user")}
selectedValue={filters.userId}
onValueChange={(value) =>
handleFilterChange("userId", value)
}
- searchPlaceholder="Search..."
- emptyMessage="None found"
+ searchPlaceholder={t("searchPlaceholder")}
+ emptyMessage={t("emptySearchOptions")}
/>
);
@@ -419,9 +417,7 @@ export default function ConnectionLogsPage() {
},
{
accessorKey: "sourceAddr",
- header: () => {
- return t("sourceAddress");
- },
+ header: () =>
{t("sourceAddress")},
cell: ({ row }) => {
return (
@@ -434,19 +430,19 @@ export default function ConnectionLogsPage() {
accessorKey: "destAddr",
header: () => {
return (
-
- {t("destinationAddress")}
-
+ ({
value: addr,
label: addr
}))}
+ label={t("destinationAddress")}
selectedValue={filters.destAddr}
onValueChange={(value) =>
handleFilterChange("destAddr", value)
}
- searchPlaceholder="Search..."
- emptyMessage="None found"
+ searchPlaceholder={t("searchPlaceholder")}
+ emptyMessage={t("emptySearchOptions")}
/>
);
@@ -461,9 +457,7 @@ export default function ConnectionLogsPage() {
},
{
accessorKey: "duration",
- header: () => {
- return t("duration");
- },
+ header: () => {t("duration")},
cell: ({ row }) => {
return (