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

Function AtlasChatPanel

graph-ui/src/chat/AtlasChatPanel.tsx:523–604  ·  view source on GitHub ↗
(props: AtlasChatPanelProps)

Source from the content-addressed store, hash-verified

521}
522
523export default function AtlasChatPanel(props: AtlasChatPanelProps): JSX.Element {
524 return (
525 <section
526 className="atlas-chat"
527 data-testid="atlas-chat"
528 data-turns={props.turns.length}
529 aria-label={messages.chat.panelLabel}
530 >
531 <div className="atlas-chat-head" data-hint-keep="chat head" data-testid="atlas-chat-head">
532 <span className="atlas-chat-title">{CHAT_TITLE}</span>
533 <span
534 className="atlas-chat-depth"
535 data-testid="atlas-chat-depth"
536 data-depth={props.depth}
537 role="group"
538 aria-label={messages.chat.depthGroupLabel}
539 >
540 <span className="atlas-chat-depth-label">{CHAT_DEPTH_LABEL}</span>
541 {CHAT_DEPTH_OPTIONS.map((option) => (
542 <Hint key={option.value} name={`chat-depth-${option.value}`} text={option.title}>
543 <button
544 type="button"
545 className="atlas-chat-depth-option"
546 data-testid="atlas-chat-depth-option"
547 data-value={option.value}
548 data-on={props.depth === option.value}
549 aria-pressed={props.depth === option.value}
550 onClick={() => props.onDepth(option.value)}
551 >
552 {option.label}
553 </button>
554 </Hint>
555 ))}
556 </span>
557 {/*
558 * Der eine Knopf, der loescht, und er steht allein.
559 *
560 * Bis W7c war er der einzige Weg, das Panel loszuwerden, und
561 * kostete dabei den Verlauf; W7c stellte einen zweiten daneben,
562 * der nur zuklappte. Seit W8 gehoert das Zuklappen der Zone,
563 * also steht hier wieder einer. Der Unterschied, um den es dem
564 * Nutzer ging, ist damit nicht verschwunden, sondern schaerfer:
565 * ES GIBT hier nur noch den, der loescht, und sein Tooltip sagt
566 * ausdruecklich, dass Zuklappen nichts kostet.
567 */}
568 <Hint name="chat-clear" text={messages.chat.clearTooltip}>
569 <button
570 type="button"
571 className="atlas-chat-clear"
572 data-testid="atlas-chat-clear"
573 onClick={props.onClear}
574 >
575 {messages.chat.clear}
576 </button>
577 </Hint>
578 </div>
579
580 <div className="atlas-chat-scroll" data-testid="atlas-chat-scroll">

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected