Implement sticky header for PR overview with tests#8528
Merged
mrleemurray merged 9 commits intomainfrom Feb 17, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a sticky header to the pull request overview that appears when the user scrolls past the main title. The sticky header displays the PR status, title, number, and a copy link button, improving navigation when viewing long PR descriptions or timelines. The implementation uses IntersectionObserver to detect when the main title scrolls out of view and includes basic tests to verify the header's initial state.
Changes:
- Added a
useStickyHeadercustom hook that uses IntersectionObserver to track title visibility - Implemented a
StickyHeadercomponent that displays PR status, title, number, and copy link button - Added CSS styling for the sticky header with smooth transitions and responsive design
- Added test coverage to verify sticky header existence and initial visibility state
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| webviews/editorWebview/overview.tsx | Implements useStickyHeader hook and StickyHeader component with IntersectionObserver-based visibility tracking |
| webviews/editorWebview/index.css | Adds comprehensive styling for sticky header including positioning, transitions, and responsive layout |
| webviews/editorWebview/test/overview.test.tsx | Adds test assertions to verify sticky header exists and is not visible initially |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
6 tasks
Contributor
|
@mrleemurray I've opened a new pull request, #8529, to work on those changes. Once the pull request is ready, I'll request review from you. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…mproved accessibility
dmitrivMS
approved these changes
Feb 17, 2026
eleanorjboyd
approved these changes
Feb 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a sticky header to the pull request overview for improved navigation. Include tests to verify the header's visibility behavior.
sticky-header-ghpr.mp4