Skip to content

Commit dd465fb

Browse files
authored
Merge pull request #2335 from redpanda-data/missing-lint
fe/fix: missing linter fixes
2 parents 89fae28 + f07d619 commit dd465fb

8 files changed

Lines changed: 23 additions & 24 deletions

File tree

frontend/src/components/pages/mcp-servers/create/tool-card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* by the Apache License, Version 2.0
99
*/
1010

11+
import type { LintHint } from '@buf/redpandadata_common.bufbuild_es/redpanda/api/common/v1/linthint_pb';
1112
import { Button } from 'components/redpanda-ui/components/button';
1213
import { Card, CardContent } from 'components/redpanda-ui/components/card';
1314
import { Field, FieldDescription, FieldError, FieldLabel } from 'components/redpanda-ui/components/field';
@@ -24,7 +25,6 @@ import { RedpandaConnectComponentTypeBadge } from 'components/ui/connect/redpand
2425
import { LintHintList } from 'components/ui/lint-hint/lint-hint-list';
2526
import { YamlEditorCard } from 'components/ui/yaml/yaml-editor-card';
2627
import { Trash2 } from 'lucide-react';
27-
import type { LintHint } from '@buf/redpandadata_common.bufbuild_es/redpanda/api/common/v1/linthint_pb';
2828
import { MCPServer_Tool_ComponentType } from 'protogen/redpanda/api/dataplane/v1alpha3/mcp_pb';
2929
import { Controller, type UseFormReturn, useWatch } from 'react-hook-form';
3030

frontend/src/components/pages/mcp-servers/create/tools-step.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
* by the Apache License, Version 2.0
99
*/
1010

11+
import type { LintHint } from '@buf/redpandadata_common.bufbuild_es/redpanda/api/common/v1/linthint_pb';
1112
import { Button } from 'components/redpanda-ui/components/button';
1213
import { Field, FieldError } from 'components/redpanda-ui/components/field';
1314
import { Heading, Text } from 'components/redpanda-ui/components/typography';
1415
import { QuickAddSecrets } from 'components/ui/secret/quick-add-secrets';
1516
import { Plus } from 'lucide-react';
16-
import type { LintHint } from '@buf/redpandadata_common.bufbuild_es/redpanda/api/common/v1/linthint_pb';
1717
import { Scope } from 'protogen/redpanda/api/dataplane/v1/secret_pb';
1818
import { MCPServer_Tool_ComponentType } from 'protogen/redpanda/api/dataplane/v1alpha3/mcp_pb';
1919
import type { UseFieldArrayReturn, UseFormReturn } from 'react-hook-form';

frontend/src/components/pages/mcp-servers/details/remote-mcp-configuration-tab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { getRouteApi } from '@tanstack/react-router';
2020

2121
const routeApi = getRouteApi('/mcp-servers/$id');
2222

