Skip to content
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

Merged
merged 5 commits into from
Jan 25, 2024
Merged

Style and icon updates #18

merged 5 commits into from
Jan 25, 2024

Conversation

jdgarcia
Copy link
Contributor

@jdgarcia jdgarcia commented Jan 24, 2024

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:

  1. when the extension background script starts (which happens when the extension is installed or when the browser is opened)
  2. when the popup is opened

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.

const main = async () => {
// Update the extension icon based on whether the user is logged in.
const user = await fetchUser();
void updateExtensionIcon(Boolean(user));
Copy link
Collaborator

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

Copy link
Contributor Author

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

Copy link
Collaborator

@miggy-e miggy-e left a 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

@jdgarcia jdgarcia merged commit c1b2027 into main Jan 25, 2024
1 check passed
@jdgarcia jdgarcia deleted the task/style-updates branch January 25, 2024 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants