-
[OPIK-6820] [FE] feat: run Cost Intelligence inside spend workspace + add Sessions page
发布于
2026-06-12 10:14:33 +00:00 Navigate into the hidden AI-Spend workspace (ai_spend_) for the
Cost Intelligence section instead of overriding the Comet-Workspace header
per request, so shared workspace-scoped hooks (incl. the new Sessions/logs
page) target the right workspace automatically.- Detect ai_spend/legacy cc spend workspaces; enter via goToCostIntelligence()
encapsulated in AiSpendContext - AiSpend guard renders only when active === spend workspace, else redirects home
- Add Sessions page + route + sidebar item
- Route shared navigation (logo, back-to-Opik, invites) through a neutral
opikWorkspaceName override resolved synchronously to avoid a private-project
flash; capture previousWorkspaceName on entry for precise return - Delete the 5 per-hook Comet-Workspace overrides
- Add trillions bucket to formatNumberInK
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
下载附件
- Detect ai_spend/legacy cc spend workspaces; enter via goToCostIntelligence()