Enhance Execution Management with UI Display Fields and Localization #1427
Enhance Execution Management with UI Display Fields and Localization #1427trheyi merged 5 commits intoYaoApp:mainfrom
Conversation
- Updated the ListRobots function to enhance caching behavior by explicitly requiring the autonomous_mode filter to be true when using cached results. - Improved comments for clarity on caching conditions and the implications of autonomous_mode filtering. - Ensured that when autonomous_mode is not specified or set to false, the database is queried to include all robots, maintaining comprehensive results.
…Support - Added `Name` and `CurrentTaskName` fields to the `Execution` struct for improved UI display during execution phases. - Implemented localization support for UI messages, allowing dynamic updates based on the execution context and user locale. - Updated the executor to manage these fields at various phases, ensuring accurate representation of execution status. - Enhanced OpenAPI documentation to reflect the new fields and their usage in execution responses. - Added unit tests to validate the functionality of UI fields and localization handling.
- Refactored failure message construction to use concise phase names instead of full error messages, improving clarity in UI feedback. - Updated localization support for failure messages, ensuring accurate translations for various phases in both English and Chinese. - Added unit tests to validate the new failure message format and localization functionality.
- Introduced a new `Description` field in the `Task` struct for a human-readable task description, improving UI clarity. - Updated the `ParseTask` function to save the description from input data and convert it to a message if no explicit messages are provided. - Enhanced the `Executor` to update UI fields with localized messages during task execution phases, ensuring better user feedback. - Implemented a new method in the `ExecutionStore` to persist task status updates, allowing real-time UI updates. - Added unit tests to validate the new task description handling and UI updates during execution phases.
- Added logic to calculate the current state for progress bar display in the `NewExecutionResponseBrief` function. - If `exec.Current` is nil, the progress is derived from the task statuses, providing a synthetic current state for better UI feedback. - Updated the `Current` field in the execution response to include this calculated progress, improving clarity in execution status representation.
|
🤖 Robot E2E Tests running with SQLite... |
|
Thank you for the PR! The db: SQLite3 redis: 4 mongo: 6.0 test workflow is running, the results of the run will be commented later. |
|
Thank you for the PR! The db: SQLite3 redis: 6 mongo: 6.0 test workflow is running, the results of the run will be commented later. |
|
Thank you for the PR! The db: SQLite3 redis: 5 mongo: 6.0 test workflow is running, the results of the run will be commented later. |
|
Thank you for the PR! The db: MySQL8.0 redis: 5 mongo: 6.0 test workflow is running, the results of the run will be commented later. |
|
Thank you for the PR! The db: MySQL8.0 redis: 6 mongo: 6.0 test workflow is running, the results of the run will be commented later. |
|
Thank you for the PR! The db: MySQL8.0 redis: 4 mongo: 6.0 test workflow is running, the results of the run will be commented later. |
|
🤖 KB Tests (kb) running with SQLite... |
|
🤖 AI Tests (agent, aigc) running with SQLite... |
|
✅ KB Tests (kb) passed! |
|
✨DONE✨ db: SQLite3 redis: 5 mongo: 6.0 passed. |
|
✅ Robot E2E Tests passed! |
|
✨DONE✨ db: SQLite3 redis: 6 mongo: 6.0 passed. |
|
✨DONE✨ db: SQLite3 redis: 4 mongo: 6.0 passed. |
|
✨DONE✨ db: MySQL8.0 redis: 6 mongo: 6.0 passed. |
|
✨DONE✨ db: MySQL8.0 redis: 4 mongo: 6.0 passed. |
|
✨DONE✨ db: MySQL8.0 redis: 5 mongo: 6.0 passed. |
|
✅ AI Tests (agent, aigc) passed! |
No description provided.