Fusion
19cdf7f448
feat(FN-2959): merge fusion/fn-2959-2
- Add custom provider CRUD routes (`POST/GET/PUT/DELETE /api/custom-providers`) with auth validation and storage in `~/.fusion/settings.json`; registers via `register-custom-provider-routes.ts`
- Add `CustomProviderForm` component for user-defined provider configuration (endpoint URL, API key, model ID); includes dedicated CSS
- Add custom provider section to `SettingsModal` under the "Models" tab with provider list and add/disable controls
- Add custom provider selection to `ModelOnboardingModal` onboarding flow so new users can use their own endpoints
- Add changeset (`custom-openai-anthropic-providers.md`) for `@runfusion/fusion` minor release
- Add unit tests for `CustomProviderForm`, `ModelOnboardingModal`, `SettingsModal`, custom-provider routes, and `useTasks` hook; update existing mocks
Commits merged:
- feat(FN-2959): complete Step 6 — add changeset and docs
- test(FN-2959): update settings modal mocks for custom provider API
- feat(FN-2959): complete Step 4 — add onboarding custom provider flow
- feat(FN-2959): complete Step 3 — add settings custom provider disclosure
- feat(FN-2959): complete Step 2 — add custom provider form component
- feat(FN-2959): complete Step 1 — add custom provider CRUD routes
- feat(FN-2975): merge fusion/fn-2975
Files changed:
.changeset/custom-openai-anthropic-providers.md | 5 +
packages/dashboard/app/api/legacy.ts | 41 ++++
.../app/components/CustomProviderForm.css | 45 ++++
.../app/components/CustomProviderForm.tsx | 203 ++++++++++++++++
.../app/components/ModelOnboardingModal.css | 14 ++
.../app/components/ModelOnboardingModal.tsx | 62 ++++-
.../dashboard/app/components/SettingsModal.css | 38 +++
.../dashboard/app/components/SettingsModal.tsx | 91 +++++++-
.../__tests__/CustomProviderForm.test.tsx | 60 +++++
.../__tests__/ModelOnboardingModal.test.tsx | 23 ++
.../components/__tests__/SettingsModal.test.tsx | 13 ++
.../__tests__/SettingsModalNodeRouting.test.tsx | 4 +
.../components/__tests__/settings-mobile.test.tsx | 4 +
.../dashboard/app/hooks/__tests__/useTasks.test.ts | 48 ++++
packages/dashboard/app/hooks/useTasks.ts | 4 +-
packages/dashboard/src/auth-paths.ts | 4 +
packages/dashboard/src/routes.ts | 2 +
.../__tests__/custom-provider-routes.test.ts | 118 ++++++++++
.../src/routes/register-custom-provider-routes.ts | 254 +++++++++++++++++++++
19 files changed, 1027 insertions(+), 6 deletions(-)
Fusion-Task-Id: FN-2959
2026-04-29 20:15:05 -07:00
..
2026-04-29 14:23:58 -07:00
2026-04-04 08:11:43 -07:00
2026-04-28 14:25:55 -07:00
2026-04-15 19:27:53 -07:00
2026-04-27 19:59:52 -07:00
2026-04-27 19:59:52 -07:00
2026-04-27 19:59:52 -07:00
2026-04-24 19:39:20 -07:00
2026-04-24 19:39:20 -07:00
2026-04-29 13:29:00 -07:00
2026-04-27 03:13:32 -07:00
2026-04-17 09:16:08 -07:00
2026-04-22 09:56:26 -07:00
2026-04-28 18:21:17 -07:00
2026-04-27 19:59:52 -07:00
2026-04-29 16:55:20 -07:00
2026-04-29 14:26:58 -07:00
2026-04-25 00:07:19 -07:00
2026-04-29 16:11:59 -07:00
2026-04-28 19:20:10 -07:00
2026-04-25 01:45:29 -07:00
2026-04-27 12:45:53 -07:00
2026-04-29 09:21:30 -07:00
2026-04-29 09:46:16 -07:00
2026-04-29 13:23:31 -07:00
2026-04-27 19:59:52 -07:00
2026-04-05 23:08:27 -07:00
2026-04-27 04:05:25 -07:00
2026-04-18 12:21:14 -07:00
2026-04-08 14:17:20 -07:00
2026-04-28 19:20:10 -07:00
2026-04-25 17:44:55 -07:00
2026-04-25 19:35:47 -07:00
2026-04-29 20:15:05 -07:00
2026-04-24 19:39:20 -07:00
2026-04-24 13:29:48 -07:00
2026-04-22 16:31:30 -07:00
2026-04-22 15:53:08 -07:00
2026-04-25 11:28:33 -07:00
2026-04-24 08:55:02 -07:00
2026-04-08 20:04:23 -07:00
2026-04-25 10:50:32 -07:00
2026-04-27 19:59:52 -07:00
2026-04-29 19:09:55 -07:00
2026-04-24 19:39:20 -07:00
2026-04-18 07:36:57 -07:00
2026-04-06 15:37:45 -07:00
2026-04-28 16:20:24 -07:00
2026-04-27 04:05:25 -07:00
2026-04-27 19:59:52 -07:00
2026-04-29 00:09:39 -07:00
2026-04-29 16:25:30 -07:00
2026-04-29 12:12:05 -07:00
2026-04-27 02:24:21 -07:00
2026-04-28 19:20:10 -07:00
2026-04-27 19:59:52 -07:00
2026-04-28 14:25:55 -07:00
2026-04-24 09:38:16 -07:00
2026-04-09 16:35:41 -07:00
2026-04-24 19:39:20 -07:00
2026-04-24 19:39:20 -07:00
2026-04-24 19:39:20 -07:00
2026-04-29 13:29:00 -07:00
2026-04-27 16:05:50 -07:00
2026-04-24 19:39:20 -07:00
2026-04-29 00:23:29 -07:00
2026-04-27 19:59:52 -07:00
2026-04-17 05:36:02 -07:00
2026-04-29 20:15:05 -07:00
2026-04-26 12:25:10 -07:00
2026-04-28 18:21:17 -07:00
2026-04-27 19:59:52 -07:00
2026-04-28 14:25:56 -07:00
2026-04-27 19:59:52 -07:00
2026-04-27 19:59:52 -07:00
2026-04-16 08:38:08 -07:00
2026-04-28 23:23:34 -07:00
2026-04-24 19:39:20 -07:00
2026-04-09 13:01:19 -07:00
2026-04-16 09:08:06 -07:00
2026-04-17 08:01:38 -07:00
2026-04-29 17:23:22 -07:00
2026-04-25 07:04:50 -07:00
2026-04-24 08:55:02 -07:00
2026-04-28 14:25:55 -07:00
2026-04-27 19:59:52 -07:00
2026-04-27 19:59:52 -07:00
2026-04-16 10:04:44 -07:00
2026-04-25 07:04:50 -07:00
2026-04-27 19:59:52 -07:00
2026-04-14 10:43:51 -07:00
2026-04-28 23:23:34 -07:00
2026-04-18 03:08:00 -07:00
2026-04-06 15:05:21 -07:00
2026-04-27 19:25:10 -07:00
2026-04-23 10:58:36 -07:00
2026-04-29 19:15:23 -07:00
2026-04-29 00:09:39 -07:00
2026-04-27 19:59:52 -07:00
2026-04-27 19:59:52 -07:00
2026-04-27 19:59:52 -07:00
2026-04-29 12:12:05 -07:00
2026-04-27 04:05:25 -07:00
2026-04-27 19:59:52 -07:00
2026-04-16 08:38:55 -07:00
2026-04-27 19:59:52 -07:00
2026-04-27 19:59:52 -07:00
2026-04-29 20:15:05 -07:00
2026-04-29 20:15:05 -07:00
2026-04-29 20:15:05 -07:00
2026-04-16 08:38:08 -07:00
2026-04-16 08:38:08 -07:00
2026-04-16 04:38:05 -07:00
2026-04-19 20:48:13 -07:00
2026-04-28 21:13:30 -07:00
2026-04-24 19:39:20 -07:00
2026-04-25 12:40:32 -07:00
2026-04-27 04:05:25 -07:00
2026-04-27 08:45:49 -07:00
2026-04-29 14:02:24 -07:00
2026-04-29 11:42:37 -07:00
2026-04-26 22:21:18 -07:00
2026-04-29 18:01:59 -07:00
2026-04-22 08:04:24 -07:00
2026-04-28 16:24:22 -07:00
2026-04-28 19:20:10 -07:00
2026-04-27 19:59:52 -07:00
2026-04-10 00:59:17 -07:00
2026-04-29 17:23:22 -07:00
2026-04-28 15:20:49 -07:00
2026-04-29 00:31:46 -07:00
2026-04-27 19:59:52 -07:00
2026-04-25 12:18:55 -07:00
2026-04-13 17:41:33 -07:00