Commit graph

107 commits

Author SHA1 Message Date
034504c92a Fix page refresh killing running simulations
SimulationView was stopping running simulations on every mount,
including page refreshes. Now only stops when user explicitly
navigates back from Step 3 via fromStep3 query param.
2026-03-13 18:40:40 +07:00
d3121637c7 Translate frontend UI to English 2026-03-13 01:55:46 +07:00
5f20558e78 Fix double /api prefix in axios baseURL 2026-03-13 01:08:47 +07:00
2279d2a321 Build from source, fix API base URL to use Vite proxy 2026-03-13 01:04:15 +07:00
666ghj
a795405428 style(home): add overflow-y property to upload zone and adjust alignment for files 2026-02-22 23:40:40 +08:00
666ghj
ae1f38cdcc fix(report_agent): improve markdown rendering by cleaning up <br> tags around block-level elements and enhancing list formatting 2026-02-14 18:25:20 +08:00
666ghj
709a0d7023 feat(report_agent): enhance markdown rendering for lists and improve formatting; support nested lists and clean up HTML output 2026-02-14 17:04:04 +08:00
666ghj
7601d78fd4 feat(report_agent): enhance interview text processing and response handling; improve quote extraction and formatting for better clarity 2026-02-14 16:56:48 +08:00
666ghj
f9abaf8e9f refactor(report_agent, Step4Report): simplify logging and remove subsection handling; update UI to reflect changes in section content generation 2026-02-06 18:13:30 +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
085aa6bbe6 fix(GraphPanel): optimize force graph drag behavior to prevent simulation restart on click
Background:
- With many nodes, D3 force simulation tick callback updates all nodes/edges/labels every frame
- Original implementation called simulation.restart() in drag start event on mousedown
- Even after simulation converged, clicking a node to view details would restart simulation, causing lag

Solution:
- Distinguish between "click" and "drag" using 3px movement threshold
- On drag start: only record initial position, do not restart simulation
- On drag event: detect movement exceeding threshold before marking as actual drag and restarting simulation
- Pure click operations no longer trigger simulation restart, keeping graph static

