Chore: force Zod v3, replace deprecated Supabase vars in local dev, updated Dev Tool (#425)
* - Replaced Supabase local environment variables - Updates packages - Force Zod v3 if peer deps require Zod v4 - Updated Dev Tool * Use correct field for pnpm overrides * Fix inaccuracies in the Agents files; fix type casting in `useForm` * Updated lock file * Be more specific when intercepting POST request in flaky e2e test
This commit is contained in:
committed by
GitHub
parent
cba62d21ae
commit
9681e1f90b
@@ -95,8 +95,7 @@ class ConnectivityService {
|
|||||||
try {
|
try {
|
||||||
const response = await fetch(endpoint, {
|
const response = await fetch(endpoint, {
|
||||||
headers: {
|
headers: {
|
||||||
apikey,
|
apikey: adminKey,
|
||||||
Authorization: `Bearer ${adminKey}`,
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -73,36 +73,51 @@ function EnvListDisplay({
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<div className="bg-muted/50 sticky top-0 flex flex-col gap-y-1 rounded-lg p-4">
|
<div className="bg-muted/50 sticky top-0 flex flex-col gap-y-1 rounded-lg p-4">
|
||||||
<div className={'sticky top-0 h-full overflow-auto pb-16 break-all'}>
|
<div
|
||||||
|
className={
|
||||||
|
'sticky top-0 flex h-full flex-col overflow-auto pb-16 break-all'
|
||||||
|
}
|
||||||
|
>
|
||||||
{groups.map((group) => (
|
{groups.map((group) => (
|
||||||
<div className="mb-4" key={group.category}>
|
<div className="mb-4" key={group.category}>
|
||||||
<span># {group.category}</span>
|
<span># {group.category}</span>
|
||||||
|
|
||||||
{group.variables.map((variable) => {
|
<div className="flex flex-col gap-y-1">
|
||||||
const model = envVariables.find(
|
{group.variables.map((variable) => {
|
||||||
(item) => item.name === variable.key,
|
const model = envVariables.find(
|
||||||
);
|
(item) => item.name === variable.key,
|
||||||
|
);
|
||||||
|
|
||||||
const isSecret = model?.secret;
|
const isSecret = model?.secret;
|
||||||
const value =
|
|
||||||
isSecret && hideSecret
|
|
||||||
? '••••••••'
|
|
||||||
: variable.effectiveValue;
|
|
||||||
|
|
||||||
return (
|
const value =
|
||||||
<Link
|
isSecret && hideSecret
|
||||||
href={`#var_${variable.key.toLowerCase()}`}
|
? '••••••••'
|
||||||
className={cn('block transition-all hover:underline', {
|
: variable.effectiveValue;
|
||||||
['text-orange-500']: variable.isOverridden,
|
|
||||||
['text-destructive']: !variable.validation.success,
|
return (
|
||||||
['opacity-20']: !variable.isVisible,
|
<Link
|
||||||
})}
|
href={`#var_${variable.key.toLowerCase()}`}
|
||||||
key={variable.key}
|
className={cn(
|
||||||
>
|
'hover:bg-accent block p-px transition-all',
|
||||||
<span>{variable.key}</span>: {value}
|
{
|
||||||
</Link>
|
['text-orange-500']: variable.isOverridden,
|
||||||
);
|
['text-destructive']: !variable.validation.success,
|
||||||
})}
|
['opacity-20']: !variable.isVisible,
|
||||||
|
},
|
||||||
|
)}
|
||||||
|
key={variable.key}
|
||||||
|
>
|
||||||
|
<b>{variable.key}</b>:{' '}
|
||||||
|
{value && (
|
||||||
|
<span className={'bg-muted rounded p-0.5'}>
|
||||||
|
{value}
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
|
</Link>
|
||||||
|
);
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -411,7 +411,6 @@ export const envVariables: EnvVariableModel[] = [
|
|||||||
name: 'NEXT_PUBLIC_SUPABASE_ANON_KEY',
|
name: 'NEXT_PUBLIC_SUPABASE_ANON_KEY',
|
||||||
description: 'Your Supabase anonymous API key.',
|
description: 'Your Supabase anonymous API key.',
|
||||||
category: 'Supabase',
|
category: 'Supabase',
|
||||||
required: true,
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
deprecated: {
|
deprecated: {
|
||||||
reason: 'Replaced by new JWT signing key system',
|
reason: 'Replaced by new JWT signing key system',
|
||||||
@@ -450,7 +449,6 @@ export const envVariables: EnvVariableModel[] = [
|
|||||||
description: 'Your Supabase service role key (keep this secret!).',
|
description: 'Your Supabase service role key (keep this secret!).',
|
||||||
category: 'Supabase',
|
category: 'Supabase',
|
||||||
secret: true,
|
secret: true,
|
||||||
required: true,
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
deprecated: {
|
deprecated: {
|
||||||
reason: 'Renamed for consistency with new JWT signing key system',
|
reason: 'Renamed for consistency with new JWT signing key system',
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "git clean -xdf .next .turbo node_modules",
|
"clean": "git clean -xdf .next .turbo node_modules",
|
||||||
"dev": "next dev --port=3010 | pino-pretty -c",
|
"dev": "next dev --port=3011 | pino-pretty -c",
|
||||||
"format": "prettier --check --write \"**/*.{ts,tsx}\" --ignore-path=\"../../.prettierignore\""
|
"format": "prettier --check --write \"**/*.{ts,tsx}\" --ignore-path=\"../../.prettierignore\""
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
"@hookform/resolvers": "^5.2.2",
|
"@hookform/resolvers": "^5.2.2",
|
||||||
"@tanstack/react-query": "catalog:",
|
"@tanstack/react-query": "catalog:",
|
||||||
"ai": "5.0.108",
|
"ai": "5.0.108",
|
||||||
"lucide-react": "^0.556.0",
|
"lucide-react": "^0.561.0",
|
||||||
"next": "catalog:",
|
"next": "catalog:",
|
||||||
"nodemailer": "^7.0.11",
|
"nodemailer": "^7.0.11",
|
||||||
"react": "catalog:",
|
"react": "catalog:",
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
"@kit/shared": "workspace:*",
|
"@kit/shared": "workspace:*",
|
||||||
"@kit/tsconfig": "workspace:*",
|
"@kit/tsconfig": "workspace:*",
|
||||||
"@kit/ui": "workspace:*",
|
"@kit/ui": "workspace:*",
|
||||||
"@tailwindcss/postcss": "^4.1.17",
|
"@tailwindcss/postcss": "^4.1.18",
|
||||||
"@types/node": "catalog:",
|
"@types/node": "catalog:",
|
||||||
"@types/nodemailer": "7.0.4",
|
"@types/nodemailer": "7.0.4",
|
||||||
"@types/react": "catalog:",
|
"@types/react": "catalog:",
|
||||||
|
|||||||
@@ -165,7 +165,9 @@ export class TeamAccountsPageObject {
|
|||||||
await this.page.click(`[data-test="role-option-${newRole}"]`);
|
await this.page.click(`[data-test="role-option-${newRole}"]`);
|
||||||
|
|
||||||
// Wait for the update to complete and page to reload
|
// Wait for the update to complete and page to reload
|
||||||
const response = this.page.waitForResponse('**/members');
|
const response = this.page.waitForResponse(response => {
|
||||||
|
return response.url().includes('members') && response.request().method() === 'POST'
|
||||||
|
});
|
||||||
|
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
this.page.click('[data-test="confirm-update-member-role"]'),
|
this.page.click('[data-test="confirm-update-member-role"]'),
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
# SUPABASE
|
# SUPABASE
|
||||||
NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54321
|
NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54321
|
||||||
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0
|
NEXT_PUBLIC_SUPABASE_PUBLIC_KEY=sb_publishable_ACJWlzQHlZjBrEguHvfOxg_3BJgxAaH
|
||||||
SUPABASE_SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU
|
SUPABASE_SECRET_KEY=sb_secret_N7UND0UgjKTVK-Uodkm0Hg_xSvEMPvz
|
||||||
|
|
||||||
## THIS IS FOR DEVELOPMENT ONLY - DO NOT USE IN PRODUCTION
|
## THIS IS FOR DEVELOPMENT ONLY - DO NOT USE IN PRODUCTION
|
||||||
SUPABASE_DB_WEBHOOK_SECRET=WEBHOOKSECRET
|
SUPABASE_DB_WEBHOOK_SECRET=WEBHOOKSECRET
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ NEXT_PUBLIC_CI=true
|
|||||||
|
|
||||||
# SUPABASE
|
# SUPABASE
|
||||||
NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54321
|
NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54321
|
||||||
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0
|
NEXT_PUBLIC_SUPABASE_PUBLIC_KEY=sb_publishable_ACJWlzQHlZjBrEguHvfOxg_3BJgxAaH
|
||||||
SUPABASE_SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU
|
SUPABASE_SECRET_KEY=sb_secret_N7UND0UgjKTVK-Uodkm0Hg_xSvEMPvz
|
||||||
|
|
||||||
## THIS IS FOR DEVELOPMENT ONLY - DO NOT USE IN PRODUCTION
|
## THIS IS FOR DEVELOPMENT ONLY - DO NOT USE IN PRODUCTION
|
||||||
SUPABASE_DB_WEBHOOK_SECRET=WEBHOOKSECRET
|
SUPABASE_DB_WEBHOOK_SECRET=WEBHOOKSECRET
|
||||||
|
|||||||
@@ -60,14 +60,14 @@
|
|||||||
"@tanstack/react-query": "catalog:",
|
"@tanstack/react-query": "catalog:",
|
||||||
"@tanstack/react-table": "^8.21.3",
|
"@tanstack/react-table": "^8.21.3",
|
||||||
"date-fns": "^4.1.0",
|
"date-fns": "^4.1.0",
|
||||||
"lucide-react": "^0.556.0",
|
"lucide-react": "^0.561.0",
|
||||||
"next": "catalog:",
|
"next": "catalog:",
|
||||||
"next-sitemap": "^4.2.3",
|
"next-sitemap": "^4.2.3",
|
||||||
"next-themes": "0.4.6",
|
"next-themes": "0.4.6",
|
||||||
"react": "catalog:",
|
"react": "catalog:",
|
||||||
"react-dom": "catalog:",
|
"react-dom": "catalog:",
|
||||||
"react-hook-form": "^7.68.0",
|
"react-hook-form": "^7.68.0",
|
||||||
"react-i18next": "^16.4.0",
|
"react-i18next": "^16.5.0",
|
||||||
"recharts": "2.15.3",
|
"recharts": "2.15.3",
|
||||||
"tailwind-merge": "^3.4.0",
|
"tailwind-merge": "^3.4.0",
|
||||||
"tw-animate-css": "catalog:",
|
"tw-animate-css": "catalog:",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "next-supabase-saas-kit-turbo",
|
"name": "next-supabase-saas-kit-turbo",
|
||||||
"version": "2.21.14",
|
"version": "2.21.15",
|
||||||
"private": true,
|
"private": true,
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -38,6 +38,11 @@
|
|||||||
},
|
},
|
||||||
"prettier": "@kit/prettier-config",
|
"prettier": "@kit/prettier-config",
|
||||||
"packageManager": "pnpm@10.19.0",
|
"packageManager": "pnpm@10.19.0",
|
||||||
|
"pnpm": {
|
||||||
|
"overrides": {
|
||||||
|
"zod": "3.25.76"
|
||||||
|
}
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@manypkg/cli": "^0.25.1",
|
"@manypkg/cli": "^0.25.1",
|
||||||
"@turbo/gen": "^2.6.3",
|
"@turbo/gen": "^2.6.3",
|
||||||
|
|||||||
@@ -29,11 +29,11 @@
|
|||||||
"@supabase/supabase-js": "catalog:",
|
"@supabase/supabase-js": "catalog:",
|
||||||
"@types/react": "catalog:",
|
"@types/react": "catalog:",
|
||||||
"date-fns": "^4.1.0",
|
"date-fns": "^4.1.0",
|
||||||
"lucide-react": "^0.556.0",
|
"lucide-react": "^0.561.0",
|
||||||
"next": "catalog:",
|
"next": "catalog:",
|
||||||
"react": "catalog:",
|
"react": "catalog:",
|
||||||
"react-hook-form": "^7.68.0",
|
"react-hook-form": "^7.68.0",
|
||||||
"react-i18next": "^16.4.0",
|
"react-i18next": "^16.5.0",
|
||||||
"zod": "catalog:"
|
"zod": "catalog:"
|
||||||
},
|
},
|
||||||
"typesVersions": {
|
"typesVersions": {
|
||||||
|
|||||||
@@ -38,13 +38,13 @@
|
|||||||
"@tanstack/react-query": "catalog:",
|
"@tanstack/react-query": "catalog:",
|
||||||
"@types/react": "catalog:",
|
"@types/react": "catalog:",
|
||||||
"@types/react-dom": "catalog:",
|
"@types/react-dom": "catalog:",
|
||||||
"lucide-react": "^0.556.0",
|
"lucide-react": "^0.561.0",
|
||||||
"next": "catalog:",
|
"next": "catalog:",
|
||||||
"next-themes": "0.4.6",
|
"next-themes": "0.4.6",
|
||||||
"react": "catalog:",
|
"react": "catalog:",
|
||||||
"react-dom": "catalog:",
|
"react-dom": "catalog:",
|
||||||
"react-hook-form": "^7.68.0",
|
"react-hook-form": "^7.68.0",
|
||||||
"react-i18next": "^16.4.0",
|
"react-i18next": "^16.5.0",
|
||||||
"zod": "catalog:"
|
"zod": "catalog:"
|
||||||
},
|
},
|
||||||
"prettier": "@kit/prettier-config",
|
"prettier": "@kit/prettier-config",
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
"@tanstack/react-query": "catalog:",
|
"@tanstack/react-query": "catalog:",
|
||||||
"@tanstack/react-table": "^8.21.3",
|
"@tanstack/react-table": "^8.21.3",
|
||||||
"@types/react": "catalog:",
|
"@types/react": "catalog:",
|
||||||
"lucide-react": "^0.556.0",
|
"lucide-react": "^0.561.0",
|
||||||
"next": "catalog:",
|
"next": "catalog:",
|
||||||
"react": "catalog:",
|
"react": "catalog:",
|
||||||
"react-dom": "catalog:",
|
"react-dom": "catalog:",
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ export function AdminCreateUserDialog(props: React.PropsWithChildren) {
|
|||||||
const [error, setError] = useState<string | null>(null);
|
const [error, setError] = useState<string | null>(null);
|
||||||
const [open, setOpen] = useState(false);
|
const [open, setOpen] = useState(false);
|
||||||
|
|
||||||
const form = useForm<CreateUserSchemaType>({
|
const form = useForm({
|
||||||
resolver: zodResolver(CreateUserSchema),
|
resolver: zodResolver(CreateUserSchema),
|
||||||
defaultValues: {
|
defaultValues: {
|
||||||
email: '',
|
email: '',
|
||||||
|
|||||||
@@ -32,10 +32,10 @@
|
|||||||
"@supabase/supabase-js": "catalog:",
|
"@supabase/supabase-js": "catalog:",
|
||||||
"@tanstack/react-query": "catalog:",
|
"@tanstack/react-query": "catalog:",
|
||||||
"@types/react": "catalog:",
|
"@types/react": "catalog:",
|
||||||
"lucide-react": "^0.556.0",
|
"lucide-react": "^0.561.0",
|
||||||
"next": "catalog:",
|
"next": "catalog:",
|
||||||
"react-hook-form": "^7.68.0",
|
"react-hook-form": "^7.68.0",
|
||||||
"react-i18next": "^16.4.0",
|
"react-i18next": "^16.5.0",
|
||||||
"sonner": "^2.0.7",
|
"sonner": "^2.0.7",
|
||||||
"zod": "catalog:"
|
"zod": "catalog:"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ export function PasswordResetRequestContainer(params: {
|
|||||||
const error = resetPasswordMutation.error;
|
const error = resetPasswordMutation.error;
|
||||||
const success = resetPasswordMutation.data;
|
const success = resetPasswordMutation.data;
|
||||||
|
|
||||||
const form = useForm<z.infer<typeof PasswordResetSchema>>({
|
const form = useForm({
|
||||||
resolver: zodResolver(PasswordResetSchema),
|
resolver: zodResolver(PasswordResetSchema),
|
||||||
defaultValues: {
|
defaultValues: {
|
||||||
email: '',
|
email: '',
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ export function PasswordSignInForm({
|
|||||||
}) {
|
}) {
|
||||||
const { t } = useTranslation('auth');
|
const { t } = useTranslation('auth');
|
||||||
|
|
||||||
const form = useForm<z.infer<typeof PasswordSignInSchema>>({
|
const form = useForm({
|
||||||
resolver: zodResolver(PasswordSignInSchema),
|
resolver: zodResolver(PasswordSignInSchema),
|
||||||
defaultValues: {
|
defaultValues: {
|
||||||
email: '',
|
email: '',
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ import { ExclamationTriangleIcon } from '@radix-ui/react-icons';
|
|||||||
import { useForm } from 'react-hook-form';
|
import { useForm } from 'react-hook-form';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { toast } from 'sonner';
|
import { toast } from 'sonner';
|
||||||
import type { z } from 'zod';
|
|
||||||
|
|
||||||
import { useUpdateUser } from '@kit/supabase/hooks/use-update-user-mutation';
|
import { useUpdateUser } from '@kit/supabase/hooks/use-update-user-mutation';
|
||||||
import { Alert, AlertDescription, AlertTitle } from '@kit/ui/alert';
|
import { Alert, AlertDescription, AlertTitle } from '@kit/ui/alert';
|
||||||
@@ -34,7 +33,7 @@ export function UpdatePasswordForm(params: {
|
|||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
const form = useForm<z.infer<typeof PasswordResetSchema>>({
|
const form = useForm({
|
||||||
resolver: zodResolver(PasswordResetSchema),
|
resolver: zodResolver(PasswordResetSchema),
|
||||||
defaultValues: {
|
defaultValues: {
|
||||||
password: '',
|
password: '',
|
||||||
|
|||||||
@@ -22,10 +22,10 @@
|
|||||||
"@supabase/supabase-js": "catalog:",
|
"@supabase/supabase-js": "catalog:",
|
||||||
"@tanstack/react-query": "catalog:",
|
"@tanstack/react-query": "catalog:",
|
||||||
"@types/react": "catalog:",
|
"@types/react": "catalog:",
|
||||||
"lucide-react": "^0.556.0",
|
"lucide-react": "^0.561.0",
|
||||||
"react": "catalog:",
|
"react": "catalog:",
|
||||||
"react-dom": "catalog:",
|
"react-dom": "catalog:",
|
||||||
"react-i18next": "^16.4.0"
|
"react-i18next": "^16.5.0"
|
||||||
},
|
},
|
||||||
"prettier": "@kit/prettier-config",
|
"prettier": "@kit/prettier-config",
|
||||||
"typesVersions": {
|
"typesVersions": {
|
||||||
|
|||||||
@@ -43,12 +43,12 @@
|
|||||||
"@types/react-dom": "catalog:",
|
"@types/react-dom": "catalog:",
|
||||||
"class-variance-authority": "^0.7.1",
|
"class-variance-authority": "^0.7.1",
|
||||||
"date-fns": "^4.1.0",
|
"date-fns": "^4.1.0",
|
||||||
"lucide-react": "^0.556.0",
|
"lucide-react": "^0.561.0",
|
||||||
"next": "catalog:",
|
"next": "catalog:",
|
||||||
"react": "catalog:",
|
"react": "catalog:",
|
||||||
"react-dom": "catalog:",
|
"react-dom": "catalog:",
|
||||||
"react-hook-form": "^7.68.0",
|
"react-hook-form": "^7.68.0",
|
||||||
"react-i18next": "^16.4.0",
|
"react-i18next": "^16.5.0",
|
||||||
"zod": "catalog:"
|
"zod": "catalog:"
|
||||||
},
|
},
|
||||||
"prettier": "@kit/prettier-config",
|
"prettier": "@kit/prettier-config",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import { isRedirectError } from 'next/dist/client/components/redirect-error';
|
|||||||
|
|
||||||
import { zodResolver } from '@hookform/resolvers/zod';
|
import { zodResolver } from '@hookform/resolvers/zod';
|
||||||
import { useForm } from 'react-hook-form';
|
import { useForm } from 'react-hook-form';
|
||||||
import { z } from 'zod';
|
|
||||||
|
|
||||||
import { Alert, AlertDescription, AlertTitle } from '@kit/ui/alert';
|
import { Alert, AlertDescription, AlertTitle } from '@kit/ui/alert';
|
||||||
import { Button } from '@kit/ui/button';
|
import { Button } from '@kit/ui/button';
|
||||||
@@ -65,7 +64,7 @@ function CreateOrganizationAccountForm(props: { onClose: () => void }) {
|
|||||||
const [error, setError] = useState<boolean>();
|
const [error, setError] = useState<boolean>();
|
||||||
const [pending, startTransition] = useTransition();
|
const [pending, startTransition] = useTransition();
|
||||||
|
|
||||||
const form = useForm<z.infer<typeof CreateTeamSchema>>({
|
const form = useForm({
|
||||||
defaultValues: {
|
defaultValues: {
|
||||||
name: '',
|
name: '',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -75,11 +75,7 @@ function TransferOrganizationOwnershipForm({
|
|||||||
const [error, setError] = useState<boolean>();
|
const [error, setError] = useState<boolean>();
|
||||||
const { data: user } = useUser();
|
const { data: user } = useUser();
|
||||||
|
|
||||||
const form = useForm<{
|
const form = useForm({
|
||||||
accountId: string;
|
|
||||||
userId: string;
|
|
||||||
otp: string;
|
|
||||||
}>({
|
|
||||||
resolver: zodResolver(TransferOwnershipConfirmationSchema),
|
resolver: zodResolver(TransferOwnershipConfirmationSchema),
|
||||||
defaultValues: {
|
defaultValues: {
|
||||||
accountId,
|
accountId,
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
"next": "catalog:",
|
"next": "catalog:",
|
||||||
"react": "catalog:",
|
"react": "catalog:",
|
||||||
"react-dom": "catalog:",
|
"react-dom": "catalog:",
|
||||||
"react-i18next": "^16.4.0"
|
"react-i18next": "^16.5.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"i18next": "25.7.2",
|
"i18next": "25.7.2",
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
"./config/server": "./src/sentry.client.server.ts"
|
"./config/server": "./src/sentry.client.server.ts"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sentry/nextjs": "^10.29.0"
|
"@sentry/nextjs": "^10.30.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@kit/eslint-config": "workspace:*",
|
"@kit/eslint-config": "workspace:*",
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ export function VerifyOtpForm({
|
|||||||
const [, setVerificationSuccess] = useState(false);
|
const [, setVerificationSuccess] = useState(false);
|
||||||
|
|
||||||
// Email form
|
// Email form
|
||||||
const emailForm = useForm<z.infer<typeof SendOtpSchema>>({
|
const emailForm = useForm({
|
||||||
resolver: zodResolver(SendOtpSchema),
|
resolver: zodResolver(SendOtpSchema),
|
||||||
defaultValues: {
|
defaultValues: {
|
||||||
email,
|
email,
|
||||||
@@ -77,7 +77,7 @@ export function VerifyOtpForm({
|
|||||||
});
|
});
|
||||||
|
|
||||||
// OTP verification form
|
// OTP verification form
|
||||||
const otpForm = useForm<z.infer<typeof VerifyOtpSchema>>({
|
const otpForm = useForm({
|
||||||
resolver: zodResolver(VerifyOtpSchema),
|
resolver: zodResolver(VerifyOtpSchema),
|
||||||
defaultValues: {
|
defaultValues: {
|
||||||
otp: '',
|
otp: '',
|
||||||
|
|||||||
@@ -24,10 +24,10 @@ NB: imports must follow the convention "@kit/ui/<name>", no matter the folder th
|
|||||||
|
|
||||||
- Use **Tailwind CSS v4** with semantic classes
|
- Use **Tailwind CSS v4** with semantic classes
|
||||||
- Prefer Shadcn-ui classes like `bg-background`, `text-muted-foreground`
|
- Prefer Shadcn-ui classes like `bg-background`, `text-muted-foreground`
|
||||||
- Use `cn()` utility from `@kit/ui/cn` for class merging
|
- Use `cn()` utility from `@kit/ui/utils` for class merging
|
||||||
|
|
||||||
```tsx
|
```tsx
|
||||||
import { cn } from '@kit/ui/cn';
|
import { cn } from '@kit/ui/utils';
|
||||||
|
|
||||||
function MyComponent({ className }) {
|
function MyComponent({ className }) {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -21,10 +21,10 @@ import { Trans } from '@kit/ui/trans';
|
|||||||
|
|
||||||
- Use **Tailwind CSS v4** with semantic classes
|
- Use **Tailwind CSS v4** with semantic classes
|
||||||
- Prefer Shadcn-ui classes like `bg-background`, `text-muted-foreground`
|
- Prefer Shadcn-ui classes like `bg-background`, `text-muted-foreground`
|
||||||
- Use `cn()` utility from `@kit/ui/cn` for class merging
|
- Use `cn()` utility from `@kit/ui/utils` for class merging
|
||||||
|
|
||||||
```tsx
|
```tsx
|
||||||
import { cn } from '@kit/ui/cn';
|
import { cn } from '@kit/ui/utils';
|
||||||
|
|
||||||
function MyComponent({ className }) {
|
function MyComponent({ className }) {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"cmdk": "1.1.1",
|
"cmdk": "1.1.1",
|
||||||
"input-otp": "1.4.2",
|
"input-otp": "1.4.2",
|
||||||
"lucide-react": "^0.556.0",
|
"lucide-react": "^0.561.0",
|
||||||
"radix-ui": "1.4.3",
|
"radix-ui": "1.4.3",
|
||||||
"react-dropzone": "^14.3.8",
|
"react-dropzone": "^14.3.8",
|
||||||
"react-top-loading-bar": "3.0.2",
|
"react-top-loading-bar": "3.0.2",
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
"prettier": "^3.7.4",
|
"prettier": "^3.7.4",
|
||||||
"react-day-picker": "^9.12.0",
|
"react-day-picker": "^9.12.0",
|
||||||
"react-hook-form": "^7.68.0",
|
"react-hook-form": "^7.68.0",
|
||||||
"react-i18next": "^16.4.0",
|
"react-i18next": "^16.5.0",
|
||||||
"sonner": "^2.0.7",
|
"sonner": "^2.0.7",
|
||||||
"tailwindcss": "catalog:",
|
"tailwindcss": "catalog:",
|
||||||
"tailwindcss-animate": "^1.0.7",
|
"tailwindcss-animate": "^1.0.7",
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export function NewsletterSignup({
|
|||||||
className,
|
className,
|
||||||
...props
|
...props
|
||||||
}: NewsletterSignupProps) {
|
}: NewsletterSignupProps) {
|
||||||
const form = useForm<NewsletterFormValues>({
|
const form = useForm({
|
||||||
resolver: zodResolver(NewsletterFormSchema),
|
resolver: zodResolver(NewsletterFormSchema),
|
||||||
defaultValues: {
|
defaultValues: {
|
||||||
email: '',
|
email: '',
|
||||||
|
|||||||
653
pnpm-lock.yaml
generated
653
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -7,19 +7,19 @@ catalog:
|
|||||||
'@next/bundle-analyzer': 16.0.10
|
'@next/bundle-analyzer': 16.0.10
|
||||||
'@next/eslint-plugin-next': 16.0.10
|
'@next/eslint-plugin-next': 16.0.10
|
||||||
'@supabase/supabase-js': 2.87.1
|
'@supabase/supabase-js': 2.87.1
|
||||||
'@tailwindcss/postcss': 4.1.17
|
'@tailwindcss/postcss': 4.1.18
|
||||||
'@tanstack/react-query': 5.90.12
|
'@tanstack/react-query': 5.90.12
|
||||||
'@types/node': 24.10.2
|
'@types/node': 25.0.1
|
||||||
'@types/react': 19.2.7
|
'@types/react': 19.2.7
|
||||||
'@types/react-dom': 19.2.3
|
'@types/react-dom': 19.2.3
|
||||||
eslint-config-next: 16.0.10
|
eslint-config-next: 16.0.10
|
||||||
next: 16.0.10
|
next: 16.0.10
|
||||||
react: 19.2.3
|
react: 19.2.3
|
||||||
react-dom: 19.2.3
|
react-dom: 19.2.3
|
||||||
supabase: 2.65.7
|
supabase: 2.67.0
|
||||||
tailwindcss: 4.1.17
|
tailwindcss: 4.1.18
|
||||||
tw-animate-css: 1.4.0
|
tw-animate-css: 1.4.0
|
||||||
zod: 3.25.74
|
zod: 3.25.76
|
||||||
|
|
||||||
onlyBuiltDependencies:
|
onlyBuiltDependencies:
|
||||||
- '@tailwindcss/oxide'
|
- '@tailwindcss/oxide'
|
||||||
|
|||||||
Reference in New Issue
Block a user