Compare displays a missing dividend yield even when the valuation capability returns one. ## 复现 让长桥估值行情的 fixture 返回 `dps_rate: "2.5"`,同时让分红历史返回一条包含 `ex_date` 的 `DividendRecord`。解析和能力层输出已包含 `company.valuation.data.dpsRate = 2.5`,但离线调用 `buildComparison()` 后,`Dividend Yield` 单元格仍是 `—`,因为服务只在分红历史数据里查找股息率。 ## 验收标准 - [ ] 有有效的 `company.valuation.dpsRate` 时,对比页把 `2.5` 展示为 `2.5%`。确认 `0` 也能作为有效值展示。 - [ ] 两种来源均缺少股息率时保留缺失态,并用已有的显式 `dividendYield` fixture 做兼容回归。 ## 源码与测试入口 - 核对对比表取值及估值能力的数据约定。 [对比行取值](https://github.com/ydflow/Trail/blob/579395e1ca863f8c522d9f3b24de0877ee62318d/packages/shared/src/compare/service.ts#L140-L165) · [估值能力](https://github.com/ydflow/Trail/blob/579395e1ca863f8c522d9f3b24de0877ee62318d/packages/shared/src/capabilities/manifests/company-valuation.ts#L25-L48) - `bun test --isolate packages/shared/src/compare/compare.test.ts`。 [对比服务测试](https://github.com/ydflow/Trail/blob/579395e1ca863f8c522d9f3b24de0877ee62318d/packages/shared/src/compare/compare.test.ts) 欢迎评论 `/claim` 认领。PR 请关联本 Issue,并附上实际执行的测试命令和结果。 [贡献指南](https://github.com/ydflow/Trail/blob/main/CONTRIBUTING.md)
Activity