-
Notifications
You must be signed in to change notification settings - Fork 0
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
Style and icon updates #18
Conversation
const main = async () => { | ||
// Update the extension icon based on whether the user is logged in. | ||
const user = await fetchUser(); | ||
void updateExtensionIcon(Boolean(user)); |
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.
there's this open issue, would it be hard to include it in this PR? https://gitkraken.atlassian.net/browse/GKCS-4724 if not, could you also make a change for it? it doesn't seem too differnt from what's happening here, we just need to determine if the browser is in dark or light mode
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.
@miggy-e I don't have separate light mode and dark mode icons, so I'll save it for when I do. I'll ask Nastya to prepare them
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.
LGTM, there's an open issue that I linked above that seems very similar/linked to this if you want to address it in this PR or in another one
https://gitkraken.atlassian.net/browse/GKCS-4908
The icon updates to a green icon if the user is signed in. We check if the user is signed at two instances:
This means the icon won't update immediately when the user signs in or signs out. Doing so would probably require either message passing or maybe polling. That seems like a bit bunch, but we can add that later if product says they really want it.