mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
## Problem We're working on OAuth Apps Scoped Grants and want to display an alternative UI for Authorized apps depending on a feature flag. However, the `/apps` page currently contains the code of both the _Publishable apps_ and _Authorized apps_ sections. ## Solution No functional nor design changes. - Extract both sections into their own components to ease the introduction of the alternative UI - Improve a11y <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added separate views for managing publishable and authorized OAuth applications. - Users can publish, update, and delete applications, with convenient credential-copy controls. - Authorized applications can be sorted and revoked through a confirmation dialog. - **User Experience** - Added clear loading, empty, error, and permission-denied states for OAuth application lists. - Improved organization settings layout for OAuth app management. - Added consistent sorting behavior when selecting and toggling table columns. - Improved accessibility for credential notifications and dismissal controls. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
22 lines
773 B
TypeScript
22 lines
773 B
TypeScript
import { PageContainer } from 'ui-patterns/PageContainer'
|
|
|
|
import { AuthorizedApps } from './AuthorizedApps'
|
|
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 = () => {
|
|
return (
|
|
<>
|
|
<PageContainer size="default" className="pb-16">
|
|
<PublishableApps />
|
|
{/* Here we'll display the OAuth App Scoped Grants depending on the feature flag in future PRs */}
|
|
<AuthorizedApps />
|
|
</PageContainer>
|
|
</>
|
|
)
|
|
}
|