Skip to content

INS-1528 Responsive Header About section fixes#495

Open
huuaho wants to merge 4 commits into3.3.0from
INS-1528
Open

INS-1528 Responsive Header About section fixes#495
huuaho wants to merge 4 commits into3.3.0from
INS-1528

Conversation

@huuaho
Copy link
Contributor

@huuaho huuaho commented Feb 11, 2026

Overview

Fixed Mobile Header About Page links

Change Details (Specifics)

  • About INS reclassified from title to regular link object
  • PDF links now classified as external to avoid hash routing

Related Ticket(s)

INS-1528

Copilot AI review requested due to automatic review settings February 11, 2026 14:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes mobile/tablet header “About” submenu behavior by treating PDF entries as external links and making “About INS” a normal navigable item.

Changes:

  • Introduces a NavItem type and applies stronger typing to navigation config structures
  • Reclassifies “About INS” from subtitle styling to a standard sub-item link
  • Routes PDF links through <a> (target="_blank") instead of SPA routing to avoid hash-route issues

Reviewed changes

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

File Description
src/config/globalHeaderData.tsx Adds NavItem typing and marks PDF nav items as externalLink
src/components/Header/HeaderTablet.tsx Renders externalLink subitems using <a> instead of router <Link>
src/components/Header/HeaderMobile.tsx Same as tablet: uses <a> for externalLink subitems

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

@huuaho huuaho requested a review from Copilot February 11, 2026 15:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

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


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

@@ -0,0 +1,38 @@
import React from 'react';
import { Link } from 'react-router-dom';
import { NavItem } from '../../../config/globalHeaderData.tsx';
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

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

The '.tsx' extension in the import statement is unnecessary. TypeScript and modern bundlers resolve imports without explicit extensions. Remove '.tsx' from the import path.

Suggested change
import { NavItem } from '../../../config/globalHeaderData.tsx';
import { NavItem } from '../../../config/globalHeaderData';

Copilot uses AI. Check for mistakes.
href={item.link}
target="_blank"
rel="noopener noreferrer"
onClick={onClose}
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

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

Links opening in new tabs with target='_blank' should inform users about this behavior. Consider adding an aria-label or visible indicator (like an icon) to indicate that the link opens in a new window.

Suggested change
onClick={onClose}
onClick={onClose}
aria-label={`${item.name} (opens in a new tab)`}

Copilot uses AI. Check for mistakes.
Comment on lines 4 to +6
import Logo from "./components/LogoTablet.tsx";
import SearchBar from "./components/SearchBarTablet.tsx";
import NavMobileSubItem from "./components/NavMobileSubItem.tsx";
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

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

The '.tsx' extensions in import statements are unnecessary. Remove them for consistency with standard TypeScript/React practices.

Copilot uses AI. Check for mistakes.
@amattu2 amattu2 added this to the 3.3.0 milestone Feb 11, 2026
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