-
Notifications
You must be signed in to change notification settings - Fork 10
feat: introduce invites and allow for inviting new users without creating an account for them #1155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 103 commits
9ecfcad
172d3a9
c8e3eeb
e29087d
0a2bef9
d2dcbb1
694ae39
559190a
6c960a8
21ade5e
13b872c
c0d3234
fbdc4fb
6d93602
6bb8941
fa3183e
6e7e403
a09bb82
eb13c68
6c15055
6d402b7
0d440e6
0fa890b
51bbfc7
6d95e6f
fb08de2
a20e894
a9cc0d3
eec1dc0
9e6ba83
242e8d6
82d9f57
a7c9336
f65c72a
09a5b38
ada70e6
5d67d67
f191e0b
94b787e
1bbb8fb
9a0becb
ad02bad
47d5450
bc56733
fe541e0
2f2c8fc
728770e
ac5d8df
17471aa
b020820
dfb1051
1d9357a
7a704fb
24a9219
87c3d24
3711bbb
6b2bfcc
0ae30fd
d33b4be
e4b3610
5828995
67c8d2d
50f8132
5b1442d
02bbdd1
6dfa533
94732fa
2448c82
a0f94c4
318e96c
622af01
e352a1c
20ce3c5
8b1a05f
358b23f
51254fa
87fd7e8
f0b66e6
d8da1f4
7675ed4
28d355c
defbc05
a04c178
b849af4
40f2953
b4a7545
a4f52a1
d5586e9
ea8962c
8c1de60
b3f02f9
a569016
6b0c8c3
7c9ccab
0715176
918bb0a
1540bc6
693dcfc
378c6b4
2014b25
34113fc
b1ecd73
f53f0b7
0920840
b833860
b71dba1
651cc35
0305360
345e9d7
56b359b
a7d8bdf
620325e
81c3562
82f330e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| app/c/\[communitySlug\]/developers/docs/stoplight.styles.css | ||
| app/c/\[communitySlug\]/developers/docs/stoplight.styles.css | ||
| vitest-bench.local.json |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,14 +3,17 @@ import { redirect } from "next/navigation"; | |
|
|
||
| import { LAST_VISITED_COOKIE } from "~/app/components/LastVisitedCommunity/constants"; | ||
| import { getLoginData } from "~/lib/authentication/loginData"; | ||
| import { Notice } from "../../components/Notice"; | ||
| import LoginForm from "./LoginForm"; | ||
|
|
||
| export default async function Login({ | ||
| searchParams, | ||
| }: { | ||
| searchParams: { | ||
| searchParams: Promise<{ | ||
| error?: string; | ||
| }; | ||
| notice?: string; | ||
| body?: string; | ||
| }>; | ||
| }) { | ||
| const { user } = await getLoginData(); | ||
|
|
||
|
|
@@ -27,9 +30,13 @@ export default async function Login({ | |
| redirect("/settings"); | ||
| } | ||
|
|
||
| const { notice, error, body } = await searchParams; | ||
|
|
||
| return ( | ||
| <div className="mx-auto max-w-sm"> | ||
| <LoginForm /> | ||
| {notice && <Notice type="notice" title={notice} body={body} />} | ||
| {error && <Notice type="error" title={error} body={body} />} | ||
|
Comment on lines
+38
to
+39
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is also a new addition: the login screen now can display notices. by default, if redirected to here bc of
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. big improvement, i think we'll use this a lot! |
||
| {/* <div className="text-gray-600 text-center mt-6"> | ||
| Don't have an account?{" "} | ||
| <Link | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bc i want to track who invited a user through an email action, if any