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

Function WhyPanel

graph-ui/src/why/WhyPanel.tsx:38–87  ·  view source on GitHub ↗
(props: WhyPanelProps)

Source from the content-addressed store, hash-verified

36}
37
38export default function WhyPanel(props: WhyPanelProps): JSX.Element {
39 return (
40 <section className="atlas-why" data-testid="atlas-why" aria-label={WHY_HEADLINE}>
41 <div className="atlas-why-inner">
42 <h2 className="atlas-why-headline" data-testid="atlas-why-headline">
43 {WHY_HEADLINE}
44 </h2>
45 <p className="atlas-why-subline">{WHY_SUBLINE}</p>
46
47 <div className="atlas-why-cards">
48 {WHY_CARDS.map((card, index) => (
49 <button
50 key={card.intent}
51 type="button"
52 className="atlas-why-card"
53 data-testid="atlas-why-card"
54 data-intent={card.intent}
55 onClick={() => props.onChoose(card.intent)}
56 >
57 <span className="atlas-why-card-index">{index + 1}</span>
58 <span className="atlas-why-card-label">{card.label}</span>
59 <span className="atlas-why-card-detail">{card.detail}</span>
60 {card.stub !== undefined && (
61 <span className="atlas-why-card-stub" data-testid="atlas-why-stub">
62 {card.stub}
63 </span>
64 )}
65 </button>
66 ))}
67 </div>
68
69 <div className="atlas-why-foot">
70 <Hint name="why-decline" text={WHY_DECLINE_TOOLTIP}>
71 <button
72 type="button"
73 className="atlas-why-decline"
74 data-testid="atlas-why-decline"
75 onClick={props.onDecline}
76 >
77 {WHY_DECLINE_LABEL}
78 </button>
79 </Hint>
80 <span className="atlas-why-project">
81 {props.project.length > 0 ? props.project : messages.why.noProject}
82 </span>
83 </div>
84 </div>
85 </section>
86 );
87}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected