Closed megasanjay closed 1 month ago
Thank you for submitting this pull request! We appreciate your contribution to the project. Before we can merge it, we need to review the changes you've made to ensure they align with our code standards and meet the requirements of the project. We'll get back to you as soon as we can with feedback. Thanks again!
This pull request adds support for Zenodo progress tracking and improves the user interface for Zenodo-related functionality. The changes include new UI components for displaying Zenodo publish status, a progress modal, and backend modifications to handle Zenodo workflow status updates.
sequenceDiagram
actor User
participant UI as User Interface
participant Server
participant Zenodo
User->>UI: Initiate Zenodo Publish
UI->>Server: startZenodoPublishProcess()
Server->>Zenodo: Start publish process
Zenodo-->>Server: Acknowledge publish start
Server-->>UI: Notify publish started
UI->>User: Show success message
UI->>Server: checkForZenodoPublishProgress()
loop Every 3 seconds
Server->>Zenodo: Check publish status
Zenodo-->>Server: Return status
alt Status is not inProgress
Server->>UI: Update status
UI->>User: Hide progress modal
UI->>User: Navigate to dashboard
end
end
journey
title Zenodo Publish Process
section Initiate Publish
User: 5: Initiates Zenodo publish
section Publish Progress
System: 4: Displays progress modal
System: 3: Checks publish status every 3 seconds
section Completion
System: 5: Hides progress modal when complete
User: 4: Navigates to dashboard
section Error Handling
System: 2: Displays error if publish fails
classDiagram
class ZenodoDeposition {
+String lastPublishedZenodoDoi
+String zenodoId
+String zenodoStatus
}
class ZenodoStatusHandler {
+void checkForZenodoPublishProgress()
+void startZenodoPublishProcess(Boolean shouldPublish)
}
ZenodoDeposition <|-- ZenodoStatusHandler
note for ZenodoDeposition "Handles Zenodo deposition data"
note for ZenodoStatusHandler "Manages Zenodo publish process and status updates"
Change | Details | Files |
---|---|---|
Added Zenodo publish progress tracking |
|
ui/pages/dashboard/[owner]/[repo]/release/zenodo.vue ui/server/api/[owner]/[repo]/release/zenodo/index.post.ts ui/server/api/[owner]/[repo]/release/zenodo/status.get.ts |
Enhanced UI for Zenodo-related information |
|
ui/pages/dashboard/[owner]/[repo]/index.vue ui/server/api/[owner]/[repo]/dashboard.get.ts ui/server/api/[owner]/[repo]/release/zenodo/index.get.ts |
Improved Zenodo form validation |
|
ui/pages/dashboard/[owner]/[repo]/release/zenodo.vue |
Updated data models and API responses |
|
ui/server/api/[owner]/[repo]/dashboard.get.ts ui/server/api/[owner]/[repo]/release/zenodo/index.get.ts ui/server/api/[owner]/[repo]/release/zenodo/index.post.ts |
Introduction of New Interface Components
NModal
and NSpin
elements from Naive UI have been introduced in the system update, offering us additional flexible interface elements for future developments.
Enhanced License Status Notification The handling of status notification for incorrect licenses has been upgraded, providing a more intuitive and user-friendly experience when issues arise.
Inclusion of Zenodo Publication Status Indicators Now, users can easily see the state of their Zenodo publications directly within our software, including successful publications and ongoing efforts.
Real-time Zenodo Publishing Status Check The system now checks and reports the real-time progress of Zenodo publishing, keeping the user informed about the processing status through a progress dialog box.
Upgrade in Zenodo Deposition Status The status modes for Zenodo deposition have been expanded, allowing for better tracking of progress, handling of errors, and management of draft stages.
Enrichment of API Handlers for Zenodo Several changes have been performed to improve the internal communication with Zenodo systems:
dashboard.get.ts
API now fetches and returns Zenodo deposition information.status.get.ts
has been added specifically to track the real-time status of Zenodo deposition processes.Thanks for closing this pull request! If you have any further questions, please feel free to open a new issue. We are always happy to help!
Thanks for making updates to your pull request. Our team will take a look and provide feedback as soon as possible. Please wait for any GitHub Actions to complete before editing your pull request. If you have any additional questions or concerns, feel free to let us know. Thank you for your contributions!
Summary by Sourcery
Add support for monitoring Zenodo publish progress, including a modal for status updates and a new API endpoint to check deposition status. Enhance the dashboard with alerts and information about Zenodo publication status and last published DOI.
New Features:
Enhancements: