💄 some last UI fixes

This commit is contained in:
Fred KISSIE
2026-08-24 20:39:30 +02:00
parent 28b32fe6f7
commit 4ddf36ebcc
3 changed files with 10 additions and 4 deletions
@@ -155,7 +155,9 @@ function getWhere(data: Q) {
data.action !== undefined data.action !== undefined
? eq(accessAuditLog.action, data.action) ? eq(accessAuditLog.action, data.action)
: undefined, : undefined,
data.ip ? inArray(accessAuditLog.ip, data.ip) : undefined data.ip && data.ip.length > 0
? inArray(accessAuditLog.ip, data.ip)
: undefined
); );
} }
@@ -147,7 +147,9 @@ function getWhere(data: Q) {
data.action !== undefined data.action !== undefined
? eq(requestAuditLog.action, data.action) ? eq(requestAuditLog.action, data.action)
: undefined, : undefined,
data.ip ? inArray(requestAuditLog.ip, data.ip) : undefined data.ip && data.ip.length > 0
? inArray(requestAuditLog.ip, data.ip)
: undefined
); );
} }
@@ -27,6 +27,7 @@ import { tierMatrix } from "@server/lib/billing/tierMatrix";
import { logQueries } from "@app/lib/queries"; import { logQueries } from "@app/lib/queries";
import { useQuery } from "@tanstack/react-query"; import { useQuery } from "@tanstack/react-query";
import type { QueryAccessAuditLogResponse } from "@server/routers/auditLogs/types"; import type { QueryAccessAuditLogResponse } from "@server/routers/auditLogs/types";
import { countryCodeToFlagEmoji } from "@app/lib/countryCodeToFlagEmoji";
export default function GeneralPage() { export default function GeneralPage() {
const router = useRouter(); const router = useRouter();
@@ -346,7 +347,7 @@ export default function GeneralPage() {
options={filterAttributes.locations.map( options={filterAttributes.locations.map(
(location) => ({ (location) => ({
value: location, value: location,
label: location label: `${location} ${countryCodeToFlagEmoji(location)}`
}) })
)} )}
label={t("location")} label={t("location")}
@@ -365,7 +366,8 @@ export default function GeneralPage() {
<span className="flex items-center gap-1"> <span className="flex items-center gap-1">
{row.original.location ? ( {row.original.location ? (
<span className="text-muted-foreground text-xs"> <span className="text-muted-foreground text-xs">
{row.original.location} {row.original.location}{" "}
{countryCodeToFlagEmoji(row.original.location)}
</span> </span>
) : ( ) : (
<span className="text-muted-foreground text-xs"> <span className="text-muted-foreground text-xs">