diff --git a/changes/fix-plugin-market-compatibility-and-theme-lifecycle.json b/changes/fix-plugin-market-compatibility-and-theme-lifecycle.json new file mode 100644 index 0000000..e59020b --- /dev/null +++ b/changes/fix-plugin-market-compatibility-and-theme-lifecycle.json @@ -0,0 +1,7 @@ +{ + "group": "fixes", + "order": 0, + "authors": ["Dnyo666"], + "zh": "修复插件市场平台与引擎兼容校验不一致、外部主题在重启或升级后丢失、安全模式或 CLI 停用无关插件误清空当前主题,以及隐藏对话框阻断快捷键和审批弹窗在小窗口被裁切的问题。 [#93](https://github.com/Nwflower/Reims-Go/issues/93)", + "en": "Fix mismatched plugin market platform and engine compatibility checks, external theme loss across restarts and upgrades, unrelated safe-mode or CLI disables clearing the active theme, hidden dialogs blocking shortcuts, and approval modal list clipping on compact windows. [#93](https://github.com/Nwflower/Reims-Go/issues/93)" +} diff --git a/changes/harden-ui-script-approval-and-market-downloads.json b/changes/harden-ui-script-approval-and-market-downloads.json new file mode 100644 index 0000000..fc1776f --- /dev/null +++ b/changes/harden-ui-script-approval-and-market-downloads.json @@ -0,0 +1,7 @@ +{ + "group": "security", + "order": 0, + "authors": ["Dnyo666"], + "zh": "为 `ui:script` 交互主题补齐脚本 SHA-256 哈希锚定与高危审批详情(从 `v0.2.11` 升级后已启用的 `ui:script` 主题首次启动需重新确认一次),并为插件市场下载加固直连防 HTTPS 降级、体积硬上限、慢流超时、版本路径校验及陈旧缓存信任降级一致性。 [#93](https://github.com/Nwflower/Reims-Go/issues/93)", + "en": "Enforce script SHA-256 hash pinning and full high-risk approval disclosure for `ui:script` interactive themes (existing `v0.2.11` `ui:script` themes require one-time re-approval on first startup), and harden plugin market downloads with direct HTTPS-only redirects, hard size caps, stall timeouts, version path validation, and stale-cache trust parity. [#93](https://github.com/Nwflower/Reims-Go/issues/93)" +} diff --git a/frontend/package.json b/frontend/package.json index 93ce7b7..e90ec10 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "dev": "vite", - "test": "node --test --test-concurrency=2 scripts/test-i18n.mjs scripts/test-keymap.mjs scripts/test-tasks.mjs scripts/test-macos-boundary.mjs scripts/test-no-empty-catch.mjs", + "test": "node --test --test-concurrency=2 scripts/test-i18n.mjs scripts/test-keymap.mjs scripts/test-plugins.mjs scripts/test-tasks.mjs scripts/test-macos-boundary.mjs scripts/test-no-empty-catch.mjs", "typecheck": "tsc --noEmit", "bundle": "vite build && node scripts/check-ui-contract.mjs", "build": "tsc --noEmit && pnpm run bundle", diff --git a/frontend/scripts/test-plugins.mjs b/frontend/scripts/test-plugins.mjs new file mode 100644 index 0000000..4923c05 --- /dev/null +++ b/frontend/scripts/test-plugins.mjs @@ -0,0 +1,120 @@ +import assert from 'node:assert/strict' +import fs from 'node:fs' +import path from 'node:path' +import test from 'node:test' +import { fileURLToPath } from 'node:url' +import { loadTestModule } from './load-test-module.mjs' + +const __dirname = path.dirname(fileURLToPath(import.meta.url)) +const appCSSPath = path.resolve(__dirname, '../src/styles/app.css') + +const { hasVisibleDialog, isDialogElementVisible } = await loadTestModule(`export * from './lib/dialogState'`) +const { resolvePluginApprovalNotice } = await loadTestModule(`export { resolvePluginApprovalNotice } from './components/PluginParts'`) + +function fakeDialog({ + display = 'block', + visibility = 'visible', + ariaHidden = null, + hidden = false, + inert = false, + dataState = null, + parentElement = null, +} = {}) { + const el = { + parentElement, + getAttribute(name) { + if (name === 'aria-hidden') return ariaHidden + if (name === 'hidden') return hidden ? '' : null + if (name === 'inert') return inert ? '' : null + if (name === 'data-state') return dataState + return null + }, + closest() { + return null + }, + } + return { el, style: { display, visibility } } +} + +test('hidden dialog elements (including ancestor display:none, inert, and closed state) do not block shortcuts', () => { + const hiddenDisplay = fakeDialog({ display: 'none' }) + const hiddenVis = fakeDialog({ visibility: 'hidden' }) + const hiddenCollapse = fakeDialog({ visibility: 'collapse' }) + const hiddenAttr = fakeDialog({ hidden: true }) + const hiddenInert = fakeDialog({ inert: true }) + const hiddenAria = fakeDialog({ ariaHidden: 'true' }) + const closedState = fakeDialog({ dataState: 'closed' }) + const hiddenParent = fakeDialog({ display: 'none' }) + const childOfHiddenParent = fakeDialog({ parentElement: hiddenParent.el }) + const visibleParent = fakeDialog({ display: 'block' }) + const visible = fakeDialog({ parentElement: visibleParent.el }) + + const styles = new Map([ + [hiddenDisplay.el, hiddenDisplay.style], + [hiddenVis.el, hiddenVis.style], + [hiddenCollapse.el, hiddenCollapse.style], + [hiddenAttr.el, hiddenAttr.style], + [hiddenInert.el, hiddenInert.style], + [hiddenAria.el, hiddenAria.style], + [closedState.el, closedState.style], + [hiddenParent.el, hiddenParent.style], + [childOfHiddenParent.el, childOfHiddenParent.style], + [visibleParent.el, visibleParent.style], + [visible.el, visible.style], + ]) + const getStyle = (node) => styles.get(node) ?? { display: 'block', visibility: 'visible' } + + for (const hiddenCase of [ + hiddenDisplay, + hiddenVis, + hiddenCollapse, + hiddenAttr, + hiddenInert, + hiddenAria, + closedState, + childOfHiddenParent, + ]) { + assert.equal(isDialogElementVisible(hiddenCase.el, getStyle), false) + } + assert.equal(isDialogElementVisible(visible.el, getStyle), true) + + assert.equal( + hasVisibleDialog( + { querySelectorAll: () => [hiddenDisplay.el, hiddenVis.el, childOfHiddenParent.el, closedState.el] }, + getStyle, + ), + false, + ) + assert.equal( + hasVisibleDialog({ querySelectorAll: () => [childOfHiddenParent.el, visible.el] }, getStyle), + true, + ) +}) + +test('L1 ui:script plugins receive accurate, style-compliant warning instead of L3 sidecar copy', () => { + const uiScriptPlugin = { + tier: 'L1', + permissions: [{ name: 'ui:script', level: 'high' }], + } + const zhNotice = resolvePluginApprovalNotice(uiScriptPlugin, null, 'zh-CN') + const enNotice = resolvePluginApprovalNotice(uiScriptPlugin, null, 'en-US') + assert.ok(zhNotice.includes('ui:script'), `expected ui:script zh notice, got: ${zhNotice}`) + assert.ok(!zhNotice.includes('L3 Sidecar'), `L1 ui:script must not show L3 Sidecar warning: ${zhNotice}`) + assert.ok(!zhNotice.includes('请'), `zh notice should follow design guidelines (no 请): ${zhNotice}`) + assert.ok(enNotice.includes('ui:script'), `expected ui:script en notice, got: ${enNotice}`) + assert.ok(!enNotice.includes('L3 Sidecar'), `L1 ui:script must not show L3 Sidecar warning: ${enNotice}`) + assert.ok(!enNotice.endsWith('.'), `en notice should not end with a trailing period: ${enNotice}`) + + const l3Plugin = { tier: 'L3', permissions: [{ name: 'driver:vm', level: 'high' }] } + const l3Notice = resolvePluginApprovalNotice(l3Plugin, null, 'en-US') + assert.ok(l3Notice.includes('L3 Sidecar'), `expected L3 Sidecar warning, got: ${l3Notice}`) + + const plainTheme = { tier: 'L1', permissions: [] } + assert.equal(resolvePluginApprovalNotice(plainTheme, null, 'en-US'), '') +}) + +test('dialog body children and plugin scan lists disable flex shrinking so tall modals scroll instead of clipping', () => { + const css = fs.readFileSync(appCSSPath, 'utf8') + assert.match(css, /\.dialog-body\s*>\s*\*\s*\{[^}]*flex-shrink\s*:\s*0/) + assert.match(css, /\.plugin-scan-section\s*>\s*\.list\s*\{[^}]*flex-shrink\s*:\s*0/) +}) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index bd29262..a262793 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -18,6 +18,7 @@ import { LogLine, appendLog } from './lib/logs' import { macOSMajor } from './macos/macosRelease' import { currentTask, finishedTaskTTL, isActiveInstallerTask, pruneFinishedTasks, upsertTask } from './lib/tasks' import { applyActiveLocaleFonts, applyActiveTheme, disposeActiveThemeAndLocaleFonts, emitThemeEvent, notifyInteractiveThemeState, type UIStateSnapshot } from './lib/themeEngine' +import { hasVisibleDialog } from './lib/dialogState' import { latestVMStatsWithDriver, refreshSubscribedVMStats, refreshVMStatsWithDriver } from './lib/vmStats' import { vmRefKey } from './lib/vmRef' import { ActiveThemePayload, AppState, AppUpdateInfo, CachedInstaller, CreateOpts, Locale, PluginUIContributions, Task, VMDetail } from './types' @@ -506,7 +507,7 @@ export const App: React.FC = () => { el.dataset.sidebarCollapsed = String(!sidebarOpen) el.dataset.safeMode = String(!!state?.safe_mode) notifyInteractiveThemeState(uiStateRef.current) - }, [currentView, effectiveState, isBusyAny, hasAnyError, sidebarOpen, state?.safe_mode, locale, dir, theme]) + }, [currentView, effectiveState, isBusyAny, hasAnyError, sidebarOpen, state?.safe_mode, locale, dir, theme, reducedMotion]) // UI SDK event stream (ui-contract UI_CONTRACT_SDK_EVENTS). emitThemeEvent is // a no-op unless an interactive theme is loaded; payloads carry no paths. @@ -939,7 +940,7 @@ export const App: React.FC = () => { shortcutRef.current = (e: KeyboardEvent) => { if (!e.ctrlKey || e.altKey || e.metaKey) return if (appDialogOpen) return - if (document.querySelector('[role="dialog"], [role="alertdialog"]')) return + if (hasVisibleDialog()) return const k = e.key.toLowerCase() if (k === 'n') { e.preventDefault(); openWizard() } else if (k === ',' && detail && effectiveState !== 'suspended' && effectiveState !== 'suspending' && effectiveState !== 'resuming') { e.preventDefault(); setShowSettings(true) } diff --git a/frontend/src/components/PluginMarket.tsx b/frontend/src/components/PluginMarket.tsx index ccd2e55..42f29b9 100644 --- a/frontend/src/components/PluginMarket.tsx +++ b/frontend/src/components/PluginMarket.tsx @@ -2,11 +2,11 @@ import { AlertTriangle, Check, Download, ShieldAlert } from 'lucide-react' import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react' import '../i18n/domains/plugins.gen' import { I18nKey, t } from '../i18n' -import { Locale, MarketBrowseResult, MarketCatalogItem, PluginInfo } from '../types' +import { Locale, MarketBrowseResult, MarketCatalogItem, PluginInfo, ScanReport } from '../types' import { Button, Tip } from '../ui/controls' import { Modal } from '../ui/dialog' import { api, events, MarketInstallProgress } from '../wails' -import { PluginAppIcon, PluginSearchInput, PluginTrustBadge, RiskList } from './PluginParts' +import { PluginAppIcon, PluginApprovalBody, PluginSearchInput, PluginTrustBadge, RiskList } from './PluginParts' import { locText } from './SchemaForm' import { WordmarkLoader } from './WordmarkLoader' @@ -57,12 +57,16 @@ export const PluginMarket: React.FC = ({ const [visible, setVisible] = useState(PAGE_SIZE) const [progress, setProgress] = useState({}) const [prompt, setPrompt] = useState(null) + const [promptReport, setPromptReport] = useState(null) const [promptChecked, setPromptChecked] = useState(false) const [enabling, setEnabling] = useState(false) const seq = useRef(0) const synced = useRef(false) const sentinel = useRef(null) + const installingRef = useRef>(new Set()) + const promptTargetIDRef = useRef('') + const promptQueueRef = useRef([]) const params = useRef({ query, kind }) params.current = { query, kind } @@ -158,19 +162,57 @@ export const PluginMarket: React.FC = ({ return () => io.disconnect() }, [hasMore, visible, items.length]) + const openPrompt = (info: PluginInfo) => { + promptTargetIDRef.current = info.id + setPromptChecked(false) + setPromptReport(null) + setPrompt(info) + if (info.needs_approval) { + void api.ScanInstalledPlugin(info.id) + .then((rep) => { + if (promptTargetIDRef.current === info.id) setPromptReport(rep) + }) + .catch((e) => console.warn('[market] ScanInstalledPlugin failed:', info.id, e)) + } + } + + const advancePrompt = () => { + const next = promptQueueRef.current.shift() + if (next) { + openPrompt(next) + return + } + promptTargetIDRef.current = '' + setPrompt(null) + setPromptReport(null) + } + + const closePrompt = () => { + if (enabling) return + advancePrompt() + } + const install = async (item: MarketCatalogItem) => { const id = item.entry.id + if (installingRef.current.has(id)) return + installingRef.current.add(id) setProgress((prev) => ({ ...prev, [id]: { id, phase: 'download', done: 0, total: item.entry.size_bytes ?? 0 } })) try { const info = await api.InstallMarketPlugin(id, false) await onChanged({}) if (info && !info.enabled) { - setPromptChecked(false) - setPrompt(info) + if (promptTargetIDRef.current) { + if (promptTargetIDRef.current !== info.id && !promptQueueRef.current.some((p) => p.id === info.id)) { + promptQueueRef.current.push(info) + } + } else { + openPrompt(info) + } } } catch (e) { onError(tr('pluginFailMarketInstall'), e) } finally { + installingRef.current.delete(id) setProgress((prev) => { const next = { ...prev } delete next[id] @@ -185,7 +227,7 @@ export const PluginMarket: React.FC = ({ try { const target = prompt await api.EnablePlugin(target.id, target.needs_approval) - setPrompt(null) + advancePrompt() await onChanged({ enabled: target }) } catch (e) { onError(tr('pluginFailEnable'), e) @@ -349,10 +391,19 @@ export const PluginMarket: React.FC = ({ title={tr('pluginEnablePromptTitle', { name: locText(prompt.name, locale, prompt.id) })} subtitle={`${prompt.publisher || tr('pluginTrustCommunity')} · v${prompt.version}`} closeLabel={tr('close')} - onClose={() => { if (!enabling) setPrompt(null) }} + dismissable={!enabling} + onClose={closePrompt} >
- {(prompt.risks?.length ?? 0) > 0 ? ( + {prompt.needs_approval ? ( + <> + + + + ) : (prompt.risks?.length ?? 0) > 0 ? ( <>

{tr('pluginEnablePromptBody')}

@@ -360,23 +411,17 @@ export const PluginMarket: React.FC = ({ ) : (

{tr('pluginEnablePromptNoRisk')}

)} - {prompt.needs_approval && ( - - )}
- +
diff --git a/frontend/src/components/PluginParts.tsx b/frontend/src/components/PluginParts.tsx index f6a6e86..1e5c212 100644 --- a/frontend/src/components/PluginParts.tsx +++ b/frontend/src/components/PluginParts.tsx @@ -1,15 +1,32 @@ import { Activity, BadgeCheck, Binary, Clipboard, Code2, Files, Globe, - Keyboard, Monitor, PanelsTopLeft, Search, ShieldCheck, Users, + Keyboard, Monitor, PanelsTopLeft, Search, ShieldAlert, ShieldCheck, Users, } from 'lucide-react' import React from 'react' import '../i18n/domains/plugins.gen' -import { I18nKey, t } from '../i18n' -import { Locale } from '../types' +import { I18nKey, locText, t } from '../i18n' +import { Locale, PluginInfo, ScanReport } from '../types' import { Tip } from '../ui/controls' export { PluginAppIcon, resolvePluginVisual, type PluginVisual, type PluginVisualSource } from './PluginAppIcon' +/** Selects the accurate high-risk warning notice for a plugin (L3 native vs ui:script). */ +export function resolvePluginApprovalNotice( + plugin: Pick, + report: Pick | null | undefined, + locale: Locale, +): string { + if (plugin.tier === 'L3') { + return report?.native_exec_notice + ? locText(report.native_exec_notice, locale, t(locale, 'pluginApproveL3Warn')) + : t(locale, 'pluginApproveL3Warn') + } + if ((plugin.permissions ?? []).some((p) => p.name === 'ui:script')) { + return t(locale, 'pluginApproveUIScriptWarn') + } + return '' +} + /** Publisher + trust-tier mark shared by Installed rows and Market cards. */ export const PluginTrustBadge: React.FC<{ locale: Locale @@ -80,3 +97,86 @@ export const RiskList: React.FC<{ locale: Locale; risks?: string[] }> = ({ local ) } + +/** High-risk approval disclosure shared by Installed approval and Market enable flows. */ +export const PluginApprovalBody: React.FC<{ + locale: Locale + plugin: PluginInfo + report?: ScanReport | null +}> = ({ locale, plugin, report }) => { + const tr = (k: I18nKey, v?: Record) => t(locale, k, v) + const warnText = resolvePluginApprovalNotice(plugin, report, locale) + return ( + <> + {warnText && ( +
+ + +
+ )} + +
+
+
+
{tr('pluginPublisherLicense')}
+
{plugin.publisher || '—'} · {plugin.license || '—'}
+
+
+ {plugin.entry_path && ( +
+
+
{tr('pluginEntryPath')}
+
{plugin.entry_path}
+
+
+ )} + {plugin.entry_hash && ( +
+
+
SHA-256
+
{plugin.entry_hash}
+
+
+ )} +
+
+
{tr('pluginRequestedPerms')}
+
+ {(plugin.permissions ?? []).length > 0 + ? (plugin.permissions ?? []).map((p) => `${p.name} (${p.level})`).join(', ') + : '—'} +
+
+
+
+ {(report?.capabilities?.length ?? 0) > 0 && ( +
+
{tr('pluginScanCapabilitiesSection')}
+
+ {report!.capabilities!.map((c) => ( +
+
+
+ {c.level.toUpperCase()} + {locText(c.title, locale, c.id)} +
+
{locText(c.summary, locale, '')}
+ {(c.examples?.length ?? 0) > 0 && ( +
+ {c.examples!.map((ex, i) =>
· {ex}
)} + {(c.extra_count ?? 0) > 0 && ( +
· {tr('pluginScanMoreItems', { count: c.extra_count! })}
+ )} +
+ )} +
+
+ ))} +
+
+ )} + + ) +} diff --git a/frontend/src/components/PluginsPage.tsx b/frontend/src/components/PluginsPage.tsx index de62b3c..50448a7 100644 --- a/frontend/src/components/PluginsPage.tsx +++ b/frontend/src/components/PluginsPage.tsx @@ -2,7 +2,7 @@ import { AlertTriangle, CheckCircle2, FolderOpen, PackagePlus, Palette, RefreshCw, Settings2, Shield, ShieldAlert, Sparkles, Terminal, Trash2, } from 'lucide-react' -import React, { useEffect, useMemo, useState } from 'react' +import React, { useEffect, useMemo, useRef, useState } from 'react' import '../i18n/domains/plugins.gen' import '../i18n/domains/settings.gen' import { I18nKey, t } from '../i18n' @@ -15,7 +15,7 @@ import { PopupSelect, Segmented, Switch } from '../ui/settings' import { api } from '../wails' import { PluginMarket } from './PluginMarket' import { PluginPanelFrame } from './PluginPanelFrame' -import { PluginAppIcon, PluginSearchInput, PluginTrustBadge, RiskList } from './PluginParts' +import { PluginAppIcon, PluginApprovalBody, PluginSearchInput, PluginTrustBadge } from './PluginParts' import { SchemaForm, locText } from './SchemaForm' // Search only earns its space once the list is long enough to scan. @@ -57,6 +57,7 @@ export const PluginsPage: React.FC = ({ const [approveTarget, setApproveTarget] = useState(null) const [approveReport, setApproveReport] = useState(null) const [approveChecked, setApproveChecked] = useState(false) + const approveTargetIDRef = useRef('') const [settingsTarget, setSettingsTarget] = useState(null) const [settingsValues, setSettingsValues] = useState>({}) const [logTarget, setLogTarget] = useState<{ id: string; text: string } | null>(null) @@ -93,8 +94,10 @@ export const PluginsPage: React.FC = ({ setPlugins(list ?? []) setContribs(ui) setActiveTheme(th) + return { ui, th } } catch (e) { onError(tr('pluginFailLoad'), e) + return null } finally { setLoading(false) } @@ -116,13 +119,34 @@ export const PluginsPage: React.FC = ({ if (tags.length > 0 && !tags.includes(locale)) onLocaleSwitch?.(tags[0]) } + // Enabling a theme plugin from the market switches to its first theme only + // while the user is still on the built-in default theme. + const adoptPluginTheme = async ( + p: PluginInfo, + ui: PluginUIContributions | null | undefined, + currentTheme: ActiveThemePayload | null | undefined, + ) => { + if (safeMode) return + const curID = currentTheme?.theme_id ?? '' + if (curID && curID !== 'builtin.theme.default') return + const matched = (ui?.themes ?? []).find((th) => th.pluginId === p.id) + if (!matched) return + try { + await api.SetActiveTheme(matched.id, '') + setActiveTheme(await api.GetActiveTheme()) + } catch (e) { + onError(tr('pluginFailSwitchTheme'), e) + } + } + const onMarketChanged = async ({ enabled }: { enabled?: PluginInfo }) => { - await reload() - onRefresh() + const latest = await reload() if (enabled) { - onThemeChanged?.() + await adoptPluginTheme(enabled, latest?.ui, latest?.th) adoptPluginLocale(enabled) } + onRefresh() + onThemeChanged?.() } useEffect(() => { void reload() }, [safeMode]) @@ -136,10 +160,15 @@ export const PluginsPage: React.FC = ({ return } if (enable && p.needs_approval) { + approveTargetIDRef.current = p.id setApproveChecked(false) setApproveReport(null) setApproveTarget(p) - void api.ScanInstalledPlugin(p.id).then(setApproveReport).catch((e) => console.warn('[plugins] ScanInstalledPlugin failed:', p.id, e)) + void api.ScanInstalledPlugin(p.id) + .then((rep) => { + if (approveTargetIDRef.current === p.id) setApproveReport(rep) + }) + .catch((e) => console.warn('[plugins] ScanInstalledPlugin failed:', p.id, e)) return } setBusyID(p.id) @@ -157,11 +186,16 @@ export const PluginsPage: React.FC = ({ } } + const closeApprove = () => { + approveTargetIDRef.current = '' + setApproveTarget(null) + setApproveReport(null) + } + const confirmApprove = async () => { if (!approveTarget || !approveChecked) return const target = approveTarget - setApproveTarget(null) - setApproveReport(null) + closeApprove() setBusyID(target.id) try { await api.EnablePlugin(target.id, true) @@ -803,46 +837,10 @@ export const PluginsPage: React.FC = ({ title={tr('pluginApproveTitle')} subtitle={locText(approveTarget.name, locale, approveTarget.id)} closeLabel={tr('close')} - onClose={() => { setApproveTarget(null); setApproveReport(null) }} + onClose={closeApprove} >
- {(approveTarget.tier === 'L3' || (approveTarget.permissions ?? []).some((p) => p.name === 'ui:script')) && ( -
- - -
- )} - -
-
{tr('pluginPublisherLicense')}
{approveTarget.publisher || '—'} · {approveTarget.license || '—'}
- {approveTarget.entry_path && ( -
{tr('pluginEntryPath')}
{approveTarget.entry_path}
- )} - {approveTarget.entry_hash && ( -
SHA-256
{approveTarget.entry_hash}
- )} -
{tr('pluginRequestedPerms')}
{(approveTarget.permissions ?? []).length > 0 ? (approveTarget.permissions ?? []).map((p) => `${p.name} (${p.level})`).join(', ') : '—'}
-
- {(approveReport?.capabilities?.length ?? 0) > 0 && ( -
-
{tr('pluginScanCapabilitiesSection')}
-
- {approveReport!.capabilities!.map((c) => ( -
-
-
- {c.level.toUpperCase()} - {locText(c.title, locale, c.id)} -
-
{locText(c.summary, locale, '')}
-
-
- ))} -
-
- )} +