refactor(ConsoleView): hoist Select options into useMemo, name shutdown sentinels, localise close label (P2-25, P2-26, P3-51)

Replace options IIFE with memoised runSelectOptions; extract magic-string
run-summary filters to SHUTDOWN_SUMMARY/WORKER_CRASH_SUMMARY constants;
localise Close console aria-label via console.close key.
This commit is contained in:
ZacharyZhang-NY committed 2026-04-16 23:00:48 -04:00
1 parent 7df0d564e5
commit b58e64b555
3 files changed
+17 -7

No files matched your search

+1
View File
@@ -275,6 +275,7 @@ export const en: Record<string, string> = {
// ── Console panel ──
"console.title": "Console",
"console.noRuns": "No runs",
"console.close": "Close console",
// ── Entity labels (command palette sections) ──
"entity.sections": "Sections",
+1
View File
@@ -275,6 +275,7 @@ export const zh: Record<string, string> = {
// ── 控制台面板 ──
"console.title": "控制台",
"console.noRuns": "暂无运行",
"console.close": "关闭控制台",
// ── 实体标签(命令面板分类) ──
"entity.sections": "版块",