π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Elsewhere
Manav Rathi6d20b9cd5516
diff --git a/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx b/web/apps/photos/src/components/Collections/AlbumCastDialog.tsxindex aa1e972358..915fb693fb 100644--- a/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx+++ b/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx@@ -87,6 +87,7 @@ export const AlbumCastDialogContents: React.FC<AlbumCastDialogProps> = ({// (effectively, only Chrome).//// Override, otherwise tsc complains about unknown property `chrome`.+ // @ts-expect-error TODO why is this needed// eslint-disable-next-line @typescript-eslint/dot-notationsetBrowserCanCast(typeof window["chrome"] != "undefined");}, []);diff --git a/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx b/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsxindex 1bf7574f06..65c0aeb2bd 100644--- a/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx+++ b/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx@@ -128,7 +128,7 @@ export const GalleryBarAndListHeader: React.FC<const group = saveGroups.find((g) => g.collectionSummaryID === activeCollectionID,);- return group && !isSaveComplete(group) && !isSaveCancelled(group);+ return !!group && !isSaveComplete(group) && !isSaveCancelled(group);}, [saveGroups, activeCollectionID]);useEffect(() => {@@ -146,8 +146,8 @@ export const GalleryBarAndListHeader: React.FC<onAddSaveGroup,}}collectionSummary={toShowCollectionSummaries.get(- activeCollectionID,- )}+ activeCollectionID!,+ )!}onCollectionShare={showCollectionShare}onCollectionCast={showCollectionCast}/>@@ -212,8 +212,8 @@ export const GalleryBarAndListHeader: React.FC<<CollectionShare{...collectionShareVisibilityProps}collectionSummary={toShowCollectionSummaries.get(- activeCollectionID,- )}+ activeCollectionID!,+ )!}collection={activeCollection}{...{user,diff --git a/web/apps/photos/src/components/UploadProgress.tsx b/web/apps/photos/src/components/UploadProgress.tsxindex aaeafb6342..100cd2b9b8 100644--- a/web/apps/photos/src/components/UploadProgress.tsx+++ b/web/apps/photos/src/components/UploadProgress.tsx@@ -1,3 +1,4 @@+// TODO: Audit this fileimport CloseIcon from "@mui/icons-material/Close";import ExpandMoreIcon from "@mui/icons-material/ExpandMore";import UnfoldLessIcon from "@mui/icons-material/UnfoldLess";@@ -509,7 +510,7 @@ const ResultSection: React.FC<ResultSectionProps> = ({};const getItemTitle = (fileID) => {- return uploadFileNames.get(fileID);+ return uploadFileNames.get(fileID)!;};const generateItemKey = (fileID) => {@@ -593,6 +594,8 @@ const createItemData: <T>(items,}));+// TODO: Too many non-null assertions+// @ts-expect-error "TODO: Understand and fix the type error here"const Row: <T>({index,@@ -612,12 +615,12 @@ const Row: <T>({],},}}- title={getItemTitle(items[index])}+ title={getItemTitle(items[index]!)}placement="bottom-start"enterDelay={300}enterNextDelay={100}>- <div style={style}>{renderListItem(items[index])}</div>+ <div style={style}>{renderListItem(items[index]!)}</div></Tooltip>);},@@ -633,7 +636,7 @@ function ItemList<T>(props: ItemListProps<T>) {const getItemKey: ListItemKeySelector<ItemData<T>> = (index, data) => {const { items } = data;- return props.generateItemKey(items[index]);+ return props.generateItemKey(items[index]!);};return (@@ -641,11 +644,11 @@ function ItemList<T>(props: ItemListProps<T>) {<ListitemData={itemData}height={Math.min(- props.itemSize * props.items.length,- props.maxHeight,+ props.itemSize! * props.items.length,+ props.maxHeight!,)}width={"100%"}- itemSize={props.itemSize}+ itemSize={props.itemSize!}itemCount={props.items.length}itemKey={getItemKey}>diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsxindex dbb6f1425c..9a47329755 100644--- a/web/apps/photos/src/pages/gallery.tsx+++ b/web/apps/photos/src/pages/gallery.tsx@@ -483,6 +483,7 @@ const Page: React.FC = () => {selected.ownCount++;}selected.count++;+ // @ts-expect-error Selection code needs type fixingselected[item.id] = true;});setSelected(selected);@@ -1075,8 +1076,10 @@ const Page: React.FC = () => {<GalleryBarAndListHeader{...{user,- activeCollection,- activeCollectionID,+ // TODO: These are incorrect assertions, the types of the+ // component need to be updated.+ activeCollection: activeCollection!,+ activeCollectionID: activeCollectionID!,activePerson,setFileListHeader,saveGroups,@@ -1162,7 +1165,8 @@ const Page: React.FC = () => {selectable={true}selected={selected}setSelected={setSelected}- activeCollectionID={activeCollectionID}+ // TODO: Incorrect assertion, need to update the type+ activeCollectionID={activeCollectionID!}activePersonID={activePerson?.id}isInIncomingSharedCollection={activeCollectionSummary?.attributes.has("sharedIncoming",