[WIP] Migrate Selection Dialog Components from BTable to GTable#22231
Draft
itisAliRH wants to merge 16 commits intogalaxyproject:devfrom
Draft
[WIP] Migrate Selection Dialog Components from BTable to GTable#22231itisAliRH wants to merge 16 commits intogalaxyproject:devfrom
itisAliRH wants to merge 16 commits intogalaxyproject:devfrom
Conversation
45 tasks
6a84fe6 to
bd6681a
Compare
- Remove deprecated BTable in favor of GTable for improved functionality. - Update field types from FieldEntry to TableField for consistency. - Enhance sorting and filtering capabilities with new computed properties. - Refactor event handling for row clicks and sorting changes. - Improve pagination reset logic when filters are applied.
- Deleted the FieldEntry interface from selectionTypes.ts as it is no longer needed. - This change helps to clean up the code and improve maintainability.
- Updated the SelectionDialog test file to replace instances of BTable with GTable. - Ensured that the tests correctly check for the existence of GTable instead of BTable.
- Updated the test file to remove the BTable component. - Integrated GTable component to align with recent UI changes. - Ensured that the tests reflect the current component structure.
- Changed fields definitions in DataDialog, FilesDialog, BasicSelectionDialog, and HistoryDatasetPicker components to explicitly use TableField type. - Added labels for fields in each dialog to improve clarity and consistency.
- Change v-model to use :value and @input for filter binding - Ensure proper data flow for search functionality
- Introduced TableClassValue type for better class management in GTable. - Updated TableField interface to use TableClassValue for class and cellClass properties. - Modified GTable.vue to utilize new class handling for rows and cells.
- Change the icon selection logic to use selectionState instead of _rowVariant. - Update SelectionItem interface to replace _rowVariant with selectionState. - Ensure proper type imports for TableClassValue in selectionTypes.
- Updated the FilesDialog component to use 'selectionState' instead of '_rowVariant' for better clarity. - Adjusted related test cases to reflect this change. - Ensured consistent handling of selection states across the component.
- Updated the variable name from _rowVariant to selectionState for clarity. - Added a class binding based on the selection state to enhance UI feedback.
- Remove unused select icon field and related props. - Rename props for clarity: selectAllVariant to selectable, showSelectIcon to allSelected. - Implement syncSelectedItems function to manage selected items based on item classes and selection state. - Update event handling for row clicks and select all actions to utilize syncSelectedItems.
- Remove unused selectAllIcon state. - Replace selectAllIcon with allSelected prop for better clarity. - Adjust SelectionDialog props for improved functionality.
- Removed computed property for selectAllIcon. - Updated props for selection dialog to use allSelected directly. - Enhanced clarity in the selection handling for datasets.
- Imported the Model from the local model file to enhance functionality within the DataDialog component.
bd6681a to
145a784
Compare
Update FilesDialog tests to assert the GTable header checkbox state instead of the removed SelectionDialog selectAllVariant prop.\n\nAdd SelectionDialog regression tests that verify select-all checked/indeterminate behavior from incoming item selection metadata.\n\nKeep selected row indices synchronized with incoming table items so select-all state remains correct after directory navigation and recursive selection updates.
- Change the selector for the busy spinner in the selection dialog to use a data attribute for better specificity. - Update the corresponding import dataset selector to match the new structure.
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.
WIP: This PR migrates SelectionDialog and its related components from Bootstrap-Vue's components to our
GTableas part of the ongoing effort tracked in #21703.How to test the changes?
(Select all options that apply)
License