-
Notifications
You must be signed in to change notification settings - Fork 63
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: add open calendar button #457
base: main
Are you sure you want to change the base?
feat: add open calendar button #457
Conversation
ee479bd
to
1171c5e
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.
LGTM but I will need @Samathingamajig opinion on one thing: This button does not check if calendar tab already exists, so it just opens a new calendar tab every time it is clicked (unlike the calendar button in the extension popup). We do not have a fix (clicking the button 2-3 times in a short period should open the calendar) but what should we do with this PR in the meantime?
I'm basically using the same behavior as the settings button in the main calendar tab, which opens a new settings tab each time it is clicked. A potential fix would be to replace/modify the function |
Please fix merge conflicts |
done |
/** | ||
* Opens the calendar page in a new tab. | ||
* @returns A promise that resolves when the options page is opened. | ||
*/ | ||
const handleOpenCalendar = async (): Promise<void> => { | ||
const url = chrome.runtime.getURL('/calendar.html'); | ||
await openTabFromContentScript(url); | ||
}; | ||
|
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.
Seeing as this is a useful global util, we're planning on moving it somewhere else.
This PR resolves issue #424.
Adds a button to go to the Calendar page from the Settings page without opening the extension.
Additionally, I adjusted the settings page header to match the Figma (convert from ALL CAPS to Normal Case).
Before:
After:
This change is