Feature #656: Add Open Data UI to Cloud Computing tab - #690
Open
ArsalanAnwer0 wants to merge 3 commits into
Open
Feature #656: Add Open Data UI to Cloud Computing tab#690ArsalanAnwer0 wants to merge 3 commits into
ArsalanAnwer0 wants to merge 3 commits into
Conversation
Implements OpenDataAPI class with directory validation and augmentation execution. - validate_directory(): Pre-flight check for proper directory structure - run_open_data(): Execute opendata.py and capture console output - Comprehensive error handling for file/permission errors - Cross-platform path handling (Windows/Mac/Linux) Integration point for Issue 3C-SCSU#656 Open Data UI.
- Import OpenDataAPI - Initialize API instance - Register with QML engine context Prepares backend for Cloud Computing UI integration.
Implements comprehensive UI for BCI dataset augmentation: - Directory selection with validation feedback - Open Data button with state management (normal/running/success/error) - Console log display for real-time progress - Confirmation dialog with file counts and operation details - Integrated into existing Cloud Computing tab layout UI Components: - FolderDialog for directory selection - TextArea for console output display - Dialog for pre-execution confirmation - Visual state indicators (color-coded buttons) Acceptance Criteria: - User can select parent directory containing brainwaves/ - Validation checks directory structure before execution - Console log shows opendata.py output - Button changes color based on execution state - Success/error feedback displayed prominently Closes 3C-SCSU#656
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.
Issue
Closes #656
Summary
This PR implements the UI/UX interface for the Open Data publishing procedure, integrated into the Cloud Computing tab. Users can now augment their BCI datasets by 60% through a user friendly interface that validates directory structure, shows real time progress, and provides clear success/error feedback.
Changes
Backend (opendata_api.py)
Integration (GUI5.py)
UI (CloudComputing.qml)
Technical Implementation
Directory Structure Expected:
Execution Flow:
Error Handling:
Testing
Files Modified
Acceptance Criteria Met
Additional Context
This follows established patterns from FileShuffler.qml and shuffler_api.py for consistency with the existing codebase. The UI matches the Cloud Computing tab's styling and integrates seamlessly with existing functionality.