Skip to content

Conversation

@mosoriob
Copy link
Collaborator

  • feat: add UploadDataModal for data file uploads in StationDashboard
  • feat: integrate useUploadData hook for file uploads in UploadDataModal
  • feat: implement CSV chunking for file uploads in useUploadData hook
  • fix: improve UploadDataModal functionality
  • fix: invalid data

mosoriob added 5 commits May 25, 2025 17:45
- Introduced UploadDataModal component to facilitate uploading sensor and measurement data files.
- Integrated modal into StationDashboard, allowing users to open it via an "Add New Data" button.
- Implemented file handling logic for sensor and measurement CSV uploads, with basic UI for file selection and upload actions.
- Enhanced user experience by managing modal visibility and upload states.
- Added useUploadData hook to handle the file upload logic for sensor and measurement data.
- Updated UploadDataModal to utilize the new hook, simplifying the upload process and improving state management.
- Removed local upload state management in favor of the hook's built-in loading state, enhancing user experience during uploads.
- Added functionality to split large CSV files into manageable chunks for sequential uploads, improving upload efficiency and handling of large datasets.
- Introduced a method to create an empty Blob for cases where no measurement file is provided, ensuring robust file handling during uploads.
- Updated the upload logic to accommodate chunked uploads, enhancing the overall user experience when dealing with large files.
- Reverted VITE_UPSTREAM_API_URL to local development URL for testing purposes.
- Removed unused StatsWidget import from CampaignDashboard component to clean up code.
- Enhanced UploadDataModal to include upload progress tracking, providing users with real-time feedback during file uploads.
- Updated button styles in StationDashboard to use primary color scheme for consistency across the application.
@netlify
Copy link

netlify bot commented May 26, 2025

Deploy Preview for dso-tacc ready!

Name Link
🔨 Latest commit 431437f
🔍 Latest deploy log https://app.netlify.com/projects/dso-tacc/deploys/6834778d41aaa90008c4f6c2
😎 Deploy Preview https://deploy-preview-88--dso-tacc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mosoriob mosoriob merged commit 6a9d1a5 into main May 26, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants