fix(actionlog): restore full name display in Action Logs user column (#37985)

This commit is contained in:
jaymasiwal
2026-02-26 21:06:24 +05:30
committed by GitHub
parent ca48663c59
commit f5d489da29

View File

@@ -33,7 +33,10 @@ import { fetchUserOptions } from 'src/features/groups/utils';
export type ActionLogObject = {
user: {
username: string;
first_name?: string;
last_name?: string;
};
action: string;
dttm: string | null;
dashboard_id?: number;
@@ -153,7 +156,22 @@ function ActionLogList() {
row: {
original: { user },
},
}: any) => <span>{user?.username}</span>,
}: any) => {
const username = user?.username ?? '';
const fullName = [user?.first_name, user?.last_name]
.filter(Boolean)
.join(' ');
const displayName = fullName || username;
return (
<Typography.Text
ellipsis={fullName ? { tooltip: { title: username } } : true}
>
{displayName}
</Typography.Text>
);
},
},
{