Commit 6c56e27d authored by Jiachi Liu's avatar Jiachi Liu

rm agent

parent 76e7564b
.chatContainer {
border: 1px solid #d1d5db;
border-radius: 8px;
display: flex;
width: 400px;
height: 500px;
flex-direction: column;
overflow: hidden;
background: #ffffff;
color: #000000;
position: relative;
transform: scale(0.85);
transform-origin: bottom right;
transition: height 0.2s ease-in-out;
}
.chatContainer.minimized {
height: auto;
}
.chatHeader {
display: flex;
align-items: center;
justify-content: space-between;
padding-left: 14px;
padding-right: 8px;
padding-top: 8px;
padding-bottom: 8px;
border-bottom: 1px solid #d1d5db;
position: sticky;
top: 0;
background: #ffffff;
color: #000000;
z-index: 10;
}
.chatTitle {
font-weight: normal;
font-size: 14px;
display: flex;
align-items: center;
gap: 4px;
margin: 0;
}
.chatIcon {
height: 14px;
width: 14px;
}
.headerActions {
display: flex;
align-items: center;
gap: 0;
}
.actionButton {
background: none;
border: none;
padding: 6px;
border-radius: 4px;
color: #6b7280;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.actionButton:hover {
background: #f3f4f6;
}
.actionButton.inspecting {
background: #3b82f6;
color: white;
}
.actionButton.inspecting:hover {
background: #2563eb;
}
.chatContent {
flex: 1;
min-height: 0;
position: relative;
overflow-y: auto;
max-height: 350px;
}
.messagesContainer {
padding: 16px;
padding-bottom: 120px;
}
.messageGroup {
display: flex;
width: 100%;
align-items: flex-end;
gap: 16px;
padding: 16px 0;
margin-top: 16px;
}
.messageGroup.user {
justify-content: flex-end;
}
.messageContent {
position: relative;
display: flex;
flex-direction: column;
gap: 8px;
border-radius: 12px;
padding: 8px 16px;
font-size: 14px;
max-width: 80%;
word-wrap: break-word;
overflow-wrap: break-word;
white-space: normal;
}
.messageContent.user {
background: #3b82f6;
color: white;
}
.messageContent.assistant {
background: #f3f4f6;
color: #000000;
max-width: 85%;
}
.messageTail {
position: absolute;
bottom: -0.5px;
width: 18px;
height: 14px;
}
.messageTail.user {
right: 2.5px;
transform: translateX(50%);
fill: #3b82f6;
}
.avatar {
width: 28px;
height: 28px;
border-radius: 50%;
margin-top: 8px;
}
.messageActions {
margin-top: 4px;
display: flex;
align-items: center;
gap: 0;
}
.messageButton {
background: none;
border: none;
padding: 4px;
border-radius: 4px;
color: #6b7280;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.messageButton:hover {
background: #f3f4f6;
}
.thumbsContainer {
display: flex;
align-items: center;
gap: 4px;
}
.chatInput {
position: sticky;
bottom: 0;
z-index: 10;
background: #ffffff;
border-top: 1px solid #d1d5db;
}
.inputContainer {
padding-bottom: 8px;
padding-top: 8px;
border-top: 1px solid #d1d5db;
cursor: text;
}
.inputForm {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
}
.textarea {
width: 100%;
resize: none;
border: none;
outline: none;
background: transparent;
padding: 8px 16px;
font-size: 14px;
min-height: 56px;
font-family: inherit;
}
.textarea::placeholder {
color: #9ca3af;
}
.inputFooter {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 0 8px;
}
.charCount {
margin-left: 8px;
font-size: 11px;
color: #9ca3af;
font-variant-numeric: tabular-nums;
}
.submitButton {
height: 32px;
width: 32px;
padding: 0;
border: none;
border-radius: 4px;
background: #3b82f6;
color: white;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.submitButton:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.submitButton:not(:disabled):hover {
background: #2563eb;
}
.chatToolbar {
display: flex;
align-items: center;
gap: 8px;
padding: 4px 8px;
border-bottom: 1px solid #d1d5db;
background: #f9fafb;
font-size: 12px;
}
.toolbarButton {
display: flex;
align-items: center;
gap: 4px;
padding: 4px 8px;
background: #ffffff;
border: 1px solid #d1d5db;
border-radius: 4px;
color: #374151;
cursor: pointer;
font-size: 11px;
font-weight: 500;
transition: all 0.2s ease;
}
.toolbarButton:hover {
background: #f3f4f6;
border-color: #9ca3af;
}
.toolbarButton.active {
background: #3b82f6;
border-color: #3b82f6;
color: white;
}
.toolbarButton.active:hover {
background: #2563eb;
border-color: #2563eb;
}
.locatorInstructions {
color: #6b7280;
font-size: 11px;
font-style: italic;
}
.streaming-cursor {
color: #3b82f6;
animation: blink 1s infinite;
}
@keyframes blink {
0%,
50% {
opacity: 1;
}
51%,
100% {
opacity: 0;
}
}
...@@ -28,7 +28,6 @@ import { UserPreferencesBody } from '../components/errors/dev-tools-indicator/de ...@@ -28,7 +28,6 @@ import { UserPreferencesBody } from '../components/errors/dev-tools-indicator/de
import { useShortcuts } from '../hooks/use-shortcuts' import { useShortcuts } from '../hooks/use-shortcuts'
import { useUpdateAllPanelPositions } from '../components/devtools-indicator/devtools-indicator' import { useUpdateAllPanelPositions } from '../components/devtools-indicator/devtools-indicator'
import { saveDevToolsConfig } from '../utils/save-devtools-config' import { saveDevToolsConfig } from '../utils/save-devtools-config'
import { Agent } from '../agent/agent'
import './panel-router.css' import './panel-router.css'
const MenuPanel = () => { const MenuPanel = () => {
...@@ -93,11 +92,6 @@ const MenuPanel = () => { ...@@ -93,11 +92,6 @@ const MenuPanel = () => {
'data-segment-explorer': true, 'data-segment-explorer': true,
}, },
}, },
{
label: 'Agent',
value: <ChevronRight />,
onClick: () => setPanel('agent'),
},
{ {
label: 'Preferences', label: 'Preferences',
value: <GearIcon />, value: <GearIcon />,
...@@ -247,22 +241,6 @@ export const PanelRouter = () => { ...@@ -247,22 +241,6 @@ export const PanelRouter = () => {
</div> </div>
</DynamicPanel> </DynamicPanel>
</PanelRoute> </PanelRoute>
<PanelRoute name="agent">
<DynamicPanel
sharePanelSizeGlobally={false}
sizeConfig={{
kind: 'fixed',
height: 300 / state.scale,
width: 400 / state.scale,
}}
header={<DevToolsHeader title="Agent" />}
>
<div className="panel-content">
<Agent />
</div>
</DynamicPanel>
</PanelRoute>
</> </>
) )
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment