Skip to content

Fix Robotronics redirect and update navbar - #14

Merged
AtharvM02222 merged 1 commit into
mainfrom
fix/robotronics-redirect-navbar-reorder
Jul 3, 2026
Merged

Fix Robotronics redirect and update navbar#14
AtharvM02222 merged 1 commit into
mainfrom
fix/robotronics-redirect-navbar-reorder

Conversation

@AtharvM02222

@AtharvM02222 AtharvM02222 commented Jul 3, 2026

Copy link
Copy Markdown
Member
  • Fix redirect issue in robotronics.tsx using useEffect and window.location.href
  • Move Robotronics link to last position in navbar (after Contact)
  • Make Robotronics text bold in both desktop and mobile views

Summary by CodeRabbit

  • New Features
    • The Robotronics page now shows a brief “Redirecting…” message before sending visitors to the external site.
    • The navigation menu order has been updated, with Contact appearing before Robotronics.
    • Robotronics is now highlighted more prominently in both desktop and mobile navigation.

- Fix redirect issue in robotronics.tsx using useEffect and window.location.href
- Move Robotronics link to last position in navbar (after Contact)
- Make Robotronics text bold in both desktop and mobile views
Copilot AI review requested due to automatic review settings July 3, 2026 11:04
@vercel

vercel Bot commented Jul 3, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
rn-website Building Building Preview, Comment Jul 3, 2026 11:04am

@AtharvM02222
AtharvM02222 merged commit 835f448 into main Jul 3, 2026
1 of 3 checks passed
@coderabbitai

coderabbitai Bot commented Jul 3, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 7ca00da6-2190-4690-ba36-7a13bc1a7eba

📥 Commits

Reviewing files that changed from the base of the PR and between d851524 and f8210dd.

📒 Files selected for processing (2)
  • rn-website/app/robotronics/robotronics.tsx
  • rn-website/components/ui/spotlight-navbar.tsx

📝 Walkthrough

Walkthrough

The Robotronics page now redirects client-side via a useEffect setting window.location.href, replacing the previous server-side next/navigation redirect, and shows a "Redirecting..." message. The spotlight navbar reorders nav items and applies bold styling to the Robotronics label/link in mobile and desktop views.

Changes

Robotronics redirect and nav updates

Layer / File(s) Summary
Client-side redirect for Robotronics page
rn-website/app/robotronics/robotronics.tsx
Replaces the next/navigation redirect with a useEffect that sets window.location.href, and renders a centered "Redirecting..." message during the redirect.
Nav item order and Robotronics bold styling
rn-website/components/ui/spotlight-navbar.tsx
Swaps order of "Contact" and "Robotronics" in defaultNavItems, and conditionally applies bold font weight to the "Robotronics" label/link in both mobile menu and desktop navbar, medium otherwise.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant RobotronicsPage
  participant Browser

  User->>RobotronicsPage: Visit /robotronics
  RobotronicsPage->>User: Render "Redirecting..." message
  RobotronicsPage->>Browser: useEffect sets window.location.href
  Browser->>User: Navigate to robotronics-ten.vercel.app
Loading

Related Issues: None mentioned
Related PRs: None mentioned
Suggested labels: enhancement, ui
Suggested reviewers: None mentioned

Poem
A rabbit hops from page to page,
No more server redirect on this stage,
"Redirecting..." blinks, then off we go,
Robotronics bold, in bright nav row,
Contact moved up, styles now aglow. 🐇

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/robotronics-redirect-navbar-reorder

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.

@AtharvM02222
AtharvM02222 deleted the fix/robotronics-redirect-navbar-reorder branch July 3, 2026 11:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the /robotronics page redirect behavior in the Next.js App Router and updates the Spotlight navbar so the Robotronics link appears last and is visually emphasized.

Changes:

  • Reworked robotronics route to redirect on the client via useEffect and show a brief “Redirecting…” message.
  • Moved the “Robotronics” navbar item to appear after “Contact”.
  • Made “Robotronics” bold in both desktop and mobile navigation UIs.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
rn-website/components/ui/spotlight-navbar.tsx Reorders Robotronics nav item and applies bold styling for that item in desktop + mobile menus.
rn-website/app/robotronics/robotronics.tsx Implements client-side redirect to the external Robotronics site using useEffect.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +6 to +8
useEffect(() => {
window.location.href = "https://robotronics-ten.vercel.app/";
}, []);
Comment on lines +171 to +174
className={cn(
"flex-1 text-left px-4 py-3 text-sm hover:text-white transition-colors duration-150",
item.label === "Robotronics" ? "font-bold" : "font-medium"
)}
Comment on lines +381 to 384
"px-4 py-2 text-sm transition-colors duration-200 rounded-full",
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-400 dark:focus-visible:ring-white/30",
item.label === "Robotronics" ? "font-bold" : "font-medium",
activeIndex === idx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants