Fundamental_Analysis/frontend
Lv, Qi 427776b863 feat(analysis): Implement Configurable Analysis Template Engine
This commit introduces a comprehensive, template-based analysis orchestration system, refactoring the entire analysis generation workflow from the ground up.

Key Changes:

1.  **Backend Architecture (`report-generator-service`):**
    *   Replaced the naive analysis workflow with a robust orchestrator based on a Directed Acyclic Graph (DAG) of module dependencies.
    *   Implemented a full topological sort (`petgraph`) to determine the correct execution order and detect circular dependencies.

2.  **Data Models (`common-contracts`, `data-persistence-service`):**
    *   Introduced the concept of `AnalysisTemplateSets` to allow for multiple, independent, and configurable analysis workflows.
    *   Created a new `analysis_results` table to persist the output of each module for every analysis run, ensuring traceability.
    *   Implemented a file-free data seeding mechanism to populate default analysis templates on service startup.

3.  **API Layer (`api-gateway`):**
    *   Added a new asynchronous endpoint (`POST /analysis-requests/{symbol}`) to trigger analysis workflows via NATS messages.
    *   Updated all configuration endpoints to support the new `AnalysisTemplateSets` model.

4.  **Frontend UI (`/config`, `/query`):**
    *   Completely refactored the "Analysis Config" page into a two-level management UI for "Template Sets" and the "Modules" within them, supporting full CRUD operations.
    *   Updated the "Query" page to allow users to select which analysis template to use when generating a report.

This new architecture provides a powerful, flexible, and robust foundation for all future development of our intelligent analysis capabilities.
2025-11-18 07:47:08 +08:00
..
public chore(frontend): 提交前端静态资源与 API 路由调整 2025-10-30 16:28:53 +08:00
src feat(analysis): Implement Configurable Analysis Template Engine 2025-11-18 07:47:08 +08:00
.gitignore feat(backend): introduce DataManager and multi-provider; analysis orchestration; streaming endpoints; remove legacy tushare_client; enhance logging 2025-11-03 21:48:08 +08:00
components.json Initial commit 2025-10-21 20:17:14 +08:00
Dockerfile refactor(phase0-1): 容器化与配置服务拆分,并清理根目录 2025-11-08 21:07:38 +08:00
eslint.config.mjs chore(frontend): 提交前端静态资源与 API 路由调整 2025-10-30 16:28:53 +08:00
next.config.mjs fix(frontend): remove localhost rewrites and enforce NEXT_PUBLIC_BACKEND_URL 2025-11-08 22:59:03 +08:00
next.config.ts Initial commit 2025-10-21 20:17:14 +08:00
package-lock.json 修改了财务数据获取时的一些结构,但还没有完成,今天先做到这儿。 2025-11-04 14:03:34 +08:00
package.json refactor(architecture): Align frontend & docs with DB gateway pattern 2025-11-17 01:29:56 +08:00
postcss.config.mjs Initial commit 2025-10-21 20:17:14 +08:00
tsconfig.json Initial commit 2025-10-21 20:17:14 +08:00