-
Notifications
You must be signed in to change notification settings - Fork 564
fix: display username instead of first name last name #3268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@harshsbhat is attempting to deploy a commit to the Unkey Team on Vercel. A member of the Team first needs to authorize it. |
📝 WalkthroughWalkthroughThis change updates the display of user information in the audit log details by showing the username instead of the concatenated first and last names. Additionally, it removes the "uppercase" CSS class from the event label in the log header, ensuring event names are displayed in their original case. Changes
Assessment against linked issues
Suggested labels
Suggested reviewers
Note ⚡️ AI Code Reviews for VS Code, Cursor, WindsurfCodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback. Note ⚡️ Faster reviews with cachingCodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure ✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Thank you for following the naming conventions for pull request titles! 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
apps/dashboard/app/(app)/audit/components/table/log-details/components/log-footer.tsx (1)
44-44
: Username display properly implementedThe change correctly implements showing only the username instead of the concatenated first and last names in the actor details section, addressing issue #3222 mentioned in the PR objectives.
Minor suggestion: Since you're only using a single variable, the template literal syntax could be simplified:
-<span className= 8000 "text-sm text-content whitespace-nowrap">{`${user.username}`}</span> +<span className="text-sm text-content whitespace-nowrap">{user.username}</span>
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
apps/dashboard/app/(app)/audit/components/table/log-details/components/log-footer.tsx
(1 hunks)apps/dashboard/app/(app)/audit/components/table/log-details/components/log-header.tsx
(1 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
apps/dashboard/app/(app)/audit/components/table/log-details/components/log-header.tsx (1)
apps/dashboard/lib/utils.ts (1)
cn
(5-7)
🔇 Additional comments (1)
apps/dashboard/app/(app)/audit/components/table/log-details/components/log-header.tsx (1)
20-20
: Badge styling adjustment fixes event case displayRemoving the "uppercase" class from the Badge component ensures that audit log event names display in their original case rather than being forced to uppercase. This change correctly addresses issue #3221 mentioned in the PR objectives.
What does this PR do?
This PR does 2 things:
Fixes #3221 and #3222
Type of change
How should this be tested?
Do any action that will be displayed in the audit logs. Check audit logs, they should be in lowercase.
Similarly, check the actor details, it should display the username instead of the first and last name with avatar
Checklist
Required
pnpm build
pnpm fmt
console.logs
git pull origin main
Appreciated
< 8000 li class="task-list-item"> If a UI change was made: Added a screen recording or screenshots to this PR- Updated the Unkey Docs if changes were necessary
Summary by CodeRabbit