MCPcopy Create free account
hub / github.com/Microck/opencode-studio / loadDetails

Function loadDetails

client-next/src/app/settings/code/page.tsx:52–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50
51 useEffect(() => {
52 const loadDetails = async () => {
53 try {
54 const [apiBaseUrl, pathsData, rulesData, toolsData] = await Promise.all([
55 getApiBaseUrl(),
56 getPaths(),
57 getProjectRules(),
58 getSystemTools(),
59 ]);
60 setBackendUrl(apiBaseUrl);
61 setPaths(pathsData);
62 setRules(rulesData);
63 setTools(toolsData);
64 } catch (err: any) {
65 toast.error(err?.message || "Failed to load code settings metadata");
66 } finally {
67 setLoading(false);
68 }
69 };
70 loadDetails();
71 }, []);
72

Callers 1

CodeSettingsPageFunction · 0.85

Calls 4

getApiBaseUrlFunction · 0.90
getPathsFunction · 0.90
getProjectRulesFunction · 0.90
getSystemToolsFunction · 0.90

Tested by

no test coverage detected