发布

  • [OPIK-6141] [FE] feat: add Opik Connect as dedicated side-nav item (#6414)

    frostbyte_neo 发布于 2026-04-21 13:56:57 +00:00

    • [OPIK-6141] [FE] feat: add Opik Connect as dedicated side-nav item

    Separates Opik Connect from the concept of a project homepage: it now
    renders as a first-class item in the project sidebar (above Observability)
    when the AssistantSidebar plugin is loaded, with its own active state on
    /home. The project name/avatar no longer highlight on /home — that state
    belongs exclusively to the new nav item.

    • getMenuItems: accept showHome; prepend labelless Opik Connect group
    • SideBarMenuItems: read AssistantSidebar from PluginsStore
    • ProjectSelector: drop useMatchRoute + isOnProjectHome + highlights
    • ollie-owl.svg: use currentColor so menu active-state coloring works
    • MenuItem.icon type: widen to accept SVGR components alongside lucide

    Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

    • feat(sidebar): persist nav page on project switch [OPIK-6140]

    When switching projects from ProjectSelector, preserve the current page
    path in the context of the new project instead of always landing on
    /home. Detail routes (experiments/compare, datasets/, alerts/,
    alerts/new, optimizations//trials, etc.) fall back to their parent
    list. Workspace-level routes fall back to /home.

    Query params are carried over per a per-route allowlist: UI-state
    keys (page, size, sortedColumns, columns, logsType, traceTab) are
    preserved; resource-ID and filter params are dropped.

    • resolveProjectSwitchTarget: new pure util with allowlist + route
      trimming, colocated with ProjectSelector
    • ProjectSelector.handleSelect: drive navigation off the util using
      router.state.matches / location.search
    • Unit tests cover: preserved/dropped search on /logs, /dashboards
      (empty allowlist), /experiments index, detail-route trimming for
      experiments/compare, datasets/items, alerts/new, alerts/,
      optimizations//trials, and the workspace-level fallback

    Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com


    Co-authored-by: Claude Opus 4.7 (1M context) noreply@anthropic.com

    下载附件