ScopeSection() — supabase Function Reference
Architecture documentation for the ScopeSection() function in AuthorizeRequesterDetails.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/studio/components/interfaces/Organization/OAuthApps/AuthorizeRequesterDetails.tsx lines 14–52
export const ScopeSection = ({
description,
hasReadScope,
hasWriteScope,
}: {
description: string
hasReadScope: boolean
hasWriteScope: boolean
}) => {
if (hasReadScope || hasWriteScope) {
const perms = [hasReadScope ? 'Read' : null, hasWriteScope ? 'Write' : null]
.filter(Boolean)
.map((str) => (
<span key={str} className="font-semibold text-foreground">
{str}
</span>
))
.reduce((acc, v) => (
<>
{acc}
<span> and </span>
{v}
</>
))
return (
<div className="first:border-t border-b flex flex-row space-x-1 text-sm text-foreground-light py-2 px-1">
<div className="pt-0.5">
<Check stroke="green" height={18} width={18} strokeWidth={1.5} />
</div>
<div>
{perms} {description}
</div>
</div>
)
}
return null
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free