Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

feat: api_store#247

Merged
CocoRoF merged 15 commits intodeployfrom
main
Oct 17, 2025
Merged

feat: api_store#247
CocoRoF merged 15 commits intodeployfrom
main

Conversation

@CocoRoF
Copy link
Collaborator

@CocoRoF CocoRoF commented Oct 17, 2025

This pull request introduces significant enhancements and refactoring to the API utility files for both the Data Manager and Tool Store functionalities. The main improvements include the addition of comprehensive version management APIs for datasets, major refactoring and expansion of Tool Store API functions, and some cleanup of API request headers for consistency.

The most important changes are:

Data Manager API Enhancements (dataManagerAPI.js):

  • Added a full suite of dataset version management API functions, including fetching version history, rolling back to a previous version, comparing versions, listing MinIO-stored versions, formatting version information for display, and managing dataset load/version switching. These utilities provide robust support for dataset version control and visualization.

Tool Store API Refactoring and Feature Expansion (toolsAPI.js):

  • Refactored several Tool Store API functions to use toolId and storeToolId instead of function IDs for clarity and consistency, and updated parameter conventions throughout. [1] [2]
  • Removed legacy or redundant API functions such as loadTool and loadToolFromStore, and updated error logging for better debugging. [1] [2]
  • Added a new API function rateToolStore to allow users to rate tools in the Tool Store, including validation and comprehensive logging.

API Request Consistency:

  • Removed unnecessary 'Content-Type': 'application/json' headers from several API calls where not required, ensuring cleaner and more consistent request handling. [1] [2] [3]

Error Handling and Logging:

  • Enhanced error logging throughout the Tool Store API functions, including logging of IDs and parameters that caused errors, to aid in debugging and support. [1] [2] [3]

These changes collectively improve the maintainability, extensibility, and user experience of both dataset and tool management features.

CocoRoF and others added 15 commits October 17, 2025 00:51
…mponent

- Added ToolStorageDetailModal component for displaying detailed information about tools.
- Integrated ToolStorageDetailModal into ToolStorage component with state management for modal visibility and selected tool.
- Updated API fetching logic in ToolStorage to handle errors and log responses.
- Refactored tool filtering logic to correct status checks from 'unactive' to 'inactive'.
- Enhanced ToolStorageUpload component to include response filtering options and manage API test states.
- Improved UI/UX with tooltips and status indicators based on API test results.
- Added styles for the new modal and updated existing styles for better consistency.
- Added new API functions for version history retrieval, rollback, version comparison, and dataset version switching in dataManagerAPI.js.
- Updated DataProcessor component to integrate version history and dataset version management modals.
- Enhanced UI with new styles for version controls and dataset version badges in DataProcessor.module.scss and DataStation.module.scss.
- Implemented version management features in DataStation and DataProcessorSidebar components, allowing users to view and switch dataset versions.
- Refactored existing components to accommodate new versioning functionalities and improve user experience.
…tyles

- Relocated theme variables to the component scope within MLflowUploadModal.module.scss for better encapsulation.
- Improved modal layout and overlay styles for enhanced user experience.
- Cleaned up existing styles and ensured consistency across modal components.
…ype annotations

- Enhanced the dataset retrieval logic by adding type annotations for better type safety and clarity.
- Ensured that the response structure from the API is explicitly defined, improving maintainability and reducing potential runtime errors.
…oading, and managing tools

- Added ToolStore component to manage tool listings with search and filter options.
- Created ToolStoreDetailModal for displaying detailed information about selected tools.
- Developed ToolStoreUploadModal for uploading new tools to the store.
- Integrated styles for modals and tool cards using SCSS.
- Implemented loading states and error handling for API interactions.
- Added toast notifications for user feedback on actions like downloads and uploads.
…ng and functionality

- Updated ToolStore component to utilize new tool structure and improved filtering logic.
- Removed unused filter modes and adjusted search functionality to match new tool data structure.
- Enhanced ToolStoreDetailModal with better accessibility features and improved layout.
- Added detailed API configuration display, including headers and body.
- Improved modal styling for better user experience and responsiveness.
- Updated SCSS styles for consistency and clarity across modal components.
…ew version, maintaining functionality while improving structure and readability. Added support for tab navigation and storage refresh callback.
@CocoRoF CocoRoF merged commit e0ce9bd into deploy Oct 17, 2025
4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants