Fundamental_Analysis/frontend
Lv, Qi 03b53aed71 feat: Refactor Analysis Context Mechanism and Generic Worker
- Implemented Unified Context Mechanism (Task 20251127):
  - Decoupled intent (Module) from resolution (Orchestrator).
  - Added ContextResolver for resolving input bindings (Manual Glob/Auto LLM).
  - Added IOBinder for managing physical paths.
  - Updated GenerateReportCommand to support explicit input bindings and output paths.

- Refactored Report Worker to Generic Execution (Task 20251128):
  - Removed hardcoded financial DTOs and specific formatting logic.
  - Implemented Generic YAML-based context assembly for better LLM readability.
  - Added detailed execution tracing (Sidecar logs).
  - Fixed input data collision bug by using full paths as context keys.

- Updated Tushare Provider to support dynamic output paths.
- Updated Common Contracts with new configuration models.
2025-11-28 20:11:17 +08:00
..
archive Refactor frontend to Vite+React SPA and update docs 2025-11-22 19:37:36 +08:00
public Refactor frontend to Vite+React SPA and update docs 2025-11-22 19:37:36 +08:00
scripts WIP: Commit all pending changes across services, frontend, and docs 2025-11-27 02:45:56 +08:00
src feat: Refactor Analysis Context Mechanism and Generic Worker 2025-11-28 20:11:17 +08:00
.gitignore Refactor frontend to Vite+React SPA and update docs 2025-11-22 19:37:36 +08:00
components.json Refactor frontend to Vite+React SPA and update docs 2025-11-22 19:37:36 +08:00
Dockerfile feat: implement API DTO export and verify E2E tests 2025-11-22 22:14:01 +08:00
eslint.config.js Refactor frontend to Vite+React SPA and update docs 2025-11-22 19:37:36 +08:00
index.html Refactor frontend to Vite+React SPA and update docs 2025-11-22 19:37:36 +08:00
package-lock.json feat: fix error propagation in report-generator and workflow-orchestrator 2025-11-27 23:07:42 +08:00
package.json feat: fix error propagation in report-generator and workflow-orchestrator 2025-11-27 23:07:42 +08:00
postcss.config.js Refactor frontend to Vite+React SPA and update docs 2025-11-22 19:37:36 +08:00
README.md Refactor frontend to Vite+React SPA and update docs 2025-11-22 19:37:36 +08:00
tailwind.config.js Refactor frontend to Vite+React SPA and update docs 2025-11-22 19:37:36 +08:00
tsconfig.app.json Refactor frontend to Vite+React SPA and update docs 2025-11-22 19:37:36 +08:00
tsconfig.json Refactor frontend to Vite+React SPA and update docs 2025-11-22 19:37:36 +08:00
tsconfig.node.json Refactor frontend to Vite+React SPA and update docs 2025-11-22 19:37:36 +08:00
vite.config.ts WIP: Commit all pending changes across services, frontend, and docs 2025-11-27 02:45:56 +08:00

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])