发布

  • [OPIK-4026] [FE] Add organization and workspace selectors to sidebar and breadcrumbs (#4906)

    frostbyte_neo 发布于 2026-01-29 16:45:02 +00:00

    • Add organization selector

    • [NA] [FE] Add organization and workspace selectors to sidebar and breadcrumbs

    • Add OrganizationSelector component to sidebar header with search and admin dashboard access
    • Add WorkspaceSelector component to breadcrumbs with search and manage workspaces action
    • Update Logo component to use new smaller SVG icon
    • Clean up UserMenu by removing workspace and organization selectors (kept Admin Dashboard)
    • Update breadcrumb separator from '>' to '/' for clarity
    • Add new opik-icon-primary.svg icon
    • Fix React hooks ordering and remove unused imports
    • [NA] [FE] Show Opik logo + text in Open-Source version instead of organization selector
    • Update OrganizationSelector to check if running in Open-Source (isOnPremise)
    • In Open-Source version, display the Opik logo with text (Logo component) instead of organization selector
    • Maintains existing behavior for Enterprise/Cloud versions
    • [NA] [FE] Extract Admin Dashboard label to shared constant and fix workspace selector
    • Create shared labels constant file with ADMIN_DASHBOARD_LABEL
    • Replace hardcoded 'Admin Dashboard' strings in OrganizationSelector and UserMenu
    • Update SideBar to conditionally show logo vs organization selector based on UserMenu availability
    • Use compact icon (without text) for organization selector in Comet mode
    • Fix WorkspaceSelector to allow dropdown when in Personal workspace
    • Replace useAllWorkspaces with useUserInvitedWorkspaces in WorkspaceSelector for better performance
    • [NA] [FE] Add padding and alignment to workspace selector in breadcrumbs
    • Add px-1.5 padding to workspace selector button
    • Add -mr-1.5 negative margin for proper alignment with '/' separator
    • Apply to both dropdown and non-dropdown states
    • Update apps/opik-frontend/src/components/layout/SideBar/OrganizationSelector/OrganizationSelector.tsx

    Co-authored-by: baz-reviewer[bot] <174234987+baz-reviewer[bot]@users.noreply.github.com>

    • [NA] [FE] Fix organization selector to handle org-admins without invited workspaces

    • [NA] [FE] Refactor dropdown content and use double chevron icons for org/workspace selectors

    • [NA] [FE] Make entire org selector clickable and reduce workspace selector spacing

    • Update apps/opik-frontend/src/components/layout/Breadcrumbs/WorkspaceSelector/WorkspaceSelector.tsx

    Co-authored-by: baz-reviewer[bot] <174234987+baz-reviewer[bot]@users.noreply.github.com>

    • [NA] [FE] Hide org selector when collapsed and align logo with menu icons

    • [NA] [FE] Update Manage workspaces link to redirect to Comet with tracking parameters

    Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com

    • Sidebar/workspace selector: cleanup and consistency
    • WorkspaceSelector: remove redundant hasSelectableWorkspaces variable
    • OrganizationSelector: use org.id for key and checked (was org.name)
    • .env.template: Jira/GitHub config
    • Revert sidebar PR changes: mcp.json, opik-icon-primary.svg, Logo, OrganizationSelector, SideBar

    • Fix workspace selector chevron: remove focus ring/border when closing dropdown

    • Move WorkspaceSelector to comet plugin with fallback

    • Move WorkspaceSelector component from Breadcrumbs folder to plugins/comet
    • Register WorkspaceSelector in PluginsStore
    • Update Breadcrumbs to use plugin pattern with simple link fallback

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

    • Fix WorkspaceLink navigation by passing raw workspace slug

    Pass workspaceName (raw slug) instead of currentWorkspaceDisplayName
    (formatted) to WorkspaceLink to fix 404 errors on workspace navigation.

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

    • Update workspace selector UI per product feedback
    • Change "Switch org" text button to icon button with chevron-right
    • Add tooltip "Switch org" on hover for the icon button
    • Add vertical separator between settings and switch org icon buttons
    • Remove Settings icon from "Manage workspaces" link
    • Keep hover behavior for opening org submenu

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

    • Update WorkspaceSelector button style
    • Change organization settings button variant from "ghost" to "minimal"
    • Remove unused "text-light-slate" class from the button

    Co-authored-by: baz-reviewer[bot] <174234987+baz-reviewer[bot]@users.noreply.github.com>
    Co-authored-by: Claude Sonnet 4.5 noreply@anthropic.com
    Co-authored-by: andrii.dudar andriid@comet.com

    下载附件