diff --git a/gui/src/components/Logo.tsx b/gui/src/components/Logo.tsx new file mode 100644 index 000000000..a6f889768 --- /dev/null +++ b/gui/src/components/Logo.tsx @@ -0,0 +1,22 @@ +export default function Logo({ + height, + width, +}: { + height: number; + width: number; +}) { + return ( + + + + ); +} diff --git a/gui/src/components/gui/StepContainer.tsx b/gui/src/components/gui/StepContainer.tsx index a93d377e1..402975382 100644 --- a/gui/src/components/gui/StepContainer.tsx +++ b/gui/src/components/gui/StepContainer.tsx @@ -58,7 +58,7 @@ const ContentDiv = styled.div<{ isUserInput: boolean; fontSize?: number }>` background-color: ${(props) => props.isUserInput ? vscInputBackground : vscBackground}; font-size: ${(props) => props.fontSize || getFontSize()}px; - border-radius: ${defaultBorderRadius}; + // border-radius: ${defaultBorderRadius}; overflow: hidden; `; @@ -138,7 +138,6 @@ function StepContainer(props: StepContainerProps) { /> )} -
{(isHovered || typeof feedback !== "undefined") && !active && (
{ style={{ color: lightGray }} > )} - Context Used + Context Used
{open && (
{item.message.role === "user" ? ( - { - streamResponse( - editorState, - modifiers, - ideMessenger, - index, - ); - }} - isLastUserInput={isLastUserInput(index)} - isMainInput={false} - editorState={item.editorState} - contextItems={item.contextItems} - > +
+ + + + +
+ Continue + User +
+
+ { + streamResponse( + editorState, + modifiers, + ideMessenger, + index, + ); + }} + isLastUserInput={isLastUserInput(index)} + isMainInput={false} + editorState={item.editorState} + contextItems={item.contextItems} + > +
) : ( - - ) : false ? ( - - ) : ( - - ) - } - open={ - typeof stepsOpen[index] === "undefined" - ? false - ? false - : true - : stepsOpen[index]! - } - onToggle={() => {}} - > - + + + + +
+ + {item.message.role} + + + {item.promptLogs?.[0]?.completionOptions?.model ?? + "Agent"} + +
+
+ + ) : false ? ( + + ) : ( + + ) + } open={ typeof stepsOpen[index] === "undefined" - ? true + ? false + ? false + : true : stepsOpen[index]! } - key={index} - onUserInput={(input: string) => {}} - item={item} - onReverse={() => {}} - onRetry={() => { - streamResponse( - state.history[index - 1].editorState, - state.history[index - 1].modifiers ?? - defaultInputModifiers, - ideMessenger, - index - 1, - ); - }} - onContinueGeneration={() => { - window.postMessage( - { - messageType: "userInput", - data: { - input: - "Continue your response exactly where you left off:", + onToggle={() => {}} + > + {}} + item={item} + onReverse={() => {}} + onRetry={() => { + streamResponse( + state.history[index - 1].editorState, + state.history[index - 1].modifiers ?? + defaultInputModifiers, + ideMessenger, + index - 1, + ); + }} + onContinueGeneration={() => { + window.postMessage( + { + messageType: "userInput", + data: { + input: + "Continue your response exactly where you left off:", + }, }, - }, - "*", - ); - }} - onDelete={() => {}} - /> - + "*", + ); + }} + onDelete={() => {}} + /> +
+
)}