π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix
Manav Rathi29cd3a69d0d9
diff --git a/web/apps/accounts/src/pages/_app.tsx b/web/apps/accounts/src/pages/_app.tsxindex 8e66ee05e9..2c90684450 100644--- a/web/apps/accounts/src/pages/_app.tsx+++ b/web/apps/accounts/src/pages/_app.tsx@@ -1,11 +1,11 @@import { CustomHead } from "@/next/components/Head";import { setupI18n } from "@/next/i18n";import { logUnhandledErrorsAndRejections } from "@/next/log-web";-import type { AppName, BaseAppContextT } from "@/next/types/app";+import { appTitle, type AppName, type BaseAppContextT } from "@/next/types/app";import { ensure } from "@/utils/ensure";import { PAGES } from "@ente/accounts/constants/pages";import { accountLogout } from "@ente/accounts/services/logout";-import { APPS, APP_TITLES } from "@ente/shared/apps/constants";+import { APPS } from "@ente/shared/apps/constants";import { Overlay } from "@ente/shared/components/Container";import DialogBoxV2 from "@ente/shared/components/DialogBoxV2";import type { DialogBoxAttributesV2 } from "@ente/shared/components/DialogBoxV2/types";@@ -95,11 +95,9 @@ export default function App({ Component, pageProps }: AppProps) {setDialogBoxAttributesV2,};- // TODO-PK: Fix ||- const title =- (isI18nReady- ? t("title", { context: "accounts" })- : APP_TITLES.get(APPS.ACCOUNTS)) || "Ente Accounts";+ const title = isI18nReady+ ? t("title", { context: "accounts" })+ : appTitle[appName];return (<>diff --git a/web/packages/next/types/app.ts b/web/packages/next/types/app.tsindex 331c6869ee..48ee160120 100644--- a/web/packages/next/types/app.ts+++ b/web/packages/next/types/app.ts@@ -6,6 +6,18 @@ import type { DialogBoxAttributesV2 } from "@ente/shared/components/DialogBoxV2/*/export type AppName = "accounts" | "albums" | "auth" | "photos";+/**+ * Static title for the app.+ *+ * This is shown until we have the localized version.+ */+export const appTitle: Record<AppName, string> = {+ accounts: "Ente Accounts",+ albums: "Ente Albums",+ auth: "Ente Auth",+ photos: "Ente Photos",+};+/*** Properties guaranteed to be present in the AppContext types for apps that are* listed in {@link AppName}.