diff --git a/src/app/os/keys/page.tsx b/src/app/os/keys/page.tsx index 6b4942e..74b818c 100644 --- a/src/app/os/keys/page.tsx +++ b/src/app/os/keys/page.tsx @@ -29,6 +29,7 @@ import { createEngine } from "@/lib/engine"; import { getTopTokens, tokenizeKeys } from "@/lib/tokenizer"; import type { OS } from "@/lib/types"; import { cn } from "@/lib/utils"; +import { BetaBadge } from "@/components/beta-badge"; function versionTag(os: OS) { return `${os.version}_${os.build}`; @@ -198,8 +199,9 @@ function VersionHistoryPanel({ : "text-muted-foreground hover:text-foreground", )} > - + {version.version} + {version.beta && } + Beta + + ); +} diff --git a/src/components/oslist.tsx b/src/components/oslist.tsx index d2dd438..64c350c 100644 --- a/src/components/oslist.tsx +++ b/src/components/oslist.tsx @@ -8,6 +8,8 @@ import { useEffect, useMemo, useState } from "react"; import { useQueryFilter } from "@/hooks/use-query-filter"; import { dataURL } from "@/lib/env"; import type { Group, OS } from "@/lib/types"; +import { cn } from "@/lib/utils"; +import { BetaBadge } from "./beta-badge"; import { HeaderPortal } from "./header-portal"; import { Button } from "./ui/button"; import { Input } from "./ui/input"; @@ -309,13 +311,21 @@ export default function OSList() { >
{os.name}
-
- {os.version} +
+ + {os.version} + {os.beta && } + {os.build} @@ -339,14 +349,20 @@ export default function OSList() { >
{os.name}
-
- +
+ {os.version} + {os.beta && } {os.build} diff --git a/src/components/version-switcher.tsx b/src/components/version-switcher.tsx index 26990bf..c4ac6a3 100644 --- a/src/components/version-switcher.tsx +++ b/src/components/version-switcher.tsx @@ -13,6 +13,7 @@ import { ChevronDown, Check } from "lucide-react"; import type { OS } from "@/lib/types"; import { withBase, basePath, dataURL } from "@/lib/env"; +import { BetaBadge } from "@/components/beta-badge"; function compareVersion(a: string, b: string) { const l1 = a.split(".").map(Number); @@ -83,11 +84,12 @@ export function VersionSwitcher({ currentOs }: { currentOs: string }) { {loading ? ( "Loading..." ) : currentVersion ? ( - + {currentVersion.version}{" "} ({currentVersion.build}) + {currentVersion.beta && } ) : ( currentBuild @@ -123,11 +125,12 @@ export function VersionSwitcher({ currentOs }: { currentOs: string }) { isSelected ? "bg-accent" : "" }`} > - + {os.version}{" "} ({os.build}) + {os.beta && } {isSelected && } diff --git a/src/lib/types.ts b/src/lib/types.ts index 065a456..26a53b6 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -3,6 +3,7 @@ export interface OS { build: string; version: string; devices: string[]; + beta?: boolean; } export interface Group {