-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PM-7737] Create about-page and more-from-bitwarden page [Nav changes] (
#9233) * Move help-and-feedback to tools and rename to about-page Moved help-and-feedback.component to ..tools Renamed it to about-page Changed the title to about Changed the settings button to about Updated routes Updates transition animation * Move button to open AboutDialog from settings to about-page * Move launch web-vault to about-page * Move rate extension from settings to about-page * Fix no-floating-promises * Remove icons from about-page entries * Make about-page standalone * Create MoreFromBitwardenPage component Create new component Add button to navigate to new component from about-page Add routing for new component * Add new speedbumps to help-center and web-app links * Add link to Bitwarden Authenticator page Include speedbump explaing some functionality about the the authenticator * Add link to Secrets Manager page Include speedbump explaining some functionality of Secrets Manager * Add link to Passwordless.dev page Include speedbump explaining some functionality of Passwordless.dev * Move learnFromOrg over to more-from-bitwarden Include speedbump that explains Bitwarden for business * Clean-up settings.component Some left-over clean-up from #8840 - Removing import and export methods * Move premium-link to more-from-bitwarden Hide link if user already has premium * Add popout-button to about-page * Remove unneeded headings * Move popout-button on setting to the right * Add Free Bitwarden Families link Include speedbump explaining Free Bitwarden Families --------- Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
- Loading branch information
Showing
11 changed files
with
358 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
apps/browser/src/popup/settings/help-and-feedback.component.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
apps/browser/src/tools/popup/settings/about-page/about-page.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
import { CommonModule } from "@angular/common"; | ||
import { Component } from "@angular/core"; | ||
import { RouterModule } from "@angular/router"; | ||
import { firstValueFrom } from "rxjs"; | ||
|
||
import { JslibModule } from "@bitwarden/angular/jslib.module"; | ||
import { DeviceType } from "@bitwarden/common/enums"; | ||
import { EnvironmentService } from "@bitwarden/common/platform/abstractions/environment.service"; | ||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service"; | ||
import { DialogService } from "@bitwarden/components"; | ||
|
||
import { BrowserApi } from "../../../../platform/browser/browser-api"; | ||
import { PopOutComponent } from "../../../../platform/popup/components/pop-out.component"; | ||
import { AboutDialogComponent } from "../about-dialog/about-dialog.component"; | ||
|
||
const RateUrls = { | ||
[DeviceType.ChromeExtension]: | ||
"https://chromewebstore.google.com/detail/bitwarden-free-password-m/nngceckbapebfimnlniiiahkandclblb/reviews", | ||
[DeviceType.FirefoxExtension]: | ||
"https://addons.mozilla.org/en-US/firefox/addon/bitwarden-password-manager/#reviews", | ||
[DeviceType.OperaExtension]: | ||
"https://addons.opera.com/en/extensions/details/bitwarden-free-password-manager/#feedback-container", | ||
[DeviceType.EdgeExtension]: | ||
"https://microsoftedge.microsoft.com/addons/detail/jbkfoedolllekgbhcbcoahefnbanhhlh", | ||
[DeviceType.VivaldiExtension]: | ||
"https://chromewebstore.google.com/detail/bitwarden-free-password-m/nngceckbapebfimnlniiiahkandclblb/reviews", | ||
[DeviceType.SafariExtension]: "https://apps.apple.com/app/bitwarden/id1352778147", | ||
}; | ||
|
||
@Component({ | ||
templateUrl: "about-page.component.html", | ||
standalone: true, | ||
imports: [CommonModule, JslibModule, RouterModule, PopOutComponent], | ||
}) | ||
export class AboutPageComponent { | ||
constructor( | ||
private dialogService: DialogService, | ||
private environmentService: EnvironmentService, | ||
private platformUtilsService: PlatformUtilsService, | ||
) {} | ||
|
||
about() { | ||
this.dialogService.open(AboutDialogComponent); | ||
} | ||
|
||
async launchHelp() { | ||
const confirmed = await this.dialogService.openSimpleDialog({ | ||
title: { key: "continueToHelpCenter" }, | ||
content: { key: "continueToHelpCenterDesc" }, | ||
type: "info", | ||
acceptButtonText: { key: "continue" }, | ||
}); | ||
if (confirmed) { | ||
await BrowserApi.createNewTab("https://bitwarden.com/help/"); | ||
} | ||
} | ||
|
||
async openWebVault() { | ||
const confirmed = await this.dialogService.openSimpleDialog({ | ||
title: { key: "continueToWebApp" }, | ||
content: { key: "continueToWebAppDesc" }, | ||
type: "info", | ||
acceptButtonText: { key: "continue" }, | ||
}); | ||
if (confirmed) { | ||
const env = await firstValueFrom(this.environmentService.environment$); | ||
const url = env.getWebVaultUrl(); | ||
await BrowserApi.createNewTab(url); | ||
} | ||
} | ||
|
||
async launchContactForm() { | ||
await BrowserApi.createNewTab("https://bitwarden.com/contact/"); | ||
} | ||
|
||
async launchForums() { | ||
await BrowserApi.createNewTab("https://bitwarden.com/getinvolved/"); | ||
} | ||
|
||
async rate() { | ||
const deviceType = this.platformUtilsService.getDevice(); | ||
await BrowserApi.createNewTab((RateUrls as any)[deviceType]); | ||
} | ||
} |
Oops, something went wrong.