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

Check for all notifications page while opening new tab #170

Merged
merged 1 commit into from Feb 10, 2019

Conversation

notlmn
Copy link
Collaborator

@notlmn notlmn commented Feb 9, 2019

Closes #167

@notlmn
Copy link
Collaborator Author

notlmn commented Feb 9, 2019

Already tested that it works, but pinging @RomanKornev for review anyway.

Will merge in 24 hours or before if no more issues arise.

const currentWindow = true;
return browser.tabs.query({currentWindow, url});
return browser.tabs.query({currentWindow, url: urlList});

Choose a reason for hiding this comment

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

That still opens the default URL.
It correctly finds ?all=1 tab and reloads it to url which is default here:

return updateTab(tabs[0].id, {url, active: true});

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

By definition, clicking on the extension icon should take you to the "notifications" page.

But when you have an "all notifications" page page or a "notifications" page open, this will take to the actual notifications page as intended by the click action on the extension icon.

Notifications page is where you generally go to find the recent/new notifications not the all notifications page.

Choose a reason for hiding this comment

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

Can we add an option to customize that as well? Like "Use participating" that opens /participating but for ?all=1. So that clicking from anywhere would open all notifications.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Well we would end up having a lot of options for each little thing if we think of them that way.

IMO this should be fine, and not that much of a problem as most of the time people work in "current notifications" page.

I'll merge this for now, but if you really think it seriously is, then feel free to open an issue, but we can not guarantee to add more behavior because of request from one person.

🤞

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.

None yet

2 participants