mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 12:05:54 +00:00
fix(web): remove ephemeral sandbox count from Box status display
The active_sessions count reflects transient sandbox containers that expire after 5 minutes of inactivity, making it misleading in the UI. Keep only connection status, backend, profile, and error count.
This commit is contained in:
@@ -20,7 +20,6 @@ import {
|
||||
Box,
|
||||
CircleCheck,
|
||||
CircleX,
|
||||
Activity,
|
||||
} from 'lucide-react';
|
||||
import {
|
||||
DropdownMenu,
|
||||
@@ -703,28 +702,15 @@ function PluginListView() {
|
||||
</span>
|
||||
<span className="font-mono">{boxStatus.profile}</span>
|
||||
</div>
|
||||
{boxStatus.available && (
|
||||
<>
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="text-muted-foreground min-w-[80px]">
|
||||
{t('plugins.boxSessions')}:
|
||||
</span>
|
||||
<span className="flex items-center gap-1 font-mono">
|
||||
<Activity className="w-3 h-3" />
|
||||
{boxStatus.active_sessions ?? 0}
|
||||
</span>
|
||||
</div>
|
||||
{(boxStatus.recent_error_count ?? 0) > 0 && (
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="text-muted-foreground min-w-[80px]">
|
||||
{t('plugins.boxErrors')}:
|
||||
</span>
|
||||
<span className="text-amber-600 font-mono">
|
||||
{boxStatus.recent_error_count}
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
{(boxStatus.recent_error_count ?? 0) > 0 && (
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="text-muted-foreground min-w-[80px]">
|
||||
{t('plugins.boxErrors')}:
|
||||
</span>
|
||||
<span className="text-amber-600 font-mono">
|
||||
{boxStatus.recent_error_count}
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
) : (
|
||||
|
||||
@@ -473,7 +473,6 @@ const enUS = {
|
||||
boxUnavailable: 'Unavailable',
|
||||
boxBackend: 'Backend',
|
||||
boxProfile: 'Profile',
|
||||
boxSessions: 'Sessions',
|
||||
boxErrors: 'Errors',
|
||||
boxStatusLoadFailed: 'Failed to load Box status',
|
||||
failedToGetDebugInfo: 'Failed to get debug information',
|
||||
|
||||
@@ -485,7 +485,6 @@ const esES = {
|
||||
boxUnavailable: 'No disponible',
|
||||
boxBackend: 'Backend',
|
||||
boxProfile: 'Perfil',
|
||||
boxSessions: 'Sesiones',
|
||||
boxErrors: 'Errores',
|
||||
boxStatusLoadFailed: 'Error al cargar el estado de Box',
|
||||
failedToGetDebugInfo: 'Error al obtener la información de depuración',
|
||||
|
||||
@@ -478,7 +478,6 @@ const jaJP = {
|
||||
boxUnavailable: '利用不可',
|
||||
boxBackend: 'バックエンド',
|
||||
boxProfile: 'プロファイル',
|
||||
boxSessions: 'セッション',
|
||||
boxErrors: 'エラー',
|
||||
boxStatusLoadFailed: 'Box ステータスの読み込みに失敗しました',
|
||||
failedToGetDebugInfo: 'デバッグ情報の取得に失敗しました',
|
||||
|
||||
@@ -481,7 +481,6 @@ const ruRU = {
|
||||
boxUnavailable: 'Недоступно',
|
||||
boxBackend: 'Бэкенд',
|
||||
boxProfile: 'Профиль',
|
||||
boxSessions: 'Сессии',
|
||||
boxErrors: 'Ошибки',
|
||||
boxStatusLoadFailed: 'Не удалось загрузить статус Box',
|
||||
failedToGetDebugInfo: 'Не удалось получить отладочную информацию',
|
||||
|
||||
@@ -468,7 +468,6 @@ const thTH = {
|
||||
boxUnavailable: 'ไม่พร้อมใช้งาน',
|
||||
boxBackend: 'แบ็กเอนด์',
|
||||
boxProfile: 'โปรไฟล์',
|
||||
boxSessions: 'เซสชัน',
|
||||
boxErrors: 'ข้อผิดพลาด',
|
||||
boxStatusLoadFailed: 'โหลดสถานะ Box ล้มเหลว',
|
||||
failedToGetDebugInfo: 'ไม่สามารถดึงข้อมูลดีบักได้',
|
||||
|
||||
@@ -478,7 +478,6 @@ const viVN = {
|
||||
boxUnavailable: 'Không khả dụng',
|
||||
boxBackend: 'Backend',
|
||||
boxProfile: 'Hồ sơ',
|
||||
boxSessions: 'Phiên',
|
||||
boxErrors: 'Lỗi',
|
||||
boxStatusLoadFailed: 'Tải trạng thái Box thất bại',
|
||||
failedToGetDebugInfo: 'Lấy thông tin gỡ lỗi thất bại',
|
||||
|
||||
@@ -452,7 +452,6 @@ const zhHans = {
|
||||
boxUnavailable: '不可用',
|
||||
boxBackend: '后端',
|
||||
boxProfile: '配置',
|
||||
boxSessions: '会话数',
|
||||
boxErrors: '错误数',
|
||||
boxStatusLoadFailed: '加载 Box 状态失败',
|
||||
failedToGetDebugInfo: '获取调试信息失败',
|
||||
|
||||
@@ -453,7 +453,6 @@ const zhHant = {
|
||||
boxUnavailable: '不可用',
|
||||
boxBackend: '後端',
|
||||
boxProfile: '設定檔',
|
||||
boxSessions: '工作階段',
|
||||
boxErrors: '錯誤數',
|
||||
boxStatusLoadFailed: '載入 Box 狀態失敗',
|
||||
failedToGetDebugInfo: '取得偵錯資訊失敗',
|
||||
|
||||
Reference in New Issue
Block a user