mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-19 09:30:49 +08:00
fix(integrations): revert connected list to credential detail; remove settings redirects
This commit is contained in:
@@ -99,6 +99,7 @@ interface ConnectedDisplayItem {
|
||||
serviceName: string
|
||||
integrationType: string | null
|
||||
blockType: string
|
||||
slug: string
|
||||
icon: ComponentType<{ className?: string }>
|
||||
}
|
||||
|
||||
@@ -154,6 +155,7 @@ export function Integrations() {
|
||||
serviceName: service.name,
|
||||
integrationType: integration?.integrationType ?? null,
|
||||
blockType: integration?.type ?? '',
|
||||
slug: integration?.slug ?? '',
|
||||
icon: service.icon as ComponentType<{ className?: string }>,
|
||||
},
|
||||
]
|
||||
|
||||
@@ -1,18 +1,12 @@
|
||||
import { Suspense } from 'react'
|
||||
import { dehydrate, HydrationBoundary } from '@tanstack/react-query'
|
||||
import type { Metadata } from 'next'
|
||||
import { redirect } from 'next/navigation'
|
||||
import { isBillingEnabled } from '@/lib/core/config/feature-flags'
|
||||
import { getQueryClient } from '@/app/_shell/providers/get-query-client'
|
||||
import type { SettingsSection } from '@/app/workspace/[workspaceId]/settings/navigation'
|
||||
import { prefetchGeneralSettings, prefetchSubscriptionData, prefetchUserProfile } from './prefetch'
|
||||
import { SettingsPage } from './settings'
|
||||
|
||||
const SETTINGS_REDIRECTS: Record<string, (workspaceId: string) => string> = {
|
||||
integrations: (id) => `/workspace/${id}/integrations`,
|
||||
skills: (id) => `/workspace/${id}/skills`,
|
||||
}
|
||||
|
||||
const SECTION_TITLES: Record<string, string> = {
|
||||
general: 'General',
|
||||
secrets: 'Secrets',
|
||||
@@ -49,11 +43,7 @@ export default async function SettingsSectionPage({
|
||||
}: {
|
||||
params: Promise<{ workspaceId: string; section: string }>
|
||||
}) {
|
||||
const { workspaceId, section } = await params
|
||||
|
||||
const redirectTo = SETTINGS_REDIRECTS[section]
|
||||
if (redirectTo) redirect(redirectTo(workspaceId))
|
||||
|
||||
const { section } = await params
|
||||
const queryClient = getQueryClient()
|
||||
|
||||
void prefetchGeneralSettings(queryClient)
|
||||
|
||||
Reference in New Issue
Block a user