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

Function updateScopeSummary

public/js/aiChat.js:743–765  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

741 };
742
743 const updateScopeSummary = () => {
744 const hintSource = normalizeSourceId(currentChatLocation().sourceId);
745 const hintFolder = normalizeFolderPath(currentChatLocation().rootPath);
746 const currentWorkspace = workspace();
747 if (scopeSummaryEl) {
748 scopeSummaryEl.textContent = `Here ${hintSource}:${hintFolder} | Scope ${currentWorkspace.sourceId}:${currentWorkspace.rootPath}`;
749 }
750 if (metaEl) {
751 const providerSetting = config?.settings?.providers;
752 const providerRows = Array.isArray(providerSetting)
753 ? providerSetting
754 : ((providerSetting && typeof providerSetting === 'object') ? Object.values(providerSetting) : []);
755 const providerNames = providerRows
756 .map((row) => (row && typeof row === 'object') ? String(row.name || '').trim() : '')
757 .filter((name) => name !== '');
758 const providerText = providerNames.length > 0 ? providerNames.join(', ') : 'none';
759 const modeText = config?.settings?.readOnlyMode ? 'read-only' : 'write-enabled';
760 const profileLabel = String(copilotProfileMap.get(copilotProfile)?.label || copilotProfile).trim();
761 metaEl.textContent = `${profileLabel} | ${providerText} | ${modeText} | ${currentWorkspace.sourceId}:${currentWorkspace.rootPath}`;
762 }
763 renderRecipeRail();
764 renderTips();
765 };
766
767 const applyTheme = () => {
768 const dark = isDarkModeEnabled();

Callers 3

setWorkspaceFunction · 0.85
openFunction · 0.85
createChatUiFunction · 0.85

Calls 7

currentChatLocationFunction · 0.85
workspaceFunction · 0.85
renderRecipeRailFunction · 0.85
renderTipsFunction · 0.85
normalizeSourceIdFunction · 0.70
normalizeFolderPathFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected