Skip to content

Commit 4794820

Browse files
authored
Merge pull request #3652 from HarshitaKatariya/feature/add-community-links-to-help-menu
Add Community links to help menu.
2 parents 1a515ed + 73b9a2c commit 4794820

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

client/modules/IDE/components/Header/Nav.jsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,24 @@ const ProjectMenu = () => {
289289
<MenubarItem id="help-about" href="/about">
290290
{t('Nav.Help.About')}
291291
</MenubarItem>
292+
<MenubarItem
293+
id="help-report-bug"
294+
href="https://github.com/processing/p5.js-web-editor/issues/new/choose"
295+
>
296+
{t('Nav.Help.ReportBug')}
297+
</MenubarItem>
298+
<MenubarItem
299+
id="help-discord"
300+
href="https://discord.com/invite/SHQ8dH25r9"
301+
>
302+
{t('Nav.Help.ChatOnDiscord')}
303+
</MenubarItem>
304+
<MenubarItem
305+
id="help-forum"
306+
href="https://discourse.processing.org/c/p5js/10"
307+
>
308+
{t('Nav.Help.PostOnTheForum')}
309+
</MenubarItem>
292310
</MenubarSubmenu>
293311
{getConfig('TRANSLATIONS_ENABLED') && <LanguageMenu />}
294312
</ul>

client/modules/IDE/components/Header/__snapshots__/Nav.unit.test.jsx.snap

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,15 @@ exports[`Nav renders editor version for desktop 1`] = `
658658
<li>
659659
About
660660
</li>
661+
<li>
662+
Report a Bug
663+
</li>
664+
<li>
665+
Chat On Discord
666+
</li>
667+
<li>
668+
Post on the Forum
669+
</li>
661670
</ul>
662671
</li>
663672
</ul>

translations/locales/en-US/translations.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727
"Title": "Help",
2828
"KeyboardShortcuts": "Keyboard Shortcuts",
2929
"Reference": "Reference",
30-
"About": "About"
30+
"About": "About",
31+
"ReportBug": "Report a Bug",
32+
"ChatOnDiscord":"Chat On Discord",
33+
"PostOnTheForum":"Post on the Forum"
3134
},
3235
"Lang": "Language",
3336
"BackEditor": "Back to Editor",

0 commit comments

Comments
 (0)