Feat/add model selection for easy comparison #207
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.
This pull request adds multi-row selection and filtering capabilities to the models table, along with corresponding UI and accessibility improvements. Users can now select individual models with checkboxes, select all models, and filter the table to show only selected models. The implementation includes new logic for managing selection state, updating the UI, and ensuring keyboard accessibility.
Selection and Filtering Functionality:
initializeSelection
function inselection.ts
to handle row selection, "select all," and filtering logic for the models table, including keyboard accessibility and UI state management.index.ts
to import and initialize the new selection logic on page load. [1] [2]UI and Accessibility Enhancements:
render.tsx
to include a checkbox column for row selection, a "select all" checkbox in the header, and a "Show Selected Only" filter button. Each row now has data attributes for provider and model IDs to support selection logic. [1] [2]index.css
for the new selection column, row highlighting, checkbox appearance, and filter button, ensuring a clear and accessible UI. [1] [2]