Skip to content

Commit dd05b4e

Browse files
committed
more unused, destructured
1 parent d9a564c commit dd05b4e

30 files changed

Lines changed: 43 additions & 43 deletions

File tree

apps/webapp/app/components/metrics/OperationsFilter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function formatOperation(op: string): string {
3131
}
3232

3333
export function OperationsFilter({ possibleOperations }: OperationsFilterProps) {
34-
const { values, replace, del } = useSearchParams();
34+
const { values, replace: _replace, del } = useSearchParams();
3535
const selectedOperations = values("operations");
3636

3737
if (selectedOperations.length === 0 || selectedOperations.every((v) => v === "")) {

apps/webapp/app/components/runs/v3/ai/extractAISpanData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ function parseMessagesToDisplayItems(raw: unknown): DisplayItem[] | undefined {
217217

218218
if (toolCalls.length > 0) {
219219
// Collect subsequent tool result messages that match these tool calls
220-
const toolCallIds = new Set(toolCalls.map((tc) => tc.toolCallId));
220+
const _toolCallIds = new Set(toolCalls.map((tc) => tc.toolCallId));
221221
let j = i + 1;
222222
while (j < messages.length && messages[j].role === "tool") {
223223
j++;

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.apikeys/route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const loader = dashboardLoader(
9090

9191
export default function Page() {
9292
const { environment, hasVercelIntegration, canReadApiKeys } = useTypedLoaderData<typeof loader>();
93-
const organization = useOrganization();
93+
const _organization = useOrganization();
9494

9595
if (!environment) {
9696
throw new Response(undefined, {

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.bulk-actions.$bulkActionParam/route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export const action = dashboardAction(
121121
}
122122

123123
const service = new BulkActionService();
124-
const [error, result] = await tryCatch(service.abort(bulkActionParam, environment.id));
124+
const [error, _result] = await tryCatch(service.abort(bulkActionParam, environment.id));
125125

126126
if (error) {
127127
logger.error("Failed to abort bulk action", {

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.environment-variables.new/route.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export const action = dashboardAction(
206206
);
207207

208208
export default function Page() {
209-
const [isOpen, setIsOpen] = useState(true);
209+
const [isOpen, _setIsOpen] = useState(true);
210210
const parentData = useTypedMatchesData<typeof environmentVariablesLoader>({
211211
id: environmentVariablesRouteId,
212212
});
@@ -565,7 +565,7 @@ function VariableFields({
565565
const [firstPair, ...rest] = keyValuePairs;
566566
update(index, firstPair);
567567

568-
for (const pair of rest) {
568+
for (const _pair of rest) {
569569
form.insert({ name: variablesFields.name });
570570
}
571571
insertAfter(index, rest);

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.playground.$agentParam/route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ function PlaygroundChat() {
198198
? (recentConversations.find((c) => c.chatId === activeConversation.chatId)?.id ?? null)
199199
: null
200200
);
201-
const [chatId, setChatId] = useState(() => activeConversation?.chatId ?? crypto.randomUUID());
201+
const [chatId, _setChatId] = useState(() => activeConversation?.chatId ?? crypto.randomUUID());
202202
const [clientDataJson, setClientDataJson] = useState(() =>
203203
activeConversation?.clientData ? JSON.stringify(activeConversation.clientData, null, 2) : "{}"
204204
);

apps/webapp/app/routes/_app.orgs.$organizationSlug.settings.private-connections.new/route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ function AIPromptWizard({ awsAccountIds }: { awsAccountIds: string[] }) {
395395
const validPorts = ports.filter((p) => p.port !== "");
396396
const regionLabel = AWS_REGIONS.find((r) => r.value === region)?.label ?? region;
397397

398-
const portsDescription =
398+
const _portsDescription =
399399
validPorts.length > 0
400400
? validPorts.map((p) => `${p.port} (${p.protocol})`).join(", ")
401401
: "5432 (TCP)";

apps/webapp/app/routes/_app.orgs.$organizationSlug.settings.team/route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ function LeaveTeamModal({
730730
const [open, setOpen] = useState(false);
731731
const lastSubmission = useActionData();
732732

733-
const [form, fields] = useForm({
733+
const [form, _fields] = useForm({
734734
id: "remove-member",
735735
// TODO: type this
736736
lastResult: lastSubmission as any,

apps/webapp/app/routes/account.tokens/route.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const loader = async ({ request }: LoaderFunctionArgs) => {
109109
const userId = await requireUserId(request);
110110

111111
try {
112-
const [personalAccessTokens, { roles, userRoleId, orgId }] = await Promise.all([
112+
const [personalAccessTokens, { roles, userRoleId, orgId: _orgId }] = await Promise.all([
113113
getValidPersonalAccessTokens(userId),
114114
loadSystemRolesForUser(userId),
115115
]);
@@ -449,7 +449,7 @@ function CreatePersonalAccessToken({
449449
function RevokePersonalAccessToken({ token }: { token: ObfuscatedPersonalAccessToken }) {
450450
const lastSubmission = useActionData();
451451

452-
const [form, fields] = useForm({
452+
const [form, _fields] = useForm({
453453
id: "revoke-personal-access-token",
454454
// TODO: type this
455455
lastResult: lastSubmission as any,

apps/webapp/app/routes/admin.llm-models.$modelId.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export const action = dashboardAction(
165165
export default function AdminLlmModelDetailRoute() {
166166
const { model } = useTypedLoaderData<typeof loader>();
167167
const actionData = useActionData<{ success?: boolean; error?: string; details?: unknown[] }>();
168-
const navigate = useNavigate();
168+
const _navigate = useNavigate();
169169

170170
const [modelName, setModelName] = useState(model.modelName);
171171
const [matchPattern, setMatchPattern] = useState(model.matchPattern);

0 commit comments

Comments
 (0)