From f590784345c10b1518c36a6ad6a71162847dbdc0 Mon Sep 17 00:00:00 2001 From: 666ghj <670939375@qq.com> Date: Fri, 12 Dec 2025 18:19:45 +0800 Subject: [PATCH] Enhance Step3Simulation and Step2EnvSetup components for improved clarity and user experience - Updated estimated time messages in Step2EnvSetup.vue to specify agent scale for better context. - Refactored Step3Simulation.vue to improve action tracking, including clearer labels and enhanced UI elements. - Introduced a tooltip for available actions, providing users with quick reference during simulations. - Improved styling and layout for better readability and interaction, including adjustments to button and card designs. --- frontend/src/components/Step2EnvSetup.vue | 4 +- frontend/src/components/Step3Simulation.vue | 818 ++++++++++---------- frontend/src/views/SimulationRunView.vue | 15 +- 3 files changed, 413 insertions(+), 424 deletions(-) diff --git a/frontend/src/components/Step2EnvSetup.vue b/frontend/src/components/Step2EnvSetup.vue index 0628cbf..d49d419 100644 --- a/frontend/src/components/Step2EnvSetup.vue +++ b/frontend/src/components/Step2EnvSetup.vue @@ -457,7 +457,7 @@
- 预计耗时约 {{ Math.round(customMaxRounds * 0.6) }} 分钟 + 若Agent规模为100:预计耗时约 {{ Math.round(customMaxRounds * 0.6) }} 分钟
@@ -497,7 +497,7 @@ - 预计耗时 {{ Math.round(autoGeneratedRounds * 0.6) }} 分钟 + 若Agent规模为100:预计耗时 {{ Math.round(autoGeneratedRounds * 0.6) }} 分钟
diff --git a/frontend/src/components/Step3Simulation.vue b/frontend/src/components/Step3Simulation.vue index 7ddbd29..df4ec63 100644 --- a/frontend/src/components/Step3Simulation.vue +++ b/frontend/src/components/Step3Simulation.vue @@ -6,47 +6,87 @@
- 𝕏 - Twitter - + + + + Info Plaza + + + + +
- R + ROUND {{ runStatus.twitter_current_round || 0 }}/{{ runStatus.total_rounds || maxRounds || '-' }} - T - {{ runStatus.twitter_simulated_hours || 0 }}h + Elapsed Time + {{ twitterElapsedTime }} - A + ACTS {{ runStatus.twitter_actions_count || 0 }}
+ +
+
Available Actions
+
+ POST + LIKE + REPOST + QUOTE + FOLLOW + IDLE +
+
- 📮 - Reddit - + + + + Topic Community + + + + +
- R + ROUND {{ runStatus.reddit_current_round || 0 }}/{{ runStatus.total_rounds || maxRounds || '-' }} - T - {{ runStatus.reddit_simulated_hours || 0 }}h + Elapsed Time + {{ redditElapsedTime }} - A + ACTS {{ runStatus.reddit_actions_count || 0 }}
+ +
+
Available Actions
+
+ POST + COMMENT + LIKE + DISLIKE + SEARCH + TREND + FOLLOW + MUTE + REFRESH + IDLE +
+
@@ -56,7 +96,7 @@ :disabled="phase !== 2" @click="handleNextStep" > - 开始生成结果报告 ➝ + 开始生成结果报告 @@ -66,10 +106,17 @@
- 共 {{ allActions.length }} 条动作 + TOTAL EVENTS: {{ allActions.length }} - - 📮 {{ redditActionsCount }} + + / + + + {{ redditActionsCount }} +
@@ -80,26 +127,36 @@
-
+
+
+
+
{{ (action.agent_name || 'A')[0] }}
{{ action.agent_name }}
-
- {{ getActionTypeLabel(action.action_type) }} + +
+
+ + +
+
+ {{ getActionTypeLabel(action.action_type) }} +
-
+
{{ action.action_args.content }}
@@ -110,8 +167,8 @@
- 🔗 - 引用 @{{ action.action_args.original_author_name || 'User' }} + + @{{ action.action_args.original_author_name || 'User' }}
{{ truncateContent(action.action_args.original_content, 150) }} @@ -122,8 +179,8 @@