Update Next.js version across dependencies
The Next.js version has been updated across multiple dependencies in the pnpm-lock file. This ensures consistency, removes instances of the canary version, and aligns all packages to use the stable 14.2.0 release.
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
"@types/react": "^18.2.75",
|
||||
"date-fns": "^3.6.0",
|
||||
"lucide-react": "^0.367.0",
|
||||
"next": "14.2.0-canary.65",
|
||||
"next": "14.2.0",
|
||||
"react": "18.2.0",
|
||||
"react-hook-form": "^7.51.2",
|
||||
"react-i18next": "^14.1.0",
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
"@types/react": "^18.2.75",
|
||||
"@types/react-dom": "^18.2.22",
|
||||
"lucide-react": "^0.367.0",
|
||||
"next": "14.2.0-canary.65",
|
||||
"next": "14.2.0",
|
||||
"next-themes": "0.3.0",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
|
||||
@@ -98,6 +98,7 @@ export function AccountSelector({
|
||||
<Popover open={open} onOpenChange={setOpen}>
|
||||
<PopoverTrigger asChild>
|
||||
<Button
|
||||
data-test={'account-selector-trigger'}
|
||||
size={collapsed ? 'icon' : 'default'}
|
||||
variant="ghost"
|
||||
role="combobox"
|
||||
@@ -179,6 +180,7 @@ export function AccountSelector({
|
||||
<CommandGroup heading={<Trans i18nKey={'teams:yourTeams'} />}>
|
||||
{(accounts ?? []).map((account) => (
|
||||
<CommandItem
|
||||
data-test={'account-selector-team-' + account.value}
|
||||
className={'group'}
|
||||
key={account.value}
|
||||
value={account.value ?? ''}
|
||||
@@ -224,6 +226,7 @@ export function AccountSelector({
|
||||
<If condition={features.enableTeamCreation}>
|
||||
<CommandGroup>
|
||||
<Button
|
||||
data-test={'create-team-account-trigger'}
|
||||
variant="ghost"
|
||||
className="w-full justify-start"
|
||||
onClick={() => {
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
"@tanstack/react-table": "^8.15.3",
|
||||
"@types/react": "^18.2.75",
|
||||
"lucide-react": "^0.367.0",
|
||||
"next": "14.2.0-canary.65",
|
||||
"next": "14.2.0",
|
||||
"react": "18.2.0",
|
||||
"react-hook-form": "^7.51.2",
|
||||
"zod": "^3.22.4"
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
"@tanstack/react-query": "5.29.0",
|
||||
"@types/react": "^18.2.75",
|
||||
"lucide-react": "^0.367.0",
|
||||
"next": "14.2.0-canary.65",
|
||||
"next": "14.2.0",
|
||||
"react-hook-form": "^7.51.2",
|
||||
"react-i18next": "^14.1.0",
|
||||
"sonner": "^1.4.41",
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
"class-variance-authority": "^0.7.0",
|
||||
"date-fns": "^3.6.0",
|
||||
"lucide-react": "^0.367.0",
|
||||
"next": "14.2.0-canary.65",
|
||||
"next": "14.2.0",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"react-hook-form": "^7.51.2",
|
||||
|
||||
@@ -71,6 +71,7 @@ function CreateOrganizationAccountForm(props: { onClose: () => void }) {
|
||||
return (
|
||||
<Form {...form}>
|
||||
<form
|
||||
data-test={'create-team-form'}
|
||||
onSubmit={form.handleSubmit((data) => {
|
||||
startTransition(async () => {
|
||||
try {
|
||||
|
||||
@@ -92,7 +92,7 @@ function DeleteTeamContainer(props: {
|
||||
<AlertDialog>
|
||||
<AlertDialogTrigger asChild>
|
||||
<Button
|
||||
data-test={'delete-team-button'}
|
||||
data-test={'delete-team-trigger'}
|
||||
type={'button'}
|
||||
variant={'destructive'}
|
||||
>
|
||||
@@ -154,6 +154,7 @@ function DeleteTeamConfirmationForm({
|
||||
<ErrorBoundary fallback={<DeleteTeamErrorAlert />}>
|
||||
<Form {...form}>
|
||||
<form
|
||||
data-test={'delete-team-form'}
|
||||
className={'flex flex-col space-y-4'}
|
||||
action={deleteTeamAccountAction}
|
||||
>
|
||||
@@ -189,7 +190,7 @@ function DeleteTeamConfirmationForm({
|
||||
|
||||
<FormControl>
|
||||
<Input
|
||||
data-test={'delete-team-input-field'}
|
||||
data-test={'delete-team-form-confirm-input'}
|
||||
required
|
||||
type={'text'}
|
||||
autoComplete={'off'}
|
||||
@@ -229,7 +230,7 @@ function DeleteTeamSubmitButton() {
|
||||
|
||||
return (
|
||||
<Button
|
||||
data-test={'confirm-delete-team-button'}
|
||||
data-test={'delete-team-form-confirm-button'}
|
||||
disabled={pending}
|
||||
variant={'destructive'}
|
||||
>
|
||||
|
||||
@@ -40,6 +40,7 @@ export const UpdateTeamAccountNameForm = (props: {
|
||||
<div className={'space-y-8'}>
|
||||
<Form {...form}>
|
||||
<form
|
||||
data-test={'update-team-account-name-form'}
|
||||
className={'flex flex-col space-y-4'}
|
||||
onSubmit={form.handleSubmit((data) => {
|
||||
startTransition(async () => {
|
||||
|
||||
@@ -4,7 +4,6 @@ import { redirect } from 'next/navigation';
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { getLogger } from '@kit/shared/logger';
|
||||
import { requireUser } from '@kit/supabase/require-user';
|
||||
import { getSupabaseServerActionClient } from '@kit/supabase/server-actions-client';
|
||||
|
||||
@@ -31,38 +30,18 @@ export async function createOrganizationAccountAction(
|
||||
redirect(auth.redirectTo);
|
||||
}
|
||||
|
||||
const logger = await getLogger();
|
||||
const userId = auth.data.id;
|
||||
|
||||
const createAccountResponse = await service.createNewOrganizationAccount({
|
||||
const { data, error } = await service.createNewOrganizationAccount({
|
||||
name: accountName,
|
||||
userId,
|
||||
});
|
||||
|
||||
if (createAccountResponse.error) {
|
||||
logger.error(
|
||||
{
|
||||
userId,
|
||||
error: createAccountResponse.error,
|
||||
name: 'accounts',
|
||||
},
|
||||
`Error creating team account`,
|
||||
);
|
||||
|
||||
if (error) {
|
||||
throw new Error('Error creating team account');
|
||||
}
|
||||
|
||||
logger.info(
|
||||
{
|
||||
userId,
|
||||
accountName,
|
||||
name: 'accounts',
|
||||
},
|
||||
`Team account created successfully`,
|
||||
);
|
||||
|
||||
const accountHomePath =
|
||||
TEAM_ACCOUNTS_HOME_PATH + '/' + createAccountResponse.data.slug;
|
||||
const accountHomePath = TEAM_ACCOUNTS_HOME_PATH + '/' + data.slug;
|
||||
|
||||
redirect(accountHomePath);
|
||||
}
|
||||
|
||||
@@ -16,8 +16,24 @@ export class CreateTeamAccountService {
|
||||
|
||||
logger.info(ctx, `Creating new team account...`);
|
||||
|
||||
return await this.client.rpc('create_account', {
|
||||
const { error, data } = await this.client.rpc('create_team_account', {
|
||||
account_name: params.name,
|
||||
});
|
||||
|
||||
if (error) {
|
||||
logger.error(
|
||||
{
|
||||
error,
|
||||
...ctx,
|
||||
},
|
||||
`Error creating team account`,
|
||||
);
|
||||
|
||||
throw new Error('Error creating team account');
|
||||
}
|
||||
|
||||
logger.info(ctx, `Team account created successfully`);
|
||||
|
||||
return { data, error };
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
"@kit/tailwind-config": "workspace:*",
|
||||
"@kit/tsconfig": "workspace:*",
|
||||
"@supabase/supabase-js": "^2.42.0",
|
||||
"next": "14.2.0-canary.65",
|
||||
"next": "14.2.0",
|
||||
"zod": "^3.22.4"
|
||||
},
|
||||
"eslintConfig": {
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
"@supabase/supabase-js": "^2.42.0",
|
||||
"@tanstack/react-query": "5.29.0",
|
||||
"@types/react": "^18.2.75",
|
||||
"next": "14.2.0-canary.65",
|
||||
"next": "14.2.0",
|
||||
"react": "18.2.0",
|
||||
"zod": "^3.22.4"
|
||||
},
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -59,7 +59,7 @@
|
||||
"date-fns": "^3.6.0",
|
||||
"eslint": "^8.57.0",
|
||||
"lucide-react": "^0.367.0",
|
||||
"next": "14.2.0-canary.65",
|
||||
"next": "14.2.0",
|
||||
"next-themes": "0.3.0",
|
||||
"prettier": "^3.2.5",
|
||||
"react-day-picker": "^8.10.0",
|
||||
|
||||
Reference in New Issue
Block a user