selfrelease
c3232f73c8
fix(scope): all pages react to company scope change via useScopeEffect
...
- Created useScopeEffect hook that auto-triggers reload on scope change
- Replaced useEffect([], []) with useScopeEffect in 20+ pages
- Risks/Reports/Dashboard also use useScopeEffect
- Removed redundant per-page useCompanyScope where only effect was needed
2026-07-20 08:09:33 +08:00
selfrelease
4265f4bc4c
fix(dashboard): total_companies returns 1 in single-company scope; KPI labels adapt
2026-07-20 07:50:39 +08:00
selfrelease
e81aa6828e
feat(scope): add company scope switcher — two views (by-task all companies / by-company all tasks)
...
- CompanyScopeContext + Provider with localStorage persistence
- Sidebar company selector (desktop + mobile)
- apiFetch auto-injects company_id on GET requests
- Dashboard summary API supports company_id filter
- Milestones/Financial/DigitalTwins pages use scope instead of manual input
- HealthHeatmap/HealthTrends components react to scope changes
2026-07-20 07:47:53 +08:00
selfrelease
3d22bd8a3d
feat(workbench): complete company view — health trend, major events, milestones, team, synergy + dashboard click-through
2026-07-19 22:01:49 +08:00
selfrelease
0197f89018
feat(dashboard): add company filter — switch between portfolio overview and single company view
2026-07-19 21:52:40 +08:00
selfrelease
7b0b538b37
fix(dashboard): stack heatmap and trends vertically (full width each)
2026-07-19 21:41:07 +08:00
selfrelease
8138fb5540
fix(dashboard): display company name instead of ID in health score overview
2026-07-19 21:39:49 +08:00
selfrelease
fad458b2a7
docs(uiux): UIUX 设计方案大改 + 5 份作业指导书对齐 + 开发任务文档
...
- UIUX 文档:填充 19 个缺口(多主体画像/健康度/AI+看板/增长域/洞察域/创始人端/OODA/助推/商密)
- UIUX 文档:插入 6 个新章节(十四~十九),旧章节重编号为二十~三十一,更新目录和交叉引用
- 作业指导书 x5:导航改为 6 域分组,新增 Context Bar/工作模式/Insight Rail/决策线程/多工作区等 UI 概念
- 新建 docs/2-task-uiux.md:50 个代码落地开发任务,按 P0-P6 分优先级 + 8 Sprint 规划
- 后端/前端:大量新增模型、路由、组件(来自之前 Phase 开发)
2026-07-19 11:53:38 +08:00
selfrelease
4432d47ff9
feat: T1.4 健康度仪表盘 — 后端聚合 API + 前端驾驶舱
...
- 后端:dashboard 路由(summary 聚合 + scores 列表)
- 前端:驾驶舱首页(KPI 卡片 + 健康度概览)
- 测试:4 个仪表盘测试(总计 37 tests passed)
- 前端构建 12 路由成功
2026-07-18 22:03:47 +08:00
selfrelease
51feae55ba
feat(backend): Phase 0 项目骨架完成 — 后端/前端/数据库/Docker
...
- 后端:FastAPI + SQLAlchemy + Alembic,7 张核心表迁移成功
- 前端:Next.js 16 + TailwindCSS 4 + 三端布局(投资人/创始人/Admin)
- 数据库:PostgreSQL 16,7 张核心实体表(tenants/users/companies/monthly_reports/health_scores/risk_events/audit_logs)
- Docker:docker-compose.yml + 前后端 Dockerfile
- 测试:健康检查 4 个测试全部 GREEN
- 文档:README/run.md/AGENTS.md/docs 体系完整
2026-07-18 21:50:15 +08:00