feat: Implement Alpha list and metrics enhancements
Deploy production / deploy (push) Successful in 1m12s

- Added new metrics fields: sub_universe_sharpe, robust_universe_sharpe, two_year_sharpe, prod_correlation, pnl, check_type, and neutralization to the Alpha model.
- Updated snapshot_columns function to derive new metrics and check types from platform snapshots.
- Enhanced API to include failed checks and check types in responses.
- Created migration script to backfill existing Alpha records with new metrics and check types.
- Updated frontend components to display new metrics and allow editing of custom tags.
- Improved filtering and sorting capabilities for new metrics in the Alpha list.
- Added tests for new functionality including checks classification and metrics filtering.
This commit is contained in:
yuxuanhui
2026-09-09 19:02:37 +08:00
parent e57b1f7a2e
commit ba0ed9d03f
13 changed files with 678 additions and 22 deletions
+9 -2
View File
@@ -245,10 +245,17 @@ test("batch tags, column visibility, server pagination and saved preferences", a
await page.getByRole("button", { name: "显示列设置" }).click();
await page
.locator(".columns-picker")
.getByText("本地标签", { exact: true })
.getByText("自定义标签", { exact: true })
.click();
await expect(
page.getByRole("columnheader", { name: "本地标签", exact: true }),
page.getByRole("columnheader", { name: "自定义标签", exact: true }),
).toHaveCount(0);
await page
.locator(".columns-picker")
.getByText("自定义标签", { exact: true })
.click();
await expect(
page.getByRole("columnheader", { name: "自定义标签", exact: true }),
).toBeVisible();
await page.getByRole("button", { name: "显示列设置" }).click();
await page.getByRole("button", { name: "重置", exact: true }).click();