MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / showView

Function showView

graph-ui/tools/handtest-fixes-chat.mjs:795–800  ·  view source on GitHub ↗
(page, item)

Source from the content-addressed store, hash-verified

793 return last;
794}
795async function showView(page, item) {
796 await page.locator(`[data-workspace-tab="${item.workspace}"]`).first().click();
797 await wait(700);
798 if (item.view) { await page.locator('.atlas-workspace-stage').getByRole('button', { name: item.view, exact: true }).first().click().catch(() => {}); await wait(700); }
799 if (item.sub) { await page.locator('.atlas-workspace-stage').getByRole('button', { name: item.sub, exact: true }).first().click().catch(() => {}); await wait(700); }
800}
801/** Paths and dotted names a view shows; a stale view shows ones the fresh view of its project does not. */
802const pathTokens = (text) => new Set(text.match(/[\w.@-]+\/[\w./@-]+/g) ?? []);
803/** What the Galaxy draws: its headline names the indexed node count, which differs per project, while the stage text has no paths. */

Callers 1

viewTextsFunction · 0.85

Calls 1

waitFunction · 0.70

Tested by

no test coverage detected