Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apps/web/src/components/DiffPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,8 @@ export default function DiffPanel({
<div className="flex min-w-0 flex-1 items-center gap-3 [-webkit-app-region:no-drag]">
<DropdownMenu>
<DropdownMenuTrigger
className="inline-flex h-6 max-w-full items-center gap-1 rounded-md bg-accent px-2 text-xs font-medium text-accent-foreground outline-none transition-colors hover:bg-accent/80 focus-visible:ring-2 focus-visible:ring-ring"
render={<Button size="xs" variant="secondary" />}
className="max-w-full"
aria-label={`Diff scope: ${selectedScopeLabel}`}
>
<span className="truncate">{selectedScopeLabel}</span>
Expand Down
4 changes: 3 additions & 1 deletion apps/web/src/components/chat/useAutoBalanceUpdateBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
ServerUpdateProgress,
ServerUpdatesAction,
} from "../ServerUpdateAction";
import { InlineButton } from "../ui/button";
import { Popover, PopoverPopup, PopoverTrigger } from "../ui/popover";
import type { ComposerBannerStackItem } from "./ComposerBannerStack";
import { ComposerServerUpdateIcon } from "./ComposerServerUpdateStatus";
Expand Down Expand Up @@ -95,7 +96,8 @@ export function useAutoBalanceUpdateBanner(
title: (
<Popover>
<PopoverTrigger
className="block max-w-full truncate rounded-sm text-left outline-none focus-visible:ring-2 focus-visible:ring-ring"
render={<InlineButton />}
className="block max-w-full truncate"
aria-label={`${title}. View machines`}
>
{title}
Expand Down
3 changes: 2 additions & 1 deletion apps/web/src/components/device/DeviceToolVersions.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { ReactNode } from "react";
import type { DeviceToolVersions as ToolVersions } from "@t3tools/contracts";
import { InlineButton } from "~/components/ui/button";
import { Popover, PopoverPopup, PopoverTitle, PopoverTrigger } from "~/components/ui/popover";

export function DeviceToolVersions({
Expand Down Expand Up @@ -32,7 +33,7 @@ export function DeviceToolVersions({
? `${label}: ${version ? `version ${version}` : selected ? "not installed" : "version unknown"}. Show details`
: undefined
}
className="rounded text-xs text-muted-foreground underline decoration-muted-foreground/40 underline-offset-4 hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring"
render={<InlineButton tone="muted" />}
>
{kind
? version
Expand Down
3 changes: 2 additions & 1 deletion apps/web/src/components/pullRequest/PullRequestCodeTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,8 @@ function PullRequestCodeTab({
{orderedCommits.length > 0 ? (
<DropdownMenu>
<DropdownMenuTrigger
className="inline-flex h-6 min-w-0 max-w-64 items-center gap-1 rounded-md bg-accent px-2 text-xs font-medium text-accent-foreground outline-none transition-colors hover:bg-accent/80 focus-visible:ring-2 focus-visible:ring-ring"
render={<Button size="xs" variant="secondary" />}
className="min-w-0 max-w-64"
aria-label={`Diff scope: ${scopeLabel}`}
>
<span className="truncate">{scopeLabel}</span>
Expand Down
8 changes: 3 additions & 5 deletions apps/web/src/components/settings/SettingsBreadcrumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { resolveEnvironmentMachineKind } from "@t3tools/contracts";
import { LayersIcon } from "lucide-react";
import type { ReactNode } from "react";

import { cn } from "../../lib/utils";
import type { SidebarProjectSnapshot } from "../../sidebarProjectGrouping";
import type { EnvironmentPresentation } from "../../state/environments";
import { EnvironmentMachineIcon } from "../EnvironmentMachineIcon";
import { ProjectFavicon } from "../ProjectFavicon";
import { InlineButton } from "../ui/button";
import {
Menu,
MenuPopup,
Expand Down Expand Up @@ -111,10 +111,8 @@ function ScopeMenu({
<Menu>
<MenuTrigger
aria-label={ariaLabel}
className={cn(
"inline-flex min-w-0 max-w-56 cursor-pointer items-center gap-1.5 rounded-sm text-left transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring",
narrowed ? "text-foreground" : "text-muted-foreground hover:text-foreground",
)}
render={<InlineButton tone={narrowed ? "default" : "muted"} />}
className="min-w-0 max-w-56 gap-1.5"
>
{icon}
<span className="min-w-0 truncate">{label}</span>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/usage/UsagePage.refresh.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ vi.mock("./usagePagePreferences", () => ({
readUsagePagePreferences: () => ({ metric: state.metric, windowDays: 30 }),
saveUsagePagePreferences: vi.fn(),
}));
vi.mock("../ui/button", () => ({ Button: "button" }));
vi.mock("../ui/button", () => ({ Button: "button", InlineButton: "button" }));
vi.mock("../ui/scroll-area", () => ({ ScrollArea: "div" }));
vi.mock("../ui/select", () => ({
Select: "select",
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/usage/UsagePage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ vi.mock("react", async (importOriginal) => {

vi.mock("../../env", () => ({ isElectron: false }));
vi.mock("../../state/usage", () => ({ useUsage: testState.useUsage }));
vi.mock("../ui/button", () => ({ Button: "button" }));
vi.mock("../ui/button", () => ({ Button: "button", InlineButton: "button" }));
vi.mock("../ui/scroll-area", () => ({ ScrollArea: "div" }));
vi.mock("../ui/select", () => ({
Select: "div",
Expand Down
7 changes: 5 additions & 2 deletions apps/web/src/components/usage/UsagePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import {
formatUsd,
makeWindow,
} from "@t3tools/shared/usageFormat";
import { Button } from "../ui/button";
import { Button, InlineButton } from "../ui/button";
import {
Menu,
MenuCheckboxItem,
Expand Down Expand Up @@ -737,7 +737,10 @@ function UsageEnvironmentFilter({
return (
<>
<Menu>
<MenuTrigger className="group/usage-environment inline-flex min-w-0 max-w-full cursor-pointer items-center gap-1 rounded-sm text-left focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring">
<MenuTrigger
render={<InlineButton />}
Comment thread
juliusmarminge marked this conversation as resolved.
className="group/usage-environment min-w-0 max-w-full gap-1"
>
<span className="min-w-0 truncate">{label}</span>
<span className="flex size-3.5 shrink-0 items-center justify-center text-muted-foreground">
{showUsageStatus && pendingCount > 0 ? (
Expand Down
2 changes: 1 addition & 1 deletion scripts/lint-restyle-ceiling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as NodeURL from "node:url";
// components/ui exports are migrated to variants (see vite.config.ts). This gate keeps the
// count from growing: CI fails when findings exceed the ceiling. Lower the ceiling when you
// migrate a file, and delete this script when the rule becomes an error.
export const RESTYLE_CEILING = 717;
export const RESTYLE_CEILING = 668;

const RULE = "shadcn(no-restyle)";

Expand Down
Loading