Skip to content

Conversation

@IEvangelist
Copy link
Member

the "Aspire" title and search should appear in the header

Related to #179

Copilot AI review requested due to automatic review settings January 9, 2026 18:26
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

This PR enhances the homepage header by adding a search component and making both the search bar and the "Aspire" title appear in the header when scrolling past the hero section. The implementation removes a previously hidden datetime display and adds scroll-based visibility toggling.

  • Adds Search component import and integration into the homepage header
  • Implements scroll-based visibility logic to show/hide search and title based on hero section position
  • Removes the hidden datetime component that was previously in the title wrapper

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

checkScroll();

// Check on scroll
window.addEventListener('scroll', checkScroll, { passive: true });
Copy link

Copilot AI Jan 9, 2026

Choose a reason for hiding this comment

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

Each time initHomepageHeader is called, a new scroll event listener is added without removing the previous one. This creates a memory leak and causes checkScroll to be called multiple times per scroll event after page transitions. Consider storing the listener reference and removing it before adding a new one, or use an AbortController to manage the listener lifecycle.

Copilot uses AI. Check for mistakes.
Copy link
Member Author

Choose a reason for hiding this comment

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

@copilot open a new pull request to apply changes based on this feedback

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI commented Jan 13, 2026

@IEvangelist I've opened a new pull request, #242, to work on those changes. Once the pull request is ready, I'll request review from you.

* Initial plan

* Fix scroll event listener memory leak using AbortController

Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>

* Add non-null assertion for scrollController.signal access

Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
@IEvangelist IEvangelist requested a review from eerhardt January 15, 2026 19:06
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