Skip to content

Commit 46a6855

Browse files
author
Lasim
committed
fix(frontend): handle validation error in StdioServerInput component
1 parent bf759ae commit 46a6855

File tree

7 files changed

+8
-13
lines changed

7 files changed

+8
-13
lines changed

services/frontend/src/components/account/AccountSidebarNav.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface Props {
1111
canChangePassword?: boolean
1212
}
1313
14-
const props = withDefaults(defineProps<Props>(), {
14+
withDefaults(defineProps<Props>(), {
1515
canChangePassword: true
1616
})
1717

services/frontend/src/components/admin/mcp-catalog/McpServerEditFormWizard.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,6 @@ watch(
394394
)
395395
396396
// Computed properties
397-
const currentStepData = computed(() => steps[currentStep.value] || null)
398397
const isFirstStep = computed(() => currentStep.value === 0)
399398
const isLastStep = computed(() => currentStep.value === steps.length - 1)
400399
const canGoNext = computed(() => !isLastStep.value)

services/frontend/src/components/admin/mcp-catalog/steps/ClaudeDesktopConfigStep/StdioServerInput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ watch(jsonInput, (newValue) => {
9797
raw_json: newValue
9898
})
9999
} else {
100-
validationError.value = validation.error
100+
validationError.value = validation.error ?? null
101101
isValid.value = false
102102
extractedServerName.value = ''
103103
extractedCommand.value = ''

services/frontend/src/components/admin/mcp-catalog/steps/ConfigurationSchemaStepAdd.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<script setup lang="ts">
1212
import { ref, computed, watch, onMounted, nextTick } from 'vue'
1313
import { useI18n } from 'vue-i18n'
14-
import { Terminal, Users, User, Globe, Plus } from 'lucide-vue-next'
14+
import { Terminal, Users, User, Plus } from 'lucide-vue-next'
1515
import { DsCard } from '@/components/ui/ds-card'
1616
import { Button } from '@/components/ui/button'
1717
import ConfigurationSchemaEnvironmentSection from './ConfigurationSchemaEnvironmentSection.vue'

services/frontend/src/components/admin/mcp-catalog/steps/ConfigurationSchemaStepEdit.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import {
2929
AlertDialogTitle,
3030
} from '@/components/ui/alert-dialog'
3131
32-
import { Terminal, Users, User, Globe, Plus } from 'lucide-vue-next'
32+
import { Terminal, Users, User, Plus } from 'lucide-vue-next'
3333
import { DsCard } from '@/components/ui/ds-card'
3434
import ConfigurationSchemaEnvironmentSection from './ConfigurationSchemaEnvironmentSection.vue'
3535
import ConfigurationSchemaHeadersSection from './ConfigurationSchemaHeadersSection.vue'

services/frontend/src/views/dashboard/index.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { useI18n } from 'vue-i18n'
44
import { useRouter } from 'vue-router'
55
import NavbarLayout from '@/components/NavbarLayout.vue'
66
import { Button } from '@/components/ui/button'
7-
import { Plus } from 'lucide-vue-next'
87
import { toast } from 'vue-sonner'
98
import { useEventBus } from '@/composables/useEventBus'
109
import { useBreadcrumbs } from '@/composables/useBreadcrumbs'
@@ -415,7 +414,7 @@ onUnmounted(() => {
415414
<NavbarLayout>
416415
<div class="space-y-6">
417416
<!-- Header -->
418-
<div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
417+
<div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between mt-8">
419418
<div class="flex-1">
420419
<TeamUsageIndicator v-if="selectedTeam" :team-id="selectedTeam.id" />
421420
</div>
@@ -425,7 +424,7 @@ onUnmounted(() => {
425424
@click="handleOpenConfigModal"
426425
variant="outline"
427426
:class="[
428-
'flex items-center justify-center gap-2 bg-black text-white border-black hover:bg-black/90 hover:border-black hover:text-white',
427+
'flex items-center justify-center gap-2',
429428
showStep2ButtonHighZIndex ? 'relative z-[10000]' : ''
430429
]"
431430
>
@@ -435,8 +434,7 @@ onUnmounted(() => {
435434
@click="handleInstallServer"
436435
class="flex items-center justify-center gap-2"
437436
>
438-
<Plus class="h-4 w-4" />
439-
{{ t('mcpInstallations.actions.install') }}
437+
{{ t('mcpInstallations.featuredList.browseCatalog') }}
440438
</Button>
441439
</div>
442440
</div>

services/frontend/src/views/mcp-server/index.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { useRouter } from 'vue-router'
55
import NavbarLayout from '@/components/NavbarLayout.vue'
66
import { DsPageHeading } from '@/components/ui/ds-page-heading'
77
import { Button } from '@/components/ui/button'
8-
import { Plus } from 'lucide-vue-next'
98
import { toast } from 'vue-sonner'
109
import { useEventBus } from '@/composables/useEventBus'
1110
import McpInstallationsCard from '@/components/mcp-server/McpInstallationsCard.vue'
@@ -255,8 +254,7 @@ onUnmounted(() => {
255254
@click="handleInstallServer"
256255
class="flex items-center gap-2"
257256
>
258-
<Plus class="h-4 w-4" />
259-
{{ t('mcpInstallations.actions.install') }}
257+
{{ t('mcpInstallations.featuredList.browseCatalog') }}
260258
</Button>
261259
</template>
262260
</DsPageHeading>

0 commit comments

Comments
 (0)