From e9bebc74b27ea252a32dc7b0c12849e7cf381b82 Mon Sep 17 00:00:00 2001 From: armandobelardo Date: Mon, 10 Jun 2024 08:27:40 -0400 Subject: [PATCH] pivoting because master told me to --- packages/ui/app/src/sidebar/BuiltWithFern.tsx | 3 +- packages/ui/app/tsconfig.json | 2 +- packages/ui/components/src/FernDropdown.tsx | 12 + .../sidebar => components/src}/FernLogo.tsx | 0 .../ui/components/src/FontAwesomeIcon.tsx | 2 +- packages/ui/components/src/index.ts | 1 + packages/ui/fern-dashboard/globals.scss | 836 ------------------ packages/ui/fern-dashboard/package.json | 13 +- .../src/components/nav/sdk-navbar.tsx | 21 - .../src/components/sdks/ActivityLog.tsx | 131 +++ .../src/components/sdks/BreadcrumbHeader.tsx | 136 +++ .../src/components/sdks/SdkActivityStack.tsx | 43 + .../src/components/sdks/SdkContextCard.tsx | 212 +++++ .../src/components/sdks/ZeroState.tsx | 18 + .../src/components/sdks/mock-data/Api.tsx | 20 + .../src/components/sdks/mock-data/Sdk.tsx | 115 +++ .../src/components/ui/breadcrumb.tsx | 115 +++ .../src/components/ui/navigation-menu.tsx | 128 --- .../src/components/ui/scroll-area.tsx | 46 + .../src/components/ui/separator.tsx | 29 + .../src/components/ui/textfield.tsx | 1 + packages/ui/fern-dashboard/src/index.css | 156 +++- .../ui/fern-dashboard/src/routeTree.gen.ts | 83 +- .../src/routes/api.$apiId.lazy.tsx | 149 ++++ .../src/routes/api.$apiName.lazy.tsx | 18 - .../fern-dashboard/src/routes/index.lazy.tsx | 15 +- .../src/routes/sdk.$sdkId.lazy.tsx | 19 - .../src/routes/sdk/$sdkId/index.lazy.tsx | 11 + .../src/routes/sdk/$sdkId/job.$jobId.lazy.tsx | 215 +++++ .../ui/fern-dashboard/tailwind.config.cjs | 159 ++-- packages/ui/fern-dashboard/tsconfig.json | 2 +- packages/ui/fern-dashboard/vite.config.ts | 3 + pnpm-lock.yaml | 70 +- 33 files changed, 1609 insertions(+), 1175 deletions(-) rename packages/ui/{app/src/sidebar => components/src}/FernLogo.tsx (100%) delete mode 100644 packages/ui/fern-dashboard/globals.scss delete mode 100644 packages/ui/fern-dashboard/src/components/nav/sdk-navbar.tsx create mode 100644 packages/ui/fern-dashboard/src/components/sdks/ActivityLog.tsx create mode 100644 packages/ui/fern-dashboard/src/components/sdks/BreadcrumbHeader.tsx create mode 100644 packages/ui/fern-dashboard/src/components/sdks/SdkActivityStack.tsx create mode 100644 packages/ui/fern-dashboard/src/components/sdks/SdkContextCard.tsx create mode 100644 packages/ui/fern-dashboard/src/components/sdks/ZeroState.tsx create mode 100644 packages/ui/fern-dashboard/src/components/sdks/mock-data/Api.tsx create mode 100644 packages/ui/fern-dashboard/src/components/sdks/mock-data/Sdk.tsx create mode 100644 packages/ui/fern-dashboard/src/components/ui/breadcrumb.tsx delete mode 100644 packages/ui/fern-dashboard/src/components/ui/navigation-menu.tsx create mode 100644 packages/ui/fern-dashboard/src/components/ui/scroll-area.tsx create mode 100644 packages/ui/fern-dashboard/src/components/ui/separator.tsx create mode 100644 packages/ui/fern-dashboard/src/components/ui/textfield.tsx create mode 100644 packages/ui/fern-dashboard/src/routes/api.$apiId.lazy.tsx delete mode 100644 packages/ui/fern-dashboard/src/routes/api.$apiName.lazy.tsx delete mode 100644 packages/ui/fern-dashboard/src/routes/sdk.$sdkId.lazy.tsx create mode 100644 packages/ui/fern-dashboard/src/routes/sdk/$sdkId/index.lazy.tsx create mode 100644 packages/ui/fern-dashboard/src/routes/sdk/$sdkId/job.$jobId.lazy.tsx diff --git a/packages/ui/app/src/sidebar/BuiltWithFern.tsx b/packages/ui/app/src/sidebar/BuiltWithFern.tsx index 5256918ecb..e820902ccf 100644 --- a/packages/ui/app/src/sidebar/BuiltWithFern.tsx +++ b/packages/ui/app/src/sidebar/BuiltWithFern.tsx @@ -1,11 +1,10 @@ -import { FernTooltip, FernTooltipProvider } from "@fern-ui/components"; +import { FernLogo, FernTooltip, FernTooltipProvider } from "@fern-ui/components"; import { useIsHovering } from "@fern-ui/react-commons"; import cn from "clsx"; import { useContext } from "react"; import { FernLink } from "../components/FernLink"; import { FeatureFlagContext } from "../contexts/FeatureFlagContext"; import { useDocsContext } from "../contexts/docs-context/useDocsContext"; -import { FernLogo } from "./FernLogo"; const BUILT_WITH_FERN_TOOLTIP_CONTENT = "Handcrafted SDKs and Docs for your API"; diff --git a/packages/ui/app/tsconfig.json b/packages/ui/app/tsconfig.json index 99caaa26c6..f72a9e6e96 100644 --- a/packages/ui/app/tsconfig.json +++ b/packages/ui/app/tsconfig.json @@ -6,7 +6,7 @@ "outDir": "./dist", "rootDir": "." }, - "include": ["./src/**/*"], + "include": ["./src/**/*", "../components/src/FernLogo.tsx"], "references": [ { "path": "../../commons/core-utils" }, { "path": "../../commons/loadable" }, diff --git a/packages/ui/components/src/FernDropdown.tsx b/packages/ui/components/src/FernDropdown.tsx index 2717d4cfbd..61122af381 100644 --- a/packages/ui/components/src/FernDropdown.tsx +++ b/packages/ui/components/src/FernDropdown.tsx @@ -192,6 +192,18 @@ function FernDropdownItemValue({ }, renderButtonContent(), ) + ) : option.href != null ? ( + ) : (