@@ -18,7 +18,6 @@ import { isSystemTag } from 'components/constants';
1818import { Alert , AlertDescription , AlertTitle } from 'components/redpanda-ui/components/alert' ;
1919import { Banner , BannerClose , BannerContent } from 'components/redpanda-ui/components/banner' ;
2020import { Button } from 'components/redpanda-ui/components/button' ;
21- import { Card , CardContent , CardHeader , CardTitle } from 'components/redpanda-ui/components/card' ;
2221import { CopyButton } from 'components/redpanda-ui/components/copy-button' ;
2322import { CountDot } from 'components/redpanda-ui/components/count-dot' ;
2423import {
@@ -118,7 +117,6 @@ import {
118117 tryPatchRedpandaYaml ,
119118} from '../utils/yaml' ;
120119
121-
122120function getConnectorDialogTitle ( type : ConnectComponentType | 'resource' | null ) : string | undefined {
123121 if ( type === 'input' ) {
124122 return 'Add an input' ;
@@ -139,7 +137,6 @@ function getConnectorDialogPlaceholder(type: ConnectComponentType | 'resource' |
139137 return ;
140138}
141139
142-
143140const pipelineFormSchema = z . object ( {
144141 name : z
145142 . string ( )
@@ -163,7 +160,6 @@ const pipelineFormSchema = z.object({
163160
164161type PipelineFormValues = z . infer < typeof pipelineFormSchema > ;
165162
166-
167163function buildUserTags ( formTags : PipelineFormValues [ 'tags' ] ) : Record < string , string > {
168164 const userTags : Record < string , string > = { } ;
169165 for ( const { key, value } of formTags ) {
@@ -232,7 +228,6 @@ function parseYamlEditorSchema(configSchema: string | undefined) {
232228 }
233229}
234230
235-
236231function usePipelineLint ( yamlContent : string , errorLintHints : Record < string , LintHint > , enabled : boolean ) {
237232 const debouncedYamlContent = useDebouncedValue ( yamlContent , 500 ) ;
238233 const { data : lintResponse , isPending : isLintPending } = useLintPipelineConfigQuery ( debouncedYamlContent , {
@@ -450,7 +445,6 @@ function useDiagramDialogs(yamlContent: string, handleConnectorYamlChange: (yaml
450445 } ;
451446}
452447
453-
454448function EditorSkeleton ( ) {
455449 return (
456450 < div className = "flex flex-col gap-3 p-4" >
@@ -730,7 +724,6 @@ function SidebarPanel({
730724 ) ;
731725}
732726
733-
734727export default function PipelinePage ( ) {
735728 const { mode, pipelineId } = usePipelineMode ( ) ;
736729 const navigate = useNavigate ( ) ;
@@ -751,7 +744,7 @@ export default function PipelinePage() {
751744 const [ addConnectorType , setAddConnectorType ] = useState < ConnectComponentType | 'resource' | null > ( null ) ;
752745 const [ slashTipVisible , setSlashTipVisible ] = useState ( isSlashMenuEnabled && mode !== 'view' ) ;
753746 const [ isTemplateDialogOpen , setIsTemplateDialogOpen ] = useState ( false ) ;
754- const isTemplateGalleryEnabled = isFeatureFlagEnabled ( 'enableConnectTemplateGallery ' ) ;
747+ const isTemplateGalleryEnabled = isFeatureFlagEnabled ( 'enableRpcnTemplateGallery ' ) ;
755748
756749 const form = useForm < PipelineFormValues > ( {
757750 resolver : zodResolver ( pipelineFormSchema ) as Resolver < PipelineFormValues > ,
@@ -770,7 +763,6 @@ export default function PipelinePage() {
770763 [ slashCommand ]
771764 ) ;
772765
773-
774766 const { data : pipelineResponse , isLoading : isPipelineLoading } = useGetPipelineQuery (
775767 { id : pipelineId || '' } ,
776768 { enabled : mode !== 'create' && ! ! pipelineId }
@@ -789,12 +781,10 @@ export default function PipelinePage() {
789781 const formName = useWatch ( { control : form . control , name : 'name' } ) ;
790782 const pipelineName = mode === 'view' ? pipeline ?. displayName : formName ;
791783
792-
793784 const { handleSave, handleDelete, clearWizardStore, errorLintHints, clearErrorLintHints, isSaving, isDeleting } =
794785 usePipelineSave ( { form, yamlContent, mode, pipelineId, pipeline, isPipelineDiagramsEnabled } ) ;
795786 const { lintHints, isLintPending } = usePipelineLint ( yamlContent , errorLintHints , mode !== 'view' ) ;
796787
797-
798788 const handleYamlChange = useCallback (
799789 ( value : string ) => {
800790 clearErrorLintHints ( ) ;
@@ -872,7 +862,6 @@ export default function PipelinePage() {
872862 onResolved : setYamlContent ,
873863 } ) ;
874864
875-
876865 const handleCancel = useCallback ( ( ) => {
877866 if ( mode === 'create' ) {
878867 clearWizardStore ( ) ;
@@ -888,7 +877,6 @@ export default function PipelinePage() {
888877
889878 const handleNameChange = useCallback ( ( name : string ) => form . setValue ( 'name' , name , { shouldValidate : true } ) , [ form ] ) ;
890879
891-
892880 return (
893881 < div
894882 className = { cn (
0 commit comments