Skip to content
Open
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
2 changes: 1 addition & 1 deletion apps/web/src/components/DiffPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ export default function DiffPanel({
<div
key={commit.sha}
className={cn(
"flex items-center rounded-sm hover:bg-accent has-data-highlighted:bg-accent has-focus-visible:bg-accent [&_[data-checked]]:bg-transparent [&_[data-highlighted]]:bg-transparent",
"flex items-center rounded-sm hover:bg-accent has-data-highlighted:bg-accent has-focus-visible:bg-accent [&_[data-checked]]:bg-transparent [&_[data-highlighted]]:bg-transparent hover:text-accent-foreground has-data-highlighted:text-accent-foreground has-focus-visible:text-accent-foreground hover:[--contrast-muted-foreground:var(--contrast-accent-foreground)] has-data-highlighted:[--contrast-muted-foreground:var(--contrast-accent-foreground)] has-focus-visible:[--contrast-muted-foreground:var(--contrast-accent-foreground)]",
selectedCommitSha === commit.sha && "bg-foreground/[0.08]",
)}
>
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/GitActionsControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ function PublishRepositoryDialog(props: PublishRepositoryDialogProps) {
"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background",
isSelected
? "border-primary bg-background shadow-sm ring-2 ring-inset ring-primary/35 dark:border-transparent dark:bg-primary/10 dark:shadow-none dark:ring-1 dark:ring-primary/30"
: "border-border bg-background hover:border-foreground/20 hover:bg-muted/50 dark:border-transparent dark:bg-white/[0.035] dark:hover:bg-accent",
: "border-border bg-background hover:border-foreground/20 hover:bg-muted/50 dark:border-transparent dark:bg-white/[0.035] dark:hover:bg-accent dark:hover:text-accent-foreground dark:hover:[--contrast-foreground:var(--contrast-accent-foreground)] dark:hover:[--contrast-muted-foreground:var(--contrast-accent-foreground)]",
)}
>
<option.Icon className="size-5 shrink-0" aria-hidden />
Expand Down Expand Up @@ -744,7 +744,7 @@ function PublishRepositoryDialog(props: PublishRepositoryDialogProps) {
"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background",
isSelected
? "border-primary bg-background shadow-sm ring-2 ring-inset ring-primary/35 dark:border-transparent dark:bg-primary/10 dark:shadow-none dark:ring-1 dark:ring-primary/30"
: "border-border bg-background hover:border-foreground/20 hover:bg-muted/50 dark:border-transparent dark:bg-white/[0.035] dark:hover:bg-accent",
: "border-border bg-background hover:border-foreground/20 hover:bg-muted/50 dark:border-transparent dark:bg-white/[0.035] dark:hover:bg-accent dark:hover:text-accent-foreground dark:hover:[--contrast-foreground:var(--contrast-accent-foreground)] dark:hover:[--contrast-muted-foreground:var(--contrast-accent-foreground)]",
)}
>
<option.Icon className="size-4 shrink-0 text-muted-foreground" aria-hidden />
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/RightPanelTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ function RightPanelTab(
"cursor-pointer group/tab flex h-6 max-w-36 shrink-0 items-center gap-0.5 rounded-md pr-2 pl-1.5 text-xs",
props.ownsDesktopTitleBar && "[-webkit-app-region:no-drag]",
props.active
? "bg-accent text-foreground"
? "bg-accent text-accent-foreground [--contrast-muted-foreground:var(--contrast-accent-foreground)]"
: "text-muted-foreground hover:bg-accent/60 hover:text-foreground",
isDragging && "relative z-10",
)}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/ThreadStatusIndicators.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ function ThreadPullRequestMiniListItem({
href={url}
target="_blank"
rel="noopener noreferrer"
className="flex min-w-0 items-center gap-2 rounded-sm px-1 py-1 hover:bg-accent focus-visible:bg-accent focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring"
className="flex min-w-0 items-center gap-2 rounded-sm px-1 py-1 hover:bg-accent focus-visible:bg-accent focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring hover:text-accent-foreground focus-visible:text-accent-foreground hover:[--contrast-foreground:var(--contrast-accent-foreground)] focus-visible:[--contrast-foreground:var(--contrast-accent-foreground)]"
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
onPointerDown={(event) => event.stopPropagation()}
onClick={(event) => onOpenPullRequest(event, url)}
>
Expand Down
10 changes: 5 additions & 5 deletions apps/web/src/components/ThreadTerminalDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,7 @@ function TerminalSidebarGroup({
className={cn(
"group/tab flex h-6 w-full items-center gap-0.5 rounded-md pr-2 pl-1.5 text-xs",
isActive
? "bg-accent text-foreground"
? "bg-accent text-accent-foreground"
: "text-muted-foreground hover:bg-accent/60 hover:text-foreground",
)}
>
Expand Down Expand Up @@ -1859,7 +1859,7 @@ export default function ThreadTerminalDrawer({
className={`p-1 text-foreground/90 transition-colors ${
hasReachedSplitLimit
? "cursor-not-allowed opacity-64 hover:bg-transparent"
: "hover:bg-accent"
: "hover:bg-accent hover:text-accent-foreground"
}`}
onClick={onSplitTerminalAction}
label={splitTerminalActionLabel}
Expand All @@ -1872,7 +1872,7 @@ export default function ThreadTerminalDrawer({
className={`p-1 text-foreground/90 transition-colors ${
hasReachedSplitLimit
? "cursor-not-allowed opacity-64 hover:bg-transparent"
: "hover:bg-accent"
: "hover:bg-accent hover:text-accent-foreground"
}`}
onClick={onSplitTerminalVerticalAction}
label={splitTerminalVerticalActionLabel}
Expand All @@ -1882,7 +1882,7 @@ export default function ThreadTerminalDrawer({
<div className="h-4 w-px bg-border/80" />
<TerminalActionButton
disabled={!canOperateTerminal}
className="p-1 text-foreground/90 transition-colors hover:bg-accent"
className="p-1 text-foreground/90 transition-colors hover:bg-accent hover:text-accent-foreground"
onClick={onNewTerminalAction}
label={newTerminalActionLabel}
>
Expand All @@ -1891,7 +1891,7 @@ export default function ThreadTerminalDrawer({
<div className="h-4 w-px bg-border/80" />
<TerminalActionButton
disabled={!canOperateTerminal}
className="p-1 text-foreground/90 transition-colors hover:bg-accent"
className="p-1 text-foreground/90 transition-colors hover:bg-accent hover:text-accent-foreground"
onClick={() => confirmCloseTerminal(resolvedActiveTerminalId)}
label={closeTerminalActionLabel}
>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/auth/ConnectAgentSurface.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ function AccessOption({
"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background",
selected
? "border-primary bg-background ring-2 ring-inset ring-primary/25 dark:border-transparent dark:bg-primary/10 dark:ring-1 dark:ring-primary/30"
: "border-border bg-background hover:bg-muted/50 dark:border-transparent dark:bg-white/[0.035] dark:hover:bg-accent",
: "border-border bg-background hover:bg-muted/50 dark:border-transparent dark:bg-white/[0.035] dark:hover:bg-accent dark:hover:text-accent-foreground dark:hover:[--contrast-foreground:var(--contrast-accent-foreground)] dark:hover:[--contrast-muted-foreground:var(--contrast-accent-foreground)]",
)}
>
<Icon
Expand Down
6 changes: 3 additions & 3 deletions apps/web/src/components/chat/ComposerControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ export type ComposerControlSize = "sm" | "xs";

function composerControlClassName(size: ComposerControlSize, className?: string) {
return cn(
"relative inline-flex shrink-0 cursor-pointer items-center justify-center whitespace-nowrap rounded-(--control-radius) border border-transparent text-base outline-none hover:bg-accent data-pressed:bg-accent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 data-disabled:pointer-events-none data-disabled:opacity-64 pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 [&:active:not([aria-haspopup])]:scale-[0.97] [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:-mx-0.5 [&_svg[data-composer-control-icon]]:mx-0",
"relative inline-flex shrink-0 cursor-pointer items-center justify-center whitespace-nowrap rounded-(--control-radius) border border-transparent text-base outline-none hover:bg-accent data-pressed:bg-accent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 data-disabled:pointer-events-none data-disabled:opacity-64 pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 [&:active:not([aria-haspopup])]:scale-[0.97] [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:-mx-0.5 [&_svg[data-composer-control-icon]]:mx-0 hover:text-accent-foreground data-pressed:text-accent-foreground",
"[&_:is([data-composer-control-label],[data-chat-provider-model-picker-label])]:[text-box:trim-both_cap_alphabetic] supports-[text-box:trim-both_cap_alphabetic]:[&_:is([data-composer-control-label],[data-chat-provider-model-picker-label])]:py-1.5",
size === "xs"
? "h-7 gap-1 has-[[data-composer-label]]:gap-1.5 px-1.75 font-normal text-foreground/70 text-sm hover:text-foreground dark:text-muted-foreground sm:h-6 sm:text-xs [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5 [&_svg]:mx-0 [&_svg[data-composer-control-chevron]]:ms-0 [&_svg[data-composer-control-chevron]]:-me-1"
: "h-7 gap-1.5 px-2 font-medium text-foreground/80 [&_svg:not([class*='text-'])]:text-muted-foreground hover:text-foreground sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4",
? "h-7 gap-1 has-[[data-composer-label]]:gap-1.5 px-1.75 font-normal text-foreground/70 text-sm hover:text-accent-foreground dark:text-muted-foreground sm:h-6 sm:text-xs [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5 [&_svg]:mx-0 [&_svg[data-composer-control-chevron]]:ms-0 [&_svg[data-composer-control-chevron]]:-me-1"
: "h-7 gap-1.5 px-2 font-medium text-foreground/80 [&_svg:not([class*='text-'])]:text-muted-foreground hover:[&_svg]:text-current data-pressed:[&_svg]:text-current aria-pressed:[&_svg]:text-current hover:text-accent-foreground sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4",
"aria-pressed:bg-accent aria-pressed:text-accent-foreground aria-pressed:hover:bg-accent/80",
className,
);
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/chat/ComposerControlsBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import { resolveComposerControlsOwnership } from "./composerControlsOwnership";
* expanded footer or the resting controls host.
*/
// Model and effort share one trigger; it stays filled while its popup is open.
const MODEL_TRIGGER_STATES = "data-popup-open:bg-accent data-popup-open:text-foreground";
const MODEL_TRIGGER_STATES = "data-popup-open:bg-accent data-popup-open:text-accent-foreground";

export function ComposerControlsBar(props: {
environmentId: EnvironmentId;
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/chat/ComposerFooterControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export function ComposerPermissionsSection(props: {
onPointerLeave={() => setPreviewMode(null)}
onFocus={() => setPreviewMode(option.mode)}
onBlur={() => setPreviewMode(null)}
className="flex h-6 flex-1 cursor-pointer items-center justify-center text-muted-foreground outline-none first:rounded-l-md last:rounded-r-md data-disabled:cursor-not-allowed data-disabled:opacity-40 data-checked:bg-input/72 data-checked:text-foreground data-highlighted:text-foreground not-data-checked:data-highlighted:bg-accent focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset"
className="flex h-6 flex-1 cursor-pointer items-center justify-center text-muted-foreground outline-none first:rounded-l-md last:rounded-r-md data-disabled:cursor-not-allowed data-disabled:opacity-40 data-checked:bg-input/72 data-checked:text-foreground data-highlighted:text-foreground not-data-checked:data-highlighted:bg-accent focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset not-data-checked:data-highlighted:text-accent-foreground"
>
<OptionIcon aria-hidden="true" className="size-3.5" />
</MenuPrimitive.RadioItem>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/chat/ComposerPrimaryActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ export const ComposerPrimaryActions = memo(function ComposerPrimaryActions({
render={
<button
type="button"
className="flex h-7 shrink-0 cursor-pointer items-center gap-1.5 rounded-(--control-radius) px-2 font-medium text-base text-foreground/80 tabular-nums outline-none hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-64 sm:text-sm aria-pressed:bg-accent/60 aria-pressed:text-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:text-muted-foreground"
className="flex h-7 shrink-0 cursor-pointer items-center gap-1.5 rounded-(--control-radius) px-2 font-medium text-base text-foreground/80 tabular-nums outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-64 sm:text-sm aria-pressed:bg-accent/60 aria-pressed:text-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:text-muted-foreground"
{...pointerFocusProps}
aria-pressed={!keepFullHistory}
aria-label={`Compact ${compactTokens} tokens of history before sending`}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/chat/TimelineSystemDivider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function TimelineSystemDivider(props: {
type="button"
aria-label={props.actionLabel}
onClick={props.onAction}
className="flex min-w-0 cursor-pointer items-center gap-1.5 rounded-full border border-border/70 bg-background px-2.5 py-1 transition-colors hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/70"
className="flex min-w-0 cursor-pointer items-center gap-1.5 rounded-full border border-border/70 bg-background px-2.5 py-1 transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/70"
/>
}
>
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/files/FileBreadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ function FolderContentsMenu(props: FileBreadcrumbsProps & { readonly crumb: File
<button
type="button"
aria-label={`Browse ${props.crumb.label}`}
className="relative mx-0.5 flex h-5 w-4 shrink-0 cursor-pointer items-center justify-center rounded-sm text-muted-foreground/60 outline-none pointer-coarse:after:absolute pointer-coarse:after:-inset-3 hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring data-popup-open:bg-accent data-popup-open:text-foreground"
className="relative mx-0.5 flex h-5 w-4 shrink-0 cursor-pointer items-center justify-center rounded-sm text-muted-foreground/60 outline-none pointer-coarse:after:absolute pointer-coarse:after:-inset-3 hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring data-popup-open:bg-accent data-popup-open:text-accent-foreground"
/>
}
>
Expand Down Expand Up @@ -278,7 +278,7 @@ function FolderBreadcrumb(props: {
type="button"
onClick={() => props.onNavigate(props.crumb.path)}
className={cn(
"relative block max-w-40 cursor-pointer rounded-sm px-0.5 text-left outline-none pointer-coarse:after:absolute pointer-coarse:after:inset-x-0 pointer-coarse:after:-inset-y-3 hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",
"relative block max-w-40 cursor-pointer rounded-sm px-0.5 text-left outline-none pointer-coarse:after:absolute pointer-coarse:after:inset-x-0 pointer-coarse:after:-inset-y-3 hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",
props.descendant ? "text-muted-foreground/70" : "text-muted-foreground",
)}
/>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/files/fileSurfaceChrome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export function FileSurfaceFailure(props: {
<button
type="button"
onClick={props.onRetry}
className="rounded-md border border-input px-2.5 py-1 text-xs text-foreground hover:bg-accent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring"
className="rounded-md border border-input px-2.5 py-1 text-xs text-foreground hover:bg-accent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring hover:text-accent-foreground"
>
Try again
</button>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/files/office/Spreadsheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default function Spreadsheet(props: {
aria-selected={tab.index === opened.layout.info.activeSheet}
tabIndex={tab.index === opened.layout.info.activeSheet ? 0 : -1}
onClick={() => show(tab.index)}
className="h-7 shrink-0 rounded-md px-2.5 text-xs text-muted-foreground hover:bg-accent aria-selected:bg-accent aria-selected:text-foreground"
className="h-7 shrink-0 rounded-md px-2.5 text-xs text-muted-foreground hover:bg-accent aria-selected:bg-accent aria-selected:text-accent-foreground hover:text-accent-foreground"
>
{tab.name}
</button>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/preview/PreviewRecentUrlCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function PreviewRecentUrlCard({ threadRef, entry, onOpen, onRemove }: Pro
type="button"
aria-label={`Remove ${label} from history`}
onClick={onRemove}
className="absolute right-3 rounded p-1 text-muted-foreground opacity-0 hover:bg-accent hover:text-foreground focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring group-hover:opacity-100"
className="absolute right-3 rounded p-1 text-muted-foreground opacity-0 hover:bg-accent hover:text-accent-foreground focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring group-hover:opacity-100"
>
<X className="size-3.5" />
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export function PullRequestReactionBar({
aria-pressed={reacted}
aria-label={pullRequestReactionName(content)}
className={cn(
"flex size-7 items-center justify-center rounded-md text-base outline-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",
"flex size-7 items-center justify-center rounded-md text-base outline-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring hover:text-accent-foreground",
reacted && "bg-primary/10",
)}
onClick={() => {
Expand Down
4 changes: 3 additions & 1 deletion apps/web/src/components/pullRequest/PullRequestRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ function PullRequestRowImpl({
data-pull-request-key={statsKey}
className={cn(
"flex items-center rounded-md [content-visibility:auto] [contain-intrinsic-block-size:56.5px]",
selected ? "bg-accent" : "hover:bg-accent/60",
selected
? "bg-accent text-accent-foreground [--contrast-muted-foreground:var(--contrast-accent-foreground)]"
: "hover:bg-accent/60",
)}
>
<button
Expand Down
Loading
Loading