uv test owner

This commit is contained in:
makearmy 2025-10-01 16:25:54 -04:00
parent 3800cba048
commit c630bfa665
3 changed files with 187 additions and 171 deletions

View file

@ -53,18 +53,13 @@ export default function FiberSettingsPage() {
.catch(() => setLoading(false));
}, []);
// ── Owner display helper: prefer username ────────────────────────────────────
const ownerName = (row: any) => {
const o = row?.owner || {};
return o.username || "—";
};
return (
o.display_name ||
[o.first_name, o.last_name].filter(Boolean).join(" ") ||
o.email ||
"—"
);
return o?.username || "—";
};
// ── Highlight helper for search matches ─────────────────────────────────────
const highlight = (text?: string) => {
if (!debouncedQuery) return text || "";
const regex = new RegExp(`(${debouncedQuery})`, "gi");