Skip to content

Conversation

@andresgarciaf
Copy link

Add pagination support for choice options

Summary

Added pagination to the choice prompt when options exceed 10 items to improve terminal display and user experience.

Changes

  • Implemented pagination logic that activates when choice options > 10
  • Maintains existing behavior for ≤10 options
  • Improved terminal readability for large option lists
  • Added comprehensive unit tests for pagination functionality

Testing

  • Unit tests added covering pagination edge cases
  • Verified backward compatibility with existing choice behavior
  • Tested terminal display with various option list sizes

This enhancement ensures better UX when dealing with large choice lists while preserving the current experience for smaller option sets.

@github-actions
Copy link

github-actions bot commented Aug 6, 2025

✅ 40/40 passed, 2 skipped, 2m0s total

Running from acceptance #345

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