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:
Junyan Qin
2026-04-18 01:22:27 +08:00
committed by WangCham
parent e2d555a945
commit ec00e49ef1
9 changed files with 9 additions and 31 deletions

View File

@@ -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>
) : (

View File

@@ -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',

View File

@@ -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',

View File

@@ -478,7 +478,6 @@ const jaJP = {
boxUnavailable: '利用不可',
boxBackend: 'バックエンド',
boxProfile: 'プロファイル',
boxSessions: 'セッション',
boxErrors: 'エラー',
boxStatusLoadFailed: 'Box ステータスの読み込みに失敗しました',
failedToGetDebugInfo: 'デバッグ情報の取得に失敗しました',

View File

@@ -481,7 +481,6 @@ const ruRU = {
boxUnavailable: 'Недоступно',
boxBackend: 'Бэкенд',
boxProfile: 'Профиль',
boxSessions: 'Сессии',
boxErrors: 'Ошибки',
boxStatusLoadFailed: 'Не удалось загрузить статус Box',
failedToGetDebugInfo: 'Не удалось получить отладочную информацию',

View File

@@ -468,7 +468,6 @@ const thTH = {
boxUnavailable: 'ไม่พร้อมใช้งาน',
boxBackend: 'แบ็กเอนด์',
boxProfile: 'โปรไฟล์',
boxSessions: 'เซสชัน',
boxErrors: 'ข้อผิดพลาด',
boxStatusLoadFailed: 'โหลดสถานะ Box ล้มเหลว',
failedToGetDebugInfo: 'ไม่สามารถดึงข้อมูลดีบักได้',

View File

@@ -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',

View File

@@ -452,7 +452,6 @@ const zhHans = {
boxUnavailable: '不可用',
boxBackend: '后端',
boxProfile: '配置',
boxSessions: '会话数',
boxErrors: '错误数',
boxStatusLoadFailed: '加载 Box 状态失败',
failedToGetDebugInfo: '获取调试信息失败',

View File

@@ -453,7 +453,6 @@ const zhHant = {
boxUnavailable: '不可用',
boxBackend: '後端',
boxProfile: '設定檔',
boxSessions: '工作階段',
boxErrors: '錯誤數',
boxStatusLoadFailed: '載入 Box 狀態失敗',
failedToGetDebugInfo: '取得偵錯資訊失敗',