Skip to content

Quick Add Capture(s) to Dataset#259

Merged
lucaspar merged 10 commits intomasterfrom
lk/quick-add-capture
Apr 14, 2026
Merged

Quick Add Capture(s) to Dataset#259
lucaspar merged 10 commits intomasterfrom
lk/quick-add-capture

Conversation

@LLKruczek
Copy link
Copy Markdown
Collaborator

No description provided.

@LLKruczek LLKruczek requested a review from lucaspar February 17, 2026 21:00
@lucaspar lucaspar added gateway Gateway component styling Special focus on styling of front-end components javascript Pull requests that update non-trivial javascript code labels Feb 17, 2026
@lucaspar lucaspar requested a review from Copilot February 23, 2026 14:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread gateway/sds_gateway/static/js/actions/QuickAddToDatasetManager.js Outdated
Comment thread gateway/sds_gateway/templates/users/partials/captures_page_table.html Outdated
Comment thread gateway/sds_gateway/static/js/file-list.js
Comment thread gateway/sds_gateway/users/views.py Outdated
Comment thread gateway/sds_gateway/static/js/actions/QuickAddToDatasetManager.js Outdated
Comment thread gateway/sds_gateway/users/views.py Outdated
Comment thread gateway/sds_gateway/users/views.py Outdated
Comment thread gateway/sds_gateway/static/js/actions/QuickAddToDatasetManager.js
Comment thread gateway/sds_gateway/static/js/file-list.js
Comment thread gateway/sds_gateway/static/js/file-list.js Outdated
Comment thread gateway/sds_gateway/users/views.py Outdated
Comment thread gateway/sds_gateway/users/views_deprecated.py
Comment thread gateway/sds_gateway/users/views.py Outdated
Comment thread gateway/sds_gateway/users/views_deprecated.py
Comment thread gateway/sds_gateway/users/views.py Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread gateway/sds_gateway/users/views_deprecated.py
Comment thread gateway/sds_gateway/users/views.py
Comment thread gateway/sds_gateway/users/views.py
Comment thread gateway/sds_gateway/users/views_deprecated.py
Comment thread gateway/sds_gateway/templates/users/file_list.html Outdated
Comment thread gateway/sds_gateway/templates/users/file_list.html
Comment thread gateway/sds_gateway/templates/users/file_list.html Outdated
 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
@LLKruczek LLKruczek force-pushed the lk/quick-add-capture branch from dda44b5 to 8722cac Compare April 14, 2026 14:29
Comment thread gateway/sds_gateway/users/views_deprecated.py
Comment thread gateway/sds_gateway/templates/users/file_list.html Outdated
@lucaspar lucaspar merged commit 5ff5adf into master Apr 14, 2026
2 checks passed
@lucaspar lucaspar deleted the lk/quick-add-capture branch April 14, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway component javascript Pull requests that update non-trivial javascript code styling Special focus on styling of front-end components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants