mirror of
https://github.com/chatwoot/chatwoot.git
synced 2026-06-28 21:01:02 +08:00
This updates macros and automations so agents can explicitly remove assigned agents or teams, while keeping the existing `Assign -> None` flow working for backward compatibility. Fixes: #7551 Closes: #7551 ## Why The original macro change exposed unassignment only through `Assign -> None`, which made macros behave differently from automations and left the explicit remove actions inconsistent across the product. This keeps the lower-risk compatibility path and adds the explicit remove actions requested in review. ## What this change does - Adds `Remove Assigned Agent` and `Remove Assigned Team` as explicit actions in macros. - Adds the same explicit remove actions in automations. - Keeps `Assign Agent -> None` and `Assign Team -> None` working for existing behavior and stored payloads. - Preserves backward compatibility for existing macro and automation execution payloads. - Downmerges the latest `develop` and resolves the conflicts while keeping both the new remove actions and current `develop` behavior. ## Validation - Verified both remove actions are available and selectable in the macro editor. - Verified both remove actions are available and selectable in the automation builder. - Applied a disposable macro with `Remove Assigned Agent` and `Remove Assigned Team` on a real conversation and confirmed both fields were cleared. - Applied a disposable macro with `Assign Agent -> None` and `Assign Team -> None` on a real conversation and confirmed both fields were still cleared. |
||
|---|---|---|
| .. | ||
| captain | ||
| chatlist | ||
| commands | ||
| spec | ||
| utils | ||
| emitter.js | ||
| index.js | ||
| loadWithRetry.js | ||
| store.js | ||
| useAccount.js | ||
| useAdmin.js | ||
| useAgentsList.js | ||
| useAutomation.js | ||
| useAutomationValues.js | ||
| useCallSession.js | ||
| useCaptain.js | ||
| useConfig.js | ||
| useConversationLabels.js | ||
| useConversationRequiredAttributes.js | ||
| useCopilotReply.js | ||
| useDetectKeyboardLayout.js | ||
| useEditableAutomation.js | ||
| useFileUpload.js | ||
| useFontSize.js | ||
| useImageZoom.js | ||
| useImpersonation.js | ||
| useInbox.js | ||
| useIntegrationHook.js | ||
| useKeyboardEvents.js | ||
| useKeyboardNavigableList.js | ||
| useLabelSuggestions.js | ||
| useLiveRefresh.js | ||
| useMacros.js | ||
| usePolicy.js | ||
| useReportMetrics.js | ||
| useTransformKeys.js | ||
| useTranslations.js | ||
| useUISettings.js | ||