@@ -14,7 +14,7 @@ import GraphSumUp from "./GraphSumUp";
1414import NodesAppearanceBlock from "./NodesAppearanceBlock" ;
1515import Settings from "./Settings" ;
1616import SelectedNodePanel from "./SelectedNodePanel" ;
17- import GraphRAGPanel from "./GraphRAGPanel" ;
17+ import DeepGitAIPanel from "./GraphRAGPanel" ;
1818
1919const ContextPanel : FC = ( ) => {
2020 const { navState, data, panel, setPanel } = useContext ( GraphContext ) ;
@@ -35,8 +35,8 @@ const ContextPanel: FC = () => {
3535 let content : JSX . Element ;
3636 if ( panel === "settings" ) {
3737 content = < Settings /> ;
38- } else if ( panel === "graphrag " ) {
39- content = < GraphRAGPanel /> ;
38+ } else if ( panel === "deepgit-ai " ) {
39+ content = < DeepGitAIPanel /> ;
4040 } else if ( selectedNode ) {
4141 content = < SelectedNodePanel node = { navState ?. selectedNode as string } data = { selectedNode } /> ;
4242 } else {
@@ -71,11 +71,11 @@ const ContextPanel: FC = () => {
7171 < VscSettings /> Settings
7272 </ button >
7373 < button
74- className = { cx ( "btn ms-2 mt-1" , panel === "graphrag " ? selectedButtonClass : "btn-outline-dark" ) }
75- onClick = { ( ) => setPanel ( "graphrag " ) }
76- disabled = { panel === "graphrag " }
74+ className = { cx ( "btn ms-2 mt-1" , panel === "deepgit-ai " ? selectedButtonClass : "btn-outline-dark" ) }
75+ onClick = { ( ) => setPanel ( "deepgit-ai " ) }
76+ disabled = { panel === "deepgit-ai " }
7777 >
78- < AiOutlineRobot /> GraphRAG
78+ < AiOutlineRobot /> DeepGitAI
7979 </ button >
8080 { /* <button
8181 className={cx("btn ms-2 mt-1", "btn-outline-dark")}
@@ -123,7 +123,7 @@ const ContextPanel: FC = () => {
123123 </ div >
124124 </ div >
125125
126- < div className = "panel-content" >
126+ < div className = { cx ( "panel-content" , panel === "deepgit-ai" && "deepgit-ai-mode" ) } >
127127 < div className = "flex-grow-1 p-0 m-0" > { content } </ div >
128128
129129 < hr className = "m-0 flex-shrink-0" />
0 commit comments