Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Empty state #946

Merged
merged 25 commits into from
Feb 23, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5146b91
Created Empty screen heading and image
Ananddubey01 Feb 10, 2023
22f3565
Empty Screen: Added upload buttons
Ananddubey01 Feb 10, 2023
a525530
made empty state for instances of only incoming share files
Ananddubey01 Feb 13, 2023
f084643
Changed empty state image
Ananddubey01 Feb 13, 2023
3a02b65
Empty State: Implemented download button section
Ananddubey01 Feb 13, 2023
59e076f
Empty Screen: Changed Icons
Ananddubey01 Feb 13, 2023
4cbec90
Empty screen: fixed github hyperlink
Ananddubey01 Feb 13, 2023
bcfc2db
Empty screen: removed drag feature from images
Ananddubey01 Feb 13, 2023
b25d2ef
Empty Screen: Implemented upload/import button functionalities
Ananddubey01 Feb 15, 2023
0ade128
Fixed issues
Ananddubey01 Feb 15, 2023
ac8f083
update lintstagedrc to only run on files inside src folder
abhinavkgrd Feb 17, 2023
fa77ae8
merge main into empty-state
abhinavkgrd Feb 17, 2023
83a1fe5
changed logic of personal files check from incoming shared files to d…
Ananddubey01 Feb 21, 2023
ef3499a
changed ente_duck size image
Ananddubey01 Feb 21, 2023
c630476
empty screen: changed to top alignment
Ananddubey01 Feb 21, 2023
bc4dcba
move setHasPersonalFiles to setDerivativeState
abhinavkgrd Feb 21, 2023
3ac9a0e
fix dedupe text appearing on top of screen
abhinavkgrd Feb 21, 2023
f6e9363
move cursor style to upload buttons
abhinavkgrd Feb 21, 2023
a041226
add check for if new upload are allowed before opening uploadTypeSele…
abhinavkgrd Feb 21, 2023
624ec08
remove unneeded properties from empty screen wrapper
abhinavkgrd Feb 21, 2023
05adbbc
fix navbar UploadButton showing import instead of upload
abhinavkgrd Feb 21, 2023
9f2c5ff
use uploadTypeSelectorIntent as collectPhotos for shared-albums
abhinavkgrd Feb 21, 2023
41967e0
changed to ente Logo in welcome message
Ananddubey01 Feb 23, 2023
bc8196b
Empty Screen: Removed bottom download buttons
Ananddubey01 Feb 23, 2023
384545a
Removed download bottom download files images
Ananddubey01 Feb 23, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions src/components/EmptyScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useContext } from 'react';
import { Button, styled, Typography } from '@mui/material';
import { Button, Stack, styled, Typography } from '@mui/material';
import constants from 'utils/strings/constants';
import { DeduplicateContext } from 'pages/deduplicate';
import VerticallyCentered, { FlexWrapper } from './Container';
Expand Down Expand Up @@ -29,7 +29,7 @@ export default function EmptyScreen({ openUploader }) {
</div>
) : (
<>
<VerticallyCentered
<Stack
sx={{
flex: 'none',
pt: 1.5,
Expand All @@ -44,7 +44,7 @@ export default function EmptyScreen({ openUploader }) {
color="text.secondary">
{constants.WHERE_YOUR_BEST_PHOTOS_LIVE}
</Typography>
</VerticallyCentered>
</Stack>
<NonDraggableImage
height={287.57}
src="/images/empty-state/ente_duck.png"
Expand All @@ -57,9 +57,7 @@ export default function EmptyScreen({ openUploader }) {
!uploadManager.shouldAllowNewUpload() &&
'not-allowed',
}}>
<VerticallyCentered
paddingTop={1.5}
paddingBottom={1.5}>
<Stack paddingTop={1.5} paddingBottom={1.5}>
<Button
color="accent"
onClick={() =>
Expand Down Expand Up @@ -101,7 +99,7 @@ export default function EmptyScreen({ openUploader }) {
{constants.IMPORT_YOUR_FOLDERS}
</FlexWrapper>
</Button>
</VerticallyCentered>
</Stack>
<VerticallyCentered
paddingTop={3}
paddingBottom={3}
Expand All @@ -110,15 +108,15 @@ export default function EmptyScreen({ openUploader }) {
sx={{ gap: 1 }}
justifyContent="center">
<a href="https://apps.apple.com/app/id1542026904">
Ananddubey01 marked this conversation as resolved.
Show resolved Hide resolved
<img
<NonDraggableImage
height={59}
src="/images/download_assets/download_app_store.png"
srcSet="/images/download_assets/download_app_store@2x.png,
/images/download_assets/download_app_store@3x.png"
/>
</a>
<a href="https://play.app.goo.gl/?link=https://play.google.com/store/apps/details?id=io.ente.photos">
<img
<NonDraggableImage
height={59}
src="/images/download_assets/download_play_store.png"
srcSet="/images/download_assets/download_play_store@2x.png,
Expand All @@ -130,7 +128,7 @@ export default function EmptyScreen({ openUploader }) {
sx={{ gap: 1 }}
justifyContent="center">
<a href="https://f-droid.org/packages/io.ente.photos.fdroid/">
<img
<NonDraggableImage
height={49}
src="/images/download_assets/download_fdroid.png"
srcSet="/images/download_assets/download_fdroid@2x.png,
Expand All @@ -139,7 +137,7 @@ export default function EmptyScreen({ openUploader }) {
/>
</a>
<a href="https://github.com/ente-io">
<img
<NonDraggableImage
height={49}
src="/images/download_assets/download_github.png"
srcSet="/images/download_assets/download_github@2x.png,
Expand Down
4 changes: 2 additions & 2 deletions src/components/PhotoFrame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const PhotoFrame = ({
const updateRequired = useRef(false);

const [filteredData, setFilteredData] = useState<EnteFile[]>([]);

const hasPersonalFiles = files.length - incomingShareFiles.length > 0;
abhinavkgrd marked this conversation as resolved.
Show resolved Hide resolved
useEffect(() => {
const user: User = getData(LS_KEYS.USER);
setUser(user);
Expand Down Expand Up @@ -633,7 +633,7 @@ const PhotoFrame = ({
return (
<>
{!isFirstLoad &&
files.length - incomingShareFiles.length === 0 &&
!hasPersonalFiles &&
!isInSearchMode &&
activeCollection === ALL_SECTION ? (
<EmptyScreen openUploader={openUploader} />
Expand Down
1 change: 1 addition & 0 deletions thirdparty/tesseract
Submodule tesseract added at 73b42f