π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Move to gallery
Manav Rathiee86de6b3066
diff --git a/web/apps/photos/src/pages/_app.tsx b/web/apps/photos/src/pages/_app.tsxindex 9654f0f6d6..1cdcb6b3b8 100644--- a/web/apps/photos/src/pages/_app.tsx+++ b/web/apps/photos/src/pages/_app.tsx@@ -1,4 +1,3 @@-import { WhatsNew } from "@/new/photos/components/WhatsNew";import { CustomHead } from "@/next/components/Head";import { setAppNameForAuthenticatedRequests } from "@/next/http";import { setupI18n } from "@/next/i18n";@@ -130,10 +129,6 @@ export default function App({ Component, pageProps }: AppProps) {>();useState<DialogBoxAttributes>(null);const [messageDialogView, setMessageDialogView] = useState(false);- // TODO(MR): This is never true currently, this is the WIP ability to show- // what's new dialog on desktop app updates. The UI is done, need to hook- // this up to logic to trigger it.- const [openWhatsNew, setOpenWhatsNew] = useState(false);const [dialogBoxV2View, setDialogBoxV2View] = useState(false);const [watchFolderView, setWatchFolderView] = useState(false);const [watchFolderFiles, setWatchFolderFiles] = useState<FileList>(null);@@ -407,11 +402,6 @@ export default function App({ Component, pageProps }: AppProps) {attributes={dialogBoxAttributeV2}/>- <WhatsNew- open={openWhatsNew}- onClose={() => setOpenWhatsNew(false)}- />-<Notificationopen={notificationView}onClose={closeNotification}diff --git a/web/apps/photos/src/pages/gallery/index.tsx b/web/apps/photos/src/pages/gallery/index.tsxindex 206a831d0b..24f90ee2e3 100644--- a/web/apps/photos/src/pages/gallery/index.tsx+++ b/web/apps/photos/src/pages/gallery/index.tsx@@ -1,3 +1,4 @@+import { WhatsNew } from "@/new/photos/components/WhatsNew";import { fetchAndSaveFeatureFlagsIfNeeded } from "@/new/photos/services/feature-flags";import log from "@/next/log";import { CenteredFlex } from "@ente/shared/components/Container";@@ -193,6 +194,10 @@ export default function Gallery() {const [search, setSearch] = useState<Search>(null);const [shouldDisableDropzone, setShouldDisableDropzone] = useState(false);const [isPhotoSwipeOpen, setIsPhotoSwipeOpen] = useState(false);+ // TODO(MR): This is never true currently, this is the WIP ability to show+ // what's new dialog on desktop app updates. The UI is done, need to hook+ // this up to logic to trigger it.+ const [openWhatsNew, setOpenWhatsNew] = useState(false);const {// A function to call to get the props we should apply to the container,@@ -1154,6 +1159,10 @@ export default function Gallery() {sidebarView={sidebarView}closeSidebar={closeSidebar}/>+ <WhatsNew+ open={openWhatsNew}+ onClose={() => setOpenWhatsNew(false)}+ />{!isInSearchMode &&!isFirstLoad &&!files?.length &&