23+
import type { LintHint } from '@buf/redpandadata_common.bufbuild_es/redpanda/api/common/v1/linthint_pb';
2324
import { CLOUD_MANAGED_TAG_KEYS, isCloudManagedTagKey } from 'components/constants';
2425
import { Button } from 'components/redpanda-ui/components/button';
2526
import { Card, CardContent, CardHeader, CardTitle } from 'components/redpanda-ui/components/card';
@@ -44,7 +45,6 @@ import { ServiceAccountSection } from 'components/ui/service-account/service-acc
4445
import { ExpandedYamlDialog } from 'components/ui/yaml/expanded-yaml-dialog';
4546
import { YamlEditorCard } from 'components/ui/yaml/yaml-editor-card';
4647
import { Edit, FileText, Hammer, Plus, Save, Settings, ShieldCheck, Trash2 } from 'lucide-react';
47-
import type { LintHint } from '@buf/redpandadata_common.bufbuild_es/redpanda/api/common/v1/linthint_pb';
4848
import { Scope } from 'protogen/redpanda/api/dataplane/v1/secret_pb';
4949
import React, { useCallback, useState } from 'react';
5050
import {

frontend/src/components/pages/rp-connect/errors.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1+
import { type LintHint, LintHintSchema } from '@buf/redpandadata_common.bufbuild_es/redpanda/api/common/v1/linthint_pb';
12
import { create } from '@bufbuild/protobuf';
23
import { ConnectError } from '@connectrpc/connect';
34
import { Text } from 'components/redpanda-ui/components/typography';
45

5-
import { type LintHint, LintHintSchema } from '@buf/redpandadata_common.bufbuild_es/redpanda/api/common/v1/linthint_pb';
6-
76
/**
87
* Extracts lint hints from a ConnectError for display in LintResults component.
98
* Converts all errors (validation errors, field violations, and generic errors) to lint hints.

frontend/src/components/pages/rp-connect/pipeline/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
'use no memo';
1313

14+
import type { LintHint } from '@buf/redpandadata_common.bufbuild_es/redpanda/api/common/v1/linthint_pb';
1415
import { create } from '@bufbuild/protobuf';
1516
import { zodResolver } from '@hookform/resolvers/zod';
1617
import { useNavigate, useRouter, useSearch } from '@tanstack/react-router';
@@ -31,7 +32,6 @@ import { useDebounce } from 'hooks/use-debounce';
3132
import { useDebouncedValue } from 'hooks/use-debounced-value';
3233
import type { editor } from 'monaco-editor';
3334
import type { JSONSchema } from 'monaco-yaml';
34-
import type { LintHint } from '@buf/redpandadata_common.bufbuild_es/redpanda/api/common/v1/linthint_pb';
3535
import {
3636
CreatePipelineRequestSchema,
3737
UpdatePipelineRequestSchema,

frontend/src/react-query/api/ai-gateway.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
99
* - Prod: /.redpanda/api/redpanda.api.aigateway.v1.* handled by backend proxy
1010
*/
1111

12-
import { create } from '@bufbuild/protobuf';
13-
import type { GenMessage } from '@bufbuild/protobuf/codegenv1';
14-
import type { ConnectError } from '@connectrpc/connect';
15-
import { useQuery } from '@connectrpc/connect-query';
16-
import type { UseQueryResult } from '@tanstack/react-query';
17-
import { useAIGatewayTransport } from 'hooks/use-ai-gateway-transport';
1812
import {
1913
type ListGatewaysRequest,
2014
ListGatewaysRequestSchema,
2115
type ListGatewaysResponse,
2216
} from '@buf/redpandadata_ai-gateway.bufbuild_es/redpanda/api/aigateway/v1/gateway_pb';
2317
import { listGateways } from '@buf/redpandadata_ai-gateway.connectrpc_query-es/redpanda/api/aigateway/v1/gateway-GatewayService_connectquery';
18+
import { create } from '@bufbuild/protobuf';
19+
import type { GenMessage } from '@bufbuild/protobuf/codegenv1';
20+
import type { ConnectError } from '@connectrpc/connect';
21+
import { useQuery } from '@connectrpc/connect-query';
22+
import type { UseQueryResult } from '@tanstack/react-query';
23+
import { useAIGatewayTransport } from 'hooks/use-ai-gateway-transport';
2424
import type { MessageInit, QueryOptions } from 'react-query/react-query.utils';
2525

2626
const AI_GATEWAY_DEFAULT_PAGE_SIZE = 50;

frontend/src/react-query/api/ai-gateway/model-providers.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
* Use `useAIGatewayTransport()` hook to create the transport that points to /.redpanda/api/
66
*/
77

8-
import { create } from '@bufbuild/protobuf';
9-
import type { GenMessage } from '@bufbuild/protobuf/codegenv1';
10-
import type { ConnectError } from '@connectrpc/connect';
11-
import { useQuery } from '@connectrpc/connect-query';
12-
import type { UseQueryResult } from '@tanstack/react-query';
13-
import { useAIGatewayTransport } from 'hooks/use-ai-gateway-transport';
148
import {
159
type ListModelProvidersRequest,
1610
ListModelProvidersRequestSchema,
1711
type ListModelProvidersResponse,
1812
} from '@buf/redpandadata_ai-gateway.bufbuild_es/redpanda/api/aigateway/v1/model_providers_pb';
1913
import { listModelProviders } from '@buf/redpandadata_ai-gateway.connectrpc_query-es/redpanda/api/aigateway/v1/model_providers-ModelProvidersService_connectquery';
14+
import { create } from '@bufbuild/protobuf';
15+
import type { GenMessage } from '@bufbuild/protobuf/codegenv1';
16+
import type { ConnectError } from '@connectrpc/connect';
17+
import { useQuery } from '@connectrpc/connect-query';
18+
import type { UseQueryResult } from '@tanstack/react-query';
19+
import { useAIGatewayTransport } from 'hooks/use-ai-gateway-transport';
2020
import type { MessageInit, QueryOptions } from 'react-query/react-query.utils';
2121

2222
const AI_GATEWAY_DEFAULT_PAGE_SIZE = 50;

frontend/src/react-query/api/ai-gateway/models.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
* Use `useAIGatewayTransport()` hook to create the transport that points to /.redpanda/api/
66
*/
77

8-
import { create } from '@bufbuild/protobuf';
9-
import type { GenMessage } from '@bufbuild/protobuf/codegenv1';
10-
import type { ConnectError } from '@connectrpc/connect';
11-
import { useQuery } from '@connectrpc/connect-query';
12-
import type { UseQueryResult } from '@tanstack/react-query';
13-
import { useAIGatewayTransport } from 'hooks/use-ai-gateway-transport';
148
import {
159
type ListModelsRequest,
1610
ListModelsRequestSchema,
1711
type ListModelsResponse,
1812
} from '@buf/redpandadata_ai-gateway.bufbuild_es/redpanda/api/aigateway/v1/models_pb';
1913
import { listModels } from '@buf/redpandadata_ai-gateway.connectrpc_query-es/redpanda/api/aigateway/v1/models-ModelsService_connectquery';
14+
import { create } from '@bufbuild/protobuf';
15+
import type { GenMessage } from '@bufbuild/protobuf/codegenv1';
16+
import type { ConnectError } from '@connectrpc/connect';
17+
import { useQuery } from '@connectrpc/connect-query';
18+
import type { UseQueryResult } from '@tanstack/react-query';
19+
import { useAIGatewayTransport } from 'hooks/use-ai-gateway-transport';
2020
import type { MessageInit, QueryOptions } from 'react-query/react-query.utils';
2121

2222
const AI_GATEWAY_DEFAULT_PAGE_SIZE = 50;

0 commit comments

Comments
 (0)