Skip to content

Enhance navigation and search experience#8

Merged
imuniqueshiv merged 2 commits into
mainfrom
feature/breadcrumbs-footer-search
Jun 27, 2026
Merged

Enhance navigation and search experience#8
imuniqueshiv merged 2 commits into
mainfrom
feature/breadcrumbs-footer-search

Conversation

@nitinmohan18

@nitinmohan18 nitinmohan18 commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

Pull Request

Summary

Provide a brief description of your changes.


Related Issue

Closes #


Type of Change

  • Feature
  • Bug Fix
  • Documentation
  • Refactor
  • Performance Improvement
  • CI / Build
  • Other

What Changed?

Briefly describe the key changes made in this Pull Request.


Screenshots (UI Changes Only)

If this PR includes UI changes, attach screenshots or recordings.


Testing

Describe how you tested your changes.


Checklist

Before requesting a review, confirm the following:

  • My branch is up to date with the latest main.
  • My code follows the project's coding standards.
  • I have formatted the modified files (npx prettier --write <file>).
  • npm run format:check passes.
  • npm run lint passes.
  • npm run typecheck passes.
  • npm run build passes.
  • I have updated documentation if required.
  • I have tested my changes locally.
  • This Pull Request focuses on a single feature or fix.

Additional Notes

Add any additional context for reviewers if needed.

Summary by CodeRabbit

  • New Features

    • Added breadcrumb navigation to RGPV pages, helping users see their location and move back through the site more easily.
  • Bug Fixes

    • Improved university search so an empty search now shows all universities as expected.
    • Updated several footer links to point to the correct destinations.

@vercel

vercel Bot commented Jun 27, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
hyper-learning-tech Ready Ready Preview, Comment Jun 27, 2026 6:03am

@coderabbitai

coderabbitai Bot commented Jun 27, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Added breadcrumbs to the RGPV layout, retargeted footer links, and changed university filtering so an empty search query returns all universities.

Changes

RGPV navigation updates

Layer / File(s) Summary
Breadcrumb component
components/breadcrumbs.tsx
Breadcrumbs reads the current pathname, hides itself on root-like routes, and renders linked path segments with the current segment marked as the page.
RGPV layout wiring
app/rgpv/layout.tsx
The app/rgpv layout renders Breadcrumbs before its children and exports RGPVLayout as the default component.
Footer link retargeting
components/footer.tsx
Footer links in the Platform, Learning, and Company columns now point to /rgpv, /#Universities, and /.
Empty-query university filtering
features/landing/universities.tsx
The universities filter now explicitly includes every university when the normalized query is empty.

Sequence Diagram(s)

