Commit graph

26444 commits

Author SHA1 Message Date
Manav Rathi
896cf0f785
Disable full file caches for now
This is only needed for ML indexing, let us revisit this once the ML flow is
done instead of adding a premature and possibly disk-space heavy optimization.
2024-04-15 11:50:23 +05:30
Manav Rathi
f5fa3128a7
[desktop] Fix desktop payments redirect (#1447)
Fixes: https://github.com/ente-io/ente/issues/1440

There were two issues:

- It was a backward incompatible change to change the scheme from
ente:// to next://. Revert.

- We also need to setup a top level redirect when the user presses back
without making any changes to their subscription.

**Tested by**

Running payments app and desktop app locally, and verifying that

- [x] Signing up for a new account, purchasing a plan and verifying that
we went back to the app as expected
- [x] Existing account, after pressing back from the manage payments
page we go back to the app as expected
2024-04-15 11:05:23 +05:30
Manav Rathi
95c0f53d21
Preserve parameters
This was needed for the purchase success to be relayed back.
2024-04-15 10:59:07 +05:30
ashilkn
2a835e80a4 [mob] bump up photos version to v0.8.81 2024-04-15 10:58:35 +05:30
ashilkn
48cbe17ccd [mob] Make the borders of settings drawer not-round 2024-04-15 10:58:35 +05:30
Neeraj Gupta
2638a06551 [mob][photos] Enable multiPart upload for internal users 2024-04-15 10:56:41 +05:30
Manav Rathi
8d24a489f6
[desktop] Fix payment redirect
Fixes: https://github.com/ente-io/ente/issues/1440

There were two issues:

- It was a backward incompatible change to change the scheme from ente:// to
  next://. Revert.

- We also need to setup a top level redirect when the user presses back without
  making any changes to their subscription.

**Tested by**

Running payments app and desktop app locally, and verifying that after
interactions with the payments endpoint we go back to the desktop app's actual
contents correctly.
2024-04-15 10:47:14 +05:30
Neeraj Gupta
601a776b7a Merge branch 'main' into multipart 2024-04-15 10:37:42 +05:30
Ashil
bb90b2d3bc
[mob][photos] Upgrade flutter (#1434)
## Description

- Update flutter
- Update packages
- Fix UI issues because of update (material 3)
- bump up version to v0.8.80

## Tests

- [x] Building on android and iOS.

---------

Co-authored-by: Neeraj Gupta <254676+ua741@users.noreply.github.com>
2024-04-15 10:21:18 +05:30
Manav Rathi
5a3545e56e
[web] Use the public link origin provided by the server (#1444)
When implementing https://github.com/ente-io/ente/pull/1443 it was found
that the Photos web app wasnt' using the sharedCollectionUrl prefix that
is returned by the server. Instead, it was using
NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT as the baseHost, while mobile client
completely rely on the server for returning the correct hostUrl.

**Tested by**

Running against the modified server, and verifying that changes to
apps.public-albums were being used.
2024-04-15 10:09:55 +05:30
Neeraj Gupta
c73dc36a8c
[Server] Fix data cleanup pipeline for recovered account (#1410)
## Description
For accounts that were recovered post deletion (within x days), we were
not removing the entry from data_cleanup cron.

The data_clean up cron anyways verify that the account is indeed deleted
before proceeding with deletion, so it was not causing any harm, but the
cron was logging error.

## Tests

- [x] Verify that data clean up entry is removed if the account is
recovered
- [x] Verify that for existing data_cleanup entry for already recovered
account, the entry is deleted from cron.
2024-04-15 10:09:29 +05:30
Manav Rathi
92b5b56ac7
Add docs 2024-04-15 10:06:14 +05:30
Manav Rathi
bcfd144ce9
[web] Use the public link origin provided by the server
When implementing https://github.com/ente-io/ente/pull/1443 it was found that
the Photos web app wasnt' using the sharedCollectionUrl prefix that is returned
by the server. Instead, it was using NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT as the
baseHost, while mobile client completely rely on the server for returning the
correct hostUrl.

**Tested by**

Running against the modified server, and verifying that changes to
apps.public-albums were being used.
2024-04-15 09:57:01 +05:30
Neeraj Gupta
8ed2c7cff9
[server] Pick base publicHost url from config (#1443)
## Description

## Tests
Ran locally with the config in local.yaml and verified that it's
modified as well when I had put localhost:3002 in the museum.yaml config
2024-04-15 09:56:21 +05:30
github-actions[bot]
2387d7875c
[auth] New translations (#1240)
New translations from
[Crowdin](https://crowdin.com/project/ente-authenticator-app)

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-04-15 09:36:11 +05:30
Manav Rathi
2ae119b2ec
[desktop] Fix export related IPC - Part 4/x (#1441) 2024-04-14 20:23:04 +05:30
Manav Rathi
18ac361688
Remove unused IPC method 2024-04-14 20:11:25 +05:30
Manav Rathi
87077417a2
Remove dup 2024-04-14 20:07:17 +05:30
Manav Rathi
d0ac3ea9ca
Remove newly dead code 2024-04-14 20:00:59 +05:30
Manav Rathi
a5f9fdd10d
Restructure selection 2024-04-14 19:59:13 +05:30
Manav Rathi
881a963fde
Inline 2024-04-14 19:46:26 +05:30
Manav Rathi
f9560ec533
Inline 2024-04-14 19:43:31 +05:30
Manav Rathi
22616bb77d
Remove top level error suppressors 2024-04-14 19:42:30 +05:30
Manav Rathi
4d19c46d7c
Replace exception handling for control flow 2024-04-14 19:39:35 +05:30
Manav Rathi
cc323905d5
Another 2024-04-14 19:33:49 +05:30
Manav Rathi
fca4b2aca6
Use also for the image 2024-04-14 19:29:22 +05:30
Manav Rathi
c4ac5e39a2
Refactor 2024-04-14 19:25:01 +05:30
Manav Rathi
28574e516d
[desktop] Fix export related IPC - Part 3/x (#1439) 2024-04-14 19:04:38 +05:30
Manav Rathi
1232c74b8b
[web] Fix CSS alignment issue on gallery page (#1438)
## Description
Ran ente.io locally on PC and found a CSS-alignment issue on the
`http://localhost:3000/gallery` page.
The alignment issue was found when it was locally hosted and found when
'/gallery' was in an empty state.
The line - "Welcome to" followed by the image of 'ente' was not aligned.
It was fixed by adding the following line `vertical-align: middle;` to
the styled component.

> Please find below images showing the off-alignment and the rectified
image.

> Thank you ! to the team for considering

## Tests
### Before
![Screenshot 2024-04-14
115356](https://github.com/ente-io/ente/assets/82031202/d733a8b3-702f-41df-9480-9692db6b8e86)
### After
![Screenshot 2024-04-14
115433](https://github.com/ente-io/ente/assets/82031202/0c5acc8e-0107-4b00-b7e0-d26a4369ed19)
2024-04-14 19:01:44 +05:30
Manav Rathi
22f221d481
Extract 2024-04-14 18:36:36 +05:30
Manav Rathi
f5a4830a5a
Remove unnecessary check
e.g. macOS node shell

    > await fs.rename("/tmp/foo/bar/quxx.txt", "/tmp/foo/a.txt")
    [Error: ENOENT: no such file or directory, rename '/tmp/foo/bar/quxx.txt' -> '/tmp/foo/a.txt']
2024-04-14 18:28:10 +05:30
Manav Rathi
eb64a00ed2
Remove unnecessary checks
It is simpler for us to parallel the rm command than our bespoke variant.
2024-04-14 18:22:46 +05:30
Manav Rathi
59b9e3e586
Move into fs 2024-04-14 18:12:19 +05:30
Manav Rathi
0f1c2fa1cd
Remove unnecessary check
Mentioned in rmdir docs

Tested on macOS with a node shell

    > await fs.rmdir("/tmp/foo/bar/baz")
    Uncaught [Error: ENOTEMPTY: directory not empty, rmdir '/tmp/foo/bar/baz']
2024-04-14 18:06:49 +05:30
Manav Rathi
fb5ae3a2ac
Remove unnecessary check
rmdir docs already mention it'll only work on folders

Also tested on macOS with a node shell

    > await fs.rmdir("/tmp/foo/bar/baz/quxx.txt")
    Uncaught [Error: ENOTDIR: not a directory, rmdir '/tmp/foo/bar/baz/quxx.txt'] {
2024-04-14 17:55:40 +05:30
Prateek Sunal
5da8ee7e27 fix: segregate logic for launch from widget 2024-04-14 14:35:10 +05:30
daviddeepan
2a9060bd39 css-alignment-issue-page-gallery 2024-04-14 13:53:00 +05:30
Vishnu Mohandas
db50d121e6
Update index.md 2024-04-14 11:30:47 +05:30
Manav Rathi
adb37f38e4
Shorten 2024-04-14 10:31:45 +05:30
Manav Rathi
14922b65f8
Inline 2024-04-14 10:28:27 +05:30
Manav Rathi
7438c3301e
Move mkdirIfNeeded into fs 2024-04-14 10:25:28 +05:30
Manav Rathi
0e8678715a
Remove layer 2024-04-14 10:03:16 +05:30
Manav Rathi
3824ebe91a
Remove exportService indirection 2024-04-14 09:57:58 +05:30
Manav Rathi
ea34eebfc9
Remove implicit electron dependency 2024-04-14 09:53:18 +05:30
Manav Rathi
eeb1952585
Use 2024-04-14 09:30:51 +05:30
Manav Rathi
72dd47fa7b
Audit rename 2024-04-14 09:27:52 +05:30
Manav Rathi
b977f982dd
[desktop] Fix export related IPC - Part 2/x (#1436) 2024-04-13 21:56:46 +05:30
Manav Rathi
38db03c3a0
Start giving it more power 2024-04-13 21:50:56 +05:30
Manav Rathi
e268b9204e
Inline 2024-04-13 21:46:34 +05:30
Manav Rathi
acd50bb172
Inline 2024-04-13 21:39:36 +05:30