π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Merge branch 'main' into cast
Neeraj Gupta36cad03c71ad
diff --cc apps/photos/public/locales/en/translation.jsonindex 497241c253,48718e8e2f..c0274daac5--- a/apps/photos/public/locales/en/translation.json+++ b/apps/photos/public/locales/en/translation.json@@@ -622,18 -623,10 +623,22 @@@"PHOTO_EDITOR": "Photo Editor","FASTER_UPLOAD": "Faster uploads","FASTER_UPLOAD_DESCRIPTION": "Route uploads through nearby servers",- "STATUS": "Status",+ "MAGIC_SEARCH_STATUS": "Magic Search Status","INDEXED_ITEMS": "Indexed items",++<<<<<<< HEAD+ "CAST_ALBUM_TO_TV": "Play album on TV",+ "ENTER_CAST_PIN_CODE": "Enter the code you see on the TV below to pair this device.",+ "PAIR_DEVICE_TO_TV": "Pair devices",+ "TV_NOT_FOUND": "TV not found. Did you enter the PIN correctly?",+ "AUTO_CAST_PAIR": "Auto Pair",+ "AUTO_CAST_PAIR_REQUIRES_CONNECTION_TO_GOOGLE": "Auto Pair requires connecting to Google servers and only works with Chromecast supported devices. Google will not receive sensitive data, such as your photos.",+ "PAIR_WITH_PIN": "Pair with PIN",+ "CHOOSE_DEVICE_FROM_BROWSER": "Choose a cast-compatible device from the browser popup.",+ "PAIR_WITH_PIN_WORKS_FOR_ANY_LARGE_SCREEN_DEVICE": "Pair with PIN works for any large screen device you want to play your album on.",+ "VISIT_CAST_ENTE_IO": "Visit cast.ente.io on the device you want to pair.",+ "CAST_AUTO_PAIR_FAILED": "Chromecast Auto Pair failed. Please try again.",- "CACHE_DIRECTORY": "Cache folder"+ "CACHE_DIRECTORY": "Cache folder",+ "FREEHAND": "Freehand",+ "APPLY_CROP": "Apply Crop",+ "PHOTO_EDIT_REQUIRED_TO_SAVE": "At least one transformation or color adjustment must be performed before saving."}diff --cc apps/photos/src/components/Collections/CollectionInfoWithOptions.tsxindex 8fc1c454a0,3ec3108767..5b158af162--- a/apps/photos/src/components/Collections/CollectionInfoWithOptions.tsx+++ b/apps/photos/src/components/Collections/CollectionInfoWithOptions.tsx@@@ -18,12 -17,9 +18,10 @@@ interface IpropscollectionSummary: CollectionSummary;setCollectionNamerAttributes: SetCollectionNamerAttributes;showCollectionShareModal: () => void;- setCollectionDownloadProgressAttributesCreator: (- collectionID: number- ) => SetCollectionDownloadProgressAttributes;+ setFilesDownloadProgressAttributesCreator: SetFilesDownloadProgressAttributesCreator;isActiveCollectionDownloadInProgress: () => boolean;setActiveCollectionID: (collectionID: number) => void;+ setShowAlbumCastDialog: Dispatch<SetStateAction<boolean>>;}export default function CollectionInfoWithOptions({diff --cc apps/photos/src/components/Collections/CollectionOptions/index.tsxindex 489b98c6cb,2016f5a7b4..4b6b7a7ccd--- a/apps/photos/src/components/Collections/CollectionOptions/index.tsx+++ b/apps/photos/src/components/Collections/CollectionOptions/index.tsx@@@ -84,9 -74,8 +82,9 @@@ const CollectionOptions = (props: CollesetActiveCollectionID,setCollectionNamerAttributes,showCollectionShareModal,- setCollectionDownloadProgressAttributesCreator,+ setFilesDownloadProgressAttributesCreator,isActiveCollectionDownloadInProgress,+ setShowAlbumCastDialog,} = props;const { startLoading, finishLoading, setDialogMessage } =diff --cc apps/photos/src/components/Collections/index.tsxindex a6b408b741,8678be85be..e7229f45fa--- a/apps/photos/src/components/Collections/index.tsx+++ b/apps/photos/src/components/Collections/index.tsx@@@ -16,13 -16,11 +16,12 @@@ import { useLocalState } from '@ente/shimport { sortCollectionSummaries } from 'services/collectionService';import { LS_KEYS } from '@ente/shared/storage/localStorage';import {- CollectionDownloadProgress,- CollectionDownloadProgressAttributes,- isCollectionDownloadCancelled,- isCollectionDownloadCompleted,- } from './CollectionDownloadProgress';- import { SetCollectionDownloadProgressAttributes } from 'types/gallery';+ FilesDownloadProgressAttributes,+ isFilesDownloadCancelled,+ isFilesDownloadCompleted,+ } from '../FilesDownloadProgress';+ import { SetFilesDownloadProgressAttributesCreator } from 'types/gallery';+import AlbumCastDialog from './CollectionOptions/AlbumCastDialog';interface Iprops {activeCollection: Collection;@@@ -53,13 -55,6 +56,8 @@@ export default function Collections(proconst [collectionShareModalView, setCollectionShareModalView] =useState(false);- const [- collectionDownloadProgressAttributesList,- setCollectionDownloadProgressAttributesList,- ] = useState<CollectionDownloadProgressAttributes[]>([]);-+ const [showAlbumCastDialog, setShowAlbumCastDialog] = useState(false);+const [collectionListSortBy, setCollectionListSortBy] =useLocalState<COLLECTION_LIST_SORT_BY>(LS_KEYS.COLLECTION_SORT_BY,@@@ -199,15 -171,6 +175,11 @@@onClose={closeCollectionShare}collection={activeCollection}/>- <CollectionDownloadProgress- attributesList={collectionDownloadProgressAttributesList}- setAttributesList={setCollectionDownloadProgressAttributesList}- />+ <AlbumCastDialog+ currentCollection={props.activeCollection}+ show={showAlbumCastDialog}+ onHide={() => setShowAlbumCastDialog(false)}+ /></>);}