📝 Description
On the Project page, an icon allows an admin user to Run an Ai Workflow and it indicates the status of the AI Workflow execution. It appears in one of three possible states:
- No Workflow Executed – Displayed as an unadorned button.
- Workflow In Progress – Displayed with a spinner.
- Workflow Complete – Displayed with a green check mark.
When the page loads, the icon automatically appears in its correct initial state based on the workflow’s current execution status.
📂 Menu Behavior
When the Portal Admin clicks the workflow status icon, a menu appears containing:
- "Run AI Workflow…"
- After clicking on Run AI Workflow admins will see a confirmation that the workflow has been submitted. Results will be displayed in the photo manager once the workflow has completed.
If the icon is in State #2 (Workflow In Progress):
- The menu item "Run AI Workflow…" is disabled to prevent starting another workflow during execution.
Error Messaging: If the workflow configuration selected did not generate any tasks to be run, admins will see an error message. Click on Dismiss to close the modal.
🚦 Status Behavior
🔄 Workflow In Progress
When an AI workflow is started from the page:
- The icon immediately switches to the spinner (Workflow In Progress state).
🖱️ Mouse-Over Behavior
While Workflow Is In Progress
When the user hovers over the spinner:
- A popup displays: "AI Workflow is In Progress"
- Followed by the current progress count, e.g., "8 of 120 tasks completed"
- The task count updates each time the user hovers over the icon.
When Workflow Has Completed
When the user hovers over the icon after the workflow completes:
- The icon switches to the green check state
- The tooltip displays:
- "AI Workflow Completed"
- "Reload the page and go to the Photo Manager to see the results"
📌 Summary
The workflow status icon provides clear and dynamic feedback throughout the AI workflow lifecycle. It:
- Shows a visual status indicator
- Displays real-time progress on hover
- Updates the tooltip based on workflow completion
- Manages workflow actions through an interactive menu
This ensures users always know the current workflow state and have access to appropriate actions at the right time.
Comments