发布

  • [OPIK-6970] [FE] feat: swap user menu entry to Opik within Cost Intelligence (#7127)

    frostbyte_neo 发布于 2026-06-16 14:12:36 +00:00

    • [OPIK-6970] [FE] feat: swap user menu entry to Opik within Cost Intelligence

    When the spend workspace is active, the user menu shows an "Opik" return
    link (to the origin workspace home) instead of the "Cost Intelligence"
    entry. Gated on isSpendWorkspaceActive so a way back always exists.

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

    • Move the Opik / Cost Intelligence / Experiment Management entries out of
      UserMenu into a dedicated component that owns their visibility logic and
      shares one badge renderer.

    Addresses review feedback:

    • Decouple the Opik return link from the ai-spend plugin (gate on
      isSpendWorkspaceActive only) so the way back always stays available.
    • Render the Opik link via DropdownMenuItem asChild so the is the
      single interactive menuitem instead of an anchor wrapping it.

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


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

    下载附件