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

feat: icon in browser action menu upon version update #935

Merged
merged 6 commits into from
Oct 27, 2020

Conversation

jessicaschilling
Copy link
Contributor

@jessicaschilling jessicaschilling commented Oct 21, 2020

Closes #933.

To do

  • Add icon to browser action menu; icon links to latest release notes in new tab
  • Make that icon only appear upon first load of new version
  • Default "Show Release Notes on Update" in prefs page to off

Note: There was discussion in #933 about changing the browser bar icon itself in some way to indicate the new version. Suggesting we leave this off (at least for now) - we have significant cube icon mods in #662 and I think the cube icon may be "full up" on its ability to convey different states once that issue is implemented.

Screenshot

image

@jessicaschilling
Copy link
Contributor Author

Hi @lidel -- is this enough to get started?
Thanks!

@lidel
Copy link
Member

lidel commented Oct 26, 2020

Thanks! I'll try to wire this up today 🤞

this hides new release notes indicator until new version is  released
and persists it until the newer release shipps

it also converts old opt-out for opening releasenotes in a new tab to an opt-in
@lidel lidel force-pushed the feat/new-version-alert branch from 2fa86be to 5b676e5 Compare October 26, 2020 22:29
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you @jessicaschilling

  • I've wired it up
    • Turned out to be more involved than expected, mostly because choo does not support async render functions: I had to calculate show/hide flag in background page and then send it to the popup.
  • Added migration from opt-out to opt-in
  • If someone opts-in to opening release notes in a new tab, the redundant notification via icon won't be displayed.

Mind double checking if works as expected?

ps. while at it, mind eyeballing in Firefox? I see this weird cut-off, but it could be just my Linux box:

2020-10-26--23-37-41

@jessicaschilling
Copy link
Contributor Author

@lidel -- confirmed everything works as expected in both Chrome and Firefox on Mac. Also saw the same FF visual glitch, and adjusted icons' viewBoxes to compensate. Mind taking one final look on your end?

@lidel
Copy link
Member

lidel commented Oct 27, 2020

Look good in Firefox now, thanks!

@lidel lidel merged commit 139925d into master Oct 27, 2020
@lidel lidel deleted the feat/new-version-alert branch October 27, 2020 21:34
@lidel lidel mentioned this pull request Jan 19, 2021
3 tasks
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.

Don't pop up new tabs on updates
2 participants