Skip to content

Add SelectableList and InputField components#4

Merged
ryanoneill merged 1 commit intomainfrom
add-components
Dec 31, 2025
Merged

Add SelectableList and InputField components#4
ryanoneill merged 1 commit intomainfrom
add-components

Conversation

@ryanoneill
Copy link
Copy Markdown
Owner

Summary

  • Adds SelectableList<T> component for scrollable lists with keyboard navigation
  • Adds InputField component for text input with cursor navigation
  • Bumps version to 0.2.0

SelectableList Features

  • Generic over item type (requires Clone + Display)
  • Navigation: Up, Down, First, Last, PageUp, PageDown
  • Selection tracking with SelectionChanged and Selected output events
  • Focusable with visual feedback

InputField Features

  • Character insertion and deletion
  • Cursor movement (Left, Right, Home, End, word jumps)
  • Word-level deletion (Ctrl+Backspace, Ctrl+Delete)
  • Placeholder text support
  • Unicode support

Test plan

  • All component tests pass (49 tests)
  • Full test suite passes (621 tests)
  • Clippy passes
  • Formatting passes
  • Doc tests pass

🤖 Generated with Claude Code

- SelectableList: generic scrollable list with keyboard navigation
  - Navigation: Up, Down, First, Last, PageUp, PageDown
  - Selection tracking with change events
  - Focusable with visual feedback

- InputField: text input with cursor navigation
  - Character insertion and deletion
  - Cursor movement (Left, Right, Home, End, word jumps)
  - Word-level deletion support
  - Placeholder text and Unicode support

Bumps version to 0.2.0.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ryanoneill ryanoneill merged commit dbbd928 into main Dec 31, 2025
11 checks passed
@ryanoneill ryanoneill deleted the add-components branch December 31, 2025 09:38
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.01916% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.62%. Comparing base (b4256f6) to head (f4757d5).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/component/selectable_list.rs 89.01% 10 Missing ⚠️
src/component/input_field.rs 98.23% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #4      +/-   ##
==========================================
+ Coverage   93.45%   93.62%   +0.17%     
==========================================
  Files          24       26       +2     
  Lines        2124     2385     +261     
==========================================
+ Hits         1985     2233     +248     
- Misses        139      152      +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

ryanoneill added a commit that referenced this pull request Apr 3, 2026
File manager demonstrating FileBrowser with sorting/filtering,
CodeBlock with syntax highlighting and line numbers, DiffViewer,
SplitPanel with resizable panes, Breadcrumb path navigation,
CommandPalette, and FocusManager + ViewContext focus routing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
ryanoneill added a commit that referenced this pull request Apr 3, 2026
File manager demonstrating FileBrowser with sorting/filtering,
CodeBlock with syntax highlighting and line numbers, DiffViewer,
SplitPanel with resizable panes, Breadcrumb path navigation,
CommandPalette, and FocusManager + ViewContext focus routing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
ryanoneill added a commit that referenced this pull request Apr 13, 2026
…, 0.15.0)

Calling with_markdown(true) or set_markdown_enabled(true) without the
markdown Cargo feature is now a compile error instead of a silent no-op.
This was sharp edge #4 from the 0.11 review, three rounds in.

The getter markdown_enabled() stays available everywhere (returns false
by default). The field stays on the struct but can never be set to true
without the feature.

Customer: "#[cfg(feature = \"markdown\")] on the method itself, so
calling it without the feature is a compile error pointing at the
missing feature. Loudest possible failure, no runtime cost."

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
ryanoneill added a commit that referenced this pull request Apr 13, 2026
…, 0.15.0) (#424)

Calling with_markdown(true) or set_markdown_enabled(true) without the
markdown Cargo feature is now a compile error instead of a silent no-op.
This was sharp edge #4 from the 0.11 review, three rounds in.

The getter markdown_enabled() stays available everywhere (returns false
by default). The field stays on the struct but can never be set to true
without the feature.

Customer: "#[cfg(feature = \"markdown\")] on the method itself, so
calling it without the feature is a compile error pointing at the
missing feature. Loudest possible failure, no runtime cost."

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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