feat: move "Get Started" button to HomeContent for mobile visibility#1516
Conversation
- (For mobile view) Removed the "Get Started" button from the Navigation component. - (For mobile view) Added the button to the HomeContent component.
WalkthroughA mobile-only "Get Started" button with session-aware navigation and sign-in logic was added to the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant HomeContent
participant Session
participant Router
participant AuthProvider
participant Toast
User->>HomeContent: Clicks "Get Started" (mobile)
HomeContent->>Session: Check if session exists
alt Session exists
HomeContent->>Router: Navigate to "/mail/inbox"
else No session
HomeContent->>AuthProvider: Initiate Google sign-in (callback: "/mail")
AuthProvider-->>HomeContent: Success or failure
alt Sign-in fails
HomeContent->>Toast: Show error toast
end
end
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
🧰 Additional context used🧠 Learnings (1)📓 Common learnings🔇 Additional comments (3)
✨ 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 (
|
MrgSub
left a comment
There was a problem hiding this comment.
Please keep it in navigation for desktop
|
@MrgSub Can you please elaborate, Thank you. |
|
I see it now, sorry long day. Thank you |
|
@MrgSub Cool :) |
Description
For mobile view, the "Get Started" button was removed from the Navigation component as its placement wasn't suitable, and it was added to the HomeContent component for a more intuitive and visually balanced layout.
Type of Change
Please delete options that are not relevant.
Areas Affected
Please check all that apply:
Testing Done
Describe the tests you've done:
Security Considerations
For changes involving data or authentication:
Checklist
Additional Notes
Add any other context about the pull request here.
Screenshots/Recordings
Before:


After:


By submitting this pull request, I confirm that my contribution is made under the terms of the project's license.
Summary by CodeRabbit
New Features
Refactor