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

Function HelpOverlay

graph-ui/src/help/HelpOverlay.tsx:153–300  ·  view source on GitHub ↗
(props: HelpOverlayProps)

Source from the content-addressed store, hash-verified

151}
152
153export default function HelpOverlay(props: HelpOverlayProps): JSX.Element {
154 const root = useRef<HTMLDivElement | null>(null);
155
156 // Der Fokus geht einmal in die Seite. Ohne das bliebe er dort, wo der
157 // Leser gerade war, und Escape traefe die Flaeche, die er verlassen hat.
158 useEffect(() => {
159 root.current?.focus();
160 }, []);
161
162 return (
163 <div
164 className="atlas-help"
165 data-testid="atlas-help"
166 role="dialog"
167 aria-label={help.title}
168 aria-modal="false"
169 tabIndex={-1}
170 ref={root}
171 onKeyDown={(event) => {
172 if (event.key === 'Escape') {
173 event.preventDefault();
174 props.onClose();
175 }
176 }}
177 >
178 <header className="atlas-help-head">
179 <span className="atlas-help-title" data-testid="atlas-help-title">
180 {help.title}
181 </span>
182 <span className="atlas-help-subtitle">{help.subtitle}</span>
183 <button
184 type="button"
185 className="atlas-help-close"
186 data-testid="atlas-help-close"
187 aria-label={help.closeLabel}
188 onClick={props.onClose}
189 >
190 {help.close}
191 </button>
192 </header>
193
194 <Section name="what" title={help.whatTitle}>
195 {help.what.map((sentence) => (
196 <p className="atlas-help-text" key={sentence}>
197 {sentence}
198 </p>
199 ))}
200 </Section>
201
202 {/*
203 * Die Grenzen, und zwar als Erstes nach der Einleitung. Der Grund
204 * steht mit dabei: "kein Terminal" ohne "diese Flaeche hat kein
205 * eigenes Backend" liest sich wie eine Luecke, die als naechstes
206 * geschlossen wird, und genau das waere wieder ein Versprechen.
207 */}
208 <Section name="limits" title={help.limitsTitle}>
209 <ul className="atlas-help-list" data-testid="atlas-help-limits">
210 {help.limits.map((sentence) => (

Callers

nothing calls this directly

Calls 2

shortcutIdFunction · 0.90
keyLabelFunction · 0.85

Tested by

no test coverage detected