Skip to content

Feature/debounce#588

Open
AnishCoder2006 wants to merge 3 commits into
GitMetricsLab:mainfrom
AnishCoder2006:feature/debounce
Open

Feature/debounce#588
AnishCoder2006 wants to merge 3 commits into
GitMetricsLab:mainfrom
AnishCoder2006:feature/debounce

Conversation

@AnishCoder2006
Copy link
Copy Markdown

PR Title
Enhance navigation UX with smooth scrolling and active section highlighting

Summary
Closes: #511
Implements smooth scrolling across the site and improves navigation UX by dynamically highlighting active sections. Updates the Navbar, Hero, and Home components to support hash‑based navigation and IntersectionObserver tracking.

Changes (key files)
Frontend:

index.css: Added html { scroll-behavior: smooth; } for global smooth scrolling.

Navbar.tsx:

Replaced static NavLink layout with a navItems mapping.

Added hash links (/#features, /#how-it-works).

Switched to Link for routing.

Implemented IntersectionObserver to track and highlight the active homepage section.

Unified desktop + mobile link rendering.

Hero.tsx: Added “Explore Features” CTA linking to /#features.

Home.tsx: Added useLocation + useEffect to listen for location.hash changes and scroll the matching section into view (smooth scroll fallback for React Router).

Why
Improves navigation experience by enabling smooth scrolling.

Provides clear visual feedback by highlighting the active section in the Navbar.

Unifies desktop and mobile navigation behavior.

Makes homepage CTAs more interactive and user‑friendly.

How to test (local)
Run npm run build → project should compile successfully.

Start dev server → npm run dev.

Navigate to homepage:

Click “Features” or “How It Works” in Navbar → route hash updates and page scrolls smoothly to section.

Scroll manually → Navbar highlights the active section.

Click “Explore Features” CTA in Hero → smooth scroll to Features section.

Acceptance criteria mapped
Smooth scrolling enabled site‑wide.

Navbar highlights active section while scrolling.

Desktop and mobile navigation unified.

CTA links correctly scroll to target sections.

Build passes without errors (npm run build).

Notes
IntersectionObserver ensures efficient section tracking without performance issues.

Smooth scroll fallback implemented for React Router hash changes.

No breaking changes introduced; existing routes remain functional.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 28, 2026

Deploy Preview for github-spy failed.

Name Link
🔨 Latest commit fff1466
🔍 Latest deploy log https://app.netlify.com/projects/github-spy/deploys/6a17b86d2c1c5c0007d71f28

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 28, 2026

Warning

Review limit reached

@AnishCoder2006, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 2 minutes and 29 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, 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 include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 8525d328-41d6-4098-b040-60cee47a450a

📥 Commits

Reviewing files that changed from the base of the PR and between 4ae0ef6 and fff1466.

📒 Files selected for processing (4)
  • github_tracker
  • netlify.toml
  • public/_headers
  • public/_redirects
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Performance: Add debouncing to GitHub API search inputs to prevent redundant requests

1 participant