-
Notifications
You must be signed in to change notification settings - Fork 1
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
Hosting byop fixes #1828
Hosting byop fixes #1828
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
||
if (!token || !serverId || !email || !provisionalShipId) return false; |
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 prevented all new users from uploading a pier, serverId
and email
were not set if you attempt onboarding in incognito mode or private browsing.
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.
Good catch, serverId will be undefined for new users, but email should be defined after Create Account.
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.
Both are unused and I don't have email in my local storage, just going to keep what is used. token
and provisionalShipId
@@ -73,7 +73,7 @@ export default function Login({ prefilledEmail, redirectAfterLogin }: Props) { | |||
}; | |||
|
|||
const onLogin = async (email: string, password: string) => { | |||
const response = await thirdEarthApi.login(email, password); | |||
const response = await thirdEarthApi.login(email, password, true); |
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.
Not loading the CSEK, caused all claim invite users to not be able to see the Download Realm page in some cases.
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.
Good, it's this check here:
} else if (response.client_side_encryption_key) { |
@@ -36,16 +36,37 @@ const HostingPresenter = () => { | |||
const changeMaintenanceWindowModal = useToggle(false); | |||
const ejectIdModal = useToggle(false); | |||
|
|||
const identities = useMemo(() => ships.map((ship) => ship.patp), [ships]); | |||
const identities = useMemo( | |||
() => ships.map((ship) => ship.patp || ship.title), |
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.
BYOP ships should have a patp, is this covering some case where the user gets to the account page before the BYOP ship has finished booting?
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.
Yes. This has happened in two cases already.
Description
Reviewer Checklist