feat(#116): update command hooks for synchronous group response
Add CommandGroupResponse and ConfigUpdateResponse types. Switch useSendGroupCommand and useSendRouteCommand from openapi-fetch to authFetch returning CommandGroupResponse. Update useUpdateApplicationConfig to return ConfigUpdateResponse and fix all consumer onSuccess callbacks to access saved.config.version instead of saved.version. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -155,7 +155,7 @@ export default function AppConfigDetailPage() {
|
||||
updateConfig.mutate(updated, {
|
||||
onSuccess: (saved) => {
|
||||
setEditing(false);
|
||||
toast({ title: 'Config saved', description: `${appId} updated to v${saved.version}`, variant: 'success' });
|
||||
toast({ title: 'Config saved', description: `${appId} updated to v${saved.config.version}`, variant: 'success' });
|
||||
},
|
||||
onError: () => {
|
||||
toast({ title: 'Save failed', description: 'Could not update configuration', variant: 'error' });
|
||||
|
||||
Reference in New Issue
Block a user