Conversation
Changed Files
|
There was a problem hiding this comment.
Pull request overview
This pull request implements a "Quick Add Capture(s) to Dataset" feature that allows users to add one or multiple captures to a dataset through two workflows: (1) a selection mode in the captures table where users can select multiple captures via checkboxes, and (2) planned support for single-capture quick-add from dropdown menus (though the UI for this is not yet implemented in the templates).
Changes:
- Added backend API endpoints for quick-adding captures to datasets and retrieving eligible datasets
- Implemented frontend selection mode with checkbox-based multi-select in the captures table
- Created a modal interface for selecting the target dataset and confirming the operation
- Added support for automatic multi-channel capture grouping during addition
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| gateway/sds_gateway/users/views.py | Added QuickAddCapturesToDatasetView for adding captures and UserDatasetsForQuickAddView for listing eligible datasets with proper permission checks |
| gateway/sds_gateway/users/urls.py | Registered two new URL patterns for the quick-add API endpoints |
| gateway/sds_gateway/templates/users/partials/quick_add_to_dataset_modal.html | New modal template for dataset selection with accessible form controls |
| gateway/sds_gateway/templates/users/partials/captures_page_table.html | Added selection column with checkboxes (hidden by default, shown in selection mode) |
| gateway/sds_gateway/templates/users/file_list.html | Integrated selection mode buttons and quick-add modal into the file list page |
| gateway/sds_gateway/static/js/file-list.js | Implemented selection mode toggle, checkbox state management, and row click handling |
| gateway/sds_gateway/static/js/components.js | Updated row click handler to ignore clicks on selection checkboxes |
| gateway/sds_gateway/static/js/actions/QuickAddToDatasetManager.js | New manager class handling modal interactions, dataset loading, and API calls for single/multi capture addition |
| gateway/sds_gateway/static/css/file-list.css | Added CSS rules to show/hide selection column based on selection mode state |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
8c30df5 to
31278c8
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated 7 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Changes to be committed: modified: gateway/sds_gateway/static/css/file-list.css new file: gateway/sds_gateway/static/js/actions/QuickAddToDatasetManager.js modified: gateway/sds_gateway/static/js/components.js modified: gateway/sds_gateway/static/js/file-list.js modified: gateway/sds_gateway/templates/users/file_list.html modified: gateway/sds_gateway/templates/users/partials/captures_page_table.html new file: gateway/sds_gateway/templates/users/partials/quick_add_to_dataset_modal.html modified: gateway/sds_gateway/users/urls.py modified: gateway/sds_gateway/users/views.py Changes to be committed: modified: gateway/sds_gateway/static/css/file-list.css new file: gateway/sds_gateway/static/js/actions/QuickAddToDatasetManager.js modified: gateway/sds_gateway/static/js/components.js modified: gateway/sds_gateway/static/js/file-list.js modified: gateway/sds_gateway/templates/users/file_list.html modified: gateway/sds_gateway/templates/users/partials/captures_page_table.html new file: gateway/sds_gateway/templates/users/partials/quick_add_to_dataset_modal.html modified: gateway/sds_gateway/users/urls.py modified: gateway/sds_gateway/users/views.py
dda44b5 to
8722cac
Compare
No description provided.