Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add select and multiselect prompt components #13

Merged
merged 9 commits into from
Jan 17, 2025

Conversation

hampuslavin
Copy link
Contributor

@hampuslavin hampuslavin commented Jan 16, 2025

Description

  • Adds select and multiselect prompt components

select

image

multiselect

image

Copy link
Contributor

@SandPod SandPod left a comment

Choose a reason for hiding this comment

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

Nice work!

Couple of questions around things I don't have knowledge about and a couple of suggestions. It feels like the implementation can be made a bit simpler if we introduce some class that contains the state. (Kind of like a game board with a fixed set of allowed operations separated from parsing input)

lib/src/prompts/key_codes.dart Outdated Show resolved Hide resolved
lib/src/prompts/select.dart Outdated Show resolved Hide resolved
lib/src/prompts/select.dart Outdated Show resolved Hide resolved
lib/src/prompts/select.dart Outdated Show resolved Hide resolved
lib/src/prompts/select.dart Outdated Show resolved Hide resolved
test/prompts/multiple_select_test.dart Show resolved Hide resolved
test/prompts/multiple_select_test.dart Outdated Show resolved Hide resolved
test/prompts/select_test.dart Outdated Show resolved Hide resolved
lib/src/prompts/select.dart Outdated Show resolved Hide resolved
lib/src/prompts/select.dart Show resolved Hide resolved
Copy link
Contributor

@SandPod SandPod left a comment

Choose a reason for hiding this comment

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

Couple of minor comments.

Almost there!

lib/src/prompts/select.dart Outdated Show resolved Hide resolved
lib/src/prompts/select.dart Show resolved Hide resolved
test/prompts/option_matcher.dart Outdated Show resolved Hide resolved
Copy link
Contributor

@SandPod SandPod left a comment

Choose a reason for hiding this comment

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

LGTM! 🙌

@hampuslavin hampuslavin merged commit b6377fa into main Jan 17, 2025
3 checks passed
@hampuslavin hampuslavin deleted the hl_add_multiselect branch January 17, 2025 12:30
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