feat(trading-assistant): refactor strategy creation and enhance script mode functionality

- Removed conditional rendering for the assistant guide bar.
- Simplified strategy overview and strategy list item components.
- Introduced a new modal for selecting strategy mode.
- Enhanced strategy creation modal to support script strategies with a dedicated editor.
- Updated form handling for script strategies, including validation and submission logic.
- Improved user experience with better messaging and streamlined UI components.
- Updated translations for better clarity in Chinese.
This commit is contained in:
dienakdz
2026-04-08 07:27:26 +07:00
parent 2dc29a215e
commit c3cf230104
89 changed files with 4653 additions and 1735 deletions
@@ -2,8 +2,8 @@ import sys
import os
from dotenv import load_dotenv
# 添加后端目录到 Python 路径(使得可以 import app.*
# 由于 app 包位于 backend_api_python/app 下,而脚本位于 backend_api_python/scripts
# Add the backend directory to the Python path so app.* can be imported
# The app package lives under backend_api_python/app while this script is under backend_api_python/scripts
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from app.services.reflection import ReflectionService
@@ -19,8 +19,8 @@ def main():
load_dotenv(backend_env_path, override=False)
"""
运行自动反思验证任务
建议通过 cron 或 定时任务调度器 每天运行一次
Run the automated reflection verification task.
It is intended to run once per day via cron or another task scheduler.
"""
print("Running Automated Reflection Verification Task...")
service = ReflectionService()