fix: Keep connecting label on header while logging in#6920
Conversation
WalkthroughThe Header component in RoomsListView now includes a login fetching state check alongside the existing connection state check. This ensures the "Connecting" subtitle persists during the login phase, eliminating an empty state between connection establishment and room data fetching. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🧰 Additional context used🧬 Code graph analysis (1)app/views/RoomsListView/components/Header.tsx (1)
🔇 Additional comments (2)
✏️ Tip: You can disable this entire section by setting 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. Comment |
Proposed changes
The app is currently displaying on header:
There is, however, a gap between the two states when the app is logging in and we don’t show anything.
With the code below, we’ll keep showing connecting while logging in.
It’s a better UX, while not introducing another concept to the users, like logging in
Issue(s)
https://rocketchat.atlassian.net/browse/CORE-1713
How to test or reproduce
Screenshots
Types of changes
Checklist
Further comments
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.