From 8a1e8cd79e2327f648a3732eda83e72a7bbfd0dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Padez?= Date: Sun, 26 Jul 2026 10:29:14 +0000 Subject: [PATCH] widgets: resync button on the panel A reload button (next to +) so newly-deployed widgets show up without a manual hard-refresh after a rebuild+restart. Co-Authored-By: Claude Opus 4.8 --- .../src/apps/Widgets/WidgetPanel.tsx | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/src/workspaces/officerdev/src/apps/Widgets/WidgetPanel.tsx b/src/workspaces/officerdev/src/apps/Widgets/WidgetPanel.tsx index 2766e642..491b92f6 100644 --- a/src/workspaces/officerdev/src/apps/Widgets/WidgetPanel.tsx +++ b/src/workspaces/officerdev/src/apps/Widgets/WidgetPanel.tsx @@ -3,7 +3,7 @@ import { useCallback, useEffect, useRef, useState } from 'react'; import { useQuery, useQueryClient } from '@tanstack/react-query'; import { useClient } from 'hooks/useClient'; import { useAuth } from 'hooks/useAuth'; -import { Plus, X } from 'lucide-react'; +import { Plus, X, RefreshCw } from 'lucide-react'; import { useWidgetRegistry } from '../../WidgetRegistry'; import { WidgetPicker } from './WidgetPicker'; @@ -226,13 +226,23 @@ export const WidgetPanel = ({ panelId }: { panelId: string }) => { )} - +
+ + +
);