Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

fix(ui): restore project switching and expand explorer graph

Martin Vogel0cc163eedb9e
diff --git a/graph-ui/src/App.tsx b/graph-ui/src/App.tsx
index ee14e5f48..7112f49c6 100644
--- a/graph-ui/src/App.tsx
+++ b/graph-ui/src/App.tsx
@@ -309,6 +309,7 @@ import { llmChipValue, llmMenuLabel, llmMenuTitle } from './llm/strings';
import SettingsPanel from './settings/SettingsPanel';
import type { SettingsMeasurement } from './settings/SettingsPanel';
import ProjectsPanel from './projects/ProjectsPanel';
+import ProjectSwitcher from './projects/ProjectSwitcher';
import type { ProjectsSource } from './projects/ProjectsPanel';
import { projectHref } from './projects/projects-model';
import { MODEL_SUGGESTIONS, fetchCommand } from './settings/model-catalog';
@@ -4942,6 +4943,8 @@ export default function App(): JSX.Element {
return (
<AtlasChrome
workspace={workspace}
+ projectSwitcher={<ProjectSwitcher currentProject={project} listProjects={projectsSource.listProjects}
+ onSelectProject={openProject} onManageProjects={() => setProjectsOpen(true)} />}
onWorkspaceChange={changeWorkspace}
onOpenBrowserAi={() => setBrowserAiOpen(open => !open)}
onOpenSystem={() => changeWorkspace('system')}
diff --git a/graph-ui/src/app/AtlasChrome.test.tsx b/graph-ui/src/app/AtlasChrome.test.tsx
index f076ea511..4e161eadf 100644
--- a/graph-ui/src/app/AtlasChrome.test.tsx
+++ b/graph-ui/src/app/AtlasChrome.test.tsx
@@ -95,6 +95,17 @@ describe('AtlasChrome', () => {
expect(testId('atlas-version')?.textContent).toBe('v0.0.0-dirty');
});
+ it('keeps project switching at the end of the header without a duplicate project chip', async () => {
+ await render(props({
+ chips: [{ label: 'project', value: 'atlas-sample' }, { label: 'sym', value: '76' }],
+ ...{ projectSwitcher: <button type="button">Switch project: atlas-sample</button> },
+ }));
+ const header = testId('atlas-header');
+ expect(header?.lastElementChild?.textContent).toBe('Switch project: atlas-sample');
+ expect(header?.querySelector('[data-chip="project"]')).toBeNull();
+ expect(header?.querySelector('[data-chip="sym"]')?.textContent).toContain('76');
+ });
+
/*
* Der Zustand des Arbeitsbaums steht neben der Fassung, nicht in ihr.
*
diff --git a/graph-ui/src/app/AtlasChrome.tsx b/graph-ui/src/app/AtlasChrome.tsx
index 146b822d5..d14f081c1 100644
--- a/graph-ui/src/app/AtlasChrome.tsx
+++ b/graph-ui/src/app/AtlasChrome.tsx
@@ -138,6 +138,7 @@ export interface TabDescriptor {
}
export interface AtlasChromeProps {
+ projectSwitcher?: ReactNode;
onOpenBrowserAi?: () => void;
chatOpen?: boolean;
chatDock?: ReactNode;
@@ -529,8 +530,8 @@ export default function AtlasChrome(props: AtlasChromeProps): JSX.Element {
* koennen soll, was die Oberflaeche ueber sich behauptet.
*/
const [commandFocused, setCommandFocused] = useState(false);
- const [chatWidth, setChatWidth] = useState(380);
- const [graphHeight, setGraphHeight] = useState(260);
+ const [chatWidth, setChatWidth] = useState(420);
+ const [graphHeight, setGraphHeight] = useState(380);
const [searchOpen, setSearchOpen] = useState(false);
const searchDialog = useRef<HTMLDialogElement>(null);
const searchButton = useRef<HTMLButtonElement>(null);
@@ -762,10 +763,11 @@ export default function AtlasChrome(props: AtlasChromeProps): JSX.Element {
</select>
)}
<div className="atlas-chips">
- {props.chips.map((chip) => (
+ {props.chips.filter(chip => props.projectSwitcher === undefined || chip.label !== messages.statusbar.chipProject).map((chip) => (
<ChipView key={chip.label} chip={chip} />
))}
</div>
+ {props.projectSwitcher}
</header>
<div className="atlas-workspace-content" style={{ '--atlas-chat-width': `${chatWidth}px` } as CSSProperties}>
@@ -858,13 +860,13 @@ export default function AtlasChrome(props: AtlasChromeProps): JSX.Element {
<main className="atlas-alternate-workspace" hidden={props.workspace === undefined || props.workspace === 'explore' || props.workspace === 'galaxy'}>{props.workspacePanel}</main>
</div>
{props.chatOpen === true && <Splitter testId="atlas-split-chat" orientation="vertical" label={workspaceStrings.chatWidth} value={chatWidth}
- min={300} max={600} invert onChange={setChatWidth} onReset={() => setChatWidth(380)} />}
+ min={300} max={600} invert onChange={setChatWidth} onReset={() => setChatWidth(420)} />}
<div className="atlas-chat-column" hidden={props.chatOpen !== true} data-graph={graphBelowChat}
style={{ '--atlas-chat-graph-height': `${graphHeight}px` } as CSSProperties}>
{props.chatDock}
{graphBelowChat && <Splitter testId="atlas-split-chat-graph" orientation="horizontal"
- label={workspaceStrings.chatGraphHeight} value={graphHeight} min={160} max={480} invert
- onChange={setGraphHeight} onReset={() => setGraphHeight(260)} />}
+ label={workspaceStrings.chatGraphHeight} value={graphHeight} min={320} max={640} invert
+ onChange={setGraphHeight} onReset={() => setGraphHeight(380)} />}
<div ref={chatGalaxyHost} className="atlas-galaxy-host" hidden={!graphBelowChat} />
</div>
{galaxyMount !== null && createPortal(props.galaxy, galaxyMount)}
diff --git a/graph-ui/src/app/workspace-navigation.test.tsx b/graph-ui/src/app/workspace-navigation.test.tsx
index 337be8263..e08d583eb 100644
--- a/graph-ui/src/app/workspace-navigation.test.tsx
+++ b/graph-ui/src/app/workspace-navigation.test.tsx
@@ -111,9 +111,9 @@ it('resizes local chat by keyboard and exposes daemon navigation', async () => {
await act(async () => root.render(<AtlasChrome {...makeProps()} chatOpen chatDock={<div>Local chat</div>}
onOpenSystem={onOpenSystem} daemonState="disconnected" />));
const separator = host.querySelector('[data-testid="atlas-split-chat"]')!;
- expect(separator.getAttribute('aria-valuenow')).toBe('380');
+ expect(separator.getAttribute('aria-valuenow')).toBe('420');
await act(async () => separator.dispatchEvent(new KeyboardEvent('keydown', { key: 'ArrowLeft', bubbles: true })));
- expect(Number(separator.getAttribute('aria-valuenow'))).toBeGreaterThan(380);
+ expect(Number(separator.getAttribute('aria-valuenow'))).toBeGreaterThan(420);
await act(async () => host.querySelector<HTMLButtonElement>('[aria-label="Open System: daemon disconnected"]')!.click());
expect(onOpenSystem).toHaveBeenCalledOnce();
});
diff --git a/graph-ui/src/projects/ProjectSwitcher.test.tsx b/graph-ui/src/projects/ProjectSwitcher.test.tsx
new file mode 100644
index 000000000..d643ca090
--- /dev/null
+++ b/graph-ui/src/projects/ProjectSwitcher.test.tsx
@@ -0,0 +1,134 @@
+// @vitest-environment jsdom
+import { act } from 'react';
+import { createRoot, type Root } from 'react-dom/client';
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
+import ProjectSwitcher from './ProjectSwitcher';
+import type { ProjectEntry } from '../provider/rpc-schemas';
+
+let container: HTMLDivElement;
+let root: Root;
+const currentProject = 'alpha';
+const onSelectProject = vi.fn();
+const onManageProjects = vi.fn();
+
+beforeEach(() => {
+ (globalThis as unknown as Record<string, unknown>).IS_REACT_ACT_ENVIRONMENT = true;
+ container = document.createElement('div');
+ document.body.appendChild(container);
+ root = createRoot(container);
+ vi.clearAllMocks();
+});
+
+afterEach(async () => {
+ await act(async () => root.unmount());
+ container.remove();
+});
+
+async function render(listProjects: () => Promise<readonly ProjectEntry[]>): Promise<void> {
+ await act(async () => root.render(<ProjectSwitcher currentProject={currentProject}
+ listProjects={listProjects} onSelectProject={onSelectProject} onManageProjects={onManageProjects} />));
+}
+
+async function click(element: HTMLElement | null): Promise<void> {
+ expect(element).not.toBeNull();
+ await act(async () => element?.click());
+}
+
+function button(label: string): HTMLButtonElement | null {
+ return [...container.querySelectorAll('button')].find(node => node.textContent?.includes(label)) ?? null;
+}
+
+async function filter(value: string): Promise<void> {
+ const input = container.querySelector('input')!;
+ await act(async () => {
+ Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value')!.set!.call(input, value);
+ input.dispatchEvent(new Event('input', { bubbles: true }));
+ });
+}
+
+describe('ProjectSwitcher', () => {
+ it('opens a searchable server list and selects the exact project name only on activation', async () => {
+ const list = vi.fn().mockResolvedValue([
+ { name: 'beta & tools/日本', root_path: '/repos/backend' },
+ { name: currentProject, root_path: '/repos/frontend' },
+ ]);
+ await render(list);
+ expect(container.querySelector('summary')?.textContent).toContain(currentProject);
+ expect(list).not.toHaveBeenCalled();
+ await click(container.querySelector('summary'));
+ expect(document.activeElement).toBe(container.querySelector('input'));
+ expect(button(currentProject)?.getAttribute('aria-current')).toBe('true');
+ await filter('BACKEND');
+ expect(button(currentProject)).toBeNull();
+ expect(onSelectProject).not.toHaveBeenCalled();
+ expect(list).toHaveBeenCalledTimes(1);
+ await click(button('beta & tools/日本'));
+ expect(onSelectProject).toHaveBeenCalledExactlyOnceWith('beta & tools/日本');
+ expect(container.querySelector('details')?.open).toBe(false);
+ });
+
+ it('keeps selecting the current project a no-op and refreshes the list when reopened', async () => {
+ const list = vi.fn().mockResolvedValueOnce([{ name: currentProject }])
+ .mockResolvedValueOnce([{ name: currentProject }, { name: 'newly-indexed' }]);
+ await render(list);
+ await click(container.querySelector('summary'));
+ await click(button(currentProject));
+ expect(onSelectProject).not.toHaveBeenCalled();
+ await click(container.querySelector('summary'));
+ expect(button('newly-indexed')).not.toBeNull();
+ expect(list).toHaveBeenCalledTimes(2);
+ });
+
+ it('closes on Escape with trigger focus, and on an outside pointer', async () => {
+ await render(async () => [{ name: currentProject }]);
+ await click(container.querySelector('summary'));
+ await act(async () => container.querySelector('input')!.dispatchEvent(
+ new KeyboardEvent('keydown', { key: 'Escape', bubbles: true, cancelable: true }),
+ ));
+ expect(container.querySelector('details')?.open).toBe(false);
+ expect(document.activeElement).toBe(container.querySelector('summary'));
+ await click(container.querySelector('summary'));
+ await act(async () => document.body.dispatchEvent(new Event('pointerdown', { bubbles: true })));
+ expect(container.querySelector('details')?.open).toBe(false);
+ expect(onSelectProject).not.toHaveBeenCalled();
+ });
+
+ it('offers retry and project management when listing fails', async () => {
+ const list = vi.fn().mockRejectedValueOnce(new Error('offline'))
+ .mockResolvedValueOnce([{ name: 'recovered' }]);
+ await render(list);
+ await click(container.querySelector('summary'));
+ expect(container.textContent).toContain('Could not load projects.');
+ expect(button('Manage projects')).not.toBeNull();
+ await click(button('Try again'));
+ expect(button('recovered')).not.toBeNull();
+ await click(button('Manage projects'));
+ expect(onManageProjects).toHaveBeenCalledTimes(1);
+ expect(container.querySelector('details')?.open).toBe(false);
+ });
+
+ it('distinguishes an empty index from a search with no matches', async () => {
+ const list = vi.fn().mockResolvedValueOnce([]).mockResolvedValueOnce([{ name: 'indexed' }]);
+ await render(list);
+ await click(container.querySelector('summary'));
+ expect(container.textContent).toContain('No indexed projects yet.');
+ expect(button('Manage projects')).not.toBeNull();
+ await click(button('Refresh projects'));
+ await filter('missing');
+ expect(container.textContent).toContain('No matching projects.');
+ expect(container.textContent).not.toContain('No indexed projects yet.');
+ });
+
+ it('ignores a late response from an obsolete project source', async () => {
+ let resolveOld!: (value: ProjectEntry[]) => void;
+ const oldList = (): Promise<ProjectEntry[]> => new Promise(resolve => { resolveOld = resolve; });
+ await render(oldList);
+ await click(container.querySelector('summary'));
+ expect(container.textContent).toContain('Loading projects...');
+ await render(async () => [{ name: 'current-source' }]);
+ expect(button('current-source')).not.toBeNull();
+ await act(async () => resolveOld([{ name: 'obsolete-source' }]));
+ expect(button('obsolete-source')).toBeNull();
+ expect(button('current-source')).not.toBeNull();
+ });
+});
diff --git a/graph-ui/src/projects/ProjectSwitcher.tsx b/graph-ui/src/projects/ProjectSwitcher.tsx
new file mode 100644
index 000000000..8dfe62e85
--- /dev/null
+++ b/graph-ui/src/projects/ProjectSwitcher.tsx
@@ -0,0 +1,129 @@
+import { useEffect, useLayoutEffect, useRef, useState } from 'react';
+import type { JSX } from 'react';
+import type { ProjectEntry } from '../provider/rpc-schemas';
+import { projectSwitcherStrings as text } from './project-switcher-strings';
+import { projectPickerPlacement } from './project-picker-placement';
+import './project-switcher.css';
+
+interface ProjectSwitcherProps {
+ currentProject: string;
+ listProjects: () => Promise<readonly ProjectEntry[]>;
+ onSelectProject: (name: string) => void;
+ onManageProjects: () => void;
+}
+
+export default function ProjectSwitcher(props: ProjectSwitcherProps): JSX.Element {
+ const [open, setOpen] = useState(false);
+ const [query, setQuery] = useState('');
+ const [entries, setEntries] = useState<readonly ProjectEntry[]>([]);
+ const [status, setStatus] = useState<'loading' | 'ready' | 'error'>('loading');
+ const [revision, setRevision] = useState(0);
+ const [placement, setPlacement] = useState({ top: 64, left: 12, width: 370, maxHeight: 520 });
+ const disclosure = useRef<HTMLDetailsElement>(null);
+ const trigger = useRef<HTMLElement>(null);
+ const search = useRef<HTMLInputElement>(null);
+ const close = (restoreFocus = false): void => {
+ setOpen(false);
+ if (restoreFocus) trigger.current?.focus();
+ };
+
+ useLayoutEffect(() => {
+ if (!open) return;
+ const reposition = (): void => {
+ const bounds = trigger.current?.getBoundingClientRect();
+ if (bounds) setPlacement(projectPickerPlacement(bounds, { width: window.innerWidth, height: window.innerHeight }));
+ };
+ reposition();
+ const observer = typeof ResizeObserver === 'undefined' ? undefined : new ResizeObserver(reposition);
+ const header = disclosure.current?.closest('.atlas-header') ?? trigger.current;
+ if (header) observer?.observe(header);
+ window.addEventListener('resize', reposition);
+ window.addEventListener('scroll', reposition, true);
+ return () => {
+ observer?.disconnect();
+ window.removeEventListener('resize', reposition);
+ window.removeEventListener('scroll', reposition, true);
+ };
+ }, [open]);
+
+ useEffect(() => {
+ if (!open) return;
+ let current = true;
+ setStatus('loading');
+ void Promise.resolve().then(props.listProjects).then(
+ (projects) => {
+ if (!current) return;
+ setEntries(projects);
+ setStatus('ready');
+ },
+ () => { if (current) setStatus('error'); },
+ );
+ return () => { current = false; };
+ }, [open, props.listProjects, revision]);
+
+ useEffect(() => {
+ if (!open) return;
+ search.current?.focus();
+ const outside = (event: PointerEvent): void => {
+ if (event.target instanceof Node && !disclosure.current?.contains(event.target)) setOpen(false);
+ };
+ document.addEventListener('pointerdown', outside);
+ return () => document.removeEventListener('pointerdown', outside);
+ }, [open]);
+
+ const needle = query.trim().toLocaleLowerCase();
+ const projects = Array.from(new Map(entries.map(entry => [entry.name, entry])).values())
+ .filter(entry => entry.name.length > 0 &&
+ `${entry.name}\n${entry.root_path ?? ''}`.toLocaleLowerCase().includes(needle))
+ .sort((left, right) => Number(right.name === props.currentProject) - Number(left.name === props.currentProject)
+ || left.name.localeCompare(right.name));
+
+ return <details ref={disclosure} open={open} className="atlas-project-switcher"
+ onKeyDown={(event) => {
+ if (event.key !== 'Escape' || !open) return;
+ event.preventDefault();
+ event.stopPropagation();
+ close(true);
+ }}
+ onBlur={(event) => {
+ if (event.relatedTarget instanceof Node && !event.currentTarget.contains(event.relatedTarget)) close();
+ }}>
+ <summary ref={trigger} aria-label={text.switchProject(props.currentProject || text.choose)}
+ title={props.currentProject || text.choose}
+ onClick={(event) => {
+ event.preventDefault();
+ if (!open) { setQuery(''); setStatus('loading'); }
+ setOpen(value => !value);
+ }}>
+ <span className="atlas-project-switcher-label">{text.project}</span>
+ <span className="atlas-project-switcher-name">{props.currentProject || text.choose}</span>
+ <span aria-hidden="true">⌄</span>
+ </summary>
+ {open && <div className="atlas-project-picker" style={placement}>
+ <input ref={search} type="search" aria-label={text.search} placeholder={text.searchPlaceholder}
+ value={query} onChange={event => setQuery(event.target.value)} />
+ <div className="atlas-project-results" aria-busy={status === 'loading'}>
+ {status === 'loading' && <p role="status">{text.loading}</p>}
+ {status === 'error' && <div role="status"><p>{text.failed}</p>
+ <button type="button" onClick={() => setRevision(value => value + 1)}>{text.retry}</button>
+ </div>}
+ {status === 'ready' && projects.length === 0 && <p role="status">{entries.length === 0 ? text.empty : text.noMatches}</p>}
+ {status === 'ready' && <ul>{projects.map(entry => <li key={entry.name}>
+ <button type="button" aria-current={entry.name === props.currentProject ? 'true' : undefined}
+ onClick={() => {
+ close(true);
+ if (entry.name !== props.currentProject) props.onSelectProject(entry.name);
+ }}>
+ <span className="atlas-project-result-name">{entry.name}
+ {entry.name === props.currentProject && <small>{text.current}</small>}</span>
+ {entry.root_path && <span className="atlas-project-result-path">{entry.root_path}</span>}
+ </button>
+ </li>)}</ul>}
+ </div>
+ <footer>
+ <button type="button" onClick={() => { close(); props.onManageProjects(); }}>{text.manage}</button>
+ <button type="button" disabled={status === 'loading'} onClick={() => setRevision(value => value + 1)}>{text.refresh}</button>
+ </footer>
+ </div>}
+ </details>;
+}
diff --git a/graph-ui/src/projects/project-picker-placement.test.ts b/graph-ui/src/projects/project-picker-placement.test.ts
new file mode 100644
index 000000000..63be3301f
--- /dev/null
+++ b/graph-ui/src/projects/project-picker-placement.test.ts
@@ -0,0 +1,24 @@
+import { describe, expect, it } from 'vitest';
+import { projectPickerPlacement } from './project-picker-placement';
+
+describe('project picker viewport bounds', () => {
+ it('opens below a normal header with room for project results', () => {
+ const box = projectPickerPlacement({ top: 18, bottom: 50, right: 1180 }, { width: 1200, height: 900 });
+ expect(box.top).toBeGreaterThan(50);
+ expect(box.maxHeight).toBeGreaterThanOrEqual(240);
+ expect(box.left + box.width).toBeLessThanOrEqual(1188);
+ });
+
+ it.each([
+ { width: 900, height: 400, top: 170, bottom: 202, right: 880 },
+ { width: 320, height: 360, top: 210, bottom: 242, right: 310 },
+ { width: 1400, height: 600, top: 520, bottom: 552, right: 1380 },
+ ])('keeps results and footer inside a short or wrapped viewport ($width x $height)', (viewport) => {
+ const box = projectPickerPlacement(viewport, viewport);
+ expect(box.top).toBeGreaterThanOrEqual(12);
+ expect(box.left).toBeGreaterThanOrEqual(12);
+ expect(box.top + box.maxHeight).toBeLessThanOrEqual(viewport.height - 12);
+ expect(box.left + box.width).toBeLessThanOrEqual(viewport.width - 12);
+ expect(box.maxHeight).toBeGreaterThanOrEqual(240);
+ });
+});
diff --git a/graph-ui/src/projects/project-picker-placement.ts b/graph-ui/src/projects/project-picker-placement.ts
new file mode 100644
index 000000000..d9630f24f
--- /dev/null
+++ b/graph-ui/src/projects/project-picker-placement.ts
@@ -0,0 +1,15 @@
+export function projectPickerPlacement(trigger: { top: number; bottom: number; right: number }, viewport: { width: number; height: number }): { top: number; left: number; width: number; maxHeight: number } {
+ const width = Math.max(0, Math.min(370, viewport.width - 24));
+ const limit = Math.max(0, Math.min(520, viewport.height - 24));
+ const minimum = Math.min(240, limit);
+ const below = viewport.height - trigger.bottom - 20;
+ const above = trigger.top - 20;
+ const maxHeight = Math.max(0, Math.min(limit, below >= minimum ? below : above >= minimum ? above : limit));
+ return {
+ top: below >= minimum ? Math.max(12, trigger.bottom + 8)
+ : above >= minimum ? Math.max(12, trigger.top - maxHeight - 8) : 12,
+ left: Math.max(12, Math.min(trigger.right - width, viewport.width - width - 12)),
+ width,
+ maxHeight,
+ };
+}
diff --git a/graph-ui/src/projects/project-switcher-strings.ts b/graph-ui/src/projects/project-switcher-strings.ts
new file mode 100644
index 000000000..75c9e7564
--- /dev/null
+++ b/graph-ui/src/projects/project-switcher-strings.ts
@@ -0,0 +1,15 @@
+export const projectSwitcherStrings = {
+ project: 'Project',
+ choose: 'Choose project',
+ switchProject: (name: string) => `Switch project: ${name}`,
+ search: 'Find a project',
+ searchPlaceholder: 'Search projects or paths',
+ loading: 'Loading projects...',
+ failed: 'Could not load projects.',
+ empty: 'No indexed projects yet.',
+ noMatches: 'No matching projects.',
+ current: 'Current',
+ retry: 'Try again',
+ refresh: 'Refresh projects',
+ manage: 'Manage projects',
+};
diff --git a/graph-ui/src/projects/project-switcher.css b/graph-ui/src/projects/project-switcher.css
new file mode 100644
index 000000000..716ff91ff
--- /dev/null
+++ b/graph-ui/src/projects/project-switcher.css
@@ -0,0 +1,25 @@
+.atlas-header:has(.atlas-project-switcher) { flex-wrap: wrap; }
+.atlas-project-switcher { position: relative; flex: 0 1 250px; min-width: 140px; margin-left: auto; font: 12px var(--atlas-ui-font); }
+.atlas-project-switcher > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; padding: 8px 10px; border: 1px solid var(--atlas-phosphor-mute); border-radius: 2px; background: var(--atlas-panel); color: var(--atlas-fg); }
+.atlas-project-switcher > summary::-webkit-details-marker { display: none; }
+.atlas-project-switcher > summary:hover, .atlas-project-switcher[open] > summary { background: var(--atlas-select); border-color: var(--atlas-phosphor); }
+.atlas-project-switcher :focus-visible { outline: 2px solid var(--atlas-cyan); outline-offset: 2px; }
+.atlas-project-switcher-label { color: var(--atlas-dim); font-size: 10px; }
+.atlas-project-switcher-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--atlas-phosphor); }
+.atlas-project-picker { box-sizing: border-box; position: fixed; z-index: 30; display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--atlas-phosphor-mute); border-radius: 3px; background: var(--atlas-panel-raised); box-shadow: 0 16px 48px #000a; }
+.atlas-project-picker input { box-sizing: border-box; flex-shrink: 0; width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--atlas-line); border-radius: 2px; background: var(--atlas-bg); color: var(--atlas-fg); font: inherit; }
+.atlas-project-results { min-height: 0; overflow: auto; overscroll-behavior: contain; }
+.atlas-project-results p { margin: 12px 3px; color: var(--atlas-dim); }
+.atlas-project-results ul { list-style: none; margin: 0; padding: 0; }
+.atlas-project-results li + li { border-top: 1px solid var(--atlas-line); }
+.atlas-project-picker button { cursor: pointer; font: inherit; border-radius: 2px; }
+.atlas-project-results button { display: block; width: 100%; text-align: left; padding: 10px 8px; border: 1px solid transparent; background: transparent; color: var(--atlas-fg); }
+.atlas-project-results button:hover, .atlas-project-results button[aria-current=true] { background: var(--atlas-select); border-color: var(--atlas-phosphor-mute); }
+.atlas-project-result-name { display: flex; justify-content: space-between; gap: 8px; overflow-wrap: anywhere; }
+.atlas-project-result-name small { flex-shrink: 0; align-self: flex-start; color: var(--atlas-phosphor); font-size: 10px; }
+.atlas-project-result-path { display: block; margin-top: 5px; color: var(--atlas-dim); font: 10px var(--atlas-mono); overflow-wrap: anywhere; }
+.atlas-project-picker footer { display: flex; justify-content: space-between; flex-shrink: 0; gap: 8px; padding-top: 10px; border-top: 1px solid var(--atlas-line); }
+.atlas-project-picker footer button { padding: 6px 8px; color: var(--atlas-cyan); background: transparent; border: 1px solid var(--atlas-line); }
+.atlas-project-picker button:disabled { opacity: .5; cursor: default; }
+@media (max-width: 1200px) { .atlas-project-switcher { flex-basis: 170px; min-width: 120px; } .atlas-project-switcher-label { display: none; } }
+@media (max-width: 700px) { .atlas-project-switcher { flex-basis: 220px; } }
diff --git a/graph-ui/src/styles/workspace.css b/graph-ui/src/styles/workspace.css
index 1b5b24490..d346f8e16 100644
--- a/graph-ui/src/styles/workspace.css
+++ b/graph-ui/src/styles/workspace.css
@@ -171,12 +171,30 @@
.atlas-galaxy-host[hidden], .atlas-chat-column[hidden] { display: none; }
.atlas-chat-column { display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; }
.atlas-chat-column > .cbm-chat-dock { flex: 1; height: auto; min-height: 0; }
-.atlas-chat-column[data-graph=true] > .atlas-galaxy-host { flex: 0 1 min(var(--atlas-chat-graph-height), 45%); min-height: 160px; border-left: 1px solid var(--atlas-line); }
+.atlas-chat-column[data-graph=true] { overflow-y: auto; }
+.atlas-chat-column[data-graph=true] > .cbm-chat-dock { flex: 1 0 260px; }
+.atlas-chat-column[data-graph=true] > .atlas-galaxy-host { flex: 0 0 var(--atlas-chat-graph-height); min-height: 320px; border-left: 1px solid var(--atlas-line); }
.atlas-chat-column > .atlas-splitter { flex: 0 0 8px; }
.atlas-chat-column .atlas-galaxy { min-height: 0; height: 100%; }
-.atlas-chat-column .atlas-galaxy-head { padding: 8px 10px; }
.atlas-chat-column .atlas-galaxy-title, .atlas-chat-column .atlas-galaxy-edgenote { display: none; }
-.atlas-chat-column .atlas-galaxy-navigator { margin: 4px 0; }
+/* Keep the canvas usable in both Explore hosts, including short windows. */
+.atlas-shell[data-workspace=explore] .atlas-side { overflow-y: auto; }
+.atlas-shell[data-workspace=explore] .atlas-side .atlas-twin { min-height: 180px; max-height: max(180px, calc(100% - 340px)); }
+.atlas-shell[data-workspace=explore] .atlas-galaxy-host:has(.atlas-galaxy[data-visible=true]) { min-height: 320px; }
+.atlas-shell[data-workspace=explore] .atlas-galaxy { position: relative; }
+.atlas-shell[data-workspace=explore] .atlas-galaxy-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; padding: 8px; overflow: visible; }
+.atlas-shell[data-workspace=explore] .atlas-galaxy-head-row { grid-column: 2; grid-row: 1; gap: 4px; align-items: center; }
+.atlas-shell[data-workspace=explore] .atlas-galaxy-title { display: none; }
+.atlas-shell[data-workspace=explore] .atlas-galaxy-navigator { position: static; grid-column: 1; grid-row: 1; min-width: 0; margin: 0; }
+.atlas-shell[data-workspace=explore] .atlas-galaxy-navigator > summary { box-sizing: border-box; max-width: 100%; padding: 5px 6px; font-size: 11px; white-space: normal; }
+.atlas-shell[data-workspace=explore] .atlas-galaxy-node-picker { top: 48px; right: 8px; left: 8px; width: auto; max-height: calc(100% - 60px); box-sizing: border-box; z-index: 8; }
+.atlas-shell[data-workspace=explore] :is(.atlas-galaxy-selected, .atlas-galaxy-coverage-key, .atlas-galaxy-headline, .atlas-galaxy-edgenote) { grid-column: 1 / -1; min-width: 0; }
+.atlas-shell[data-workspace=explore] .atlas-galaxy-selected { font-size: 11px; }
+.atlas-shell[data-workspace=explore] .atlas-galaxy-selected span { flex: 1; }
+.atlas-shell[data-workspace=explore] .atlas-galaxy-coverage-key { margin: 0; font-size: 10px; white-space: normal; }
+.atlas-shell[data-workspace=explore] .atlas-galaxy-legend-frame { max-height: 18%; }
+.atlas-shell[data-workspace=explore] .atlas-galaxy-legend { padding: 4px 8px; }
+.atlas-shell[data-workspace=explore] .atlas-galaxy-note { flex: 0 0 auto; max-height: 3.2em; padding: 4px 8px; white-space: normal; overflow: auto; font-size: 10px; }
.atlas-search-action { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--atlas-fg); border: 1px solid var(--atlas-line); border-radius: 5px; padding: 7px 10px; font: inherit; cursor: pointer; }
.atlas-search-action kbd { font: 9px var(--atlas-mono); color: var(--atlas-dim); white-space: nowrap; }
.atlas-search-action + .atlas-tools-menu { margin-left: 0; }
diff --git a/graph-ui/verification/w6/stylegate.json b/graph-ui/verification/w6/stylegate.json
index fd1d913d3..8dc283f5d 100644
--- a/graph-ui/verification/w6/stylegate.json
+++ b/graph-ui/verification/w6/stylegate.json
@@ -139,8 +139,8 @@
"reason": "Docblocks und Zeilenkommentare sind kein Bildschirmtext. Der Parser sieht den Unterschied, ein regulaerer Ausdruck koennte ihn nicht sehen."
}
],
- "filesConsidered": 714,
- "textFiles": 559,
+ "filesConsidered": 720,
+ "textFiles": 565,
"binaryFiles": 155,
- "generatedAt": "2026-09-08T21:53:20.695Z"
+ "generatedAt": "2026-09-09T05:07:43.722Z"
}
diff --git a/graph-ui/verification/w7/promises.json b/graph-ui/verification/w7/promises.json
index 8c309bb98..fb9c078fe 100644
--- a/graph-ui/verification/w7/promises.json
+++ b/graph-ui/verification/w7/promises.json
@@ -3,7 +3,7 @@
"promiseMatches": [],
"deadAffordances": 0,
"deadAffordanceMatches": [],
- "filesScanned": 180,
+ "filesScanned": 183,
"whitelist": [
{
"rule": "disabled",
@@ -102,5 +102,5 @@
"onToggle"
],
"scanned": "src/**/*.{ts,tsx} ohne *.test.*",
- "generatedAt": "2026-09-08T21:53:21.085Z"
+ "generatedAt": "2026-09-09T05:07:44.055Z"
}