[Bug] 切换标的后加载新标的已有的研究报告

Abierto
#67 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
62/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
electron, react, typescript
Área
frontend

Línea de trabajo

Start with the report-loading effect in packages/ui/src/components/research/ResearchPanel.tsx around lines 95-110, where the symbol change fetches the report list but not the detail. Then check the report view and history entry at lines 351-385. Run bun test packages/ui/src/components/research/ResearchPanel.test.tsx and add the two synthetic-report cases from the acceptance criteria. Done when switching symbols shows the new symbol's latest report or its empty state, and a late response from the previous symbol is ignored.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

area:desktop bug help wanted

最小复现

为 AAPL.US 和 MSFT.US 各提供一个已完成的研究运行及一份报告。打开 AAPL.US 的报告后切到 MSFT.US。隔离组件测试中,页面取到了 MSFT.US 的报告列表,但没有请求它的报告详情。选中的报告仍是 AAPL.US,页面随后隐藏了报告。

验证环境为 Windows、Bun 1.4.2,基于 main 的 579395e。

验收标准

  • 切换到已有报告的标的时,显示该标的的最新报告。切换到没有报告的标的时,显示对应的空状态。
  • 用两份合成报告补组件回归,覆盖顺序切换和旧标的请求晚到的情况。

源码起点

验证入口 bun test packages/ui/src/components/research/ResearchPanel.test.tsx。

可以先在本条说明准备完成的范围,再评论 /claim。贡献入口见 #7。

Lenguaje dominante
TypeScript
Estrellas
206
Forks
37
Merge medio
7 h 8 min
PR fusionados (30 d)
8

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ydflow/Trail

Todos los issues de ydflow/Trail

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.