Skip to content

Commit

Permalink
style(row.tsx): fix formatting of template string in user display name
Browse files Browse the repository at this point in the history
style(tinybird.ts): align resource types in the resources array for better readability
  • Loading branch information
chronark committed Sep 26, 2024
1 parent f02809d commit 35745b1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
5 changes: 3 additions & 2 deletions apps/dashboard/app/(app)/audit/[bucket]/row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ export const Row: React.FC<Props> = ({ auditLog, user }) => {
<AvatarImage src={user.imageUrl} />
<AvatarFallback>{user.username?.slice(0, 2)}</AvatarFallback>
</Avatar>
<span className="text-sm text-content whitespace-nowrap">{`${user.firstName ?? ""
} ${user.lastName ?? ""}`}</span>
<span className="text-sm text-content whitespace-nowrap">{`${
user.firstName ?? ""
} ${user.lastName ?? ""}`}</span>
</div>
) : (
<div className="flex items-center w-full gap-2 max-sm:m-0 max-sm:gap-1 max-sm:text-xs md:flex-grow">
Expand Down
34 changes: 17 additions & 17 deletions apps/dashboard/lib/tinybird.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,23 +477,23 @@ export type UnkeyAuditLog = {
};
resources: Array<{
type:
| "key"
| "api"
| "workspace"
| "role"
| "permission"
| "keyAuth"
| "vercelBinding"
| "vercelIntegration"
| "ratelimitNamespace"
| "ratelimitOverride"
| "gateway"
| "llmGateway"
| "webhook"
| "reporter"
| "secret"
| "identity"
| "auditLogBucket";
| "key"
| "api"
| "workspace"
| "role"
| "permission"
| "keyAuth"
| "vercelBinding"
| "vercelIntegration"
| "ratelimitNamespace"
| "ratelimitOverride"
| "gateway"
| "llmGateway"
| "webhook"
| "reporter"
| "secret"
| "identity"
| "auditLogBucket";

id: string;
meta?: Record<string, string | number | boolean | null>;
Expand Down

0 comments on commit 35745b1

Please sign in to comment.