π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
update(desktop-rc):changelog-WhatsNew-and-minor-ui-fix
Aswin Asok683067cc33ac
diff --git a/desktop/changes/draggable-upload-dialog.md b/desktop/changes/draggable-upload-dialog.mdnew file mode 100644index 0000000000..7e5f8d6f96--- /dev/null+++ b/desktop/changes/draggable-upload-dialog.md@@ -0,0 +1 @@+- Make the upload dialog draggable.diff --git a/web/packages/base/locales/en-US/translation.json b/web/packages/base/locales/en-US/translation.jsonindex 77801d0ff4..5ced013181 100644--- a/web/packages/base/locales/en-US/translation.json+++ b/web/packages/base/locales/en-US/translation.json@@ -362,7 +362,7 @@"details": "Details","view_exif": "View all Exif data","no_exif": "No Exif data",- "file_info_arrow_navigation_hint": "Use Alt/Option + left or right arrow to move between photos without closing this panel.",+ "file_info_arrow_navigation_hint": "to navigate","exif": "Exif","two_factor": "Two-factor","two_factor_authentication": "Two-factor authentication",diff --git a/web/packages/gallery/components/FileInfo.tsx b/web/packages/gallery/components/FileInfo.tsxindex 33f97b1558..f437599565 100644--- a/web/packages/gallery/components/FileInfo.tsx+++ b/web/packages/gallery/components/FileInfo.tsx@@ -13,6 +13,9 @@ import DoneIcon from "@mui/icons-material/Done";import EditIcon from "@mui/icons-material/Edit";import FaceRetouchingNaturalIcon from "@mui/icons-material/FaceRetouchingNatural";import FolderOutlinedIcon from "@mui/icons-material/FolderOutlined";+import KeyboardArrowLeftIcon from "@mui/icons-material/KeyboardArrowLeft";+import KeyboardArrowRightIcon from "@mui/icons-material/KeyboardArrowRight";+import KeyboardOptionKeyIcon from "@mui/icons-material/KeyboardOptionKey";import LocationOnOutlinedIcon from "@mui/icons-material/LocationOnOutlined";import PhotoOutlinedIcon from "@mui/icons-material/PhotoOutlined";import TextSnippetOutlinedIcon from "@mui/icons-material/TextSnippetOutlined";@@ -331,7 +334,7 @@ export const FileInfo: React.FC<FileInfoProps> = ({}, [onNavigationLockChange, navigationLocked]);return (- <FileInfoSidebar {...{ open, onClose }}>+ <BottomAlignedFileInfoSidebar {...{ open, onClose }}><SidebarDrawerTitlebaronClose={onClose}onRootClose={onClose}@@ -493,21 +496,8 @@ export const FileInfo: React.FC<FileInfoProps> = ({{t("added_by_name", { name: uploaderName })}</Typography>)}- <Typography- variant="small"- sx={{- display: { xs: "none", sm: "block" },- px: 2,- color: "text.muted",- opacity: 0.3,- maxWidth: "300px",- fontSize: "12px",- lineHeight: "15px",- }}- >- {t("file_info_arrow_navigation_hint")}- </Typography></Stack>+ <FileInfoNavigationHint /><RawExif{...rawExifVisibilityProps}onInfoClose={onClose}@@ -531,10 +521,76 @@ export const FileInfo: React.FC<FileInfoProps> = ({onConfirm={handleEditLocationConfirm}/>)}- </FileInfoSidebar>+ </BottomAlignedFileInfoSidebar>);};+const FileInfoNavigationHint: React.FC = () => (+ <Stack+ direction="row"+ sx={{+ display: { xs: "none", sm: "flex" },+ alignItems: "center",+ gap: 0.5,+ mt: "auto",+ pb: 3,+ px: 2,+ color: "text.muted",+ opacity: 0.24,+ }}+ >+ <Typography component="span" variant="tiny">+ Use+ </Typography>+ <NavigationHintKey>+ <KeyboardOptionKeyIcon sx={{ fontSize: 12 }} />+ <Typography+ component="span"+ variant="tiny"+ sx={{ fontWeight: "medium" }}+ >+ Alt / Option+ </Typography>+ </NavigationHintKey>+ <NavigationHintSeparator>+</NavigationHintSeparator>+ <NavigationHintKey>+ <KeyboardArrowLeftIcon sx={{ fontSize: 14 }} />+ </NavigationHintKey>+ <NavigationHintSeparator>/</NavigationHintSeparator>+ <NavigationHintKey>+ <KeyboardArrowRightIcon sx={{ fontSize: 14 }} />+ </NavigationHintKey>+ <Typography component="span" variant="tiny" sx={{ ml: 0.5 }}>+ {t("file_info_arrow_navigation_hint")}+ </Typography>+ </Stack>+);++const NavigationHintKey = styled("span")(+ ({ theme }) => `+ min-height: 20px;+ display: inline-flex;+ align-items: center;+ gap: 3px;+ padding: 2px 5px;+ border: 1px solid ${theme.vars.palette.stroke.faint};+ border-radius: 4px;+ color: ${theme.vars.palette.text.muted};+`,+);++const NavigationHintSeparator: React.FC<React.PropsWithChildren> = ({+ children,+}) => (+ <Typography+ component="span"+ variant="tiny"+ sx={{ color: "text.faint", lineHeight: 1 }}+ >+ {children}+ </Typography>+);+/*** Some immediate fields of interest, in the form that we want to display on the* info panel for a file.@@ -613,6 +669,15 @@ const FileInfoSidebar = styled(}),}));+const BottomAlignedFileInfoSidebar = styled(FileInfoSidebar)({+ ".MuiDrawer-paper": { display: "flex", flexDirection: "column" },+ ".MuiDrawer-paper > .MuiBox-root": {+ flex: 1,+ display: "flex",+ flexDirection: "column",+ },+});+interface InfoItemProps {/*** The icon associated with the info entry.diff --git a/web/packages/new/photos/components/WhatsNew.tsx b/web/packages/new/photos/components/WhatsNew.tsxindex 75a8152cbd..672fca74a4 100644--- a/web/packages/new/photos/components/WhatsNew.tsx+++ b/web/packages/new/photos/components/WhatsNew.tsx@@ -79,11 +79,13 @@ const ChangelogContent: React.FC = () => {return (<Stack sx={{ gap: 2, mb: 1 }}><Typography variant="h6">- {ut("Shared Albums Improvements")}+ {ut(+ "Improved Google Takeout imports, Archived view, File navigation experience and more",+ )}</Typography><Typography sx={{ color: "text.muted" }}>{ut(- "Upload files to shared albums. Add shared files to your albums or shared albums. Favorite files in shared albums. Indicator for shared files in map view.",+ "Google Takeout imports now preserve favorites, Archive section shows only archived albums, upload progress lists skipped files, File Info stays open on navigation, shared links are easier to spot, and new translations are available.",)}</Typography></Stack>diff --git a/web/packages/new/photos/services/changelog.ts b/web/packages/new/photos/services/changelog.tsindex 4b173caa5b..147a393c36 100644--- a/web/packages/new/photos/services/changelog.ts+++ b/web/packages/new/photos/services/changelog.ts@@ -26,7 +26,7 @@ import type { Electron } from "ente-base/types/ipc";* The what's new dialog sets the saved version to the current one whenever it* is shown.*/-const changelogVersion = 11;+const changelogVersion = 12;/*** Return true if we should show the {@link WhatsNew} dialog.@@ -36,6 +36,7 @@ const changelogVersion = 11;*/export const shouldShowWhatsNew = async (electron: Electron) => {const lastShownVersion = await electron.lastShownChangelogVersion();+if (!lastShownVersion) {// On a fresh install, save the current version but don't show the// what's new dialog.