prettier fixes

This commit is contained in:
Patrick Erichsen 2025-09-09 09:43:04 -07:00
parent c1b113f163
commit ef77787ef7
8 changed files with 3235 additions and 3036 deletions

View file

@ -45,7 +45,6 @@ import { getMetaKeyLabel } from "./util/util";
import { openEditorAndRevealRange } from "./util/vscode";
import { VsCodeIde } from "./VsCodeIde";
type TelemetryCaptureParams = Parameters<typeof Telemetry.capture>;
/**

6243
gui/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -65,7 +65,7 @@ export function HistoryTableRow({
onMouseEnter={() => setHovered(true)}
onMouseLeave={() => setHovered(false)}
data-testid={`history-row-${index}`}
className="relative mb-2 box-border flex w-full cursor-pointer overflow-hidden rounded-lg p-3 hover:bg-input"
className="hover:bg-input relative mb-2 box-border flex w-full cursor-pointer overflow-hidden rounded-lg p-3"
onClick={async () => {
await dispatch(exitEdit({}));
if (sessionMetadata.sessionId !== currentSessionId) {

View file

@ -146,7 +146,7 @@ export function History() {
return (
<div
style={{ fontSize: getFontSize() }}
className="flex flex-1 flex-col overflow-auto px-1 overflow-x-hidden"
className="flex flex-1 flex-col overflow-auto overflow-x-hidden px-1"
>
<div className="relative my-2 mt-4 flex justify-center space-x-2">
<input
@ -170,7 +170,7 @@ export function History() {
)}
</div>
<div className="thin-scrollbar flex flex-1 flex-col overflow-y-auto w-full">
<div className="thin-scrollbar flex w-full flex-1 flex-col overflow-y-auto">
{filteredAndSortedSessions.length === 0 && (
<div className="m-3 text-center">
{isSessionMetadataLoading ? (
@ -185,7 +185,7 @@ export function History() {
</div>
)}
<table className="flex flex-1 flex-col w-full">
<table className="flex w-full flex-1 flex-col">
<tbody className="">
{sessionGroups.map((group, groupIndex) => (
<Fragment key={group.label}>

View file

@ -4,8 +4,8 @@ import {
ExclamationTriangleIcon,
InformationCircleIcon,
} from "@heroicons/react/16/solid";
import { cn } from "../../util/cn";
import { varWithFallback } from "../../styles/theme";
import { cn } from "../../util/cn";
type AlertTypes = "info" | "success" | "warning" | "error";
type AlertSize = "sm" | "lg";
@ -74,7 +74,7 @@ function Alert({
...props
}: AlertProps) {
const { Icon, border, text, iconColor } = ALERT_CONFIGS[type];
const colorMap = {
info: varWithFallback("info"),
success: varWithFallback("success"),

View file

@ -75,7 +75,7 @@ export function UserSetting(props: UserSettingProps) {
case "number":
return (
<div className="border-command-border bg-vsc-input-background focus-within:border-border-focus focus-within:ring-1 focus-within:ring-border-focus flex w-20 items-center rounded-md border border-solid">
<div className="border-command-border bg-vsc-input-background focus-within:border-border-focus focus-within:ring-border-focus flex w-20 items-center rounded-md border border-solid focus-within:ring-1">
<input
type="number"
value={props.value}
@ -95,7 +95,7 @@ export function UserSetting(props: UserSettingProps) {
onChange={props.onChange}
disabled={disabled}
>
<ListboxButton className="border-command-border w-20 !w-20 !flex-none justify-between px-2 py-1 !rounded-md">
<ListboxButton className="border-command-border !w-20 w-20 !flex-none justify-between !rounded-md px-2 py-1">
{props.options.find((opt) => opt.value === props.value)?.label ||
props.value}
<ChevronDownIcon className="h-3 w-3" />
@ -121,7 +121,7 @@ export function UserSetting(props: UserSettingProps) {
>
<div className="flex items-center gap-2">
<div
className={`border-command-border bg-vsc-input-background focus-within:border-border-focus focus-within:ring-1 focus-within:ring-border-focus flex w-full flex-row overflow-hidden rounded-md border border-solid ${
className={`border-command-border bg-vsc-input-background focus-within:border-border-focus focus-within:ring-border-focus flex w-full flex-row overflow-hidden rounded-md border border-solid focus-within:ring-1 ${
props.isDirty
? !props.isValid
? "outline outline-red-500"
@ -158,7 +158,7 @@ export function UserSetting(props: UserSettingProps) {
}
return (
<div
className={`border-command-border bg-vsc-input-background focus-within:border-border-focus focus-within:ring-1 focus-within:ring-border-focus flex w-full flex-row overflow-hidden rounded-md border border-solid ${disabled ? "cursor-not-allowed opacity-50" : ""}`}
className={`border-command-border bg-vsc-input-background focus-within:border-border-focus focus-within:ring-border-focus flex w-full flex-row overflow-hidden rounded-md border border-solid focus-within:ring-1 ${disabled ? "cursor-not-allowed opacity-50" : ""}`}
>
<input
type="text"
@ -192,7 +192,7 @@ export function UserSetting(props: UserSettingProps) {
return (
<div className="flex items-start justify-start gap-4">
<div className="flex flex-col flex-1">
<div className="flex flex-1 flex-col">
<span className="text-sm font-medium">{title}</span>
<div className="mt-0.5 text-xs text-gray-500">{description}</div>
</div>

View file

@ -176,9 +176,9 @@ export function UserSettingsSection() {
</Card>
</div>
{/* Privacy Settings */}
{/* Telemetry Settings */}
<div>
<ConfigHeader title="Privacy" variant="sm" />
<ConfigHeader title="Telemetry" variant="sm" />
<Card>
<div className="flex flex-col gap-4">
<UserSetting

View file

@ -13,7 +13,6 @@ import { IdeMessengerContext } from "../../../../context/IdeMessenger";
import { createMockStore } from "../../../../util/test/mockStore";
import DocsIndexingStatus from "./DocsIndexingStatus";
describe("DocsIndexingStatus", () => {
const mockDocConfig: SiteIndexingConfig = {
startUrl: "https://example.com",