Bug fix:
- Fixed issue where nodes became undraggable after initial optimization
- Cause: incorrectly used if(!event.active) check in drag event
- event.active equals 1 during drag event, causing restart() to never execute
- Removed that condition, using custom _isDragging flag to control logic instead
2026-01-18 22:35:24 +08:00
666ghj
49847c5b26 feat(Step5Interaction): add section number display for improved user navigation 2026-01-16 21:26:11 +08:00
666ghj
ede410620a fix(Home.vue): update version text from V1.0 to v0.1 for accuracy 2026-01-14 15:16:52 +08:00
666ghj
8c817120f8 style(HistoryDatabase): update modal layout and enhance user guidance
- Changed the title for the environment configuration status icon to "环境搭建" for clarity.
- Added a creation time display in the project detail modal for better context.
- Introduced a divider for the playback section to improve visual separation.
- Enhanced navigation buttons with step indicators for clearer user progression.
- Added a hint for playback limitations to inform users about simulation requirements.
- Updated CSS styles for new elements and improved overall modal aesthetics.
2026-01-09 17:34:25 +08:00
666ghj
4977324497 style(HistoryDatabase): enhance card header and footer layout with status icons
- Updated card header to include status icons indicating project availability for different functionalities.
- Added a visual indicator for additional files when more than three are present.
- Improved card footer layout by grouping date and time, and enhancing progress display with status colors.
- Introduced new CSS styles for status icons and improved overall card aesthetics.
2026-01-09 16:42:31 +08:00
666ghj
0742194f9c style(HistoryDatabase): enhance modal design and transition effects
- Wrapped modal content in a Transition component for smoother animations.
- Adjusted modal dimensions and padding for improved layout and user experience.
- Updated styles for modal elements, including background colors, borders, and hover effects.
- Enhanced visual feedback for buttons and file items within the modal.
2026-01-09 16:13:37 +08:00
666ghj
b4fe7f2f03 feat(HistoryDatabase): add project detail modal for enhanced user interaction
- Implemented a modal to display detailed information about selected projects, including simulation requirements and associated files.
- Added navigation buttons within the modal for quick access to project, simulation, and report pages.
- Enhanced user experience by allowing users to view project details without leaving the main interface.
2026-01-09 15:41:35 +08:00
666ghj
aa47087b18 style(HistoryDatabase): adjust padding and max-width for improved layout
- Reduced top padding from 40px to 35px for better spacing.
- Increased max-width of the separator from 200px to 300px to enhance visual balance.
2026-01-09 11:26:27 +08:00
666ghj
d79ea2b861 refactor(HistoryDatabase): enhance loading logic and card positioning
- Added route watcher to reload history data when navigating back to the homepage.
- Improved card positioning by adjusting vertical spacing for better visual alignment.
- Initialized IntersectionObserver to manage card visibility more effectively.
- Ensured data loading occurs after DOM rendering for smoother user experience.
2026-01-09 11:22:36 +08:00
666ghj
5e865c0234 refactor(HistoryDatabase): improve project display logic and loading states
- Added conditional rendering for the tech grid background and cards container based on project availability.
- Simplified the empty state display logic when no projects are present.
- Introduced a new CSS class to adjust layout when there are no projects, enhancing visual consistency.
2026-01-09 11:12:10 +08:00
666ghj
cdf13739a6 refactor(HistoryDatabase): update card display to show round progress and time
- Changed card header to display round progress instead of status.
- Updated card footer to show formatted time instead of rounds.
- Introduced new methods for calculating progress class and formatting time.
- Adjusted styles for progress display and refined layout for better responsiveness.
2026-01-09 11:08:05 +08:00
666ghj
5a0c705cfb refactor(HistoryDatabase): enhance card expansion logic with pending state management
- Introduced a pending state to track the target expansion state during animations.
- Improved debounce handling to ensure smoother transitions and prevent rapid state changes.
- Updated logic to check for new pending states after animations complete, enhancing responsiveness and stability.
2026-01-09 10:57:48 +08:00
666ghj
f32f5713f8 style(HistoryDatabase): adjust grid background position for improved layout
- Changed background position from center to top left to enhance grid alignment and responsiveness during height changes.
2026-01-09 10:53:44 +08:00
666ghj
d7169bac91 refactor(HistoryDatabase): dynamically calculate container height based on card expansion state
- Introduced a computed property to adjust the container's minimum height based on the number of cards and expansion state.
- Removed static min-height styles to enhance responsiveness and visual consistency.
2026-01-09 10:49:23 +08:00
666ghj
dfab81a6c0 refactor(HistoryDatabase): optimize card expansion behavior with debounce and animation lock
- Introduced a debounce mechanism to prevent rapid state changes during card expansion and collapse.
- Added an animation lock to avoid conflicts during transitions.
- Adjusted Intersection Observer thresholds and rootMargin for smoother detection and stability.
- Cleaned up resources on component unmounting to prevent memory leaks.
2026-01-09 10:46:32 +08:00
666ghj
d90ec77f5d translate(HistoryDatabase): change section title from English to Chinese 2026-01-07 18:57:10 +08:00
666ghj
992f7d13c3 refactor(simulation): enhance simulation data retrieval and project file handling
- Updated simulation history retrieval to read project details directly from the Simulation file.
- Improved simulation configuration handling by reading simulation requirements from JSON.
- Added project file listing to the simulation history, displaying up to three associated files.
- Refined card layout in HistoryDatabase.vue to accommodate new file display features and improved responsiveness.
2026-01-07 18:54:33 +08:00
666ghj
6fc0a0d9ad refactor(HistoryDatabase): simplify CTA button positioning and adjust layout for improved responsiveness
- Removed dynamic offset calculation for the CTA button, fixing its position.
- Updated card layout logic to ensure proper stacking and alignment.
- Increased minimum heights for both collapsed and expanded states to enhance visual consistency.
2025-12-31 18:05:04 +08:00
666ghj
2acdd7309b style(HistoryDatabase): update grid background size and opacity for improved aesthetics 2025-12-31 17:58:17 +08:00
666ghj
e6da45ee63 feat(history): 添加首页历史项目展示组件
- 新增 HistoryDatabase.vue 组件,实现扇形堆叠到网格展开的动画效果
- 后端 simulation.py 添加历史模拟数据 API 支持
- 修复 SimulationManager 过滤隐藏文件问题
- 前端 simulation.js 添加获取历史模拟数据的 API 方法
- Home.vue 集成历史项目展示组件
- 实现正方形网格背景装饰效果
2025-12-31 17:54:39 +08:00
666ghj
1987f535ce Update font weights in Home.vue for improved visual hierarchy and consistency. 2025-12-26 17:41:18 +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
e8491831da Update Home.vue to change GitHub link to the correct repository URL for accurate navigation. 2025-12-23 11:18:40 +08:00
666ghj
9d09a34895 Update Home.vue to remove trailing punctuation in hero description for improved readability 2025-12-19 16:02:25 +08:00
666ghj
e2b1a1554d Enhance Step4Report component with section numbering and improved scroll behavior
- Added section numbering to the report sections for better clarity.
- Unified scroll behavior to reset to the top upon task completion, while scrolling to the bottom for ongoing tasks.
- Updated CSS styles for section numbers to improve visual consistency.
2025-12-16 23:41:05 +08:00
666ghj
efc7fbc4f7 Enhance Step5Interaction component to improve response handling and survey result processing
- Updated response handling to prioritize replies from Reddit over Twitter and ensure compatibility with both object and array formats.
- Refactored survey result processing to convert response data into a structured array, maintaining clarity and consistency in agent responses.
- Improved error handling and logging for better debugging and user feedback.
2025-12-16 22:41:12 +08:00
666ghj
9db7781ee3 Enhance Step5Interaction component with improved tool description and memory feature
- Updated the subtitle of the Report Agent Tools Card to highlight the agent's capability of utilizing MiroFish's complete memory.
- This enhancement aims to provide users with clearer information about the tool's functionality and its advantages in report generation.
2025-12-16 20:17:31 +08:00
666ghj
cc094e48ce Implement chat history caching and enhance message rendering in Step5Interaction component
- Added chat history caching to preserve conversation records for report agents and selected agents.
- Introduced a method to save and restore chat history based on the selected target.
- Improved message rendering by cleaning up unnecessary <br> tags and ensuring proper list formatting with CSS.
- Automatically save chat history upon sending messages for better user experience.
2025-12-16 20:03:17 +08:00
666ghj
78c8c43699 Add Report Agent Tools Card to Step5Interaction component 2025-12-16 19:53:43 +08:00
666ghj
4bd3c856f5 Enhance Step5Interaction component with updated UI elements and improved functionality
- Added an action bar icon and adjusted layout for better visual appeal and usability.
- Updated button labels to Chinese for improved localization.
- Introduced a new method for selecting the survey tab, enhancing user interaction.
- Adjusted CSS styles for better responsiveness and alignment of elements within the action bar and dropdowns.
2025-12-16 19:17:35 +08:00
666ghj
c43b83f10d Enhance Step5Interaction component with professional design updates and improved UI elements
- Updated the action bar to a more professional design with enhanced layout and styling.
- Introduced new utility classes for better typography and spacing.
- Improved button styles for clarity and consistency, including updated labels for interaction buttons.
- Enhanced dropdown menu design for better usability and visual appeal.
- Adjusted CSS properties for improved responsiveness and overall user experience.
2025-12-16 19:05:37 +08:00
666ghj
318d60fa42 Refactor Step5Interaction component to streamline profile display and remove unused topics section
- Combined conditions for displaying the profile card body and bio for improved clarity.
- Removed the topics section and associated CSS styles to simplify the component and enhance user experience.
2025-12-16 18:55:30 +08:00
666ghj
c738d7edfb Refactor Step5Interaction component to enhance user interaction and UI elements
- Replaced tab switcher with a unified action bar for improved navigation and functionality.
- Introduced an agent dropdown for selecting conversation targets, enhancing user experience.
- Updated button labels for clarity and consistency in the interaction interface.
- Adjusted CSS styles for better layout and responsiveness across components.
- Reduced margin in Step4Report for a more compact design.
2025-12-16 18:36:15 +08:00
666ghj
70922a3525 Implement interaction features in Step5Interaction component and add routing for interaction view
- Introduced the Step5Interaction component for user interaction with report agents and simulation profiles.
- Added chat functionality to communicate with report agents and selected simulation agents.
- Implemented a survey feature to gather responses from multiple agents.
- Enhanced routing by adding a new InteractionView for seamless navigation to the interaction interface.
- Updated the router configuration to include the new interaction route.
- Improved UI elements and styles for better user experience in the interaction process.
2025-12-16 17:50:43 +08:00
666ghj
3b20672527 Enhance Step4Report component with improved result display and layout adjustments
- Updated InsightDisplay, PanoramaDisplay, and QuickSearchDisplay components to include result length in the header for better context.
- Refined the layout of entity displays to a compact grid format, improving visual organization and accessibility.
- Enhanced styling for various display elements, including updated labels for clarity and consistency across components.
- Introduced new CSS classes for better styling control and responsiveness in the display components.
2025-12-16 17:23:01 +08:00
666ghj
e3b82e6e9f Refactor Step4Report component to remove tab icons for a cleaner interface
- Eliminated tab icons from InsightDisplay, PanoramaDisplay, and QuickSearchDisplay components to streamline the user interface.
- Improved overall layout and styling for better visual clarity and user experience.
2025-12-16 17:02:44 +08:00
666ghj
6bf1f2937a Enhance Step4Report component with comprehensive data parsing and improved display
- Introduced new parsing logic for simulation requirements, sub-queries, and key facts, ensuring complete data extraction from input text.
- Enhanced the InsightDisplay, PanoramaDisplay, and QuickSearchDisplay components with tabbed navigation for better organization of facts, entities, relations, and sub-queries.
- Improved styling and layout for all display components, ensuring a cohesive user experience with clear visual hierarchy and interactive elements.
- Added support for displaying historical and active facts in the PanoramaDisplay, enhancing the depth of information presented to users.
2025-12-16 16:56:41 +08:00
666ghj
c811f454ab Enhance Step4Report component with individual selection reason parsing and display
- Introduced a new function to parse individual selection reasons from interview text, accommodating multiple formats for better accuracy.
- Updated the interview object to include a selection reason property, ensuring each interview displays the corresponding rationale.
- Enhanced the InterviewDisplay component to render selection reasons with improved styling for better visibility and user experience.
2025-12-16 16:09:30 +08:00
666ghj
1659665a0b Refactor interview parsing and answer splitting logic in Step4Report component
- Enhanced the `parseInterview` function to handle single-platform answers more effectively, ensuring default answers are set correctly.
- Improved the answer splitting logic to robustly identify numbered sections, accommodating various formats and ensuring cleaner output.
- Updated the handling of answer parts to remove unnecessary prefixes and trailing whitespace, enhancing overall readability.
2025-12-16 15:57:02 +08:00
666ghj
5f228357d5 Refactor Step4Report component for enhanced workflow display and loading states
- Removed section number display for a cleaner layout and improved user interaction.
- Updated loading icon colors for better visibility and consistency.
- Introduced a computed property for the active step to enhance workflow tracking.
- Added utility functions to manage main section indexing and subsection identification.
- Enhanced content rendering by removing redundant headings and improving markdown processing.
- Updated agent log handling to ensure accurate section indexing and loading state management.
- Improved panel header styling with status-based variants for better visual feedback.
2025-12-16 15:44:39 +08:00