-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Labels
claude-batchIssues created by Claude batch workflowIssues created by Claude batch workflowstatus:reviewUnder reviewUnder review
Description
Replace the manual notification orchestration in ModelTryContentButton with the useMultiStepNotification hook (FR-2392).
Current Flow (to be replaced)
- User clicks 'Run this model' →
modal.confirm()clone dialog - Clone mutation fires →
upsertNotificationwith SSE taskId for clone progress useEffectwatches notifications array for clone completion → triggers service creation- Service creation → separate
upsertNotificationwith polling Promise
New Flow (multi-step notification)
- User clicks 'Run this model' →
modal.confirm()clone dialog (same) - Call
start()fromuseMultiStepNotificationwith 3 steps:- Step 1 (SSE): 'Cloning model folder...' — clone vfolder, returns
{ taskId} - Step 2 (Promise): 'Creating service...' —
POST /serviceswith cloned folder ID - Step 3 (Promise): 'Waiting for service to be ready...' — poll until active routes
- Step 1 (SSE): 'Cloning model folder...' — clone vfolder, returns
- On completion: show 'Play your model now!' link to
/chat?endpointId=... - On failure: show retry button + 'Go to service detail page' link
When already-cloned folder exists
- Steps reduce to Step 2 + Step 3 only (skip clone)
Key Changes
- Remove
pendingCloneRefand theuseEffectthat watches notifications - Remove
createServiceNotificationMsgfunction - Add i18n keys:
modelService.CloningModelFolder,modelService.CreatingService,modelService.WaitingForServiceReady
Acceptance Criteria
- Unified notification with step progress (clone → create → ready)
- Cancel button works at any step
- Retry works from failed step
- 'Play your model now!' link on completion
- Same behavior for already-cloned folder path (skip clone step)
Dependencies
Changed Files
react/src/components/ModelTryContentButton.tsxresources/i18n/en.json
JIRA Issue: FR-2405
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
claude-batchIssues created by Claude batch workflowIssues created by Claude batch workflowstatus:reviewUnder reviewUnder review