π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
update(spotlight):added-subscription-and-advanced-preferences
Aswin Asok2bc28adbf121
diff --git a/docs/docs/photos/features/sidebar.md b/docs/docs/photos/features/sidebar.mdindex dad7c2eac2..b2388d0f54 100644--- a/docs/docs/photos/features/sidebar.md+++ b/docs/docs/photos/features/sidebar.md@@ -4,9 +4,7 @@ This page documents the items rendered by `web/apps/photos/src/components/Sideba## User details and subscription-- [ ] **Email + subscription card**: always visible; clicking opens the plan selector unless the user is a non-admin family member (then opens Manage member subscription). If the subscription is Stripe + past due, clicking redirects to the customer portal.-- [ ] **Subscription status message**: shown only when (a) the user is not a non-admin family member and (b) the subscription is not both active and uncancelled. Messages include free plan, cancelled renewal (with expiry date), expired (CTA to plan selector/portal), and storage quota exceeded.-- [ ] **Manage member subscription dialog**: appears only for family members who are not admins and shows the family admin email plus a Leave family plan action.+- [X][x] **Subscription**: always availble, open up the plan selector.## Shortcuts@@ -45,8 +43,8 @@ This page documents the items rendered by `web/apps/photos/src/components/Sideba## Advanced settings-- [ ] **Faster upload**: always shown; toggles the Cloudflare upload proxy (`cfUploadProxyDisabled` inverted).-- [ ] **Open Ente on startup**: only shown when running in the Electron shell (`globalThis.electron` exists); toggles auto-launch and refreshes the current state from `electron.isAutoLaunchEnabled()`.+- [X][x] **Faster upload**: always shown; toggles the Cloudflare upload proxy (`cfUploadProxyDisabled` inverted).+- [ ][x] **Open Ente on startup**: only shown when running in the Electron shell (`globalThis.electron` exists); toggles auto-launch and refreshes the current state from `electron.isAutoLaunchEnabled()`.## Help drawerdiff --git a/web/apps/photos/src/components/Sidebar.tsx b/web/apps/photos/src/components/Sidebar.tsxindex fdf5445fa9..d2a6315f66 100644--- a/web/apps/photos/src/components/Sidebar.tsx+++ b/web/apps/photos/src/components/Sidebar.tsx@@ -289,6 +289,7 @@ export const Sidebar: React.FC<SidebarProps> = ({performSidebarRegistryAction(actionID, {onClose,onShowCollectionSummary: showCollectionSummaryWithWorkarounds,+ onShowPlanSelector,showAccount,showPreferences,showHelp,@@ -316,6 +317,7 @@ export const Sidebar: React.FC<SidebarProps> = ({handleOpenWatchFolder,onClose,showCollectionSummaryWithWorkarounds,+ onShowPlanSelector,onShowExport,router,showAccount,@@ -1045,6 +1047,8 @@ const Preferences: React.FC<PreferencesProps> = ({showMapSettings();break;case "preferences.advanced":+ case "preferences.fasterUpload":+ case "preferences.openOnStartup":showAdvancedSettings();break;case "preferences.mlSearch":diff --git a/web/packages/new/photos/services/search/sidebar-search-registry.ts b/web/packages/new/photos/services/search/sidebar-search-registry.tsindex c25077f118..df8a1663c4 100644--- a/web/packages/new/photos/services/search/sidebar-search-registry.ts+++ b/web/packages/new/photos/services/search/sidebar-search-registry.ts@@ -24,6 +24,7 @@ export interface SidebarActionContext {showPreferences: () => void;showHelp: () => void;onShowExport: () => void;+ onShowPlanSelector: () => void;onLogout: () => void;onRouteToDeduplicate: () => Promise<unknown>;onShowWatchFolder: () => void;@@ -49,6 +50,12 @@ const sidebarActions = (): SidebarAction[] => {const helpCategory = t("help");return [+ {+ id: "account.subscription",+ label: t("subscription"),+ path: [accountCategory, t("subscription")],+ keywords: ["subscription", "plan", "upgrade", "billing"],+ },{id: "shortcuts.uncategorized",label: t("section_uncategorized"),@@ -182,6 +189,23 @@ const sidebarActions = (): SidebarAction[] => {path: [preferencesCategory, t("advanced")],keywords: ["advanced", "proxy", "upload"],},+ {+ id: "preferences.fasterUpload",+ label: t("faster_upload"),+ path: [preferencesCategory, t("advanced"), t("faster_upload")],+ keywords: ["faster", "upload", "proxy"],+ },+ {+ id: "preferences.openOnStartup",+ label: t("open_ente_on_startup"),+ path: [+ preferencesCategory,+ t("advanced"),+ t("open_ente_on_startup"),+ ],+ keywords: ["open", "startup", "launch", "auto launch"],+ available: () => isDesktop,+ },{id: "preferences.mlSearch",label: t("ml_search"),@@ -313,12 +337,18 @@ export const performSidebarAction = async (ctx.setPendingAccountAction(actionID);ctx.showAccount();return Promise.resolve();+ case "account.subscription":+ ctx.onClose();+ ctx.onShowPlanSelector();+ return Promise.resolve();case "preferences.language":case "preferences.theme":case "preferences.customDomains":case "preferences.map":case "preferences.advanced":+ case "preferences.fasterUpload":+ case "preferences.openOnStartup":case "preferences.mlSearch":case "preferences.streamableVideos":ctx.setPendingPreferencesAction(actionID);diff --git a/web/packages/new/photos/services/search/types.ts b/web/packages/new/photos/services/search/types.tsindex 4a73bb216f..ae5ea15029 100644--- a/web/packages/new/photos/services/search/types.ts+++ b/web/packages/new/photos/services/search/types.ts@@ -35,6 +35,7 @@ export type SidebarActionID =| "utility.help"| "utility.export"| "utility.logout"+ | "account.subscription"| "account.recoveryKey"| "account.twoFactor"| "account.passkeys"@@ -46,6 +47,8 @@ export type SidebarActionID =| "preferences.customDomains"| "preferences.map"| "preferences.advanced"+ | "preferences.fasterUpload"+ | "preferences.openOnStartup"| "preferences.mlSearch"| "preferences.streamableVideos"| "help.helpCenter"