Use the shared favorites hook so agent model pickers stay in sync with project favorites. - Switch AgentDetailView config tab model favorites to use useFavorites instead of local settings update logic. - Switch NewAgentDialog model favorites to the same shared favorites flow and remove duplicated toggle handlers. - Extend AgentDetailView/NewAgentDialog tests and dropdown test helpers to exercise provider/model favorite toggles through the shared global settings path. Files changed: .../dashboard/app/components/AgentDetailView.tsx | 44 +++------------------ .../dashboard/app/components/NewAgentDialog.tsx | 45 +++------------------- .../AgentDetailView.advanced-settings.test.tsx | 41 ++++++++++++++++++++ .../__tests__/AgentDetailView.test-helpers.ts | 25 +++++++++++- .../components/__tests__/NewAgentDialog.test.tsx | 36 +++++++++++++++++ 5 files changed, 111 insertions(+), 80 deletions(-) Fusion-Task-Id: FN-5669 Fusion-Task-Lineage: 8ace8ea1-1c88-409c-a9ae-6b5deb391f46
37 KiB
37 KiB