🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(ui): move action required callout above upgrade in sidebar (#16583)
Nikita Kabardinc6b04b6be7f1
diff --git a/web/src/components/layouts/routes.tsx b/web/src/components/layouts/routes.tsxindex 62352a9489..845c605beb 100644--- a/web/src/components/layouts/routes.tsx+++ b/web/src/components/layouts/routes.tsx@@ -201,6 +201,8 @@ export const ROUTES: Route[] = [section: RouteSection.Main,},{+ // Keep Action required first in the secondary nav so it is not sandwiched+ // between regular items like Upgrade Plan and Settings.title: "Update",pathname: "",section: RouteSection.Secondary,diff --git a/web/src/features/v4-migration/V4MigrationEntryPoints.clienttest.tsx b/web/src/features/v4-migration/V4MigrationEntryPoints.clienttest.tsxindex b5e92dc7a4..968c6e97de 100644--- a/web/src/features/v4-migration/V4MigrationEntryPoints.clienttest.tsx+++ b/web/src/features/v4-migration/V4MigrationEntryPoints.clienttest.tsx@@ -1,6 +1,7 @@import { render, screen } from "@testing-library/react";import { beforeEach, describe, expect, it, vi } from "vitest";+import { ROUTES, RouteSection } from "@/src/components/layouts/routes";import { V4MigrationNavItem } from "./V4MigrationNavItem";import { V4MigrationProjectChip } from "./V4MigrationProjectChip";import { type ProjectMigrationStatus } from "./migrationData";@@ -77,6 +78,17 @@ describe("v4 migration entry points", () => {mocks.cachedActionNeeded = false;});+ it("places the Action required pill above Upgrade Plan in the secondary nav", () => {+ const secondaryTitles = ROUTES.filter(+ (route) => route.section === RouteSection.Secondary,+ ).map((route) => route.title);+ const updateIndex = secondaryTitles.indexOf("Update");+ const upgradeIndex = secondaryTitles.indexOf("Upgrade Plan");++ expect(updateIndex).toBeGreaterThanOrEqual(0);+ expect(upgradeIndex).toBeGreaterThan(updateIndex);+ });+it("hides the project chip and sidebar item when the project is up to date", () => {render(<>