Skip to content

Commit

Permalink
split kafka peers into 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed May 23, 2024
1 parent 1008519 commit dbaaf03
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ui/app/mirrors/create/cdc/guide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ const GuideForDestinationSetup = ({
return 'https://docs.peerdb.io/connect/cloudsql_postgres';
case 'CRUNCHY POSTGRES':
return 'https://docs.peerdb.io/connect/crunchy_bridge';
case 'CONFLUENT':
return 'https://docs.peerdb.io/connect/confluent-cloud';
case 'REDPANDA':
case 'KAFKA':
return 'https://docs.peerdb.io/connect/kafka';
default:
return '';
}
Expand Down
3 changes: 3 additions & 0 deletions ui/app/peers/create/[peerType]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ export default function CreateConfig({
if (peerType.includes('POSTGRES') || peerType.includes('TEMBO')) {
return 'POSTGRES';
}
if (peerType === 'CONFLUENT' || peerType === 'REDPANDA') {
return 'KAFKA';
}
return peerType;
};

Expand Down
4 changes: 4 additions & 0 deletions ui/components/PeerComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ export const DBTypeToImageMapping = (peerType: DBType | string) => {
return '/svgs/ms.svg';
case DBType.KAFKA:
case 'KAFKA':
return '/svgs/kafka.svg';
case 'CONFLUENT':
return '/svgs/confluent.svg';
case 'REDPANDA':
return '/svgs/redpanda.svg';
case DBType.PUBSUB:
case 'PUBSUB':
Expand Down
2 changes: 1 addition & 1 deletion ui/components/SelectSource.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const dbTypes = [
'CRUNCHY POSTGRES',
],
['Warehouses', 'SNOWFLAKE', 'BIGQUERY', 'S3', 'CLICKHOUSE', 'ELASTICSEARCH'],
['Queues', 'KAFKA', 'EVENTHUBS', 'PUBSUB'],
['Queues', 'REDPANDA', 'CONFLUENT', 'KAFKA', 'EVENTHUBS', 'PUBSUB'],
];

const gridContainerStyle = {
Expand Down
30 changes: 30 additions & 0 deletions ui/public/svgs/confluent.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dbaaf03

Please sign in to comment.