Skip to content

fix: keep selected list item always visible when scrolling#15

Open
HeyItsGilbert wants to merge 2 commits intomainfrom
claude/fix-pesterexplorer-issue-11-8vQ8C
Open

fix: keep selected list item always visible when scrolling#15
HeyItsGilbert wants to merge 2 commits intomainfrom
claude/fix-pesterexplorer-issue-11-8vQ8C

Conversation

@HeyItsGilbert
Copy link
Copy Markdown
Owner

Implements a viewport window in Get-ListPanel that only renders the
visible slice of the list. Show-PesterResult now tracks a
listScrollOffset and adjusts it after every navigation key so the
selected item is always on screen. Shows '...' indicators above/below
when items are hidden. Also fixes a pre-existing PageUp bug where the
minimum index was calculated as list.Count-1 instead of 0.

Closes #11

Implements a viewport window in Get-ListPanel that only renders the
visible slice of the list. Show-PesterResult now tracks a
listScrollOffset and adjusts it after every navigation key so the
selected item is always on screen. Shows '...' indicators above/below
when items are hidden. Also fixes a pre-existing PageUp bug where the
minimum index was calculated as list.Count-1 instead of 0.

Closes #11
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 26, 2026

Test Results

  3 files   42 suites   1s ⏱️
 58 tests  50 ✅ 2 💤  6 ❌
171 runs  145 ✅ 6 💤 20 ❌

For more details on these failures, see this check.

Results for commit 286e41f.

♻️ This comment has been updated with latest results.

… bug

Move Get-ListPanel test setup into a single top-level BeforeAll/InModuleScope
block to avoid cross-scope variable access issues with nested Context BeforeAll
blocks. Also fix a pre-existing bug in Help.tests.ps1 where $parameterNames
was used instead of $commandParameterNames, causing 3 permanent test failures.
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.

[FEATURE] Save Position on Lists and Scroll

2 participants