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:
1 parent
7df0d564e5
commit
b58e64b555
3 files changed
+17
-7
No files matched your search
@@ -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",
|
||||
|
||||
@@ -275,6 +275,7 @@ export const zh: Record<string, string> = {
|
||||
// ── 控制台面板 ──
|
||||
"console.title": "控制台",
|
||||
"console.noRuns": "暂无运行",
|
||||
"console.close": "关闭控制台",
|
||||
|
||||
// ── 实体标签(命令面板分类) ──
|
||||
"entity.sections": "版块",
|
||||
|
||||
Reference in new issue
Block a user