-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(one-to-one): generally improve the UI and UX of auth forms (#5)
* fix(one-to-one): keep auth forms disabled, validate state responses are what we expect * fix(one-to-one): an undefined state is to be expected * feat(one-to-one): use in-page form rather than a dialog for magic link auth * fix(one-to-one): improve appearance of cards on mobile (by removing their border and shadow) for auth pages * chore(release): changeset * chore(one-to-one): prettier
- Loading branch information
1 parent
66db1af
commit 571ff26
Showing
10 changed files
with
109 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"next-auth-template-one-to-one": minor | ||
"next-auth-template": patch | ||
--- | ||
|
||
feat(one-to-one): generally improve the UI and UX of auth forms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { z } from "zod" | ||
|
||
export const serverActionResponseSchema = z.object({ | ||
status: z.enum(["success", "error"]), | ||
messages: z.array(z.object({ | ||
code: z.string().optional(), | ||
title: z.string(), | ||
body: z.string(), | ||
})).optional(), | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,4 @@ | ||
export interface ServerActionResponse { | ||
status: "success" | "error" | ||
messages?: [ | ||
{ | ||
code?: string | ||
title: string | ||
body: string | ||
}, | ||
] | ||
} | ||
import { z } from "zod" | ||
import { serverActionResponseSchema } from "@/lib/schemas" | ||
|
||
export type ServerActionResponse = z.infer<typeof serverActionResponseSchema> |