This repository has been archived by the owner on Jan 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
IRO-1307 - Address UI lag in rendering Magic Link state #126
Merged
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
8592cf1
try summa this on staging
brekk f882adf
more cleanups
brekk c6cf8fa
standardize more
brekk c05c733
actually add constants
brekk 603cdf6
more live, more test, more go
brekk bbf39fb
try swapping usage to useRouter hook
brekk 3526977
back to basics
brekk 79e3527
one more
brekk 7ecbe28
cleanups
brekk fe87fb5
cheat the state
brekk 4fe5335
quicktest
brekk a7c815c
logic
brekk 3ba8628
do it properly
brekk f01446e
ensure data flows from logout
brekk 853f834
try this again
brekk a25b8f9
logouttery
brekk 9638564
bill o'reilly
brekk fe24ff5
B-A-N-A-N-A-S
brekk 0954903
tired of debugging someone else's fucked up product
brekk 9b9ca37
clusterfuckery
brekk 0cef9b9
SNATS -> Situation Normal All TS
brekk 379cb60
poison pill
brekk 2c4a42b
again again
brekk 44f23e3
address some feedback
brekk 75f105f
more feedback address-al
brekk d369a1c
more feedback address-al
brekk 653d0c8
more feedback addressed
brekk d6df6cd
more mor mo m
brekk 2fb00af
addressing feedback broke something
brekk 39bdc2a
suture
brekk 3d0ad4d
test this first
brekk f710e1c
settting status caused a unloadable page, try this
brekk d7d82db
back in time
brekk 86f1e1f
back in time again
brekk 3513ef4
logout cleanup then test
brekk 8b784ab
try using Router again
brekk 329e608
eschew more
brekk c704074
piecemeal
brekk 596ceae
try removing from useLogin
brekk f4dfa39
Keep using useRouter in login
brekk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,18 @@ | ||
export const NO_MAGIC_INSTANCE = 1000 | ||
export const NO_MAGIC_TOKEN = 1001 | ||
export const NO_MAGIC_USER = 1002 | ||
|
||
export const NOT_ISOMORPHIC = 2000 | ||
|
||
export const UNABLE_TO_LOGIN = 3000 | ||
|
||
export const ENDPOINT_UNAVAILABLE = 4000 | ||
|
||
export const ERRORS = { | ||
NO_MAGIC_INSTANCE, | ||
NO_MAGIC_TOKEN, | ||
NO_MAGIC_USER, | ||
NOT_ISOMORPHIC, | ||
UNABLE_TO_LOGIN, | ||
ENDPOINT_UNAVAILABLE, | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I see this was just copied from unwrapping, so it doesn't necessarily have to be fixed here, but this
any
cast should be deleted by expanding thehasGraffiti
conditional down where it's used.I don't think we actually want the
hasGraffiti
check here -- if someone manages to log in but has an empty string graffiti for some reason, they'll see theLogin
button, but when they click it, they'll be redirected to leaderboard since already logged in.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.
This one is because
<UserButton />
's type as defined is:But TypeScript yells about
id
:More than happy to change if you know a good approach; but I didn't wanna change
ApiUserMetadata
and I figuredextend
ing it would be correct?