A local-first personal finance app
💬 Added Discord link to the help menu for discoverability (#5286)
Michael Clark0085c3b58a56
diff --git a/packages/desktop-client/src/components/HelpMenu.tsx b/packages/desktop-client/src/components/HelpMenu.tsxindex 0a56277e60..5c72c3a09a 100644--- a/packages/desktop-client/src/components/HelpMenu.tsx+++ b/packages/desktop-client/src/components/HelpMenu.tsx@@ -38,7 +38,11 @@ function openDocsForCurrentPage() {window.Actual.openURLInBrowser(getPageDocs(window.location.pathname));}-type HelpMenuItem = 'docs' | 'keyboard-shortcuts' | 'goal-templates';+type HelpMenuItem =+ | 'docs'+ | 'discord'+ | 'keyboard-shortcuts'+ | 'goal-templates';type HelpButtonProps = {onPress?: () => void;@@ -81,6 +85,9 @@ export const HelpMenu = () => {case 'docs':openDocsForCurrentPage();break;+ case 'discord':+ window.Actual.openURLInBrowser('https://discord.gg/pRYNYr4W5A');+ break;case 'keyboard-shortcuts':dispatch(pushModal({ modal: { name: 'keyboard-shortcuts' } }));break;@@ -113,6 +120,10 @@ export const HelpMenu = () => {name: 'docs',text: t('Documentation'),},+ {+ name: 'discord',+ text: t('Community support (Discord)'),+ },{ name: 'keyboard-shortcuts', text: t('Keyboard shortcuts') },...(showGoalTemplates && page === '/budget'? [{ name: 'goal-templates', text: t('Goal templates') }]diff --git a/packages/desktop-electron/menu.ts b/packages/desktop-electron/menu.tsindex ba7c91e545..82d662f73c 100644--- a/packages/desktop-electron/menu.ts+++ b/packages/desktop-electron/menu.ts@@ -174,6 +174,14 @@ export function getMenu();},},+ {+ label: 'Community Support (Discord)',+ click(_menuItem, focusedWin) {+ focusedWin?.webContents.executeJavaScript(+ 'window.open("https://discord.gg/pRYNYr4W5A", "_blank")',+ );+ },+ },{label: 'Keyboard Shortcuts',accelerator: '?',diff --git a/upcoming-release-notes/5286.md b/upcoming-release-notes/5286.mdnew file mode 100644index 0000000000..f8da7ef479--- /dev/null+++ b/upcoming-release-notes/5286.md@@ -0,0 +1,6 @@+---+category: Enhancements+authors: [MikesGlitch]+---++Add Discord link to the help menu for improved user discoverability and support.