Fundamental_Analysis/frontend
Lv, Qi 0c975bb8f1 Refactor: Remove legacy analysis results and implement workflow history
- **Common Contracts**: Updated DTOs and models to support workflow history; removed legacy analysis result DTOs.
- **Data Persistence Service**:
    - Removed `analysis_results` table logic and API endpoints.
    - Implemented `workflow_history` API and DB access (`history.rs`).
    - Fixed compilation errors and updated tests.
    - Exposed Postgres port in `docker-compose.yml` for easier debugging/offline checks.
- **API Gateway**:
    - Implemented `history` endpoints (get history list, get by ID).
    - Removed legacy `analysis-results` endpoints.
    - Fixed routing and handler logic in `api.rs`.
- **Report Generator Service**:
    - Removed dependency on legacy `analysis-results` persistence calls.
    - Fixed compilation errors.
- **Workflow Orchestrator**: Fixed warnings and minor logic issues.
- **Providers**: Updated provider services (alphavantage, tushare, finnhub, yfinance, mock) to align with contract changes.
- **Frontend**:
    - Updated `ReportPage` and stores to use new workflow history.
    - Added `RecentReportsDropdown` component.
    - Cleaned up `RealtimeLogs` component.
- **Documentation**: Moved completed design tasks to `completed/` and added refactoring context docs.

Confirmed all services pass `cargo check`.
2025-11-29 14:46:44 +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 Refactor: Remove legacy analysis results and implement workflow history 2025-11-29 14:46:44 +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 Refactor: Remove legacy analysis results and implement workflow history 2025-11-29 14:46:44 +08:00
package.json Refactor: Remove legacy analysis results and implement workflow history 2025-11-29 14:46:44 +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...
    },
  },
])