Commit Graph

25 Commits

Author SHA1 Message Date
Dominik Seemann 9dcaecd2d2 docs(i18n): translate chinese comments in frontend src to english
Translate chinese developer comments in frontend/src/ to english so
non-chinese-reading maintainers can understand intent without translation
tooling. Pure documentation cleanup with no runtime behavior changes.

Twenty files updated across views, components, api services, App.vue, and
pendingUpload.js. Region-eligibility matrix from .kiro/specs/i18n-
frontend-comments/design.md drives every edit:

- Translate `//`, `/* */`, JSDoc, and Vue `<!-- -->` template comments.
- Drop comments that merely restate the code per dev-guidelines.md.
- Translate console.error/warn/log argument strings (developer-facing).
- Append (#9) to the single chinese-content TODO in views/Process.vue.

Five files retain documented chinese string literals per requirements 1.5
and 4.4: hardcoded UI text and error fallbacks (Process.vue, Step3Simulation.vue),
backend-format regex patterns and i18n-keyed UI labels (Step4Report.vue),
backend stage-key matchers (Step2EnvSetup.vue), and LLM prompt templates
sent to a chinese-tuned model (Step5Interaction.vue). Translating any of
these would either be out of scope (UI strings belong in /locales/*.json)
or would change runtime behavior.

Verification: `rg '[\x{4e00}-\x{9fff}]' frontend/src/` returns 5 documented
files; `npm run build` exits 0 with the same Vite output as before.

Closes #9
2026-05-07 17:42:05 +00:00
ghostubborn e1db8bacc2 feat(i18n): replace hardcoded Chinese in frontend addLog() messages 2026-04-01 16:35:35 +08:00
ghostubborn fbaa3dbbeb fix(i18n): fix curly quotes and missing @ alias in vite config 2026-04-01 15:45:43 +08:00
ghostubborn fc47ae81b5 feat(i18n): replace hardcoded Chinese in frontend components with i18n calls
Replace all user-visible hardcoded Chinese strings in 7 component files
with $t() / t() calls using vue-i18n:

- Step1GraphBuild: ontology generation, graph build, status badges
- Step2EnvSetup: simulation setup, agent personas, platform config,
  time config, initial activation, modal profile details
- Step3Simulation: report generation button
- Step4Report: section loading text, interaction button
- Step5Interaction: chat interface, survey UI, tool descriptions,
  error messages, agent selection
- GraphPanel: graph status hints, loading states, tooltips
- HistoryDatabase: history cards, modal, replay buttons

Added missing translation keys to both zh.json and en.json locale files.
Added useI18n imports to components that need script-level translations.
2026-04-01 15:43:11 +08:00
666ghj 0b71f89f96 fix(Step2EnvSetup): update expectedTotal only when API returns a valid value to prevent overwriting existing data 2026-01-29 10:58:36 +08:00
666ghj 44424f29ba Update font styles across the application to include 'Noto Sans SC' for improved typography consistency. 2025-12-26 17:35:09 +08:00
666ghj 307990d7b6 Update profile display logic in Step2EnvSetup and modal components for consistency
- Changed profile display from 'realname' to 'username' and 'name' for better clarity and consistency across the application.
- Enhanced CSS for header alignment in multiple views, ensuring a centered layout for improved visual appeal.
2025-12-12 18:51:08 +08:00
666ghj f590784345 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.
2025-12-12 18:19:45 +08:00
666ghj aad01f0252 Enhance logging and progress display in Step2EnvSetup.vue for improved user experience
- Introduced mechanisms to avoid duplicate log messages during simulation preparation and profile generation, enhancing clarity.
- Updated log messages to provide more detailed information about the simulation stages and agent profiles, improving user feedback.
- Enhanced the display of configuration summaries and progress updates, ensuring users receive comprehensive updates throughout the simulation process.
2025-12-12 12:33:45 +08:00
666ghj 4345f3085e Enhance simulation preparation process and frontend display for improved user experience
- Added synchronous retrieval of entity count before starting background tasks in simulation.py, allowing immediate access to expected agent totals for the frontend.
- Updated the simulation state to include expected entity count and types, enhancing the information available during preparation.
- Modified Step2EnvSetup.vue to display a pending status when the simulation is in progress and adjusted the simulation rounds configuration to dynamically reflect calculated values.
- Improved the slider for custom rounds to ensure it adapts to the auto-generated maximum rounds, enhancing usability and clarity.
2025-12-12 11:41:33 +08:00
666ghj c287fe71fc Remove unnecessary whitespace at the end of Step2EnvSetup.vue for cleaner code. 2025-12-12 11:03:55 +08:00
666ghj bf7fe8b053 Revamp simulation rounds configuration in Step2EnvSetup.vue for enhanced user experience
- Redesigned the simulation rounds section with a new header layout and improved descriptions for clarity.
- Introduced a toggle for custom round settings, allowing users to switch between automatic and custom configurations.
- Enhanced the slider for custom rounds with better styling and estimated time display, improving usability.
- Updated CSS for a more modern look and feel, including transitions for smoother interactions.
2025-12-12 10:53:41 +08:00
666ghj 65c1835879 Enhance Step2EnvSetup.vue with modal transition effects for improved user experience
- Wrapped the profile detail modal in a Transition component to add smooth entry and exit animations.
- Introduced CSS styles for modal transitions, enhancing visual appeal and user engagement when displaying profile details.
2025-12-12 00:00:48 +08:00
666ghj fdbb0e2dc4 Update Step1GraphBuild.vue and Step2EnvSetup.vue with API endpoint notes and enhanced styling
- Added API endpoint notes for simulation creation and preparation in Step1GraphBuild.vue and Step2EnvSetup.vue respectively.
- Updated badge styling for processing state to improve visibility.
- Enhanced the narrative box layout and added a custom checkbox for configuring simulation rounds in Step2EnvSetup.vue.
- Introduced a new section for simulation rounds configuration, including user-defined options and estimated time for completion.
2025-12-11 23:55:54 +08:00
666ghj 5c6a5696d8 Refactor Step2EnvSetup.vue for improved configuration clarity and styling
- Removed redundant headers and updated labels for time configuration to enhance readability.
- Added a new morning time period display for better simulation detail.
- Simplified platform configuration titles for clarity and consistency.
- Adjusted CSS styles for improved visual hierarchy and user experience across various sections.
2025-12-11 22:56:15 +08:00
666ghj 9ac630391d Enhance Step2EnvSetup.vue with detailed configuration display and improved styling
- Revamped the configuration preview section to a more structured detail panel, enhancing readability and organization.
- Added comprehensive time configuration details, including simulation duration, round duration, and agent activity metrics.
- Introduced a new agent configuration display with detailed parameters and active hours visualization for better user engagement.
- Updated platform configuration section to present algorithm parameters clearly for Twitter and Reddit.
- Improved overall styling for better visual hierarchy and user experience across the component.
2025-12-11 20:07:54 +08:00
666ghj 2812225734 Revamp Step2EnvSetup.vue styling for improved user experience
- Updated the narrative box styling for a cleaner and more modern look, including background color, padding, and border adjustments.
- Enhanced the box label design with improved alignment and visual hierarchy.
- Modified narrative text styling for better readability and consistency.
- Adjusted hot topic tag color for improved visibility and aesthetic appeal.
2025-12-11 19:58:03 +08:00
666ghj 39824c88e2 Enhance Step2EnvSetup.vue with agent username display and styling improvements
- Added a new method to retrieve agent usernames based on their IDs, improving clarity in the timeline display.
- Updated the layout to include both agent ID and username, enhancing user engagement.
- Adjusted CSS for better alignment and visual consistency of agent information in the timeline.
2025-12-11 19:40:58 +08:00
666ghj c44cb13d23 Refactor Step2EnvSetup.vue for improved hot topics display and timeline styling
- Updated hot topics section to display all topics without truncation, enhancing visibility.
- Adjusted timeline marker styling for better alignment and visual consistency, improving overall layout.
2025-12-11 19:16:10 +08:00
666ghj 8b5d082fb1 Add real-time simulation configuration endpoint and update frontend components
- Introduced a new API endpoint for retrieving real-time simulation configuration, allowing users to view progress and metadata during simulation generation.
- Updated frontend API service to include the new real-time configuration method.
- Enhanced Step2EnvSetup.vue to support real-time polling for configuration updates, improving user experience during simulation setup.
- Revised display logic to show detailed configuration summaries and orchestration content, enriching the simulation setup process.
2025-12-11 18:44:00 +08:00
666ghj ceb1399144 Update Step2EnvSetup.vue for improved clarity in simulation configuration
- Changed step title to reflect dual-platform simulation configuration.
- Revised API note to specify the endpoint for simulation preparation.
- Enhanced description to provide detailed context on LLM's configuration parameters based on simulation needs and real-world seeds.
2025-12-11 18:23:45 +08:00
666ghj 11e56463b9 Refactor Step2EnvSetup.vue for enhanced profile details and layout
- Updated profile description to provide clearer context on entity initialization and behavior configuration.
- Removed the expand button for profile details, simplifying the interface.
- Adjusted the display logic to show all profiles directly, improving accessibility.
- Enhanced modal layout with additional fields for real name, username, and profession, enriching user engagement.
- Improved styling for better readability and visual consistency across profile sections.
2025-12-11 18:11:46 +08:00
666ghj 734b6a97bd Refactor Step2EnvSetup.vue for improved profile display and statistics
- Removed the progress bar section to streamline the interface.
- Updated labels for agent statistics to enhance clarity and localization.
- Introduced a computed property to calculate the total number of associated topics across profiles.
- Enhanced profile display with additional fields for real name, username, and profession, improving user engagement.
- Adjusted styling for better layout and readability of profile information.
2025-12-11 17:31:49 +08:00
666ghj 01d94f3d21 Update simulation components and descriptions for clarity and functionality
- Added a new method in simulation.js for retrieving detailed run status.
- Revised descriptions in Step1GraphBuild.vue and Step2EnvSetup.vue for improved clarity on simulation processes.
- Updated titles and labels in Step2EnvSetup.vue to better reflect the initialization and setup stages.
- Enhanced styling and layout in Step2EnvSetup.vue for a more cohesive user experience.
- Adjusted descriptions in Home.vue to accurately represent the simulation workflow.
2025-12-11 17:02:17 +08:00
666ghj fc95cc6595 Add simulation API and environment setup components
- Introduced simulation.js API for creating and managing simulations, including methods for creating, preparing, and retrieving simulation statuses.
- Added Step1GraphBuild.vue and Step2EnvSetup.vue components to facilitate the graph building and environment setup processes, enhancing user interaction and workflow.
- Updated MainView.vue to integrate new components and manage the simulation workflow, including step indicators and navigation between steps.
- Created SimulationView.vue for displaying simulation details and managing the simulation environment, improving overall user experience and functionality.
2025-12-11 15:09:24 +08:00