Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 24 additions & 3 deletions src/web-ui/src/app/scenes/shell/ShellNav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@

&__sections {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
padding: 0 0 $size-gap-3;
Expand All @@ -285,6 +286,14 @@
background: var(--border-subtle);
border-radius: 2px;
}

&--empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: $size-gap-3;
}
}

&__terminal-list {
Expand Down Expand Up @@ -443,10 +452,22 @@
}

&__empty {
padding: $size-gap-3;
margin: 0 $size-gap-3;
border: 1px dashed var(--border-subtle);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: $size-gap-3;
align-self: stretch;
width: 100%;
box-sizing: border-box;
padding: $size-gap-4 $size-gap-3;
text-align: center;
border: 2px dashed var(--border-subtle);
border-radius: 10px;
}

&__empty-message {
margin: 0;
color: var(--color-text-muted);
font-size: var(--font-size-xs);
line-height: $line-height-relaxed;
Expand Down
18 changes: 16 additions & 2 deletions src/web-ui/src/app/scenes/shell/ShellNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { useShellStore } from './shellStore';
import { useShellEntries } from './hooks';
import type { ShellEntry } from './hooks/shellEntryTypes';
import { useShellNavMenuState } from './hooks/useShellNavMenuState';
import { Button } from '@/component-library/components/Button';
import { Tooltip } from '@/component-library/components/Tooltip';
import ShellNavEntryItem from './components/ShellNavEntryItem';
import ShellNavWorkspaceSwitcher from './components/ShellNavWorkspaceSwitcher';
Expand Down Expand Up @@ -328,7 +329,9 @@ const ShellNav: React.FC = () => {
</button>
</div>

<div className="bitfun-shell-nav__sections">
<div
className={`bitfun-shell-nav__sections${!hasVisibleContent ? ' bitfun-shell-nav__sections--empty' : ''}`}
>
{hasVisibleContent ? (
<div className="bitfun-shell-nav__terminal-list">
{visibleEntries.map((entry) => (
Expand All @@ -348,7 +351,18 @@ const ShellNav: React.FC = () => {
</div>
) : (
<div className="bitfun-shell-nav__empty">
{navView === 'agent' ? t('nav.shell.empty.agent') : t('nav.shell.empty.manual')}
<p className="bitfun-shell-nav__empty-message">
{navView === 'agent' ? t('nav.shell.empty.agent') : t('nav.shell.empty.manual')}
</p>
<Button
type="button"
variant="secondary"
size="small"
onClick={() => { void handleCreateManualTerminal(); }}
>
<Plus size={14} aria-hidden />
{t('nav.shell.empty.quickNew')}
</Button>
</div>
)}
</div>
Expand Down
3 changes: 1 addition & 2 deletions src/web-ui/src/flow_chat/components/ChatInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2290,8 +2290,7 @@ export const ChatInput: React.FC<ChatInputProps> = ({

{!inputState.isActive &&
!inputState.value.trim() &&
!agentCompanionEnabled &&
!isCollapsedProcessing && (
!agentCompanionEnabled && (
<span className="bitfun-chat-input__space-hint">
<Trans
i18nKey="input.spaceToActivate"
Expand Down
3 changes: 2 additions & 1 deletion src/web-ui/src/locales/en-US/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@
},
"empty": {
"manual": "No user terminals yet",
"agent": "No agent terminals yet"
"agent": "No agent terminals yet",
"quickNew": "Quick new terminal"
}
},
"sessions": {
Expand Down
3 changes: 2 additions & 1 deletion src/web-ui/src/locales/zh-CN/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@
},
"empty": {
"manual": "还没有用户终端",
"agent": "还没有 Agent 终端"
"agent": "还没有 Agent 终端",
"quickNew": "快速新建"
}
},
"sessions": {
Expand Down
Loading