From 195f67c6eb9508218ae6bac33ccc194956d1c283 Mon Sep 17 00:00:00 2001 From: Fred KISSIE Date: Tue, 18 Aug 2026 21:08:16 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20QoL=20for=20location=20column?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/[orgId]/settings/logs/request/page.tsx | 6 ++++-- src/components/ColumnFilterButton.tsx | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/app/[orgId]/settings/logs/request/page.tsx b/src/app/[orgId]/settings/logs/request/page.tsx index a4d1dec37..d1300f73f 100644 --- a/src/app/[orgId]/settings/logs/request/page.tsx +++ b/src/app/[orgId]/settings/logs/request/page.tsx @@ -21,6 +21,7 @@ import { useMemo, useState, useTransition } from "react"; import { useStoredPageSize } from "@app/hooks/useStoredPageSize"; import type { QueryRequestAuditLogResponse } from "@server/routers/auditLogs/types"; import { ColumnFilterButton } from "@app/components/ColumnFilterButton"; +import { countryCodeToFlagEmoji } from "@app/lib/countryCodeToFlagEmoji"; export default function GeneralPage() { const router = useRouter(); @@ -339,7 +340,7 @@ export default function GeneralPage() { options={filterAttributes.locations.map( (location) => ({ value: location, - label: location + label: `${location} ${countryCodeToFlagEmoji(location)}` }) )} selectedValue={filters.location} @@ -359,7 +360,8 @@ export default function GeneralPage() { {row.original.location ? ( - {row.original.location} + {row.original.location}{" "} + {countryCodeToFlagEmoji(row.original.location)} ) : ( diff --git a/src/components/ColumnFilterButton.tsx b/src/components/ColumnFilterButton.tsx index 5945dc887..f72b96277 100644 --- a/src/components/ColumnFilterButton.tsx +++ b/src/components/ColumnFilterButton.tsx @@ -21,7 +21,7 @@ import { useTranslations } from "next-intl"; interface FilterOption { value: string; - label: string; + label: React.ReactNode; } interface ColumnFilterButtonProps { @@ -101,7 +101,7 @@ export function ColumnFilterButton({ {options.map((option) => ( { onValueChange( selectedValue === option.value