MCPcopy Create free account
hub / github.com/error311/FileRise / refreshVisibleFolderForWorkflowResult

Function refreshVisibleFolderForWorkflowResult

public/js/aiChat.js:1263–1273  ·  view source on GitHub ↗
(refresh, ws)

Source from the content-addressed store, hash-verified

1261 };
1262
1263 const refreshVisibleFolderForWorkflowResult = (refresh, ws) => {
1264 if (!refresh || typeof refresh !== 'object') return;
1265 const wsSourceId = normalizeSourceId((ws && typeof ws === 'object') ? ws.sourceId : 'local');
1266 if (wsSourceId !== getActiveSourceId()) return;
1267
1268 const folders = Array.isArray(refresh.folders) ? refresh.folders : [];
1269 const activeFolder = getActiveFolder();
1270 const shouldRefresh = folders.some((folder) => normalizeFolderPath(folder) === activeFolder);
1271 if (!shouldRefresh) return;
1272 refreshFolderView(activeFolder);
1273 };
1274
1275 const describeJobCompletion = (detail) => {
1276 const job = (detail && typeof detail === 'object' && detail.job && typeof detail.job === 'object') ? detail.job : null;

Callers 1

sendMessageFunction · 0.85

Calls 5

getActiveFolderFunction · 0.85
refreshFolderViewFunction · 0.85
normalizeSourceIdFunction · 0.70
getActiveSourceIdFunction · 0.70
normalizeFolderPathFunction · 0.70

Tested by

no test coverage detected