-
Notifications
You must be signed in to change notification settings - Fork 17
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
Support NotLoggedIn
status on connection page
#787
Conversation
de630ec
to
020ee44
Compare
020ee44
to
41e1522
Compare
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.
have some suggestions about message types i will pr to this branch
41e1522
to
5be472c
Compare
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.
cc @grod220 for approval
some of this diff is a bit larger than needs be
improved popup etc
importantly: failure reasons no longer prax-specific, part of client package
@@ -1,3 +1,8 @@ | |||
export enum PenumbraRequestFailure { |
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.
failure reasons not prax-specific
@@ -1,37 +1,30 @@ | |||
import { sessionExtStorage } from '@penumbra-zone/storage'; | |||
import { PopupMessage, PopupRequest, PopupResponse, PopupType } from './message/popup'; | |||
import { PopupMessage, PopupRequest, PopupType } from './message/popup'; |
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.
non-response handled in popup launcher
@@ -61,6 +61,7 @@ export const createOriginApprovalSlice = (): SliceCreator<OriginApprovalSlice> = | |||
data: { | |||
choice, | |||
origin: requestOrigin, | |||
date: Date.now(), |
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.
slice just returns an actual complete record now
void spawnExtensionPopup(popUrl.href); | ||
throw new ConnectError('User must login to extension', Code.Unauthenticated); | ||
} | ||
|
||
switch (pop) { |
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.
needs login composable per popup type (future popups may not need it?)
Closes #775
We now handle the not-logged-in state and surface the error to the user on the connection page. After discussion in web weekly, agreed to simply throw error instead of handling login-redirect logic done in #772.