Files
Gildas Garcia 4442d91d77 feat(studio): Wire org and users authorized apps list to backend (#53674)
## Description

Part of the work for OAuth apps with the scoped permissions. This PR
wires the org and users authorized apps lists to backend.
2026-11-19 21:40:12 +01:00

31 lines
1.0 KiB
TypeScript

import { useFeatureFlags, useFlag } from 'common'
import { PageContainer } from 'ui-patterns/PageContainer'
import { AuthorizedApps } from './AuthorizedApps'
import { OAuthAppsAuthorizedList } from './OAuthAppsAuthorizedList'
import { PublishableApps } from './PublishableApps'
// [Joshen] Note on nav UX
// Kang Ming mentioned that it might be better to split Published Apps and Authorized Apps into 2 separate tabs
// to prevent any confusion (case study: GitHub). Authorized apps could be in the "integrations" tab, but let's
// check in again after we wrap up Vercel integration
export const OAuthApps = () => {
const isScopedOAuthManageEnabled = useFlag('enableScopedOAuthManage')
const { hasLoaded } = useFeatureFlags()
return (
<>
<PageContainer size="default" className="pb-16">
<PublishableApps />
{hasLoaded ? (
isScopedOAuthManageEnabled ? (
<OAuthAppsAuthorizedList />
) : (
<AuthorizedApps />
)
) : null}
</PageContainer>
</>
)
}