Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/about-menu/about-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<p class="links">
<a href="https://github.com/Automattic/studio" target="_blank">GitHub</a>
<span class="separator">&middot;</span>
<a href="https://github.com/Automattic/studio/issues/new/choose" target="_blank">Report a bug</a>
<a href="https://github.com/Automattic/studio/issues/new/choose" target="_blank">Share Feedback</a>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It would be great if we translate the strings of the About screen. However, this would imply refactoring to render React components, as currently, it's a plain HTML view.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

As a follow-up, I created a GitHub issue to address this.

</p>
</div>
<script>
Expand Down
4 changes: 4 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export const WINDOWS_TITLEBAR_HEIGHT = 32;
export const ABOUT_WINDOW_WIDTH = 284;
export const ABOUT_WINDOW_HEIGHT = 284;
export const STUDIO_DOCS_URL = `https://developer.wordpress.com/docs/developer-tools/studio/`;
export const BUG_REPORT_URL =
'https://github.com/Automattic/studio/issues/new?assignees=&labels=Needs+triage%2C%5BType%5D+Bug&projects=&template=bug_report.yml';
export const FEATURE_REQUEST_URL =
'https://github.com/Automattic/studio/issues/new?assignees=&labels=%5BType%5D+Feature+Request&projects=&template=feature_request.yml&title=Feature+Request%3A';
export const WPCOM_PROFILE_URL = `https://wordpress.com/me`;
// OAuth constants
export const CLIENT_ID = '95109';
Expand Down
15 changes: 14 additions & 1 deletion src/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from 'electron';
import { __ } from '@wordpress/i18n';
import { openAboutWindow } from './about-menu/open-about-menu';
import { STUDIO_DOCS_URL } from './constants';
import { BUG_REPORT_URL, FEATURE_REQUEST_URL, STUDIO_DOCS_URL } from './constants';
import { withMainWindow } from './main-window';
import { isUpdateReadyToInstall, manualCheckForUpdates } from './updates';

Expand Down Expand Up @@ -165,6 +165,19 @@ function getAppMenu( mainWindow: BrowserWindow | null ) {
shell.openExternal( STUDIO_DOCS_URL );
},
},
{ type: 'separator' },
{
label: __( 'Report an Issue' ),
click: () => {
shell.openExternal( BUG_REPORT_URL );
},
},
{
label: __( 'Propose a Feature' ),
click: () => {
shell.openExternal( FEATURE_REQUEST_URL );
},
},
],
},
] );
Expand Down