Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 1 addition & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"class-validator": "^0.15.1"
},
"overrides": {
"rxjs": "7.8.1",
"eslint-plugin-react-hooks": "7.0.1"
"rxjs": "7.8.1"
}
}
54 changes: 27 additions & 27 deletions packages/frontend/src/app/connectors/store/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,23 @@
.finally(() => setLoading(false));
}, [token]);

// Auto-import when ?install=<slug> is present (e.g. from website marketplace)
useEffect(() => {
if (autoInstallTriggered.current || loading || !token || list.length === 0) return;
const installSlug = searchParams.get('install');
if (!installSlug) return;
const adapter = list.find((a) => a.slug === installSlug);
if (!adapter) return;
autoInstallTriggered.current = true;
handleImportClick(adapter);
}, [loading, list, token, searchParams]);
const doImport = async (slug: string, credentials?: Record<string, string>) => {
if (!token) return;
setImporting(slug);
setMsg('');
setConfigAdapter(null);
try {
const adapter = list.find((a) => a.slug === slug);
const result = await adapters.import(slug, token, credentials);
setMsg(result.message);
setImporting(null);
// Show MCP assignment modal
setImportedConnector({ id: result.connectorId, name: adapter?.name || slug });
} catch (err: any) {
setMsg(`Import failed: ${err.message}`);
setImporting(null);
}
};

const handleImportClick = async (adapter: AdapterItem) => {
if (!token) return;
Expand Down Expand Up @@ -136,23 +143,16 @@
}
};

const doImport = async (slug: string, credentials?: Record<string, string>) => {
if (!token) return;
setImporting(slug);
setMsg('');
setConfigAdapter(null);
try {
const adapter = list.find((a) => a.slug === slug);
const result = await adapters.import(slug, token, credentials);
setMsg(result.message);
setImporting(null);
// Show MCP assignment modal
setImportedConnector({ id: result.connectorId, name: adapter?.name || slug });
} catch (err: any) {
setMsg(`Import failed: ${err.message}`);
setImporting(null);
}
};
// Auto-import when ?install=<slug> is present (e.g. from website marketplace)
useEffect(() => {
if (autoInstallTriggered.current || loading || !token || list.length === 0) return;
const installSlug = searchParams.get('install');
if (!installSlug) return;
const adapter = list.find((a) => a.slug === installSlug);
if (!adapter) return;
autoInstallTriggered.current = true;
handleImportClick(adapter);
}, [loading, list, token, searchParams]);

Check warning on line 155 in packages/frontend/src/app/connectors/store/page.tsx

View workflow job for this annotation

GitHub Actions / Frontend (lint, typecheck, build)

React Hook useEffect has a missing dependency: 'handleImportClick'. Either include it or remove the dependency array

const handleConfigSubmit = () => {
if (!configAdapter) return;
Expand Down
8 changes: 4 additions & 4 deletions packages/frontend/src/app/settings/license/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@

const isCloud = deploymentMode === 'cloud';

useEffect(() => {
loadStatus();
}, [token]);

const loadStatus = async () => {
try {
const data = await license.getStatus(token || undefined);
Expand All @@ -38,6 +34,10 @@
}
};

useEffect(() => {
loadStatus();
}, [token]);

Check warning on line 39 in packages/frontend/src/app/settings/license/page.tsx

View workflow job for this annotation

GitHub Actions / Frontend (lint, typecheck, build)

React Hook useEffect has a missing dependency: 'loadStatus'. Either include it or remove the dependency array

const handleActivate = async () => {
if (!token || !licenseKey) return;
setError('');
Expand Down
Loading