sequenceDiagram
  participant ComponentA
  participant ComponentB
  ComponentA->>ComponentB: observable interaction
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 I hop through paths with a breadcrumb grin,
/rgpv lights the trail within.
Empty searches bloom; all universities stay,
And footer links have found their way.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately reflects the PR’s main themes: navigation updates and a small search behavior fix.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
✨ 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 feature/breadcrumbs-footer-search

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.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@components/breadcrumbs.tsx`:
- Around line 18-28: The breadcrumbs markup in Breadcrumbs is invalid because
the ChevronRight separator is rendered directly as a child of the <ol> instead
of inside an <li>. Update the Breadcrumbs component so every direct child of the
ordered list is an <li>, and place the separator in an <li aria-hidden="true">
or move it into adjacent list items while preserving the current visual layout.

In `@components/footer.tsx`:
- Around line 178-183: The Footer privacy link is currently pointing to the
homepage instead of the privacy policy route, breaking the expected destination
for the Privacy item. Update the Link in Footer so the Privacy label routes to
the privacy policy page again, or remove/rename the item if that page no longer
exists; use the Footer component and its Link entry to locate the change.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d752092f-7947-4045-b368-703211cb94d9

📥 Commits

Reviewing files that changed from the base of the PR and between b0f5358 and 7fb71b1.

📒 Files selected for processing (4)
  • app/rgpv/layout.tsx
  • components/breadcrumbs.tsx
  • components/footer.tsx
  • features/landing/universities.tsx

Comment on lines +18 to +28
<ol className="flex flex-wrap items-center gap-1.5 text-sm text-muted-foreground">
<li>
<Link
href="/"
className="flex items-center transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 rounded"
aria-label="Home"
>
<Home className="h-4 w-4" />
</Link>
</li>
{pathNames.length > 0 && <ChevronRight className="h-4 w-4" />}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Keep <ol> children limited to <li> elements.

Line 28 inserts the separator directly under the ordered list, which produces invalid list markup and weakens breadcrumb semantics for assistive tech. Wrap that separator in an <li aria-hidden="true"> (or move separators inside adjacent list items) so every direct child of <ol> is an <li>.

Proposed fix
         <ol className="flex flex-wrap items-center gap-1.5 text-sm text-muted-foreground">
           <li>
             <Link
               href="/"
               className="flex items-center transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 rounded"
               aria-label="Home"
             >
               <Home className="h-4 w-4" />
             </Link>
           </li>
-          {pathNames.length > 0 && <ChevronRight className="h-4 w-4" />}
+          {pathNames.length > 0 && (
+            <li aria-hidden="true">
+              <ChevronRight className="h-4 w-4" />
+            </li>
+          )}
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<ol className="flex flex-wrap items-center gap-1.5 text-sm text-muted-foreground">
<li>
<Link
href="/"
className="flex items-center transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 rounded"
aria-label="Home"
>
<Home className="h-4 w-4" />
</Link>
</li>
{pathNames.length > 0 && <ChevronRight className="h-4 w-4" />}
<ol className="flex flex-wrap items-center gap-1.5 text-sm text-muted-foreground">
<li>
<Link
href="/"
className="flex items-center transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 rounded"
aria-label="Home"
>
<Home className="h-4 w-4" />
</Link>
</li>
{pathNames.length > 0 && (
<li aria-hidden="true">
<ChevronRight className="h-4 w-4" />
</li>
)}
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@components/breadcrumbs.tsx` around lines 18 - 28, The breadcrumbs markup in
Breadcrumbs is invalid because the ChevronRight separator is rendered directly
as a child of the <ol> instead of inside an <li>. Update the Breadcrumbs
component so every direct child of the ordered list is an <li>, and place the
separator in an <li aria-hidden="true"> or move it into adjacent list items
while preserving the current visual layout.

Comment thread components/footer.tsx
Comment on lines 178 to 183
<li>
<Link
href="/privacy"
href="/"
className="text-sm text-[#AFC8FF]/70 transition-colors hover:text-white"
>
Privacy

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Restore the privacy-policy destination.

Line 180 now sends Privacy to /, which breaks the label-to-page contract and makes the privacy notice harder to find. Keep this pointed at the privacy policy route, or rename/remove the item if that page no longer exists.

Suggested fix
               <li>
                 <Link
-                  href="/"
+                  href="/privacy"
                   className="text-sm text-[`#AFC8FF`]/70 transition-colors hover:text-white"
                 >
                   Privacy
                 </Link>
               </li>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<li>
<Link
href="/privacy"
href="/"
className="text-sm text-[#AFC8FF]/70 transition-colors hover:text-white"
>
Privacy
<li>
<Link
href="/privacy"
className="text-sm text-[`#AFC8FF`]/70 transition-colors hover:text-white"
>
Privacy
</Link>
</li>
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@components/footer.tsx` around lines 178 - 183, The Footer privacy link is
currently pointing to the homepage instead of the privacy policy route, breaking
the expected destination for the Privacy item. Update the Link in Footer so the
Privacy label routes to the privacy policy page again, or remove/rename the item
if that page no longer exists; use the Footer component and its Link entry to
locate the change.

@imuniqueshiv imuniqueshiv merged commit 88e66b4 into main Jun 27, 2026
3 checks passed
@github-actions

Copy link
Copy Markdown

🎉 Congratulations @nitinmohan18!

Thank you for contributing to HyperLearningTech.

Your pull request has been successfully merged into main.

📦 Merge Summary

🚀 Keep Contributing

  • Follow the CONTRIBUTING.md guidelines.
  • Keep each Pull Request focused on a single feature or fix.
  • Run formatting, linting, type checking, and a production build before opening a PR.

Thank you for helping make HyperLearningTech better.

Happy Coding! 🚀

@nitinmohan18 nitinmohan18 deleted the feature/breadcrumbs-footer-search branch June 27, 2026 06:07
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