发布

  • [OPIK-6820] [FE] feat: run Cost Intelligence inside spend workspace + add Sessions page (#7044)

    frostbyte_neo 发布于 2026-06-12 11:39:42 +00:00

    • [OPIK-6820] [FE] feat: run Cost Intelligence inside spend workspace + add Sessions page

    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

    • feat(ai-spend): hide Cost Intelligence menu entry behind a flag

    Direct URL access to the spend workspace still works.

    Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com


    Co-authored-by: Claude Opus 4.8 noreply@anthropic.com

    下载附件