Skip to content

Commit d2d513e

Browse files
committed
feat(api): update frontend to use shadowlink v1 API
- Create v1-specific FailOverRequest message to avoid protobuf conflicts - Update all frontend imports from v1alpha3 to v1 - Generate TypeScript protobuf files for v1 API - Update 14 frontend files to use new v1 imports - Both v1alpha3 and v1 APIs coexist for backward compatibility
1 parent 4fc784a commit d2d513e

27 files changed

+1558
-16
lines changed

backend/pkg/protogen/redpanda/api/dataplane/v1/dataplanev1connect/shadowlink.connect.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/pkg/protogen/redpanda/api/dataplane/v1/shadowlink_grpc.pb.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/pkg/protogen/redpanda/api/dataplane/v1alpha3/dataplanev1alpha3connect/shadowlink.connect.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/pkg/protogen/redpanda/api/dataplane/v1alpha3/shadowlink_grpc.pb.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/src/components/pages/shadowlinks/details/config/configuration-shadowing.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { Badge } from 'components/redpanda-ui/components/badge';
1515
import { Card, CardContent, CardHeader } from 'components/redpanda-ui/components/card';
1616
import { Item, ItemGroup } from 'components/redpanda-ui/components/item';
1717
import { Heading, Text } from 'components/redpanda-ui/components/typography';
18-
import type { ShadowLink } from 'protogen/redpanda/api/dataplane/v1alpha3/shadowlink_pb';
18+
import type { ShadowLink } from 'protogen/redpanda/api/dataplane/v1/shadowlink_pb';
1919
import type { ACLFilter, NameFilter } from 'protogen/redpanda/core/admin/v2/shadow_link_pb';
2020

2121
import {

frontend/src/components/pages/shadowlinks/details/config/configuration-source.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
import { Badge } from 'components/redpanda-ui/components/badge';
2121
import { Card, CardContent, CardHeader } from 'components/redpanda-ui/components/card';
2222
import { Heading, Text } from 'components/redpanda-ui/components/typography';
23-
import type { ShadowLink } from 'protogen/redpanda/api/dataplane/v1alpha3/shadowlink_pb';
23+
import type { ShadowLink } from 'protogen/redpanda/api/dataplane/v1/shadowlink_pb';
2424
import { ScramMechanism } from 'protogen/redpanda/core/admin/v2/shadow_link_pb';
2525
import type React from 'react';
2626

frontend/src/components/pages/shadowlinks/details/config/configuration-topic-replication.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { Badge } from 'components/redpanda-ui/components/badge';
2121
import { Card, CardContent } from 'components/redpanda-ui/components/card';
2222
import { Separator } from 'components/redpanda-ui/components/separator';
2323
import { Heading, Text } from 'components/redpanda-ui/components/typography';
24-
import type { ShadowLink } from 'protogen/redpanda/api/dataplane/v1alpha3/shadowlink_pb';
24+
import type { ShadowLink } from 'protogen/redpanda/api/dataplane/v1/shadowlink_pb';
2525

2626
export interface ConfigurationTopicReplicationProps {
2727
shadowLink: ShadowLink;

frontend/src/components/pages/shadowlinks/details/config/shadow-link-configuration.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
'use client';
1313

1414
import { Tabs, TabsContent, TabsContents, TabsList, TabsTrigger } from 'components/redpanda-ui/components/tabs';
15-
import type { ShadowLink } from 'protogen/redpanda/api/dataplane/v1alpha3/shadowlink_pb';
15+
import type { ShadowLink } from 'protogen/redpanda/api/dataplane/v1/shadowlink_pb';
1616

1717
import { ConfigurationShadowing } from './configuration-shadowing';
1818
import { ConfigurationSource } from './configuration-source';

frontend/src/components/pages/shadowlinks/details/shadow-link-details.tsx

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

1212
'use client';
1313

14-
import type { ShadowLink } from 'protogen/redpanda/api/dataplane/v1alpha3/shadowlink_pb';
14+
import type { ShadowLink } from 'protogen/redpanda/api/dataplane/v1/shadowlink_pb';
1515
import { useMemo, useState } from 'react';
1616
import { useListShadowTopicInfiniteQuery } from 'react-query/api/shadowlink';
1717
import { MAX_PAGE_SIZE, SHORT_LIVED_CACHE_STALE_TIME } from 'react-query/react-query.utils';

frontend/src/components/pages/shadowlinks/details/shadow-link-diagram.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { Background, type Edge, Handle, type Node, Position, ReactFlow, ReactFlo
1313
import { Card, CardContent } from 'components/redpanda-ui/components/card';
1414
import { Item, ItemContent, ItemTitle } from 'components/redpanda-ui/components/item';
1515
import { Text } from 'components/redpanda-ui/components/typography';
16-
import type { ShadowLink } from 'protogen/redpanda/api/dataplane/v1alpha3/shadowlink_pb';
16+
import type { ShadowLink } from 'protogen/redpanda/api/dataplane/v1/shadowlink_pb';
1717
import type { CSSProperties } from 'react';
1818

1919
interface ShadowLinkDiagramProps {

0 commit comments

Comments
 (0)