diff --git a/apps/browser/src/_locales/en/messages.json b/apps/browser/src/_locales/en/messages.json index aa171074f5..4e6ad1bd08 100644 --- a/apps/browser/src/_locales/en/messages.json +++ b/apps/browser/src/_locales/en/messages.json @@ -195,6 +195,15 @@ "helpFeedback": { "message": "Help & feedback" }, + "helpCenter": { + "message": "Bitwarden Help center" + }, + "communityForums": { + "message": "Explore Bitwarden community forums" + }, + "contactSupport": { + "message": "Contact Bitwarden support" + }, "sync": { "message": "Sync" }, diff --git a/apps/browser/src/popup/app-routing.animations.ts b/apps/browser/src/popup/app-routing.animations.ts index 84657d82ce..2304944acb 100644 --- a/apps/browser/src/popup/app-routing.animations.ts +++ b/apps/browser/src/popup/app-routing.animations.ts @@ -197,6 +197,9 @@ export const routerTransition = trigger("routerTransition", [ transition("tabs => lock", inSlideDown), + transition("tabs => help-and-feedback", inSlideLeft), + transition("help-and-feedback => tabs", outSlideRight), + transition("tabs => send-type", inSlideLeft), transition("send-type => tabs", outSlideRight), diff --git a/apps/browser/src/popup/app-routing.module.ts b/apps/browser/src/popup/app-routing.module.ts index 00022aa8ac..3d13ae0d06 100644 --- a/apps/browser/src/popup/app-routing.module.ts +++ b/apps/browser/src/popup/app-routing.module.ts @@ -38,6 +38,7 @@ import { ExcludedDomainsComponent } from "./settings/excluded-domains.component" import { ExportComponent } from "./settings/export.component"; import { FolderAddEditComponent } from "./settings/folder-add-edit.component"; import { FoldersComponent } from "./settings/folders.component"; +import { HelpAndFeedbackComponent } from "./settings/help-and-feedback.component"; import { OptionsComponent } from "./settings/options.component"; import { PremiumComponent } from "./settings/premium.component"; import { SettingsComponent } from "./settings/settings.component"; @@ -273,6 +274,12 @@ const routes: Routes = [ canActivate: [AuthGuard], data: { state: "update-temp-password" }, }, + { + path: "help-and-feedback", + component: HelpAndFeedbackComponent, + canActivate: [AuthGuard], + data: { state: "help-and-feedback" }, + }, { path: "tabs", component: TabsComponent, diff --git a/apps/browser/src/popup/app.module.ts b/apps/browser/src/popup/app.module.ts index aa07815f5e..af649439bf 100644 --- a/apps/browser/src/popup/app.module.ts +++ b/apps/browser/src/popup/app.module.ts @@ -68,6 +68,7 @@ import { ExcludedDomainsComponent } from "./settings/excluded-domains.component" import { ExportComponent } from "./settings/export.component"; import { FolderAddEditComponent } from "./settings/folder-add-edit.component"; import { FoldersComponent } from "./settings/folders.component"; +import { HelpAndFeedbackComponent } from "./settings/help-and-feedback.component"; import { OptionsComponent } from "./settings/options.component"; import { PremiumComponent } from "./settings/premium.component"; import { SettingsComponent } from "./settings/settings.component"; @@ -150,6 +151,7 @@ import { TabsComponent } from "./tabs.component"; RemovePasswordComponent, VaultSelectComponent, AboutComponent, + HelpAndFeedbackComponent, AutofillComponent, ], providers: [CurrencyPipe, DatePipe], diff --git a/apps/browser/src/popup/settings/help-and-feedback.component.html b/apps/browser/src/popup/settings/help-and-feedback.component.html new file mode 100644 index 0000000000..f2cbfa9355 --- /dev/null +++ b/apps/browser/src/popup/settings/help-and-feedback.component.html @@ -0,0 +1,54 @@ +
+
+ +
+

+ {{ "helpFeedback" | i18n }} +

+
+
+
+
+
+ + + +
+
+
diff --git a/apps/browser/src/popup/settings/help-and-feedback.component.ts b/apps/browser/src/popup/settings/help-and-feedback.component.ts new file mode 100644 index 0000000000..006f76f48b --- /dev/null +++ b/apps/browser/src/popup/settings/help-and-feedback.component.ts @@ -0,0 +1,20 @@ +import { Component } from "@angular/core"; + +import { BrowserApi } from "../../browser/browserApi"; + +@Component({ + selector: "app-help-and-feedback", + templateUrl: "help-and-feedback.component.html", +}) +export class HelpAndFeedbackComponent { + launchHelp() { + BrowserApi.createNewTab("https://bitwarden.com/help/"); + } + launchContactForm() { + BrowserApi.createNewTab("https://bitwarden.com/contact/"); + } + + launchForums() { + BrowserApi.createNewTab("https://bitwarden.com/getinvolved/"); + } +} diff --git a/apps/browser/src/popup/settings/settings.component.html b/apps/browser/src/popup/settings/settings.component.html index d371acc450..539e971b5f 100644 --- a/apps/browser/src/popup/settings/settings.component.html +++ b/apps/browser/src/popup/settings/settings.component.html @@ -221,8 +221,7 @@