MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / applyConfig

Function applyConfig

frontend/dashboard/src/components/Routing.tsx:73–76  ·  view source on GitHub ↗
(next: RoutingConfigState)

Source from the content-addressed store, hash-verified

71 const modeSwitchBusy = busyKey?.startsWith("mode:") ?? false;
72
73 function applyConfig(next: RoutingConfigState) {
74 setConfig(next);
75 setDrafts(buildDrafts(next));
76 }
77
78 function showNotice(text: string, tone: NoticeState["tone"] = "success") {
79 setNotice({ text, tone });

Callers 4

handleModeChangeFunction · 0.85
handleResetFunction · 0.85
handleSaveOverrideFunction · 0.85
handleResetOverrideFunction · 0.85

Calls 1

buildDraftsFunction · 0.85

Tested by

no test coverage detected