[Feature] DataTable component with Hotwire (sorting, filtering, pagination)#353
Draft
djalmaaraujo wants to merge 3 commits intomainfrom
Draft
[Feature] DataTable component with Hotwire (sorting, filtering, pagination)#353djalmaaraujo wants to merge 3 commits intomainfrom
djalmaaraujo wants to merge 3 commits intomainfrom
Conversation
Composable DataTable wrapping existing Table with Stimulus-driven sorting, filtering, search and pagination (server-driven pattern). Components: DataTable, DataTableToolbar, DataTableSearch, DataTableSortableHeader, DataTableContent, DataTablePagination, DataTablePerPage. Includes 15 unit tests for all sub-components.
99af161 to
9b18785
Compare
DataTableSearch now composes RubyUI::Input instead of raw HTML input. DataTablePerPage now composes RubyUI::NativeSelect + NativeSelectOption instead of raw HTML select/option elements.
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.
Related issue
N/A — new component proposal
Description
Introduces a composable DataTable component that wraps the existing Table with interactive features via Stimulus (server-driven Hotwire pattern).
Components:
All interactions are server-driven: Stimulus handles UI events, updates URL params, and triggers Turbo Frame reload. No client-side data manipulation.
Testing instructions
bundle exec ruby -Itest test/ruby_ui/data_table_test.rb(15 tests)bundle exec rake testbundle exec rake standard