uv test owner
This commit is contained in:
parent
3800cba048
commit
c630bfa665
3 changed files with 187 additions and 171 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue