Skip to content

fix(web): unify profile badge rendering by mentor boolean#486

Merged
manNomi merged 1 commit intomainfrom
codex/fix-profile-mentor-badge-mixup
Mar 14, 2026
Merged

fix(web): unify profile badge rendering by mentor boolean#486
manNomi merged 1 commit intomainfrom
codex/fix-profile-mentor-badge-mixup

Conversation

@manNomi
Copy link
Contributor

@manNomi manNomi commented Mar 14, 2026

Summary

  • unify profile badge rendering with mentor boolean in profile-related UIs
  • keep backward compatibility with existing hasBadge prop while adding explicit isMentor
  • remove mixed usage in chat/my profile screens

Changes

  • ProfileWithBadge: added isMentor prop and unified badge visibility logic
  • MyProfileContent: pass mentor boolean explicitly to profile
  • chat UIs (ChatPageClient, ChatContent, ChatMessageBox, ChatNavBar): derive partner/current user mentor boolean and apply consistently

Validation

  • pnpm --filter @solid-connect/web run ci:check
  • pre-push CI parity hook (lint/typecheck/build)

@vercel
Copy link

vercel bot commented Mar 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
solid-connection-web Ready Ready Preview, Comment Mar 14, 2026 1:17pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
solid-connect-web-admin Skipped Skipped Mar 14, 2026 1:17pm

@coderabbitai
Copy link

coderabbitai bot commented Mar 14, 2026

Warning

Rate limit exceeded

@manNomi has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 2 minutes and 9 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 3e0457bd-08f9-45b5-ab2d-a0c5d6259862

📥 Commits

Reviewing files that changed from the base of the PR and between 1d50ae6 and b141e62.

📒 Files selected for processing (6)
  • apps/web/src/app/mentor/chat/[chatId]/_ui/ChatContent/_ui/ChatMessageBox/index.tsx
  • apps/web/src/app/mentor/chat/[chatId]/_ui/ChatContent/index.tsx
  • apps/web/src/app/mentor/chat/[chatId]/_ui/ChatNavBar/index.tsx
  • apps/web/src/app/mentor/chat/_ui/ChatPageClient/index.tsx
  • apps/web/src/app/my/_ui/MyProfileContent/index.tsx
  • apps/web/src/components/ui/ProfileWithBadge.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch codex/fix-profile-mentor-badge-mixup
📝 Coding Plan
  • Generate coding plan for human review comments

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added the web label Mar 14, 2026
@manNomi manNomi merged commit 9b67b28 into main Mar 14, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant