From 30f73d6ff824485b7dc660654bf7d393c3006514 Mon Sep 17 00:00:00 2001 From: Seren666 <3352221860@qq.com> Date: Thu, 11 Jun 2026 15:46:57 +0800 Subject: [PATCH] feat: expand trust review engine --- .../src/components/TrustAnalysisDigest.vue | 73 + frontend/src/components/TrustCenterView.vue | 3 + frontend/src/components/TrustQuietReport.vue | 54 + frontend/src/components/TrustReviewDetail.vue | 3 + frontend/src/components/trustCenterTypes.ts | 245 + frontend/src/styles.css | 119 + snapgraph/trust_center.py | 28 +- snapgraph/trust_engine.py | 755 ++ snapgraph/trust_engine_catalog.py | 8398 +++++++++++++++++ tests/test_trust_center.py | 42 + tests/trust_operations_ui.test.ts | 21 + 11 files changed, 9738 insertions(+), 3 deletions(-) create mode 100644 frontend/src/components/TrustAnalysisDigest.vue create mode 100644 frontend/src/components/TrustQuietReport.vue create mode 100644 snapgraph/trust_engine.py create mode 100644 snapgraph/trust_engine_catalog.py diff --git a/frontend/src/components/TrustAnalysisDigest.vue b/frontend/src/components/TrustAnalysisDigest.vue new file mode 100644 index 0000000..7a5e386 --- /dev/null +++ b/frontend/src/components/TrustAnalysisDigest.vue @@ -0,0 +1,73 @@ + + + diff --git a/frontend/src/components/TrustCenterView.vue b/frontend/src/components/TrustCenterView.vue index a3c0c43..f7595c5 100644 --- a/frontend/src/components/TrustCenterView.vue +++ b/frontend/src/components/TrustCenterView.vue @@ -32,6 +32,8 @@ @mode-changed="selectedSessionMode = $event" /> + + +
+
+ Trust report + {{ headline }} +

{{ quietSummary }}

+
+ +
+ + Report detail + {{ sectionCount }} sections + +
+
+ {{ section.title }} + {{ section.count }} +

{{ section.summary }}

+
+
+
+

+ {{ action.title }} - {{ action.risk_level }} - {{ action.summary }} +

+
+
+
+ + + diff --git a/frontend/src/components/TrustReviewDetail.vue b/frontend/src/components/TrustReviewDetail.vue index 5a3c16f..4400836 100644 --- a/frontend/src/components/TrustReviewDetail.vue +++ b/frontend/src/components/TrustReviewDetail.vue @@ -26,6 +26,8 @@ + +
证据路径 @@ -82,6 +84,7 @@