mirror of
https://github.com/supabase/supabase.git
synced 2026-06-17 13:14:06 +08:00
This PR migrates the whole monorepo to use Tailwind v4: - Removed `@tailwindcss/container-queries` plugin since it's included by default in v4, - Bump all instances of Tailwind to v4. Made minimal changes to the shared config to remove non-supported features (`alpha` mentions), - Migrate all apps to be compatible with v4 configs, - Fix the `typography.css` import in 3 apps, - Add missing rules which were included by default in v3, - Run `pnpm dlx @tailwindcss/upgrade` on all apps, which renames a lot of classes - Rename all misnamed classes according to https://tailwindcss.com/docs/upgrade-guide#renamed-utilities in all apps. --------- Co-authored-by: Jordi Enric <jordi.err@gmail.com>
39 lines
1.3 KiB
TypeScript
39 lines
1.3 KiB
TypeScript
import { useParams } from 'common'
|
|
import Image from 'next/image'
|
|
|
|
import { InlineLink } from '@/components/ui/InlineLink'
|
|
import { BASE_PATH } from '@/lib/constants'
|
|
|
|
export const RLSTesterPreview = () => {
|
|
const { ref } = useParams()
|
|
|
|
return (
|
|
<div className="flex flex-col gap-2">
|
|
<p className="text-foreground-light text-sm mb-4">
|
|
Verify if your RLS policies have been set up properly by running queries as a specific user.
|
|
While role impersonation isn't a new feature on the dashboard, we've built a dedicated UI
|
|
for this which will also show what policies are evaluated for the query.
|
|
</p>
|
|
<Image
|
|
src={`${BASE_PATH}/img/previews/rls-tester-preview.png`}
|
|
width={1296}
|
|
height={900}
|
|
quality={100}
|
|
alt="rls-tester-preview"
|
|
className="rounded-sm border"
|
|
/>
|
|
<div className="space-y-2 mt-4!">
|
|
<p className="text-sm">Enabling this preview will:</p>
|
|
<ul className="list-disc pl-6 text-sm text-foreground-light space-y-1">
|
|
<li>
|
|
Show the "Test" button on the{' '}
|
|
<InlineLink href={`/project/${ref}/auth/policies`}>
|
|
Authentication Policies page
|
|
</InlineLink>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|